2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
719 PACKAGE_STRING
='llvm 2.7svn'
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
837 ENABLE_EXPENSIVE_CHECKS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
855 ENABLE_LLVMC_DYNAMIC_PLUGINS
902 CONVENIENCE_LTDL_TRUE
903 CONVENIENCE_LTDL_FALSE
918 NO_MISSING_FIELD_INITIALIZERS
946 ENABLE_VISIBILITY_INLINES_HIDDEN
952 ac_precious_vars
='build_alias
966 ac_subdirs_all
='projects/sample
968 projects/llvm-stacker
975 projects/llvm-poolalloc
977 projects/llvm-kernel'
979 # Initialize some variables set by options.
981 ac_init_version
=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name
=s
,x
,x
,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir
='${exec_prefix}/bin'
1006 sbindir
='${exec_prefix}/sbin'
1007 libexecdir
='${exec_prefix}/libexec'
1008 datarootdir
='${prefix}/share'
1009 datadir
='${datarootdir}'
1010 sysconfdir
='${prefix}/etc'
1011 sharedstatedir
='${prefix}/com'
1012 localstatedir
='${prefix}/var'
1013 includedir
='${prefix}/include'
1014 oldincludedir
='/usr/include'
1015 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir
='${datarootdir}/info'
1021 libdir
='${exec_prefix}/lib'
1022 localedir
='${datarootdir}/locale'
1023 mandir
='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\
$ac_option
1037 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1049 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1050 bindir
=$ac_optarg ;;
1052 -build |
--build |
--buil |
--bui |
--bu)
1053 ac_prev
=build_alias
;;
1054 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1055 build_alias
=$ac_optarg ;;
1057 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1058 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1059 ac_prev
=cache_file
;;
1060 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1061 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1062 cache_file
=$ac_optarg ;;
1064 --config-cache |
-C)
1065 cache_file
=config.cache
;;
1067 -datadir |
--datadir |
--datadi |
--datad)
1069 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1070 datadir
=$ac_optarg ;;
1072 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1073 |
--dataroo |
--dataro |
--datar)
1074 ac_prev
=datarootdir
;;
1075 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1076 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1077 datarootdir
=$ac_optarg ;;
1079 -disable-* |
--disable-*)
1080 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_
$ac_feature=no
;;
1088 -docdir |
--docdir |
--docdi |
--doc |
--do)
1090 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1091 docdir
=$ac_optarg ;;
1093 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1095 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1096 dvidir
=$ac_optarg ;;
1098 -enable-* |
--enable-*)
1099 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1105 eval enable_
$ac_feature=\
$ac_optarg ;;
1107 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1108 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1109 |
--exec |
--exe |
--ex)
1110 ac_prev
=exec_prefix
;;
1111 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1112 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1113 |
--exec=* |
--exe=* |
--ex=*)
1114 exec_prefix
=$ac_optarg ;;
1116 -gas |
--gas |
--ga |
--g)
1117 # Obsolete; use --with-gas.
1120 -help |
--help |
--hel |
--he |
-h)
1121 ac_init_help
=long
;;
1122 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1123 ac_init_help
=recursive
;;
1124 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1125 ac_init_help
=short
;;
1127 -host |
--host |
--hos |
--ho)
1128 ac_prev
=host_alias
;;
1129 -host=* |
--host=* |
--hos=* |
--ho=*)
1130 host_alias
=$ac_optarg ;;
1132 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1134 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1136 htmldir
=$ac_optarg ;;
1138 -includedir |
--includedir |
--includedi |
--included |
--include \
1139 |
--includ |
--inclu |
--incl |
--inc)
1140 ac_prev
=includedir
;;
1141 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1142 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1143 includedir
=$ac_optarg ;;
1145 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1147 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1148 infodir
=$ac_optarg ;;
1150 -libdir |
--libdir |
--libdi |
--libd)
1152 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1153 libdir
=$ac_optarg ;;
1155 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1156 |
--libexe |
--libex |
--libe)
1157 ac_prev
=libexecdir
;;
1158 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1159 |
--libexe=* |
--libex=* |
--libe=*)
1160 libexecdir
=$ac_optarg ;;
1162 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1163 ac_prev
=localedir
;;
1164 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1165 localedir
=$ac_optarg ;;
1167 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1168 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1169 ac_prev
=localstatedir
;;
1170 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1171 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1172 localstatedir
=$ac_optarg ;;
1174 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1176 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1177 mandir
=$ac_optarg ;;
1179 -nfp |
--nfp |
--nf)
1180 # Obsolete; use --without-fp.
1183 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1184 |
--no-cr |
--no-c |
-n)
1187 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1188 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1191 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1192 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1193 |
--oldin |
--oldi |
--old |
--ol |
--o)
1194 ac_prev
=oldincludedir
;;
1195 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1196 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1197 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1198 oldincludedir
=$ac_optarg ;;
1200 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1202 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1203 prefix
=$ac_optarg ;;
1205 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1206 |
--program-pre |
--program-pr |
--program-p)
1207 ac_prev
=program_prefix
;;
1208 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1209 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1210 program_prefix
=$ac_optarg ;;
1212 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1213 |
--program-suf |
--program-su |
--program-s)
1214 ac_prev
=program_suffix
;;
1215 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1216 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1217 program_suffix
=$ac_optarg ;;
1219 -program-transform-name |
--program-transform-name \
1220 |
--program-transform-nam |
--program-transform-na \
1221 |
--program-transform-n |
--program-transform- \
1222 |
--program-transform |
--program-transfor \
1223 |
--program-transfo |
--program-transf \
1224 |
--program-trans |
--program-tran \
1225 |
--progr-tra |
--program-tr |
--program-t)
1226 ac_prev
=program_transform_name
;;
1227 -program-transform-name=* |
--program-transform-name=* \
1228 |
--program-transform-nam=* |
--program-transform-na=* \
1229 |
--program-transform-n=* |
--program-transform-=* \
1230 |
--program-transform=* |
--program-transfor=* \
1231 |
--program-transfo=* |
--program-transf=* \
1232 |
--program-trans=* |
--program-tran=* \
1233 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1234 program_transform_name
=$ac_optarg ;;
1236 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1238 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1239 pdfdir
=$ac_optarg ;;
1241 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1243 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1246 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1247 |
-silent |
--silent |
--silen |
--sile |
--sil)
1250 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1252 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1254 sbindir
=$ac_optarg ;;
1256 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1257 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1258 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1260 ac_prev
=sharedstatedir
;;
1261 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1262 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1263 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1265 sharedstatedir
=$ac_optarg ;;
1267 -site |
--site |
--sit)
1269 -site=* |
--site=* |
--sit=*)
1272 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1274 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1275 srcdir
=$ac_optarg ;;
1277 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1278 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1279 ac_prev
=sysconfdir
;;
1280 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1281 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1282 sysconfdir
=$ac_optarg ;;
1284 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1285 ac_prev
=target_alias
;;
1286 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1287 target_alias
=$ac_optarg ;;
1289 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1292 -version |
--version |
--versio |
--versi |
--vers |
-V)
1293 ac_init_version
=: ;;
1296 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1302 eval with_
$ac_package=\
$ac_optarg ;;
1304 -without-* |
--without-*)
1305 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1311 eval with_
$ac_package=no
;;
1314 # Obsolete; use --with-x.
1317 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1318 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1319 ac_prev
=x_includes
;;
1320 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1321 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1322 x_includes
=$ac_optarg ;;
1324 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1325 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1326 ac_prev
=x_libraries
;;
1327 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1328 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1329 x_libraries
=$ac_optarg ;;
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1337 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\
$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1362 # Be sure to have absolute directory names.
1363 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val
=\$
$ac_var
1370 [\\/$
]* | ?
:[\\/]* ) continue;;
1371 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1382 target
=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x
; then
1386 if test "x$build_alias" = x
; then
1387 cross_compiling
=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1398 test "$silent" = yes && exec 6>/dev
/null
1401 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di
=`ls -di .` &&
1403 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted
=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir
=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
1419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted
=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448 { (exit 1); exit 1; }; }
1450 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453 { (exit 1); exit 1; }; }
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var
in $ac_precious_vars; do
1466 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1468 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --build=BUILD configure
for building on BUILD
[guessed
]
1538 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1539 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive
) echo "Configuration of llvm 2.7svn:";;
1550 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1551 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1552 --enable-optimized Compile with optimizations enabled
(default is NO
)
1553 --enable-profiling Compile with profiling enabled
(default is NO
)
1554 --enable-assertions Compile with assertion checks enabled
(default is
1556 --enable-expensive-checks
1557 Compile with expensive debug checks enabled
(default
1559 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1561 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1562 optimization is on and YES
if it
's off)
1563 --enable-jit Enable Just In Time Compiling (default is YES)
1564 --enable-doxygen Build doxygen documentation (default is NO)
1565 --enable-threads Use threads if available (default is YES)
1566 --enable-pic Build LLVM with Position Independent Code (default
1568 --enable-targets Build specific host targets: all or
1569 target1,target2,... Valid targets are: host, x86,
1570 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572 and cpp (default=all)
1573 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1575 --enable-bindings Build specific language bindings:
1576 all,auto,none,{binding-name} (default=auto)
1577 --enable-libffi Check for the presence of libffi (default is YES)
1578 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1580 --enable-llvmc-dynamic-plugins
1581 Enable dynamic LLVMC plugins (default is YES)
1582 --enable-ltdl-install install libltdl
1583 --enable-shared[=PKGS] build shared libraries
1585 --enable-static[=PKGS] build static libraries
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1597 --with-llvmgcc Specify location of llvm-gcc driver (default
1599 --with-llvmgxx Specify location of llvm-g++ driver (default
1601 --with-optimize-option Select the compiler options to use for optimized
1603 --with-extra-options Specify additional options to compile LLVM with
1604 --with-ocaml-libdir Specify install location for ocaml bindings (default
1606 --with-binutils-include Specify path to binutils/include/ containing
1607 plugin-api.h file for gold plugin.
1608 --with-tclinclude directory where tcl headers are
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1612 --with-tags[=TAGS] include additional configurations [automatic]
1613 --with-udis86=<path> Use udis86 external x86 disassembler library
1614 --with-oprofile=<prefix>
1615 Tell OProfile >= 0.9.4 how to symbolize JIT output
1617 Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
1625 CXX C++ compiler command
1626 CXXFLAGS C++ compiler flags
1627 CXXCPP C++ preprocessor
1628 F77 Fortran 77 compiler command
1629 FFLAGS Fortran 77 compiler flags
1631 Use these variables to override the choices made by `configure' or to
help
1632 it to
find libraries and programs with nonstandard names
/locations.
1634 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1642 test -d "$ac_dir" ||
continue
1646 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1648 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1653 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1656 ac_abs_top_builddir
=$ac_pwd
1657 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir
=$ac_top_build_prefix
1662 .
) # We are building in place.
1664 ac_top_srcdir
=$ac_top_builddir_sub
1665 ac_abs_top_srcdir
=$ac_pwd ;;
1666 [\\/]* | ?
:[\\/]* ) # Absolute name.
1667 ac_srcdir
=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir
=$srcdir
1669 ac_abs_top_srcdir
=$srcdir ;;
1671 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1675 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1686 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1695 llvm configure
2.7svn
1696 generated by GNU Autoconf
2.60
1698 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1699 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1700 This configure
script is free software
; the Free Software Foundation
1701 gives unlimited permission to copy
, distribute and modify it.
1703 Copyright
(c
) 2003-2009 University of Illinois
at Urbana-Champaign.
1707 cat >config.log
<<_ACEOF
1708 This file contains any messages produced by compilers while
1709 running configure, to aid debugging if configure makes a mistake.
1711 It was created by llvm $as_me 2.7svn, which was
1712 generated by GNU Autoconf 2.60. Invocation command line was
1724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1725 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1726 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1727 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1728 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1731 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1733 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1736 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1737 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1738 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1739 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir
=.
1748 echo "PATH: $as_dir"
1764 # Keep a trace of the command line.
1765 # Strip out --no-create and --no-recursion so they do not pile up.
1766 # Strip out --silent because we don't want to record it for future runs.
1767 # Also quote any args containing shell meta-characters.
1768 # Make two passes to allow for proper duplicate-argument suppression.
1772 ac_must_keep_next
=false
1778 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1779 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1780 |
-silent |
--silent |
--silen |
--sile |
--sil)
1783 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1788 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1789 if test $ac_must_keep_next = true
; then
1790 ac_must_keep_next
=false
# Got value, back to normal.
1793 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1794 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1795 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1796 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1797 case "$ac_configure_args0 " in
1798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 -* ) ac_must_keep_next
=true
;;
1804 ac_configure_args
="$ac_configure_args '$ac_arg'"
1809 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1810 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1812 # When interrupted or exit'd, cleanup temporary files, and complete
1813 # config.log. We remove comments because anyway the quotes in there
1814 # would cause problems or look ugly.
1815 # WARNING: Use '\'' to represent an apostrophe within the trap.
1816 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1817 trap 'exit_status=$?
1818 # Save into config.log some information that might help in debugging.
1823 ## ---------------- ##
1824 ## Cache variables. ##
1825 ## ---------------- ##
1828 # The following way of writing the cache mishandles newlines in values,
1830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1831 eval ac_val=\$$ac_var
1835 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1836 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1839 _ | IFS | as_nl) ;; #(
1840 *) $as_unset $ac_var ;;
1845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1846 *${as_nl}ac_space=\ *)
1848 "s/'\''/'\''\\\\'\'''\''/g;
1849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1860 ## ----------------- ##
1861 ## Output variables. ##
1862 ## ----------------- ##
1865 for ac_var in $ac_subst_vars
1867 eval ac_val=\$$ac_var
1869 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871 echo "$ac_var='\''$ac_val'\''"
1875 if test -n "$ac_subst_files"; then
1877 ## ------------------- ##
1878 ## File substitutions. ##
1879 ## ------------------- ##
1882 for ac_var
in $ac_subst_files
1884 eval ac_val
=\$
$ac_var
1886 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 echo "$ac_var='\''$ac_val'\''"
1893 if test -s confdefs.h; then
1903 test "$ac_signal" != 0 &&
1904 echo "$as_me: caught signal $ac_signal"
1905 echo "$as_me: exit $exit_status"
1907 rm -f core *.core core.conftest.* &&
1908 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911 for ac_signal
in 1 2 13 15; do
1912 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1916 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1917 rm -f -r conftest
* confdefs.h
1919 # Predefined preprocessor variables.
1921 cat >>confdefs.h
<<_ACEOF
1922 #define PACKAGE_NAME "$PACKAGE_NAME"
1926 cat >>confdefs.h
<<_ACEOF
1927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931 cat >>confdefs.h
<<_ACEOF
1932 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1936 cat >>confdefs.h
<<_ACEOF
1937 #define PACKAGE_STRING "$PACKAGE_STRING"
1941 cat >>confdefs.h
<<_ACEOF
1942 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1946 # Let the site file select an alternate cache file if it wants to.
1947 # Prefer explicitly selected file to automatically selected ones.
1948 if test -n "$CONFIG_SITE"; then
1949 set x
"$CONFIG_SITE"
1950 elif test "x$prefix" != xNONE
; then
1951 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1953 set x
"$ac_default_prefix/share/config.site" \
1954 "$ac_default_prefix/etc/config.site"
1959 if test -r "$ac_site_file"; then
1960 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1961 echo "$as_me: loading site script $ac_site_file" >&6;}
1962 sed 's/^/| /' "$ac_site_file" >&5
1967 if test -r "$cache_file"; then
1968 # Some versions of bash will fail to source /dev/null (special
1969 # files actually), so we avoid doing that.
1970 if test -f "$cache_file"; then
1971 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1972 echo "$as_me: loading cache $cache_file" >&6;}
1974 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1975 *) .
"./$cache_file";;
1979 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1980 echo "$as_me: creating cache $cache_file" >&6;}
1984 # Check that the precious variables saved in the cache have kept the same
1986 ac_cache_corrupted
=false
1987 for ac_var
in $ac_precious_vars; do
1988 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1989 eval ac_new_set
=\
$ac_env_${ac_var}_set
1990 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1991 eval ac_new_val
=\
$ac_env_${ac_var}_value
1992 case $ac_old_set,$ac_new_set in
1994 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996 ac_cache_corrupted
=: ;;
1998 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000 ac_cache_corrupted
=: ;;
2003 if test "x$ac_old_val" != "x$ac_new_val"; then
2004 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2007 echo "$as_me: former value: $ac_old_val" >&2;}
2008 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2009 echo "$as_me: current value: $ac_new_val" >&2;}
2010 ac_cache_corrupted
=:
2013 # Pass precious variables to config.status.
2014 if test "$ac_new_set" = set; then
2016 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017 *) ac_arg
=$ac_var=$ac_new_val ;;
2019 case " $ac_configure_args " in
2020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2021 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2025 if $ac_cache_corrupted; then
2026 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030 { (exit 1); exit 1; }; }
2058 ac_cpp
='$CPP $CPPFLAGS'
2059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2065 LLVM_COPYRIGHT
="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2074 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2075 if test -f "$ac_dir/install-sh"; then
2077 ac_install_sh
="$ac_aux_dir/install-sh -c"
2079 elif test -f "$ac_dir/install.sh"; then
2081 ac_install_sh
="$ac_aux_dir/install.sh -c"
2083 elif test -f "$ac_dir/shtool"; then
2085 ac_install_sh
="$ac_aux_dir/shtool install -c"
2089 if test -z "$ac_aux_dir"; then
2090 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2091 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2092 { (exit 1); exit 1; }; }
2095 # These three variables are undocumented and unsupported,
2096 # and are intended to be withdrawn in a future Autoconf release.
2097 # They can cause serious problems if a builder's source tree is in a directory
2098 # whose full name contains unusual characters.
2099 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2100 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2101 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2105 if test ${srcdir} != "." ; then
2106 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2107 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2108 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2109 { (exit 1); exit 1; }; }
2113 for i
in `ls ${srcdir}/projects`
2115 if test -d ${srcdir}/projects
/${i} ; then
2118 sample
) subdirs
="$subdirs projects/sample"
2120 privbracket
) subdirs
="$subdirs projects/privbracket"
2122 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2124 # llvm-test is the old name of the test-suite, kept here for backwards
2126 llvm-test
) subdirs
="$subdirs projects/llvm-test"
2128 test-suite
) subdirs
="$subdirs projects/test-suite"
2130 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2132 llvm-gcc
) subdirs
="$subdirs projects/llvm-gcc"
2134 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2136 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2138 llvm-poolalloc
) subdirs
="$subdirs projects/llvm-poolalloc"
2140 poolalloc
) subdirs
="$subdirs projects/poolalloc"
2142 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2145 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2146 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2153 # Make sure we can run config.sub.
2154 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2155 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2156 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2157 { (exit 1); exit 1; }; }
2159 { echo "$as_me:$LINENO: checking build system type" >&5
2160 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2161 if test "${ac_cv_build+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 ac_build_alias
=$build_alias
2165 test "x$ac_build_alias" = x
&&
2166 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2167 test "x$ac_build_alias" = x
&&
2168 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2169 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2170 { (exit 1); exit 1; }; }
2171 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2173 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2174 { (exit 1); exit 1; }; }
2177 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2178 echo "${ECHO_T}$ac_cv_build" >&6; }
2179 case $ac_cv_build in
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2182 echo "$as_me: error: invalid value of canonical build" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS
=$IFS; IFS
='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2199 { echo "$as_me:$LINENO: checking host system type" >&5
2200 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_host+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test "x$host_alias" = x
; then
2205 ac_cv_host
=$ac_cv_build
2207 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2210 { (exit 1); exit 1; }; }
2214 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2215 echo "${ECHO_T}$ac_cv_host" >&6; }
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2219 echo "$as_me: error: invalid value of canonical host" >&2;}
2220 { (exit 1); exit 1; }; };;
2223 ac_save_IFS
=$IFS; IFS
='-'
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2233 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2236 { echo "$as_me:$LINENO: checking target system type" >&5
2237 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2238 if test "${ac_cv_target+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test "x$target_alias" = x
; then
2242 ac_cv_target
=$ac_cv_host
2244 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2245 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2246 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2252 echo "${ECHO_T}$ac_cv_target" >&6; }
2253 case $ac_cv_target in
2255 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2256 echo "$as_me: error: invalid value of canonical target" >&2;}
2257 { (exit 1); exit 1; }; };;
2259 target
=$ac_cv_target
2260 ac_save_IFS
=$IFS; IFS
='-'
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2270 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2273 # The aliases save the names the user supplied, while $host etc.
2274 # will get canonicalized.
2275 test -n "$target_alias" &&
2276 test "$program_prefix$program_suffix$program_transform_name" = \
2278 program_prefix
=${target_alias}-
2280 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2281 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2282 if test "${llvm_cv_os_type+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 llvm_cv_link_all_option
="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2289 llvm_cv_os_type
="AIX"
2290 llvm_cv_platform_type
="Unix" ;;
2292 llvm_cv_link_all_option
="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2294 llvm_cv_os_type
="IRIX"
2295 llvm_cv_platform_type
="Unix" ;;
2297 llvm_cv_link_all_option
="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2299 llvm_cv_os_type
="Cygwin"
2300 llvm_cv_platform_type
="Unix" ;;
2302 llvm_cv_link_all_option
="-Wl,-all_load"
2303 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2304 llvm_cv_os_type
="Darwin"
2305 llvm_cv_platform_type
="Unix" ;;
2307 llvm_cv_link_all_option
="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2309 llvm_cv_os_type
="FreeBSD"
2310 llvm_cv_platform_type
="Unix" ;;
2312 llvm_cv_link_all_option
="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2314 llvm_cv_os_type
="OpenBSD"
2315 llvm_cv_platform_type
="Unix" ;;
2317 llvm_cv_link_all_option
="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2319 llvm_cv_os_type
="NetBSD"
2320 llvm_cv_platform_type
="Unix" ;;
2322 llvm_cv_link_all_option
="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2324 llvm_cv_os_type
="DragonFly"
2325 llvm_cv_platform_type
="Unix" ;;
2327 llvm_cv_link_all_option
="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2329 llvm_cv_os_type
="HP-UX"
2330 llvm_cv_platform_type
="Unix" ;;
2332 llvm_cv_link_all_option
="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2334 llvm_cv_os_type
="Interix"
2335 llvm_cv_platform_type
="Unix" ;;
2337 llvm_cv_link_all_option
="-Wl,--whole-archive"
2338 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2339 llvm_cv_os_type
="Linux"
2340 llvm_cv_platform_type
="Unix" ;;
2342 llvm_cv_link_all_option
="-Wl,-z,allextract"
2343 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2344 llvm_cv_os_type
="SunOS"
2345 llvm_cv_platform_type
="Unix" ;;
2347 llvm_cv_link_all_option
="-Wl,-z,allextract"
2348 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2349 llvm_cv_os_type
="AuroraUX"
2350 llvm_cv_platform_type
="Unix" ;;
2352 llvm_cv_link_all_option
="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2354 llvm_cv_os_type
="Win32"
2355 llvm_cv_platform_type
="Win32" ;;
2357 llvm_cv_link_all_option
="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2359 llvm_cv_os_type
="MingW"
2360 llvm_cv_platform_type
="Win32" ;;
2362 llvm_cv_link_all_option
="-Wl,--whole-archive"
2363 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2364 llvm_cv_os_type
="Haiku"
2365 llvm_cv_platform_type
="Unix" ;;
2367 llvm_cv_link_all_option
="-Wl,--whole-archive"
2368 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2369 llvm_cv_os_type
="Freestanding"
2370 llvm_cv_platform_type
="Unix" ;;
2372 llvm_cv_link_all_option
="-Wl,--whole-archive"
2373 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2374 llvm_cv_os_type
="Freestanding"
2375 llvm_cv_platform_type
="Unix" ;;
2377 llvm_cv_link_all_option
=""
2378 llvm_cv_no_link_all_option
=""
2379 llvm_cv_os_type
="Unknown"
2380 llvm_cv_platform_type
="Unknown" ;;
2383 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2384 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2386 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2387 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2388 if test "${llvm_cv_target_os_type+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 llvm_cv_target_os_type
="AIX" ;;
2395 llvm_cv_target_os_type
="IRIX" ;;
2397 llvm_cv_target_os_type
="Cygwin" ;;
2399 llvm_cv_target_os_type
="Darwin" ;;
2401 llvm_cv_target_os_type
="FreeBSD" ;;
2403 llvm_cv_target_os_type
="OpenBSD" ;;
2405 llvm_cv_target_os_type
="NetBSD" ;;
2407 llvm_cv_target_os_type
="DragonFly" ;;
2409 llvm_cv_target_os_type
="HP-UX" ;;
2411 llvm_cv_target_os_type
="Interix" ;;
2413 llvm_cv_target_os_type
="Linux" ;;
2415 llvm_cv_target_os_type
="SunOS" ;;
2417 llvm_cv_target_os_type
="AuroraUX" ;;
2419 llvm_cv_target_os_type
="Win32" ;;
2421 llvm_cv_target_os_type
="MingW" ;;
2423 llvm_cv_target_os_type
="Haiku" ;;
2425 llvm_cv_target_os_type
="Freestanding" ;;
2427 llvm_cv_target_os_type
="Unknown" ;;
2430 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2431 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2433 if test "$llvm_cv_os_type" = "Unknown" ; then
2434 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2435 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2436 { (exit 1); exit 1; }; }
2441 HOST_OS
=$llvm_cv_os_type
2443 TARGET_OS
=$llvm_cv_target_os_type
2446 LINKALL
=$llvm_cv_link_all_option
2448 NOLINKALL
=$llvm_cv_no_link_all_option
2451 case $llvm_cv_platform_type in
2454 cat >>confdefs.h
<<\_ACEOF
2455 #define LLVM_ON_UNIX 1
2465 cat >>confdefs.h
<<\_ACEOF
2466 #define LLVM_ON_WIN32 1
2476 { echo "$as_me:$LINENO: checking target architecture" >&5
2477 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2478 if test "${llvm_cv_target_arch+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 i?
86-*) llvm_cv_target_arch
="x86" ;;
2483 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2484 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2485 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2486 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2487 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2488 mips-
*) llvm_cv_target_arch
="Mips" ;;
2489 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2490 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2491 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2492 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2493 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2494 *) llvm_cv_target_arch
="Unknown" ;;
2497 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2498 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2500 if test "$llvm_cv_target_arch" = "Unknown" ; then
2501 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2502 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2505 # Determine the LLVM native architecture for the target
2506 case "$llvm_cv_target_arch" in
2507 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2508 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2509 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2512 ARCH
=$llvm_cv_target_arch
2516 ac_cpp
='$CPP $CPPFLAGS'
2517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2522 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2525 if test "${ac_cv_prog_CC+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC
="$CC" # Let the user override the test.
2531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir
=.
2536 for ac_exec_ext
in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 if test -n "$CC"; then
2550 { echo "$as_me:$LINENO: result: $CC" >&5
2551 echo "${ECHO_T}$CC" >&6; }
2553 { echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6; }
2559 if test -z "$ac_cv_prog_CC"; then
2561 # Extract the first word of "gcc", so it can be a program name with args.
2562 set dummy gcc
; ac_word
=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 if test -n "$ac_ct_CC"; then
2569 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir
=.
2576 for ac_exec_ext
in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_ac_ct_CC
="gcc"
2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2589 if test -n "$ac_ct_CC"; then
2590 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2591 echo "${ECHO_T}$ac_ct_CC" >&6; }
2593 { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2597 if test "x$ac_ct_CC" = x
; then
2600 case $cross_compiling:$ac_tool_warned in
2602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2603 whose name does not start with the host triplet. If you think this
2604 configuration is useful to you, please write to autoconf@gnu.org." >&5
2605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2608 ac_tool_warned
=yes ;;
2616 if test -z "$CC"; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC
="$CC" # Let the user override the test.
2628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir
=.
2633 for ac_exec_ext
in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 if test -n "$CC"; then
2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2657 if test -z "$CC"; then
2658 # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc
; ac_word
=$2
2660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC
="$CC" # Let the user override the test.
2669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir
=.
2674 for ac_exec_ext
in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677 ac_prog_rejected
=yes
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test $ac_prog_rejected = yes; then
2689 # We found a bogon in the path, so make sure we never use it.
2690 set dummy
$ac_cv_prog_CC
2692 if test $# != 0; then
2693 # We chose a different compiler from the bogus one.
2694 # However, it has the same basename, so the bogon will be chosen
2695 # first if we set CC to just the basename; use the full file name.
2697 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2703 if test -n "$CC"; then
2704 { echo "$as_me:$LINENO: result: $CC" >&5
2705 echo "${ECHO_T}$CC" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2713 if test -z "$CC"; then
2714 if test -n "$ac_tool_prefix"; then
2715 for ac_prog
in cl.exe
2717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC
="$CC" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test -n "$CC"; then
2746 { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2749 { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2754 test -n "$CC" && break
2757 if test -z "$CC"; then
2759 for ac_prog
in cl.exe
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy
$ac_prog; ac_word
=$2
2763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir
=.
2776 for ac_exec_ext
in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_ac_ct_CC
="$ac_prog"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6; }
2793 { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2798 test -n "$ac_ct_CC" && break
2801 if test "x$ac_ct_CC" = x
; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet. If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&5
2809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet. If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2812 ac_tool_warned
=yes ;;
2821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: no acceptable C compiler found in \$PATH
2824 See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2827 # Provide some information about the compiler.
2828 echo "$as_me:$LINENO: checking for C compiler version" >&5
2829 ac_compiler
=`set X $ac_compile; echo $2`
2830 { (ac_try
="$ac_compiler --version >&5"
2832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_compiler --version >&5") 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2840 { (ac_try="$ac_compiler -v >&5"
2842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2843 *) ac_try_echo
=$ac_try;;
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_compiler -v >&5") 2>&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }
2850 { (ac_try
="$ac_compiler -V >&5"
2852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_compiler -V >&5") 2>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2876 ac_clean_files_save=$ac_clean_files
2877 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2878 # Try to create an executable without -o first, disregard a.out.
2879 # It will help us diagnose broken compilers, and finding out an intuition
2881 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2882 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2883 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2885 # List of possible output files, starting from the most likely.
2886 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2887 # only as a last resort. b.out is created by i960 compilers.
2888 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2890 # The IRIX 6 linker writes into existing files which may not be
2891 # executable, retaining their permissions. Remove them first so a
2892 # subsequent execution test works.
2894 for ac_file in $ac_files
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2903 if { (ac_try="$ac_link_default"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_link_default") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2916 # so that the user can short-circuit this test for compilers unknown to
2918 for ac_file
in $ac_files
2920 test -f "$ac_file" ||
continue
2922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2925 # We found the default executable, but exeext='' is most
2929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2931 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 # We set ac_cv_exeext here because the later test for it is not
2934 # safe: cross compilers may not add the suffix if given an `-o'
2935 # argument, so we may need to know it at that point already.
2936 # Even if this section looks crufty: it has the advantage of
2943 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.
$ac_ext >&5
2949 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&2;}
2953 { (exit 77); exit 77; }; }
2956 ac_exeext
=$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_file" >&5
2958 echo "${ECHO_T}$ac_file" >&6; }
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2965 # If not cross compiling, check that we can run a simple program.
2966 if test "$cross_compiling" != yes; then
2967 if { ac_try
='./$ac_file'
2968 { (case "(($ac_try" in
2969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2979 if test "$cross_compiling" = maybe; then
2982 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details.
" >&5
2985 echo "$as_me: error
: cannot run C compiled programs.
2986 If you meant to cross compile
, use \
`--host'.
2987 See \`config.log
' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2992 { echo "$as_me:$LINENO: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6; }
2995 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2996 ac_clean_files=$ac_clean_files_save
2997 # Check that the compiler produces executables we can run. If not, either
2998 # the compiler is broken, or we cross compile.
2999 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3000 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3001 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3002 echo "${ECHO_T}$cross_compiling" >&6; }
3004 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3005 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3006 if { (ac_try="$ac_link"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_link") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3017 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3018 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3020 for ac_file
in conftest.exe conftest conftest.
*; do
3021 test -f "$ac_file" ||
continue
3023 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3024 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }
3037 rm -f conftest
$ac_cv_exeext
3038 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3039 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3041 rm -f conftest.
$ac_ext
3042 EXEEXT
=$ac_cv_exeext
3044 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3045 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3046 if test "${ac_cv_objext+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.o conftest.obj
3065 if { (ac_try
="$ac_compile"
3067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; then
3075 for ac_file in conftest.o conftest.obj conftest.*; do
3076 test -f "$ac_file" || continue;
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3079 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088 See \`config.log
' for more details." >&5
3089 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details.
" >&2;}
3091 { (exit 1); exit 1; }; }
3094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3096 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3097 echo "${ECHO_T}$ac_cv_objext" >&6; }
3098 OBJEXT=$ac_cv_objext
3100 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3101 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3102 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3103 echo $ECHO_N "(cached
) $ECHO_C" >&6
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: failed program was
:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3170 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3171 GCC=`test $ac_compiler_gnu = yes && echo yes`
3172 ac_test_CFLAGS=${CFLAGS+set}
3173 ac_save_CFLAGS=$CFLAGS
3174 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3175 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3176 if test "${ac_cv_prog_cc_g+set}" = set; then
3177 echo $ECHO_N "(cached
) $ECHO_C" >&6
3179 ac_save_c_werror_flag=$ac_c_werror_flag
3180 ac_c_werror_flag=yes
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
3220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
3230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3231 (exit $ac_status); }; }; then
3234 echo "$as_me: failed program was
:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268 { (case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_try") 2>&5
3275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try='test -s conftest.$ac_objext'
3278 { (case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_try") 2>&5
3285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3286 (exit $ac_status); }; }; then
3289 echo "$as_me: failed program was
:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
3331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3342 (exit $ac_status); }; }; then
3345 echo "$as_me: failed program was
:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_c_werror_flag=$ac_save_c_werror_flag
3360 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3362 if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS=$ac_save_CFLAGS
3364 elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3371 if test "$GCC" = yes; then
3377 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3378 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3379 if test "${ac_cv_prog_cc_c89+set}" = set; then
3380 echo $ECHO_N "(cached
) $ECHO_C" >&6
3382 ac_cv_prog_cc_c89=no
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3408 s = g (p, va_arg (v,int));
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
3416 as 'x'. The following induces an error, until -std is added to get
3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
3419 that's true only with -std. */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3423 inside strings and character constants. */
3425 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3442 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444 CC="$ac_save_CC $ac_arg"
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3458 (exit $ac_status); } &&
3459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
3477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_c89=$ac_arg
3481 echo "$as_me: failed program was
:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f core conftest.err conftest.$ac_objext
3488 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3490 rm -f conftest.$ac_ext
3495 case "x
$ac_cv_prog_cc_c89" in
3497 { echo "$as_me:$LINENO: result
: none needed
" >&5
3498 echo "${ECHO_T}none needed
" >&6; } ;;
3500 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3501 echo "${ECHO_T}unsupported
" >&6; } ;;
3503 CC="$CC $ac_cv_prog_cc_c89"
3504 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3505 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3522 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3523 # On Suns, sometimes $CPP names a directory.
3524 if test -n "$CPP" && test -d "$CPP"; then
3527 if test -z "$CPP"; then
3528 if test "${ac_cv_prog_CPP+set}" = set; then
3529 echo $ECHO_N "(cached
) $ECHO_C" >&6
3531 # Double quotes because CPP needs to be expanded
3532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3535 for ac_c_preproc_warn_flag in '' yes
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error
" is here to catch this case.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3550 # include <limits.h>
3552 # include <assert.h>
3556 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3578 if test -z "$ac_cpp_err"; then
3581 echo "$as_me: failed program was
:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3588 rm -f conftest.err conftest.$ac_ext
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3622 if test -z "$ac_cpp_err"; then
3623 # Broken: success on invalid input.
3626 echo "$as_me: failed program was
:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 # Passes both tests.
3634 rm -f conftest.err conftest.$ac_ext
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3651 { echo "$as_me:$LINENO: result
: $CPP" >&5
3652 echo "${ECHO_T}$CPP" >&6; }
3654 for ac_c_preproc_warn_flag in '' yes
3656 # Use a header file that comes with gcc, so configuring glibc
3657 # with a fresh cross-compiler works.
3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659 # <limits.h> exists even on freestanding compilers.
3660 # On the NeXT, cc -E runs the code through the compiler's parser,
3661 # not just through cpp. "Syntax error
" is here to catch this case.
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3669 # include <limits.h>
3671 # include <assert.h>
3675 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3687 (exit $ac_status); } >/dev/null; then
3688 if test -s conftest.err; then
3689 ac_cpp_err=$ac_c_preproc_warn_flag
3690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3697 if test -z "$ac_cpp_err"; then
3700 echo "$as_me: failed program was
:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 # Broken: fails on valid input.
3707 rm -f conftest.err conftest.$ac_ext
3709 # OK, works on sane cases. Now check whether nonexistent headers
3710 # can be detected and how.
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <ac_nonexistent.h>
3719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3741 if test -z "$ac_cpp_err"; then
3742 # Broken: success on invalid input.
3745 echo "$as_me: failed program was
:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 # Passes both tests.
3753 rm -f conftest.err conftest.$ac_ext
3756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757 rm -f conftest.err conftest.$ac_ext
3758 if $ac_preproc_ok; then
3761 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3762 See \
`config.log' for more details." >&5
3763 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log
' for more details." >&2;}
3765 { (exit 1); exit 1; }; }
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3771 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_path_GREP_found=false
3787 # Loop through the user's path and
test for each of PROGNAME-LIST
3788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3789 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3792 test -z "$as_dir" && as_dir
=.
3793 for ac_prog
in grep ggrep
; do
3794 for ac_exec_ext
in '' $ac_executable_extensions; do
3795 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3796 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3797 # Check for GNU ac_path_GREP and select it if it is found.
3798 # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3801 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 echo 'GREP' >> "conftest.nl"
3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3812 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3813 ac_count
=`expr $ac_count + 1`
3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_GREP
="$ac_path_GREP"
3817 ac_path_GREP_max
=$ac_count
3819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3822 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3826 $ac_path_GREP_found && break 3
3836 GREP
="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840 { (exit 1); exit 1; }; }
3844 ac_cv_path_GREP
=$GREP
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851 GREP
="$ac_cv_path_GREP"
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3860 then ac_cv_path_EGREP
="$GREP -E"
3862 # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy
egrep; ac_prog_name
=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_path_EGREP_found
=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3871 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3874 test -z "$as_dir" && as_dir
=.
3875 for ac_prog
in egrep; do
3876 for ac_exec_ext
in '' $ac_executable_extensions; do
3877 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3878 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3883 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3894 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3895 ac_count
=`expr $ac_count + 1`
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP
="$ac_path_EGREP"
3899 ac_path_EGREP_max
=$ac_count
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3904 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3908 $ac_path_EGREP_found && break 3
3918 EGREP
="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922 { (exit 1); exit 1; }; }
3926 ac_cv_path_EGREP
=$EGREP
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934 EGREP
="$ac_cv_path_EGREP"
3937 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3939 if test "${ac_cv_header_stdc+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3961 rm -f conftest.
$ac_objext
3962 if { (ac_try
="$ac_compile"
3964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3978 *) ac_try_echo
=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try
='test -s conftest.$ac_objext'
3986 { (case "(($ac_try" in
3987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_header_stdc=yes
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_cv_header_stdc=no
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 if test $ac_cv_header_stdc = yes; then
4006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4007 cat >conftest.$ac_ext <<_ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017 $EGREP "memchr" >/dev/null 2>&1; then
4020 ac_cv_header_stdc=no
4026 if test $ac_cv_header_stdc = yes; then
4027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4028 cat >conftest.$ac_ext <<_ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "free" >/dev/null 2>&1; then
4041 ac_cv_header_stdc=no
4047 if test $ac_cv_header_stdc = yes; then
4048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4049 if test "$cross_compiling" = yes; then
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4060 #if ((' ' & 0x0FF) == 0x020)
4061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4064 # define ISLOWER(c) \
4065 (('a' <= (c) && (c) <= 'i') \
4066 || ('j' <= (c) && (c) <= 'r') \
4067 || ('s' <= (c) && (c) <= 'z'))
4068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4076 for (i = 0; i < 256; i++)
4077 if (XOR (islower (i), ISLOWER (i))
4078 || toupper (i) != TOUPPER (i))
4083 rm -f conftest$ac_exeext
4084 if { (ac_try="$ac_link"
4086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4087 *) ac_try_echo
=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_link") 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4094 { (case "(($ac_try" in
4095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4105 echo "$as_me: program exited with status $ac_status" >&5
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_cv_header_stdc=no
4112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4118 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4119 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4120 if test $ac_cv_header_stdc = yes; then
4122 cat >>confdefs.h <<\_ACEOF
4123 #define STDC_HEADERS 1
4128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4139 inttypes.h stdint.h unistd.h
4141 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 $ac_includes_default
4155 #include <$ac_header>
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4161 *) ac_try_echo
=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4166 grep -v '^ *+' conftest.er1
>conftest.err
4168 cat conftest.err
>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4184 *) ac_try_echo
=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_Header=yes"
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.
$ac_ext >&5
4196 eval "$as_ac_Header=no"
4199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4201 ac_res
=`eval echo '${'$as_ac_Header'}'`
4202 { echo "$as_me:$LINENO: result: $ac_res" >&5
4203 echo "${ECHO_T}$ac_res" >&6; }
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205 cat >>confdefs.h
<<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4214 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4215 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4216 if test "${ac_cv_c_bigendian+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 # See if sys/param.h defines the BYTE_ORDER macro.
4220 cat >conftest.
$ac_ext <<_ACEOF
4223 cat confdefs.h
>>conftest.
$ac_ext
4224 cat >>conftest.
$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #include <sys/types.h>
4227 #include <sys/param.h>
4232 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4240 rm -f conftest.
$ac_objext
4241 if { (ac_try
="$ac_compile"
4243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4257 *) ac_try_echo
=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try
='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 # It does; now see whether it defined to BIG_ENDIAN or not.
4275 cat >conftest.$ac_ext <<_ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <sys/types.h>
4282 #include <sys/param.h>
4287 #if BYTE_ORDER != BIG_ENDIAN
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4299 *) ac_try_echo
=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1
>conftest.err
4306 cat conftest.err
>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4310 { (case "(($ac_try" in
4311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4322 *) ac_try_echo
=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 ac_cv_c_bigendian
=yes
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.
$ac_ext >&5
4334 ac_cv_c_bigendian
=no
4337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.
$ac_ext >&5
4342 # It does not; compile a test program.
4343 if test "$cross_compiling" = yes; then
4344 # try to guess the endianness by grepping values into an object file
4345 ac_cv_c_bigendian
=unknown
4346 cat >conftest.
$ac_ext <<_ACEOF
4349 cat confdefs.h
>>conftest.
$ac_ext
4350 cat >>conftest.
$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4353 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4354 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4355 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4356 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4357 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4361 _ascii (); _ebcdic ();
4366 rm -f conftest.
$ac_objext
4367 if { (ac_try
="$ac_compile"
4369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4375 grep -v '^ *+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4381 { (case "(($ac_try" in
4382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4383 *) ac_try_echo
=$ac_try;;
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_try") 2>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try
='test -s conftest.$ac_objext'
4391 { (case "(($ac_try" in
4392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_try") 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4401 ac_cv_c_bigendian=yes
4403 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4404 if test "$ac_cv_c_bigendian" = unknown; then
4405 ac_cv_c_bigendian=no
4407 # finding both strings is unlikely to happen, but who knows?
4408 ac_cv_c_bigendian=unknown
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 $ac_includes_default
4431 /* Are we little or big endian? From Harbison&Steele. */
4435 char c[sizeof (long int)];
4438 return u.c[sizeof (long int) - 1] == 1;
4444 rm -f conftest$ac_exeext
4445 if { (ac_try="$ac_link"
4447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4448 *) ac_try_echo
=$ac_try;;
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_link") 2>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4455 { (case "(($ac_try" in
4456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_try") 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_c_bigendian=no
4466 echo "$as_me: program exited with status $ac_status" >&5
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_cv_c_bigendian=yes
4473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4483 case $ac_cv_c_bigendian in
4491 { { echo "$as_me:$LINENO: error: unknown endianness
4492 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4493 echo "$as_me: error: unknown endianness
4494 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4495 { (exit 1); exit 1; }; } ;;
4499 if test "$cross_compiling" = yes; then
4500 LLVM_CROSS_COMPILING=1
4503 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4504 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4505 if test "${ac_cv_build_exeext+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4509 ac_cv_build_exeext=.exe
4511 ac_build_prefix=${build_alias}-
4513 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4514 set dummy ${ac_build_prefix}gcc; ac_word=$2
4515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4517 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 if test -n "$BUILD_CC"; then
4521 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 BUILD_CC=$ac_cv_prog_BUILD_CC
4541 if test -n "$BUILD_CC"; then
4542 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4543 echo "${ECHO_T}$BUILD_CC" >&6; }
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4550 if test -z "$BUILD_CC"; then
4551 # Extract the first word of "gcc", so it can be a program name with args.
4552 set dummy gcc; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$BUILD_CC"; then
4559 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CC="gcc"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 BUILD_CC=$ac_cv_prog_BUILD_CC
4579 if test -n "$BUILD_CC"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4581 echo "${ECHO_T}$BUILD_CC" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590 set dummy cc; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$BUILD_CC"; then
4597 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected=yes
4611 ac_cv_prog_BUILD_CC="cc"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 if test $ac_prog_rejected = yes; then
4620 # We found a bogon in the path, so make sure we never use it.
4621 set dummy $ac_cv_prog_BUILD_CC
4623 if test $# != 0; then
4624 # We chose a different compiler from the bogus one.
4625 # However, it has the same basename, so the bogon will be chosen
4626 # first if we set BUILD_CC to just the basename; use the full file name.
4628 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4633 BUILD_CC=$ac_cv_prog_BUILD_CC
4634 if test -n "$BUILD_CC"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4636 echo "${ECHO_T}$BUILD_CC" >&6; }
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4645 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4646 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4647 { (exit 1); exit 1; }; }
4648 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4650 echo 'int main () { return 0; }' > conftest.$ac_ext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4653 (eval $ac_build_link) 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; then
4657 for file in conftest.*; do
4659 *.c | *.o | *.obj | *.dSYM) ;;
4660 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4664 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4665 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4666 { (exit 1); exit 1; }; }
4669 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4674 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4675 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4676 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4677 ac_build_exeext=$BUILD_EXEEXT
4679 ac_build_prefix=${build_alias}-
4680 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4681 set dummy ${ac_build_prefix}g++; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$BUILD_CXX"; then
4688 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4708 if test -n "$BUILD_CXX"; then
4709 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4710 echo "${ECHO_T}$BUILD_CXX" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4717 if test -z "$BUILD_CXX"; then
4718 # Extract the first word of "g++", so it can be a program name with args.
4719 set dummy g++; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 if test -n "$BUILD_CXX"; then
4726 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_BUILD_CXX="g++"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4746 if test -n "$BUILD_CXX"; then
4747 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4748 echo "${ECHO_T}$BUILD_CXX" >&6; }
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4755 if test -z "$BUILD_CXX"; then
4756 # Extract the first word of "c++", so it can be a program name with args.
4757 set dummy c++; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 if test -n "$BUILD_CXX"; then
4764 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4775 ac_prog_rejected=yes
4778 ac_cv_prog_BUILD_CXX="c++"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 if test $ac_prog_rejected = yes; then
4787 # We found a bogon in the path, so make sure we never use it.
4788 set dummy $ac_cv_prog_BUILD_CXX
4790 if test $# != 0; then
4791 # We chose a different compiler from the bogus one.
4792 # However, it has the same basename, so the bogon will be chosen
4793 # first if we set BUILD_CXX to just the basename; use the full file name.
4795 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4800 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4801 if test -n "$BUILD_CXX"; then
4802 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4803 echo "${ECHO_T}$BUILD_CXX" >&6; }
4805 { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4813 LLVM_CROSS_COMPILING=0
4817 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4828 # Check whether --enable-optimized was given.
4829 if test "${enable_optimized+set}" = set; then
4830 enableval=$enable_optimized;
4835 if test ${enableval} = "no" ; then
4839 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4843 # Check whether --enable-profiling was given.
4844 if test "${enable_profiling+set}" = set; then
4845 enableval=$enable_profiling;
4850 if test ${enableval} = "no" ; then
4854 ENABLE_PROFILING=ENABLE_PROFILING=1
4858 # Check whether --enable-assertions was given.
4859 if test "${enable_assertions+set}" = set; then
4860 enableval=$enable_assertions;
4865 if test ${enableval} = "yes" ; then
4869 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4873 # Check whether --enable-expensive-checks was given.
4874 if test "${enable_expensive_checks+set}" = set; then
4875 enableval=$enable_expensive_checks;
4880 if test ${enableval} = "yes" ; then
4881 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4883 EXPENSIVE_CHECKS=yes
4886 ENABLE_EXPENSIVE_CHECKS=
4892 # Check whether --enable-debug-runtime was given.
4893 if test "${enable_debug_runtime+set}" = set; then
4894 enableval=$enable_debug_runtime;
4899 if test ${enableval} = "no" ; then
4903 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4907 # Check whether --enable-debug-symbols was given.
4908 if test "${enable_debug_symbols+set}" = set; then
4909 enableval=$enable_debug_symbols;
4914 if test ${enableval} = "no" ; then
4918 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4922 # Check whether --enable-jit was given.
4923 if test "${enable_jit+set}" = set; then
4924 enableval=$enable_jit;
4929 if test ${enableval} = "no"
4934 case "$llvm_cv_target_arch" in
4935 x86) TARGET_HAS_JIT=1
4937 Sparc) TARGET_HAS_JIT=0
4939 PowerPC) TARGET_HAS_JIT=1
4941 x86_64) TARGET_HAS_JIT=1
4943 Alpha) TARGET_HAS_JIT=1
4945 ARM) TARGET_HAS_JIT=1
4947 Mips) TARGET_HAS_JIT=0
4949 PIC16) TARGET_HAS_JIT=0
4951 XCore) TARGET_HAS_JIT=0
4953 MSP430) TARGET_HAS_JIT=0
4955 SystemZ) TARGET_HAS_JIT=0
4957 Blackfin) TARGET_HAS_JIT=0
4964 # Check whether --enable-doxygen was given.
4965 if test "${enable_doxygen+set}" = set; then
4966 enableval=$enable_doxygen;
4971 case "$enableval" in
4972 yes) ENABLE_DOXYGEN=1
4974 no) ENABLE_DOXYGEN=0
4976 default) ENABLE_DOXYGEN=0
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4979 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4983 # Check whether --enable-threads was given.
4984 if test "${enable_threads+set}" = set; then
4985 enableval=$enable_threads;
4990 case "$enableval" in
4991 yes) ENABLE_THREADS=1
4993 no) ENABLE_THREADS=0
4995 default) ENABLE_THREADS=1
4997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4998 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5002 cat >>confdefs.h <<_ACEOF
5003 #define ENABLE_THREADS $ENABLE_THREADS
5007 # Check whether --enable-pic was given.
5008 if test "${enable_pic+set}" = set; then
5009 enableval=$enable_pic;
5014 case "$enableval" in
5019 default) ENABLE_PIC=1
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5026 cat >>confdefs.h <<_ACEOF
5027 #define ENABLE_PIC $ENABLE_PIC
5032 # Check whether --enable-targets was given.
5033 if test "${enable_targets+set}" = set; then
5034 enableval=$enable_targets;
5039 if test "$enableval" = host-only ; then
5042 case "$enableval" in
5043 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5044 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5046 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5047 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5048 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5049 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5050 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5051 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5052 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5053 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5054 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5055 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5056 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5057 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5058 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5059 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5060 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5061 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5062 host) case "$llvm_cv_target_arch" in
5063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5072 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5073 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5074 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5075 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5076 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5077 echo "$as_me: error: Can not set target to build" >&2;}
5078 { (exit 1); exit 1; }; } ;;
5080 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5081 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5082 { (exit 1); exit 1; }; } ;;
5087 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5090 # Determine whether we are building LLVM support for the native architecture.
5091 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5092 for a_target in $TARGETS_TO_BUILD; do
5093 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5094 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5096 cat >>confdefs.h <<_ACEOF
5097 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5103 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5104 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5105 LLVM_ENUM_TARGETS=""
5106 LLVM_ENUM_ASM_PRINTERS=""
5107 LLVM_ENUM_ASM_PARSERS=""
5108 for target_to_build in $TARGETS_TO_BUILD; do
5109 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5110 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5111 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5113 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5114 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5121 # Check whether --enable-cbe-printf-a was given.
5122 if test "${enable_cbe_printf_a+set}" = set; then
5123 enableval=$enable_cbe_printf_a;
5128 case "$enableval" in
5129 yes) ENABLE_CBE_PRINTF_A=1
5131 no) ENABLE_CBE_PRINTF_A=0
5133 default) ENABLE_CBE_PRINTF_A=1
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 cat >>confdefs.h <<_ACEOF
5141 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5146 # Check whether --with-llvmgccdir was given.
5147 if test "${with_llvmgccdir+set}" = set; then
5148 withval=$with_llvmgccdir;
5154 default) WITH_LLVMGCCDIR=default ;;
5155 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5156 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5157 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5162 # Check whether --with-llvmgcc was given.
5163 if test "${with_llvmgcc+set}" = set; then
5164 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5170 # Check whether --with-llvmgxx was given.
5171 if test "${with_llvmgxx+set}" = set; then
5172 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5177 if test -n "$LLVMGCC"; then
5178 LLVMGCCCOMMAND="$LLVMGCC"
5181 if test -n "$LLVMGXX"; then
5182 LLVMGXXCOMMAND="$LLVMGXX"
5185 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5186 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5187 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5188 { (exit 1); exit 1; }; };
5191 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5192 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5193 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5194 { (exit 1); exit 1; }; };
5198 # Check whether --with-optimize-option was given.
5199 if test "${with_optimize_option+set}" = set; then
5200 withval=$with_optimize_option;
5205 { echo "$as_me:$LINENO: checking optimization flags" >&5
5206 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5209 case "$llvm_cv_os_type" in
5210 MingW) optimize_option=-O3 ;;
5211 *) optimize_option=-O2 ;;
5213 *) optimize_option="$withval" ;;
5215 OPTIMIZE_OPTION=$optimize_option
5217 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5218 echo "${ECHO_T}$optimize_option" >&6; }
5221 # Check whether --with-extra-options was given.
5222 if test "${with_extra_options+set}" = set; then
5223 withval=$with_extra_options;
5229 default) EXTRA_OPTIONS= ;;
5230 *) EXTRA_OPTIONS=$withval ;;
5232 EXTRA_OPTIONS=$EXTRA_OPTIONS
5235 # Check whether --enable-bindings was given.
5236 if test "${enable_bindings+set}" = set; then
5237 enableval=$enable_bindings;
5242 BINDINGS_TO_BUILD=""
5243 case "$enableval" in
5244 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5245 all ) BINDINGS_TO_BUILD="ocaml" ;;
5246 none | no) BINDINGS_TO_BUILD="" ;;
5247 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5248 case "$a_binding" in
5249 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5250 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5251 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5259 # Check whether --with-ocaml-libdir was given.
5260 if test "${with_ocaml_libdir+set}" = set; then
5261 withval=$with_ocaml_libdir;
5267 auto) with_ocaml_libdir="$withval" ;;
5268 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5269 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5270 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5275 # Check whether --with-binutils-include was given.
5276 if test "${with_binutils_include+set}" = set; then
5277 withval=$with_binutils_include;
5283 default) WITH_BINUTILS_INCDIR=default ;;
5284 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5285 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5286 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5289 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5290 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5292 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5293 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5294 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5295 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5296 { (exit 1); exit 1; }; };
5300 # Check whether --enable-libffi was given.
5301 if test "${enable_libffi+set}" = set; then
5302 enableval=$enable_libffi;
5307 case "$enableval" in
5308 yes) llvm_cv_enable_libffi="yes" ;;
5309 no) llvm_cv_enable_libffi="no" ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5315 if test "$llvm_cv_os_type" = "Win32" ; then
5321 # Check whether --enable-llvmc-dynamic was given.
5322 if test "${enable_llvmc_dynamic+set}" = set; then
5323 enableval=$enable_llvmc_dynamic;
5325 enableval=$llvmc_dynamic
5328 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5329 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5332 ENABLE_LLVMC_DYNAMIC=
5336 # Check whether --enable-llvmc-dynamic-plugins was given.
5337 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5338 enableval=$enable_llvmc_dynamic_plugins;
5343 if test ${enableval} = "yes" ; then
5344 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5347 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5359 # On Suns, sometimes $CPP names a directory.
5360 if test -n "$CPP" && test -d "$CPP"; then
5363 if test -z "$CPP"; then
5364 if test "${ac_cv_prog_CPP+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 # Double quotes because CPP needs to be expanded
5368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5371 for ac_c_preproc_warn_flag in '' yes
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 # include <limits.h>
5388 # include <assert.h>
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5395 *) ac_try_echo
=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400 grep -v '^ *+' conftest.er1
>conftest.err
5402 cat conftest.err
>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev
/null
; then
5405 if test -s conftest.err
; then
5406 ac_cpp_err
=$ac_c_preproc_warn_flag
5407 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5414 if test -z "$ac_cpp_err"; then
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.
$ac_ext >&5
5420 # Broken: fails on valid input.
5424 rm -f conftest.err conftest.
$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat >conftest.
$ac_ext <<_ACEOF
5431 cat confdefs.h
>>conftest.
$ac_ext
5432 cat >>conftest.
$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include <ac_nonexistent.h>
5436 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } >/dev/null; then
5449 if test -s conftest.err; then
5450 ac_cpp_err=$ac_c_preproc_warn_flag
5451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5458 if test -z "$ac_cpp_err"; then
5459 # Broken: success on invalid input.
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 # Passes both tests.
5470 rm -f conftest.err conftest.$ac_ext
5473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5474 rm -f conftest.err conftest.
$ac_ext
5475 if $ac_preproc_ok; then
5487 { echo "$as_me:$LINENO: result: $CPP" >&5
5488 echo "${ECHO_T}$CPP" >&6; }
5490 for ac_c_preproc_warn_flag
in '' yes
5492 # Use a header file that comes with gcc, so configuring glibc
5493 # with a fresh cross-compiler works.
5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 # <limits.h> exists even on freestanding compilers.
5496 # On the NeXT, cc -E runs the code through the compiler's parser,
5497 # not just through cpp. "Syntax error" is here to catch this case.
5498 cat >conftest.
$ac_ext <<_ACEOF
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5505 # include <limits.h>
5507 # include <assert.h>
5511 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null; then
5524 if test -s conftest.err; then
5525 ac_cpp_err=$ac_c_preproc_warn_flag
5526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5533 if test -z "$ac_cpp_err"; then
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 # Broken: fails on valid input.
5543 rm -f conftest.err conftest.$ac_ext
5545 # OK, works on sane cases. Now check whether nonexistent headers
5546 # can be detected and how.
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 #include <ac_nonexistent.h>
5555 if { (ac_try="$ac_cpp conftest.$ac_ext"
5557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5558 *) ac_try_echo
=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563 grep -v '^ *+' conftest.er1
>conftest.err
5565 cat conftest.err
>&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } >/dev
/null
; then
5568 if test -s conftest.err
; then
5569 ac_cpp_err
=$ac_c_preproc_warn_flag
5570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5577 if test -z "$ac_cpp_err"; then
5578 # Broken: success on invalid input.
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.
$ac_ext >&5
5584 # Passes both tests.
5589 rm -f conftest.err conftest.
$ac_ext
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.err conftest.
$ac_ext
5594 if $ac_preproc_ok; then
5597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600 See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
5605 ac_cpp
='$CPP $CPPFLAGS'
5606 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5611 ac_cpp
='$CPP $CPPFLAGS'
5612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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_CC+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC
="$CC" # 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_CC
="$ac_tool_prefix$ac_prog"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 if test -n "$CC"; then
5647 { echo "$as_me:$LINENO: result: $CC" >&5
5648 echo "${ECHO_T}$CC" >&6; }
5650 { echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6; }
5655 test -n "$CC" && break
5658 if test -z "$CC"; 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_CC+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$ac_ct_CC"; then
5670 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # 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_CC
="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5690 if test -n "$ac_ct_CC"; then
5691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5692 echo "${ECHO_T}$ac_ct_CC" >&6; }
5694 { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5699 test -n "$ac_ct_CC" && break
5702 if test "x$ac_ct_CC" = 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 ;;
5720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." >&5
5722 echo "$as_me: error: no acceptable C compiler found in \$PATH
5723 See \`config.log' for more details." >&2;}
5724 { (exit 1); exit 1; }; }
5726 # Provide some information about the compiler.
5727 echo "$as_me:$LINENO: checking for C compiler version" >&5
5728 ac_compiler
=`set X $ac_compile; echo $2`
5729 { (ac_try
="$ac_compiler --version >&5"
5731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compiler --version >&5") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }
5739 { (ac_try="$ac_compiler -v >&5"
5741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5742 *) ac_try_echo
=$ac_try;;
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compiler -v >&5") 2>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }
5749 { (ac_try
="$ac_compiler -V >&5"
5751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compiler -V >&5") 2>&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }
5760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5787 *) ac_try_echo
=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1
>conftest.err
5794 cat conftest.err
>&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798 { (case "(($ac_try" in
5799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_try") 2>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (case "(($ac_try" in
5809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5810 *) ac_try_echo
=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_try") 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.
$ac_ext >&5
5825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5829 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5831 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5832 ac_test_CFLAGS
=${CFLAGS+set}
5833 ac_save_CFLAGS
=$CFLAGS
5834 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5835 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5836 if test "${ac_cv_prog_cc_g+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_save_c_werror_flag
=$ac_c_werror_flag
5840 ac_c_werror_flag
=yes
5843 cat >conftest.
$ac_ext <<_ACEOF
5846 cat confdefs.h
>>conftest.
$ac_ext
5847 cat >>conftest.
$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5858 rm -f conftest.
$ac_objext
5859 if { (ac_try
="$ac_compile"
5861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5875 *) ac_try_echo
=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5917 *) ac_try_echo
=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5940 *) ac_try_echo
=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 ac_c_werror_flag
=$ac_save_c_werror_flag
5954 cat >conftest.
$ac_ext <<_ACEOF
5957 cat confdefs.h
>>conftest.
$ac_ext
5958 cat >>conftest.
$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5969 rm -f conftest.
$ac_objext
5970 if { (ac_try
="$ac_compile"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5986 *) ac_try_echo
=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try
='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_c_werror_flag=$ac_save_c_werror_flag
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6022 if test "$ac_test_CFLAGS" = set; then
6023 CFLAGS=$ac_save_CFLAGS
6024 elif test $ac_cv_prog_cc_g = yes; then
6025 if test "$GCC" = yes; then
6031 if test "$GCC" = yes; then
6037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_cc_c89+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_cv_prog_cc_c89=no
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6055 struct buf { int x; };
6056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057 static char *e (p, i)
6063 static char *f (char * (*g) (char **, int), char **p, ...)
6068 s = g (p, va_arg (v,int));
6073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6074 function prototypes and stuff, but not '\xHH' hex character constants.
6075 These don't provoke an error unfortunately, instead are silently treated
6076 as 'x'. The following induces an error, until -std is added to get
6077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6078 array size at least. It's necessary to write '\x00'==0 to get something
6079 that's true only with -std. */
6080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083 inside strings and character constants. */
6085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6087 int test (int i, double x);
6088 struct s1 {int (*f) (int a);};
6089 struct s2 {int (*f) (double a);};
6090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6104 CC="$ac_save_CC $ac_arg"
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6109 *) ac_try_echo
=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1
>conftest.err
6116 cat conftest.err
>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6132 *) ac_try_echo
=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_prog_cc_c89
=$ac_arg
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6147 rm -f core conftest.err conftest.
$ac_objext
6148 test "x$ac_cv_prog_cc_c89" != "xno" && break
6150 rm -f conftest.
$ac_ext
6155 case "x$ac_cv_prog_cc_c89" in
6157 { echo "$as_me:$LINENO: result: none needed" >&5
6158 echo "${ECHO_T}none needed" >&6; } ;;
6160 { echo "$as_me:$LINENO: result: unsupported" >&5
6161 echo "${ECHO_T}unsupported" >&6; } ;;
6163 CC
="$CC $ac_cv_prog_cc_c89"
6164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6170 ac_cpp
='$CPP $CPPFLAGS'
6171 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6176 ac_cpp
='$CXXCPP $CPPFLAGS'
6177 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6180 if test -z "$CXX"; then
6181 if test -n "$CCC"; then
6184 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_CXX+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 if test -n "$CXX"; then
6195 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir
=.
6202 for ac_exec_ext
in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 if test -n "$CXX"; then
6216 { echo "$as_me:$LINENO: result: $CXX" >&5
6217 echo "${ECHO_T}$CXX" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6224 test -n "$CXX" && break
6227 if test -z "$CXX"; then
6231 # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy
$ac_prog; ac_word
=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 if test -n "$ac_ct_CXX"; then
6239 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir
=.
6246 for ac_exec_ext
in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6259 if test -n "$ac_ct_CXX"; then
6260 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6268 test -n "$ac_ct_CXX" && break
6271 if test "x$ac_ct_CXX" = x
; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet. If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&5
6279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280 whose name does not start with the host triplet. If you think this
6281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282 ac_tool_warned
=yes ;;
6290 # Provide some information about the compiler.
6291 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6292 ac_compiler
=`set X $ac_compile; echo $2`
6293 { (ac_try
="$ac_compiler --version >&5"
6295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compiler --version >&5") 2>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }
6303 { (ac_try="$ac_compiler -v >&5"
6305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6306 *) ac_try_echo
=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compiler -v >&5") 2>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }
6313 { (ac_try
="$ac_compiler -V >&5"
6315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compiler -V >&5") 2>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }
6324 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6351 *) ac_try_echo
=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compile") 2>conftest.er1
6356 grep -v '^ *+' conftest.er1
>conftest.err
6358 cat conftest.err
>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362 { (case "(($ac_try" in
6363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_try") 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest.$ac_objext'
6372 { (case "(($ac_try" in
6373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6374 *) ac_try_echo
=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_try") 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.
$ac_ext >&5
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6395 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6396 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS
=$CXXFLAGS
6398 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6400 if test "${ac_cv_prog_cxx_g+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag
=yes
6407 cat >conftest.
$ac_ext <<_ACEOF
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6422 rm -f conftest.
$ac_objext
6423 if { (ac_try
="$ac_compile"
6425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437 { (case "(($ac_try" in
6438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6439 *) ac_try_echo
=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_try") 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try
='test -s conftest.$ac_objext'
6447 { (case "(($ac_try" in
6448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_try") 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_cv_prog_cxx_g=yes
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6481 *) ac_try_echo
=$ac_try;;
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1
>conftest.err
6488 cat conftest.err
>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6492 { (case "(($ac_try" in
6493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_try") 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6504 *) ac_try_echo
=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.
$ac_ext >&5
6516 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6518 cat >conftest.
$ac_ext <<_ACEOF
6521 cat confdefs.h
>>conftest.
$ac_ext
6522 cat >>conftest.
$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6533 rm -f conftest.
$ac_objext
6534 if { (ac_try
="$ac_compile"
6536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6550 *) ac_try_echo
=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try
='test -s conftest.$ac_objext'
6558 { (case "(($ac_try" in
6559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 ac_cv_prog_cxx_g=yes
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6586 if test "$ac_test_CXXFLAGS" = set; then
6587 CXXFLAGS=$ac_save_CXXFLAGS
6588 elif test $ac_cv_prog_cxx_g = yes; then
6589 if test "$GXX" = yes; then
6595 if test "$GXX" = yes; then
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6610 if test "${lt_cv_path_NM+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 if test -n "$NM"; then
6614 # Let the user override the test.
6617 lt_nm_to_check="${ac_tool_prefix}nm"
6618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619 lt_nm_to_check="$lt_nm_to_check nm"
6621 for lt_tmp_nm in $lt_nm_to_check; do
6622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625 test -z "$ac_dir" && ac_dir=.
6626 tmp_nm="$ac_dir/$lt_tmp_nm"
6627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628 # Check to see if the nm accepts a BSD-compat flag.
6629 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6630 # nm: unknown option "B" ignored
6631 # Tru64's nm complains that
/dev
/null is an invalid object
file
6632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633 */dev
/null
* |
*'Invalid file or object type'*)
6634 lt_cv_path_NM
="$tmp_nm -B"
6638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6640 lt_cv_path_NM
="$tmp_nm -p"
6644 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645 continue # so that we can try to find one that supports BSD flags
6654 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6663 { echo "$as_me:$LINENO: checking for GNU make" >&5
6664 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6665 if test "${llvm_cv_gnu_make_command+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 llvm_cv_gnu_make_command
=''
6669 for a
in "$MAKE" make gmake gnumake
; do
6670 if test -z "$a" ; then continue ; fi ;
6671 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6673 llvm_cv_gnu_make_command
=$a ;
6678 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6679 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6680 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6684 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6685 echo "${ECHO_T}\"Not found\"" >&6; };
6689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6692 if test "$LN_S" = "ln -s"; then
6693 { echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6; }
6696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6697 echo "${ECHO_T}no, using $LN_S" >&6; }
6700 # Extract the first word of "cmp", so it can be a program name with args.
6701 set dummy
cmp; ac_word
=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_CMP+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir
=.
6717 for ac_exec_ext
in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6732 if test -n "$CMP"; then
6733 { echo "$as_me:$LINENO: result: $CMP" >&5
6734 echo "${ECHO_T}$CMP" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 # Extract the first word of "cp", so it can be a program name with args.
6742 set dummy
cp; ac_word
=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir
=.
6758 for ac_exec_ext
in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6773 if test -n "$CP"; then
6774 { echo "$as_me:$LINENO: result: $CP" >&5
6775 echo "${ECHO_T}$CP" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 # Extract the first word of "date", so it can be a program name with args.
6783 set dummy
date; ac_word
=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_DATE+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir
=.
6799 for ac_exec_ext
in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6813 DATE
=$ac_cv_path_DATE
6814 if test -n "$DATE"; then
6815 { echo "$as_me:$LINENO: result: $DATE" >&5
6816 echo "${ECHO_T}$DATE" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 # Extract the first word of "find", so it can be a program name with args.
6824 set dummy
find; ac_word
=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_FIND+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir
=.
6840 for ac_exec_ext
in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6854 FIND
=$ac_cv_path_FIND
6855 if test -n "$FIND"; then
6856 { echo "$as_me:$LINENO: result: $FIND" >&5
6857 echo "${ECHO_T}$FIND" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6864 # Extract the first word of "grep", so it can be a program name with args.
6865 set dummy
grep; ac_word
=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_GREP+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir
=.
6881 for ac_exec_ext
in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6895 GREP
=$ac_cv_path_GREP
6896 if test -n "$GREP"; then
6897 { echo "$as_me:$LINENO: result: $GREP" >&5
6898 echo "${ECHO_T}$GREP" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 # Extract the first word of "mkdir", so it can be a program name with args.
6906 set dummy mkdir
; ac_word
=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_MKDIR+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir
=.
6922 for ac_exec_ext
in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6936 MKDIR
=$ac_cv_path_MKDIR
6937 if test -n "$MKDIR"; then
6938 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6939 echo "${ECHO_T}$MKDIR" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 # Extract the first word of "mv", so it can be a program name with args.
6947 set dummy
mv; ac_word
=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_MV+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir
=.
6963 for ac_exec_ext
in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6978 if test -n "$MV"; then
6979 { echo "$as_me:$LINENO: result: $MV" >&5
6980 echo "${ECHO_T}$MV" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir
=.
7003 for ac_exec_ext
in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 RANLIB
=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018 echo "${ECHO_T}$RANLIB" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB
=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib
; ac_word
=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir
=.
7043 for ac_exec_ext
in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7064 if test "x$ac_ct_RANLIB" = x
; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet. If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned
=yes ;;
7077 RANLIB
=$ac_ct_RANLIB
7080 RANLIB
="$ac_cv_prog_RANLIB"
7083 # Extract the first word of "rm", so it can be a program name with args.
7084 set dummy
rm; ac_word
=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_RM+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir
=.
7100 for ac_exec_ext
in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7115 if test -n "$RM"; then
7116 { echo "$as_me:$LINENO: result: $RM" >&5
7117 echo "${ECHO_T}$RM" >&6; }
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 # Extract the first word of "sed", so it can be a program name with args.
7125 set dummy
sed; ac_word
=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_SED+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir
=.
7141 for ac_exec_ext
in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7156 if test -n "$SED"; then
7157 { echo "$as_me:$LINENO: result: $SED" >&5
7158 echo "${ECHO_T}$SED" >&6; }
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 # Extract the first word of "tar", so it can be a program name with args.
7166 set dummy
tar; ac_word
=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_TAR+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir
=.
7182 for ac_exec_ext
in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7197 if test -n "$TAR"; then
7198 { echo "$as_me:$LINENO: result: $TAR" >&5
7199 echo "${ECHO_T}$TAR" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "pwd", so it can be a program name with args.
7207 set dummy
pwd; ac_word
=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_BINPWD+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir
=.
7223 for ac_exec_ext
in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7237 BINPWD
=$ac_cv_path_BINPWD
7238 if test -n "$BINPWD"; then
7239 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7240 echo "${ECHO_T}$BINPWD" >&6; }
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7248 # Extract the first word of "Graphviz", so it can be a program name with args.
7249 set dummy Graphviz
; ac_word
=$2
7250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir
=.
7265 for ac_exec_ext
in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7279 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7280 if test -n "$GRAPHVIZ"; then
7281 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7282 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7284 { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7289 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7291 cat >>confdefs.h
<<\_ACEOF
7292 #define HAVE_GRAPHVIZ 1
7295 if test "$llvm_cv_os_type" = "MingW" ; then
7296 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7299 cat >>confdefs.h
<<_ACEOF
7300 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7304 # Extract the first word of "dot", so it can be a program name with args.
7305 set dummy dot
; ac_word
=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_DOT+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir
=.
7321 for ac_exec_ext
in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7336 if test -n "$DOT"; then
7337 { echo "$as_me:$LINENO: result: $DOT" >&5
7338 echo "${ECHO_T}$DOT" >&6; }
7340 { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7345 if test "$DOT" != "echo dot" ; then
7347 cat >>confdefs.h
<<\_ACEOF
7351 if test "$llvm_cv_os_type" = "MingW" ; then
7352 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7355 cat >>confdefs.h
<<_ACEOF
7356 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7360 # Extract the first word of "fdp", so it can be a program name with args.
7361 set dummy fdp
; ac_word
=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_FDP+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir
=.
7377 for ac_exec_ext
in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7392 if test -n "$FDP"; then
7393 { echo "$as_me:$LINENO: result: $FDP" >&5
7394 echo "${ECHO_T}$FDP" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7401 if test "$FDP" != "echo fdp" ; then
7403 cat >>confdefs.h
<<\_ACEOF
7407 if test "$llvm_cv_os_type" = "MingW" ; then
7408 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7411 cat >>confdefs.h
<<_ACEOF
7412 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7416 # Extract the first word of "neato", so it can be a program name with args.
7417 set dummy neato
; ac_word
=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_NEATO+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir
=.
7433 for ac_exec_ext
in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7447 NEATO
=$ac_cv_path_NEATO
7448 if test -n "$NEATO"; then
7449 { echo "$as_me:$LINENO: result: $NEATO" >&5
7450 echo "${ECHO_T}$NEATO" >&6; }
7452 { echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6; }
7457 if test "$NEATO" != "echo neato" ; then
7459 cat >>confdefs.h
<<\_ACEOF
7460 #define HAVE_NEATO 1
7463 if test "$llvm_cv_os_type" = "MingW" ; then
7464 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7467 cat >>confdefs.h
<<_ACEOF
7468 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7472 # Extract the first word of "twopi", so it can be a program name with args.
7473 set dummy twopi
; ac_word
=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_TWOPI+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir
=.
7489 for ac_exec_ext
in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7503 TWOPI
=$ac_cv_path_TWOPI
7504 if test -n "$TWOPI"; then
7505 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7506 echo "${ECHO_T}$TWOPI" >&6; }
7508 { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7513 if test "$TWOPI" != "echo twopi" ; then
7515 cat >>confdefs.h
<<\_ACEOF
7516 #define HAVE_TWOPI 1
7519 if test "$llvm_cv_os_type" = "MingW" ; then
7520 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7523 cat >>confdefs.h
<<_ACEOF
7524 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7528 # Extract the first word of "circo", so it can be a program name with args.
7529 set dummy circo
; ac_word
=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_CIRCO+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir
=.
7545 for ac_exec_ext
in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7559 CIRCO
=$ac_cv_path_CIRCO
7560 if test -n "$CIRCO"; then
7561 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7562 echo "${ECHO_T}$CIRCO" >&6; }
7564 { echo "$as_me:$LINENO: result: no" >&5
7565 echo "${ECHO_T}no" >&6; }
7569 if test "$CIRCO" != "echo circo" ; then
7571 cat >>confdefs.h
<<\_ACEOF
7572 #define HAVE_CIRCO 1
7575 if test "$llvm_cv_os_type" = "MingW" ; then
7576 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7579 cat >>confdefs.h
<<_ACEOF
7580 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7584 for ac_prog
in gv gsview32
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy
$ac_prog; ac_word
=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_GV+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir
=.
7603 for ac_exec_ext
in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 if test -n "$GV"; then
7618 { echo "$as_me:$LINENO: result: $GV" >&5
7619 echo "${ECHO_T}$GV" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 test -n "$GV" && break
7628 test -n "$GV" || GV
="echo gv"
7630 if test "$GV" != "echo gv" ; then
7632 cat >>confdefs.h
<<\_ACEOF
7636 if test "$llvm_cv_os_type" = "MingW" ; then
7637 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7640 cat >>confdefs.h
<<_ACEOF
7641 #define LLVM_PATH_GV "$GV${EXEEXT}"
7645 # Extract the first word of "dotty", so it can be a program name with args.
7646 set dummy dotty
; ac_word
=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_DOTTY+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir
=.
7662 for ac_exec_ext
in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7676 DOTTY
=$ac_cv_path_DOTTY
7677 if test -n "$DOTTY"; then
7678 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7679 echo "${ECHO_T}$DOTTY" >&6; }
7681 { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7686 if test "$DOTTY" != "echo dotty" ; then
7688 cat >>confdefs.h
<<\_ACEOF
7689 #define HAVE_DOTTY 1
7692 if test "$llvm_cv_os_type" = "MingW" ; then
7693 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7696 cat >>confdefs.h
<<_ACEOF
7697 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7703 # Extract the first word of "perl", so it can be a program name with args.
7704 set dummy perl
; ac_word
=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_path_PERL+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir
=.
7720 for ac_exec_ext
in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7734 PERL
=$ac_cv_path_PERL
7735 if test -n "$PERL"; then
7736 { echo "$as_me:$LINENO: result: $PERL" >&5
7737 echo "${ECHO_T}$PERL" >&6; }
7739 { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7744 if test "$PERL" != "none"; then
7745 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7746 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7747 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7748 { echo "$as_me:$LINENO: result: yes" >&5
7749 echo "${ECHO_T}yes" >&6; }
7752 { echo "$as_me:$LINENO: result: not found" >&5
7753 echo "${ECHO_T}not found" >&6; }
7758 if test x
"$PERL" = xnone
; then
7761 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7762 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7763 { (exit 1); exit 1; }; }
7769 # Find a good install program. We prefer a C program (faster),
7770 # so one script is as good as another. But avoid the broken or
7771 # incompatible versions:
7772 # SysV /etc/install, /usr/sbin/install
7773 # SunOS /usr/etc/install
7774 # IRIX /sbin/install
7776 # AmigaOS /C/install, which installs bootblocks on floppy discs
7777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7780 # OS/2's system install, which has a completely different semantic
7781 # ./install, which can be erroneously created by make from ./install.sh.
7782 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7783 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7784 if test -z "$INSTALL"; then
7785 if test "${ac_cv_path_install+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir
=.
7793 # Account for people who put trailing slashes in PATH elements.
7795 .
/ | .
// |
/cC
/* | \
7796 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7797 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7800 # OSF1 and SCO ODT 3.0 have their own names for install.
7801 # Don't use installbsd from OSF since it installs stuff as root
7803 for ac_prog
in ginstall scoinst
install; do
7804 for ac_exec_ext
in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7806 if test $ac_prog = install &&
7807 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7808 # AIX install. It has an incompatible calling convention.
7810 elif test $ac_prog = install &&
7811 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7812 # program-specific install script used by HP pwplus--don't use.
7815 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7828 if test "${ac_cv_path_install+set}" = set; then
7829 INSTALL
=$ac_cv_path_install
7831 # As a last resort, use the slow shell script. Don't cache a
7832 # value for INSTALL within a source directory, because that will
7833 # break other packages using the cache if that directory is
7834 # removed, or if the value is a relative name.
7835 INSTALL
=$ac_install_sh
7838 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7839 echo "${ECHO_T}$INSTALL" >&6; }
7841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7842 # It thinks the first close brace ends the variable substitution.
7843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7847 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7850 # Extract the first word of "bzip2", so it can be a program name with args.
7851 set dummy
bzip2; ac_word
=$2
7852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7854 if test "${ac_cv_path_BZIP2+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir
=.
7867 for ac_exec_ext
in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 BZIP2
=$ac_cv_path_BZIP2
7881 if test -n "$BZIP2"; then
7882 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7883 echo "${ECHO_T}$BZIP2" >&6; }
7885 { echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6; }
7890 # Extract the first word of "doxygen", so it can be a program name with args.
7891 set dummy doxygen
; ac_word
=$2
7892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir
=.
7907 for ac_exec_ext
in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 DOXYGEN
=$ac_cv_path_DOXYGEN
7921 if test -n "$DOXYGEN"; then
7922 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7923 echo "${ECHO_T}$DOXYGEN" >&6; }
7925 { echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6; }
7930 # Extract the first word of "groff", so it can be a program name with args.
7931 set dummy
groff; ac_word
=$2
7932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7934 if test "${ac_cv_path_GROFF+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 GROFF
=$ac_cv_path_GROFF
7961 if test -n "$GROFF"; then
7962 { echo "$as_me:$LINENO: result: $GROFF" >&5
7963 echo "${ECHO_T}$GROFF" >&6; }
7965 { echo "$as_me:$LINENO: result: no" >&5
7966 echo "${ECHO_T}no" >&6; }
7970 # Extract the first word of "gzip", so it can be a program name with args.
7971 set dummy
gzip; ac_word
=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_path_GZIP+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir
=.
7987 for ac_exec_ext
in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 GZIP
=$ac_cv_path_GZIP
8001 if test -n "$GZIP"; then
8002 { echo "$as_me:$LINENO: result: $GZIP" >&5
8003 echo "${ECHO_T}$GZIP" >&6; }
8005 { echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6; }
8010 # Extract the first word of "pod2html", so it can be a program name with args.
8011 set dummy pod2html
; ac_word
=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_POD2HTML+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir
=.
8027 for ac_exec_ext
in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 POD2HTML
=$ac_cv_path_POD2HTML
8041 if test -n "$POD2HTML"; then
8042 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8043 echo "${ECHO_T}$POD2HTML" >&6; }
8045 { echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6; }
8050 # Extract the first word of "pod2man", so it can be a program name with args.
8051 set dummy pod2man
; ac_word
=$2
8052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8054 if test "${ac_cv_path_POD2MAN+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir
=.
8067 for ac_exec_ext
in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 POD2MAN
=$ac_cv_path_POD2MAN
8081 if test -n "$POD2MAN"; then
8082 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8083 echo "${ECHO_T}$POD2MAN" >&6; }
8085 { echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6; }
8090 # Extract the first word of "runtest", so it can be a program name with args.
8091 set dummy runtest
; ac_word
=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_path_RUNTEST+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8106 test -z "$as_dir" && as_dir
=.
8107 for ac_exec_ext
in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8109 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 RUNTEST
=$ac_cv_path_RUNTEST
8121 if test -n "$RUNTEST"; then
8122 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8123 echo "${ECHO_T}$RUNTEST" >&6; }
8125 { echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6; }
8132 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8133 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8135 # Check whether --with-tclinclude was given.
8136 if test "${with_tclinclude+set}" = set; then
8137 withval
=$with_tclinclude; with_tclinclude
=${withval}
8142 if test "${ac_cv_path_tclsh+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 if test x
"${with_tclinclude}" != x
; then
8147 if test -f ${with_tclinclude}/tclsh
; then
8148 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8149 elif test -f ${with_tclinclude}/src
/tclsh
; then
8150 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8152 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8153 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8154 { (exit 1); exit 1; }; }
8158 if test x
"${ac_cv_path_tclsh}" = x
; then
8159 { echo "$as_me:$LINENO: result: none" >&5
8160 echo "${ECHO_T}none" >&6; }
8161 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
8163 # Extract the first word of "$ac_prog", so it can be a program name with args.
8164 set dummy
$ac_prog; ac_word
=$2
8165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167 if test "${ac_cv_path_TCLSH+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir
=.
8180 for ac_exec_ext
in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 TCLSH
=$ac_cv_path_TCLSH
8194 if test -n "$TCLSH"; then
8195 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8196 echo "${ECHO_T}$TCLSH" >&6; }
8198 { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8203 test -n "$TCLSH" && break
8206 if test x
"${TCLSH}" = x
; then
8207 ac_cv_path_tclsh
='';
8209 ac_cv_path_tclsh
="${TCLSH}";
8212 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8213 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8214 TCLSH="${ac_cv_path_tclsh}"
8220 # Extract the first word of "zip", so it can be a program name with args.
8221 set dummy zip; ac_word=$2
8222 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8223 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8224 if test "${ac_cv_path_ZIP+set}" = set; then
8225 echo $ECHO_N "(cached
) $ECHO_C" >&6
8229 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8251 if test -n "$ZIP"; then
8252 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8253 echo "${ECHO_T}$ZIP" >&6; }
8255 { echo "$as_me:$LINENO: result
: no
" >&5
8256 echo "${ECHO_T}no
" >&6; }
8260 for ac_prog in ocamlc
8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
8263 set dummy $ac_prog; ac_word=$2
8264 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8265 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8266 if test "${ac_cv_path_OCAMLC+set}" = set; then
8267 echo $ECHO_N "(cached
) $ECHO_C" >&6
8271 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8282 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8292 OCAMLC=$ac_cv_path_OCAMLC
8293 if test -n "$OCAMLC"; then
8294 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8295 echo "${ECHO_T}$OCAMLC" >&6; }
8297 { echo "$as_me:$LINENO: result
: no
" >&5
8298 echo "${ECHO_T}no
" >&6; }
8302 test -n "$OCAMLC" && break
8305 for ac_prog in ocamlopt
8307 # Extract the first word of "$ac_prog", so it can be a program name with args.
8308 set dummy $ac_prog; ac_word=$2
8309 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8310 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8311 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8312 echo $ECHO_N "(cached
) $ECHO_C" >&6
8316 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8327 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8337 OCAMLOPT=$ac_cv_path_OCAMLOPT
8338 if test -n "$OCAMLOPT"; then
8339 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8340 echo "${ECHO_T}$OCAMLOPT" >&6; }
8342 { echo "$as_me:$LINENO: result
: no
" >&5
8343 echo "${ECHO_T}no
" >&6; }
8347 test -n "$OCAMLOPT" && break
8350 for ac_prog in ocamldep
8352 # Extract the first word of "$ac_prog", so it can be a program name with args.
8353 set dummy $ac_prog; ac_word=$2
8354 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8355 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8356 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8357 echo $ECHO_N "(cached
) $ECHO_C" >&6
8361 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8372 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8382 OCAMLDEP=$ac_cv_path_OCAMLDEP
8383 if test -n "$OCAMLDEP"; then
8384 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8385 echo "${ECHO_T}$OCAMLDEP" >&6; }
8387 { echo "$as_me:$LINENO: result
: no
" >&5
8388 echo "${ECHO_T}no
" >&6; }
8392 test -n "$OCAMLDEP" && break
8395 for ac_prog in ocamldoc
8397 # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8400 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8401 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8402 echo $ECHO_N "(cached
) $ECHO_C" >&6
8406 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8417 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8427 OCAMLDOC=$ac_cv_path_OCAMLDOC
8428 if test -n "$OCAMLDOC"; then
8429 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8430 echo "${ECHO_T}$OCAMLDOC" >&6; }
8432 { echo "$as_me:$LINENO: result
: no
" >&5
8433 echo "${ECHO_T}no
" >&6; }
8437 test -n "$OCAMLDOC" && break
8440 for ac_prog in gas as
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8445 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8446 if test "${ac_cv_path_GAS+set}" = set; then
8447 echo $ECHO_N "(cached
) $ECHO_C" >&6
8451 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8462 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8473 if test -n "$GAS"; then
8474 { echo "$as_me:$LINENO: result
: $GAS" >&5
8475 echo "${ECHO_T}$GAS" >&6; }
8477 { echo "$as_me:$LINENO: result
: no
" >&5
8478 echo "${ECHO_T}no
" >&6; }
8482 test -n "$GAS" && break
8486 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8487 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8488 if test "${llvm_cv_link_use_r+set}" = set; then
8489 echo $ECHO_N "(cached
) $ECHO_C" >&6
8492 ac_cpp='$CPP $CPPFLAGS'
8493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8498 CFLAGS="$CFLAGS -Wl,-R.
"
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8509 int main() { return 0; }
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 llvm_cv_link_use_r=yes
8550 echo "$as_me: failed program was
:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 llvm_cv_link_use_r=no
8556 rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8560 ac_cpp='$CPP $CPPFLAGS'
8561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8568 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8569 if test "$llvm_cv_link_use_r" = yes ; then
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_LINK_R 1
8578 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8579 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8580 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8581 echo $ECHO_N "(cached
) $ECHO_C" >&6
8584 ac_cpp='$CPP $CPPFLAGS'
8585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8590 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8601 int main() { return 0; }
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (ac_try="$ac_link"
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_link") 2>conftest.er1
8615 grep -v '^ *+' conftest.er1 >conftest.err
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_try") 2>&5
8628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest$ac_exeext'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_try") 2>&5
8638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 llvm_cv_link_use_export_dynamic=yes
8642 echo "$as_me: failed program was
:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 llvm_cv_link_use_export_dynamic=no
8648 rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8652 ac_cpp='$CPP $CPPFLAGS'
8653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8659 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8660 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8661 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_LINK_EXPORT_DYNAMIC 1
8672 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8673 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8674 if test "${ac_cv_c_const+set}" = set; then
8675 echo $ECHO_N "(cached
) $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8687 /* FIXME: Include the comments suggested by Paul. */
8689 /* Ultrix mips cc rejects this. */
8690 typedef int charset[2];
8692 /* SunOS 4.1.1 cc rejects this. */
8693 char const *const *ccp;
8695 /* NEC SVR4.0.2 mips cc rejects this. */
8696 struct point {int x, y;};
8697 static struct point const zero = {0,0};
8698 /* AIX XL C 1.02.0.0 rejects this.
8699 It does not let you subtract one const X* pointer from another in
8700 an arm of an if-expression whose if-part is not a constant
8702 const char *g = "string
";
8703 ccp = &g + (g ? g-g : 0);
8704 /* HPUX 7.0 cc rejects these. */
8707 ccp = (char const *const *) p;
8708 { /* SCO 3.2v4 cc rejects this. */
8710 char const *s = 0 ? (char *) 0 : (char const *) 0;
8715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8717 const int *foo = &x[0];
8720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8721 typedef const int *iptr;
8725 { /* AIX XL C 1.02.0.0 rejects this saying
8726 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8727 struct s { int j; const int *ap[3]; };
8728 struct s *b; b->j = 5;
8730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8734 return !x[0] && !zero.x;
8741 rm -f conftest.$ac_objext
8742 if { (ac_try="$ac_compile"
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_compile") 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756 { (case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_try") 2>&5
8763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_try") 2>&5
8773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8774 (exit $ac_status); }; }; then
8777 echo "$as_me: failed program was
:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8786 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8787 if test $ac_cv_c_const = no; then
8789 cat >>confdefs.h <<\_ACEOF
8801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8802 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8803 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8804 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8806 echo $ECHO_N "(cached
) $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 #include <sys/types.h>
8826 rm -f conftest.$ac_objext
8827 if { (ac_try="$ac_compile"
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8835 grep -v '^ *+' conftest.er1 >conftest.err
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8841 { (case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_try") 2>&5
8848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8849 (exit $ac_status); }; } &&
8850 { ac_try='test -s conftest.$ac_objext'
8851 { (case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_try") 2>&5
8858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 eval "$as_ac_Header=yes"
8862 echo "$as_me: failed program was
:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 eval "$as_ac_Header=no
"
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 ac_res=`eval echo '${'$as_ac_Header'}'`
8871 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8872 echo "${ECHO_T}$ac_res" >&6; }
8873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8878 ac_header_dirent=$ac_hdr; break
8882 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8883 if test $ac_header_dirent = dirent.h; then
8884 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8885 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8886 if test "${ac_cv_search_opendir+set}" = set; then
8887 echo $ECHO_N "(cached
) $ECHO_C" >&6
8889 ac_func_search_save_LIBS=$LIBS
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 /* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8912 for ac_lib in '' dir; do
8913 if test -z "$ac_lib"; then
8914 ac_res="none required
"
8917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_link") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934 { (case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_try") 2>&5
8941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest$ac_exeext'
8944 { (case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_try") 2>&5
8951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_cv_search_opendir=$ac_res
8955 echo "$as_me: failed program was
:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8961 rm -f core conftest.err conftest.$ac_objext \
8963 if test "${ac_cv_search_opendir+set}" = set; then
8967 if test "${ac_cv_search_opendir+set}" = set; then
8970 ac_cv_search_opendir=no
8973 LIBS=$ac_func_search_save_LIBS
8975 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8976 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8977 ac_res=$ac_cv_search_opendir
8978 if test "$ac_res" != no; then
8979 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8984 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8985 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8986 if test "${ac_cv_search_opendir+set}" = set; then
8987 echo $ECHO_N "(cached
) $ECHO_C" >&6
8989 ac_func_search_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9012 for ac_lib in '' x; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required
"
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_link") 2>conftest.er1
9028 grep -v '^ *+' conftest.er1 >conftest.err
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034 { (case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_try") 2>&5
9041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_search_opendir=$ac_res
9055 echo "$as_me: failed program was
:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9061 rm -f core conftest.err conftest.$ac_objext \
9063 if test "${ac_cv_search_opendir+set}" = set; then
9067 if test "${ac_cv_search_opendir+set}" = set; then
9070 ac_cv_search_opendir=no
9073 LIBS=$ac_func_search_save_LIBS
9075 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9076 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9077 ac_res=$ac_cv_search_opendir
9078 if test "$ac_res" != no; then
9079 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9086 for ac_header in dlfcn.h
9088 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9090 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9091 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9092 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9093 echo $ECHO_N "(cached
) $ECHO_C" >&6
9095 ac_res=`eval echo '${'$as_ac_Header'}'`
9096 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9097 echo "${ECHO_T}$ac_res" >&6; }
9099 # Is the header compilable?
9100 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9101 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9108 $ac_includes_default
9109 #include <$ac_header>
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9126 { (case "(($ac_try" in
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_try") 2>&5
9133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest.$ac_objext'
9136 { (case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_try") 2>&5
9143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_header_compiler=yes
9147 echo "$as_me: failed program was
:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_header_compiler=no
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9155 echo "${ECHO_T}$ac_header_compiler" >&6; }
9157 # Is the header present?
9158 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9159 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9160 cat >conftest.$ac_ext <<_ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 #include <$ac_header>
9168 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9180 (exit $ac_status); } >/dev/null; then
9181 if test -s conftest.err; then
9182 ac_cpp_err=$ac_c_preproc_warn_flag
9183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190 if test -z "$ac_cpp_err"; then
9191 ac_header_preproc=yes
9193 echo "$as_me: failed program was
:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_header_preproc=no
9199 rm -f conftest.err conftest.$ac_ext
9200 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9201 echo "${ECHO_T}$ac_header_preproc" >&6; }
9203 # So? What about this header?
9204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9206 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9207 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9208 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9210 ac_header_preproc=yes
9213 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9214 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9215 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9216 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9217 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9218 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9219 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9220 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9221 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9223 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9224 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9226 ## ----------------------------------- ##
9227 ## Report this to llvmbugs@cs.uiuc.edu ##
9228 ## ----------------------------------- ##
9230 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9233 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9234 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9236 echo $ECHO_N "(cached
) $ECHO_C" >&6
9238 eval "$as_ac_Header=\
$ac_header_preproc"
9240 ac_res=`eval echo '${'$as_ac_Header'}'`
9241 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9242 echo "${ECHO_T}$ac_res" >&6; }
9245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9246 cat >>confdefs.h <<_ACEOF
9247 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9254 # Check whether --enable-ltdl-install was given.
9255 if test "${enable_ltdl_install+set}" = set; then
9256 enableval=$enable_ltdl_install;
9262 if test x"${enable_ltdl_install-no}" != xno; then
9264 INSTALL_LTDL_FALSE='#'
9266 INSTALL_LTDL_TRUE='#'
9272 if test x"${enable_ltdl_convenience-no}" != xno; then
9273 CONVENIENCE_LTDL_TRUE=
9274 CONVENIENCE_LTDL_FALSE='#'
9276 CONVENIENCE_LTDL_TRUE='#'
9277 CONVENIENCE_LTDL_FALSE=
9281 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9282 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9284 libname_spec='lib$name'
9292 shlibpath_overrides_runpath=unknown
9294 dynamic_linker="$host_os ld.so
"
9295 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9296 if test "$GCC" = yes; then
9297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9298 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9299 # if the path contains ";" then we assume it to be the separator
9300 # otherwise default to the standard path separator (i.e. ":") - it is
9301 # assumed that no part of a normal pathname contains ";" but that should
9302 # okay in the real world where ";" in dirpaths is itself problematic.
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9308 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9310 need_lib_prefix=unknown
9311 hardcode_into_libs=no
9313 # when you set need_version to no, make sure it does not cause -set_version
9314 # flags to be left without arguments
9315 need_version=unknown
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9321 shlibpath_var=LIBPATH
9323 # AIX 3 has no versioning support, so we append a major version to the name.
9324 soname_spec='${libname}${release}${shared_ext}$major'
9331 hardcode_into_libs=yes
9332 if test "$host_cpu" = ia64; then
9333 # AIX 5 supports IA64
9334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9335 shlibpath_var=LD_LIBRARY_PATH
9337 # With GCC up to 2.95.x, collect2 would create an import file
9338 # for dependence libraries. The import file would start with
9339 # the line `#! .'. This would cause the generated library to
9340 # depend on `.', always an invalid library. This was fixed in
9341 # development snapshots of GCC prior to 3.0.
9343 aix4 | aix4.[01] | aix4.[01].*)
9344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9346 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9354 # soname into executable. Probably we can add versioning support to
9355 # collect2, so additional links can be useful in future.
9356 if test "$aix_use_runtimelinking" = yes; then
9357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9358 # instead of lib<name>.a to let people know that these are not
9359 # typical AIX shared libraries.
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 # We preserve .a as extension for shared libraries through AIX4.2
9363 # and later when we are not doing run time linking.
9364 library_names_spec='${libname}${release}.a $libname.a'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LIBPATH
9372 library_names_spec='$libname.ixlibrary $libname.a'
9373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9374 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'
9378 library_names_spec='${libname}${shared_ext}'
9379 dynamic_linker="$host_os ld.so
"
9380 shlibpath_var=LIBRARY_PATH
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9391 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9392 # the default ld.so.conf also contains /usr/contrib/lib and
9393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9394 # libtool to hard-code these into programs
9397 cygwin* | mingw* | pw32*)
9398 version_type=windows
9403 case $GCC,$host_os in
9404 yes,cygwin* | yes,mingw* | yes,pw32*)
9405 library_names_spec='$libname.dll.a'
9406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9407 postinstall_cmds='base_file=`basename \${file}`~
9408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9409 dldir=$destdir/`dirname \$dlpath`~
9410 test -d \$dldir || mkdir -p \$dldir~
9411 $install_prog $dir/$dlname \$dldir/$dlname~
9412 chmod a+x \$dldir/$dlname'
9413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9414 dlpath=$dir/\$dldll~
9416 shlibpath_overrides_runpath=yes
9420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9422 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9425 # MinGW DLLs use traditional 'lib' prefix
9426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9428 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9429 # It is most probably a Windows format PATH printed by
9430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9431 # path with ; separators, and with drive letters. We can handle the
9432 # drive letters (cygwin fileutils understands them), so leave them,
9433 # especially as we might pass files found there to a mingw objdump,
9434 # which wouldn't understand a cygwinified path. Ahh.
9435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9441 # pw32 DLLs use 'pw' prefix rather than 'lib'
9442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9451 dynamic_linker='Win32 ld.exe'
9452 # FIXME: first we should search . and the directory the executable is in
9456 darwin* | rhapsody*)
9457 dynamic_linker="$host_os dyld
"
9461 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9462 soname_spec='${libname}${release}${major}$shared_ext'
9463 shlibpath_overrides_runpath=yes
9464 shlibpath_var=DYLD_LIBRARY_PATH
9465 shrext_cmds='.dylib'
9466 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9467 if test "$GCC" = yes; then
9468 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
"`
9470 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 shlibpath_var=LD_LIBRARY_PATH
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=no
9496 hardcode_into_libs=yes
9497 dynamic_linker='GNU ld.so'
9500 freebsd* | dragonfly*)
9501 # DragonFly does not have aout. When/if they implement a new
9502 # versioning mechanism, adjust this.
9503 if test -x /usr/bin/objformat; then
9504 objformat=`/usr/bin/objformat`
9507 freebsd[123]*) objformat=aout ;;
9511 version_type=freebsd-$objformat
9512 case $version_type in
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9523 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=yes
9528 freebsd3.[01]* | freebsdelf3.[01]*)
9529 shlibpath_overrides_runpath=yes
9530 hardcode_into_libs=yes
9532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9534 shlibpath_overrides_runpath=no
9535 hardcode_into_libs=yes
9537 freebsd*) # from 4.6 on
9538 shlibpath_overrides_runpath=yes
9539 hardcode_into_libs=yes
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 hardcode_into_libs=yes
9554 hpux9* | hpux10* | hpux11*)
9555 # Give a soname corresponding to the major version so that dld.sl refuses to
9556 # link against other versions.
9563 hardcode_into_libs=yes
9564 dynamic_linker="$host_os dld.so
"
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 if test "X
$HPUX_IA64_MODE" = X32; then
9570 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9572 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9578 hardcode_into_libs=yes
9579 dynamic_linker="$host_os dld.sl
"
9580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9589 dynamic_linker="$host_os dld.sl
"
9590 shlibpath_var=SHLIB_PATH
9591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9596 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9597 postinstall_cmds='chmod 555 $lib'
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=no
9609 hardcode_into_libs=yes
9612 irix5* | irix6* | nonstopux*)
9614 nonstopux*) version_type=nonstopux ;;
9616 if test "$lt_cv_prog_gnu_ld" = yes; then
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9627 irix5* | nonstopux*)
9631 case $LD in # libtool.m4 will add one of these switches to LD
9632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9633 libsuff= shlibsuff= libmagic=32-bit;;
9634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9635 libsuff=32 shlibsuff=N32 libmagic=N32;;
9636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9638 *) libsuff= shlibsuff= libmagic=never-match;;
9642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9643 shlibpath_overrides_runpath=no
9644 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9645 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9646 hardcode_into_libs=yes
9649 # No shared lib support for Linux oldld, aout, or coff.
9650 linux*oldld* | linux*aout* | linux*coff*)
9654 # This must be Linux ELF.
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660 soname_spec='${libname}${release}${shared_ext}$major'
9661 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=no
9664 # This implies no fast_install, which is unacceptable.
9665 # Some rework will be needed to allow for fast_install
9666 # before this can be enabled.
9667 hardcode_into_libs=yes
9669 # Append ld.so.conf contents to the search path
9670 if test -f /etc/ld.so.conf; then
9671 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' ' '`
9672 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9675 # We used to test for /lib/ld.so.1 and disable shared libraries on
9676 # powerpc, because MkLinux only supported shared libraries with the
9677 # GNU dynamic linker. Since this was broken with cross compilers,
9678 # most powerpc-linux boxes support dynamic linking these days and
9679 # people can always --disable-shared, the test was removed, and we
9680 # assume the GNU/Linux dynamic linker is in use.
9681 dynamic_linker='GNU/Linux ld.so'
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath=no
9692 hardcode_into_libs=yes
9693 dynamic_linker='GNU ld.so'
9700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9702 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9703 dynamic_linker='NetBSD (a.out) ld.so'
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 dynamic_linker='NetBSD ld.elf_so'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=yes
9711 hardcode_into_libs=yes
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=yes
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=yes
9733 sys_lib_dlsearch_path_spec="/usr
/lib
"
9735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9738 *) need_version=no ;;
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9741 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9745 openbsd2.[89] | openbsd2.[89].*)
9746 shlibpath_overrides_runpath=no
9749 shlibpath_overrides_runpath=yes
9753 shlibpath_overrides_runpath=yes
9758 libname_spec='$name'
9761 library_names_spec='$libname${shared_ext} $libname.a'
9762 dynamic_linker='OS/2 ld.exe'
9763 shlibpath_var=LIBPATH
9766 osf3* | osf4* | osf5*)
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 shlibpath_overrides_runpath=yes
9785 hardcode_into_libs=yes
9786 # ldd complains unless libraries are executable
9787 postinstall_cmds='chmod +x $lib'
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9793 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 shlibpath_overrides_runpath=yes
9796 if test "$with_gnu_ld" = yes; then
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 case $host_vendor in
9809 shlibpath_overrides_runpath=no
9811 export_dynamic_flag_spec='${wl}-Blargedynsym'
9812 runpath_var=LD_RUN_PATH
9820 shlibpath_overrides_runpath=no
9821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9827 if test -d /usr/nec ;then
9829 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9830 soname_spec='$libname${shared_ext}.$major'
9831 shlibpath_var=LD_LIBRARY_PATH
9835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9836 version_type=freebsd-elf
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 hardcode_into_libs=yes
9843 if test "$with_gnu_ld" = yes; then
9844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9845 shlibpath_overrides_runpath=no
9847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9848 shlibpath_overrides_runpath=yes
9851 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9855 sys_lib_dlsearch_path_spec='/usr/lib'
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9869 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9870 echo "${ECHO_T}$dynamic_linker" >&6; }
9871 test "$dynamic_linker" = no && can_build_shared=no
9873 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9874 if test "$GCC" = yes; then
9875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9879 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9880 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9881 if test "${libltdl_cv_shlibext+set}" = set; then
9882 echo $ECHO_N "(cached
) $ECHO_C" >&6
9886 eval libltdl_cv_shlibext=$shrext_cmds
9889 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9890 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9891 if test -n "$libltdl_cv_shlibext"; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9900 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9901 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9902 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9903 echo $ECHO_N "(cached
) $ECHO_C" >&6
9905 libltdl_cv_shlibpath_var="$shlibpath_var"
9907 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9908 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9909 if test -n "$libltdl_cv_shlibpath_var"; then
9911 cat >>confdefs.h <<_ACEOF
9912 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9918 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9919 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9920 if test "${libltdl_cv_sys_search_path+set}" = set; then
9921 echo $ECHO_N "(cached
) $ECHO_C" >&6
9923 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9925 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9926 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9927 if test -n "$libltdl_cv_sys_search_path"; then
9929 for dir in $libltdl_cv_sys_search_path; do
9930 if test -z "$sys_search_path"; then
9931 sys_search_path="$dir"
9933 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9937 cat >>confdefs.h <<_ACEOF
9938 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9943 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9944 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9945 if test "${libltdl_cv_objdir+set}" = set; then
9946 echo $ECHO_N "(cached
) $ECHO_C" >&6
9948 libltdl_cv_objdir="$objdir"
9949 if test -n "$objdir"; then
9952 rm -f .libs 2>/dev/null
9953 mkdir .libs 2>/dev/null
9954 if test -d .libs; then
9955 libltdl_cv_objdir=.libs
9957 # MS-DOS does not allow filenames that begin with a dot.
9958 libltdl_cv_objdir=_libs
9960 rmdir .libs 2>/dev/null
9964 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9965 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9967 cat >>confdefs.h <<_ACEOF
9968 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9976 # Check for command to grab the raw symbol name followed by C symbol from nm.
9977 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9978 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9979 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9980 echo $ECHO_N "(cached
) $ECHO_C" >&6
9983 # These are sane defaults that work on at least a few old systems.
9984 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9986 # Character class describing NM global symbol codes.
9987 symcode='[BCDEGRST]'
9989 # Regexp to match symbols that can be accessed directly from C.
9990 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9992 # Transform an extracted symbol line into a proper C declaration
9993 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9995 # Transform an extracted symbol line into symbol name and symbol address
9996 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'"
9998 # Define system-specific variables.
10003 cygwin* | mingw* | pw32*)
10004 symcode='[ABCDGISTW]'
10006 hpux*) # Its linker distinguishes data from code symbols
10007 if test "$host_cpu" = ia64; then
10008 symcode='[ABCDEGRST]'
10010 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10011 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'"
10014 if test "$host_cpu" = ia64; then
10015 symcode='[ABCDGIRSTW]'
10016 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10017 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'"
10020 irix* | nonstopux*)
10021 symcode='[BCDEGRST]'
10024 symcode='[BCDEGQRST]'
10035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10043 # Handle CRLF in mingw tool chain
10047 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10051 # If we're using GNU nm, then use its standard symbol codes.
10052 case `$NM -V 2>&1` in
10053 *GNU* | *'with BFD'*)
10054 symcode='[ABCDGIRSTW]' ;;
10057 # Try without a prefix undercore, then with it.
10058 for ac_symprfx in "" "_
"; do
10060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10061 symxfrm="\\1 $ac_symprfx\\2 \\2"
10063 # Write the raw and C identifiers.
10064 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10066 # Check to see that the pipe works correctly.
10070 cat > conftest.$ac_ext <<EOF
10075 void nm_test_func(){}
10079 int main(){nm_test_var='a';nm_test_func();return(0);}
10082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083 (eval $ac_compile) 2>&5
10085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10086 (exit $ac_status); }; then
10087 # Now try to grab the symbols.
10089 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
10090 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10093 (exit $ac_status); } && test -s "$nlist"; then
10094 # Try sorting and uniquifying the output.
10095 if sort "$nlist" | uniq > "$nlist"T; then
10096 mv -f "$nlist"T "$nlist"
10101 # Make sure that we snagged all the symbols we need.
10102 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10103 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10104 cat <<EOF > conftest.$ac_ext
10110 # Now generate the symbol file.
10111 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10113 cat <<EOF >> conftest.$ac_ext
10114 #if defined (__STDC__) && __STDC__
10115 # define lt_ptr_t void *
10117 # define lt_ptr_t char *
10121 /* The mapping between symbol names and symbols. */
10126 lt_preloaded_symbols[] =
10129 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10130 cat <<\EOF >> conftest.$ac_ext
10138 # Now try linking the two files.
10139 mv conftest.$ac_objext conftstm.$ac_objext
10140 lt_save_LIBS="$LIBS"
10141 lt_save_CFLAGS="$CFLAGS"
10142 LIBS="conftstm.
$ac_objext"
10143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>&5
10147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10148 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10151 LIBS="$lt_save_LIBS"
10152 CFLAGS="$lt_save_CFLAGS"
10154 echo "cannot
find nm_test_func
in $nlist" >&5
10157 echo "cannot
find nm_test_var
in $nlist" >&5
10160 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10163 echo "$progname: failed program was
:" >&5
10164 cat conftest.$ac_ext >&5
10166 rm -f conftest* conftst*
10168 # Do not use the global_symbol_pipe unless it works.
10169 if test "$pipe_works" = yes; then
10172 lt_cv_sys_global_symbol_pipe=
10178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10179 lt_cv_sys_global_symbol_to_cdecl=
10181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10182 { echo "$as_me:$LINENO: result
: failed
" >&5
10183 echo "${ECHO_T}failed
" >&6; }
10185 { echo "$as_me:$LINENO: result
: ok
" >&5
10186 echo "${ECHO_T}ok
" >&6; }
10190 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10191 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10192 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10193 echo $ECHO_N "(cached
) $ECHO_C" >&6
10195 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10196 libltdl_cv_preloaded_symbols=yes
10198 libltdl_cv_preloaded_symbols=no
10202 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10203 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10204 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10206 cat >>confdefs.h <<\_ACEOF
10207 #define HAVE_PRELOADED_SYMBOLS 1
10215 ac_cpp='$CPP $CPPFLAGS'
10216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10221 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10222 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10223 if test "${ac_cv_func_shl_load+set}" = set; then
10224 echo $ECHO_N "(cached
) $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234 #define shl_load innocuous_shl_load
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char shl_load (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10242 # include <limits.h>
10244 # include <assert.h>
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10256 /* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
10259 #if defined __stub_shl_load || defined __stub___shl_load
10266 return shl_load ();
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_link") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_try") 2>&5
10293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_func_shl_load=yes
10307 echo "$as_me: failed program was
:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_func_shl_load=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10316 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10317 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10318 if test $ac_cv_func_shl_load = yes; then
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_SHL_LOAD 1
10325 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10326 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10328 echo $ECHO_N "(cached
) $ECHO_C" >&6
10330 ac_check_lib_save_LIBS=$LIBS
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10349 return shl_load ();
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10367 (exit $ac_status); } &&
10368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10369 { (case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
10376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10377 (exit $ac_status); }; } &&
10378 { ac_try='test -s conftest$ac_exeext'
10379 { (case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_try") 2>&5
10386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_lib_dld_shl_load=yes
10390 echo "$as_me: failed program was
:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_cv_lib_dld_shl_load=no
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10400 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10401 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10402 if test $ac_cv_lib_dld_shl_load = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_SHL_LOAD 1
10408 LIBADD_DL="$LIBADD_DL -ldld"
10410 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10411 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10413 echo $ECHO_N "(cached
) $ECHO_C" >&6
10415 ac_check_lib_save_LIBS=$LIBS
10417 cat >conftest.$ac_ext <<_ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_link") 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454 { (case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_try") 2>&5
10461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest$ac_exeext'
10464 { (case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_try") 2>&5
10471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_lib_dl_dlopen=yes
10475 echo "$as_me: failed program was
:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_cv_lib_dl_dlopen=no
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10485 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10486 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10487 if test $ac_cv_lib_dl_dlopen = yes; then
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_LIBDL 1
10493 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10502 # include <dlfcn.h>
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10546 (exit $ac_status); }; }; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_LIBDL 1
10551 libltdl_cv_func_dlopen="yes"
10553 echo "$as_me: failed program was
:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10557 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10558 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10559 echo $ECHO_N "(cached
) $ECHO_C" >&6
10561 ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-lsvld $LIBS"
10563 cat >conftest.$ac_ext <<_ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10570 /* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (ac_try="$ac_link"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_link") 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_try") 2>&5
10607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
10617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_lib_svld_dlopen=yes
10621 echo "$as_me: failed program was
:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_lib_svld_dlopen=no
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10631 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10632 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10633 if test $ac_cv_lib_svld_dlopen = yes; then
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_LIBDL 1
10639 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10641 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10642 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10643 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10644 echo $ECHO_N "(cached
) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS=$LIBS
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10665 return dld_link ();
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10683 (exit $ac_status); } &&
10684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10685 { (case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_try") 2>&5
10692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10693 (exit $ac_status); }; } &&
10694 { ac_try='test -s conftest$ac_exeext'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_lib_dld_dld_link=yes
10706 echo "$as_me: failed program was
:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_lib_dld_dld_link=no
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10716 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10717 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10718 if test $ac_cv_lib_dld_dld_link = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10724 LIBADD_DL="$LIBADD_DL -ldld"
10726 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10727 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10728 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10729 echo $ECHO_N "(cached
) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739 #define _dyld_func_lookup innocuous__dyld_func_lookup
10741 /* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char _dyld_func_lookup (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10747 # include <limits.h>
10749 # include <assert.h>
10752 #undef _dyld_func_lookup
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10760 char _dyld_func_lookup ();
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10771 return _dyld_func_lookup ();
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_func__dyld_func_lookup=yes
10812 echo "$as_me: failed program was
:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_cv_func__dyld_func_lookup=no
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10821 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10822 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10823 if test $ac_cv_func__dyld_func_lookup = yes; then
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_DYLD 1
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10852 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10854 lt_save_LIBS="$LIBS"
10855 LIBS="$LIBS $LIBADD_DL"
10857 for ac_func in dlerror
10859 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10860 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10861 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10862 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10863 echo $ECHO_N "(cached
) $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873 #define $ac_func innocuous_$ac_func
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char $ac_func (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10881 # include <limits.h>
10883 # include <assert.h>
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10895 /* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898 #if defined __stub_$ac_func || defined __stub___$ac_func
10905 return $ac_func ();
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_link") 2>conftest.er1
10919 grep -v '^ *+' conftest.er1 >conftest.err
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10923 (exit $ac_status); } &&
10924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10925 { (case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_try") 2>&5
10932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 eval "$as_ac_var=yes"
10946 echo "$as_me: failed program was
:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 eval "$as_ac_var=no
"
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10955 ac_res=`eval echo '${'$as_ac_var'}'`
10956 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10957 echo "${ECHO_T}$ac_res" >&6; }
10958 if test `eval echo '${'$as_ac_var'}'` = yes; then
10959 cat >>confdefs.h <<_ACEOF
10960 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10966 LIBS="$lt_save_LIBS"
10969 ac_cpp='$CPP $CPPFLAGS'
10970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10977 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10978 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10979 echo $ECHO_N "(cached
) $ECHO_C" >&6
10981 ac_cv_sys_symbol_underscore=no
10982 cat > conftest.$ac_ext <<EOF
10983 void nm_test_func(){}
10984 int main(){nm_test_func;return 0;}
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>&5
10989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10990 (exit $ac_status); }; then
10991 # Now try to grab the symbols.
10992 ac_nlist=conftest.nm
10993 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10994 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10997 (exit $ac_status); } && test -s "$ac_nlist"; then
10998 # See whether the symbols have a leading underscore.
10999 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11000 ac_cv_sys_symbol_underscore=yes
11002 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11005 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
11009 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
11012 echo "configure
: failed program was
:" >&5
11018 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
11019 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11022 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11023 if test x"$libltdl_cv_func_dlopen" = xyes ||
11024 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11025 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
11026 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
11027 if test "${libltdl_cv_need_uscore+set}" = set; then
11028 echo $ECHO_N "(cached
) $ECHO_C" >&6
11030 libltdl_cv_need_uscore=unknown
11032 LIBS="$LIBS $LIBADD_DL"
11033 if test "$cross_compiling" = yes; then :
11034 libltdl_cv_need_uscore=cross
11036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11037 lt_status=$lt_dlunknown
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11039 "configure
"
11040 #include "confdefs.h
"
11049 # define LT_DLGLOBAL RTLD_GLOBAL
11052 # define LT_DLGLOBAL DL_GLOBAL
11054 # define LT_DLGLOBAL 0
11058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11059 find out it does not work in some platform. */
11060 #ifndef LT_DLLAZY_OR_NOW
11062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11065 # define LT_DLLAZY_OR_NOW DL_LAZY
11068 # define LT_DLLAZY_OR_NOW RTLD_NOW
11071 # define LT_DLLAZY_OR_NOW DL_NOW
11073 # define LT_DLLAZY_OR_NOW 0
11081 extern "C
" void exit (int);
11084 void fnord() { int i=42;}
11087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088 int status = $lt_dlunknown;
11092 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11093 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11094 /* dlclose (self); */
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>&5
11105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11107 (./conftest; exit; ) >&5 2>/dev/null
11109 case x$lt_status in
11110 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11111 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11112 x$lt_dlunknown|x*) ;;
11115 # compilation failed
11124 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
11125 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11129 if test x"$libltdl_cv_need_uscore" = xyes; then
11131 cat >>confdefs.h <<\_ACEOF
11132 #define NEED_USCORE 1
11138 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11139 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11140 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11141 echo $ECHO_N "(cached
) $ECHO_C" >&6
11143 # PORTME does your system automatically load deplibs for dlopen?
11144 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11145 # For now, we just catch OSes we know something about -- in the
11146 # future, we'll try test this programmatically.
11147 libltdl_cv_sys_dlopen_deplibs=unknown
11149 aix3*|aix4.1.*|aix4.2.*)
11150 # Unknown whether this is true for these versions of AIX, but
11151 # we want this `case' here to explicitly catch those versions.
11152 libltdl_cv_sys_dlopen_deplibs=unknown
11155 libltdl_cv_sys_dlopen_deplibs=yes
11158 # Assuming the user has installed a libdl from somewhere, this is true
11159 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11160 libltdl_cv_sys_dlopen_deplibs=yes
11162 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11163 # GNU and its variants, using gnu ld.so (Glibc)
11164 libltdl_cv_sys_dlopen_deplibs=yes
11167 libltdl_cv_sys_dlopen_deplibs=yes
11170 libltdl_cv_sys_dlopen_deplibs=yes
11172 irix[12345]*|irix6.[01]*)
11173 # Catch all versions of IRIX before 6.2, and indicate that we don't
11174 # know how it worked for any of those versions.
11175 libltdl_cv_sys_dlopen_deplibs=unknown
11178 # The case above catches anything before 6.2, and it's known that
11179 # at 6.2 and later dlopen does load deplibs.
11180 libltdl_cv_sys_dlopen_deplibs=yes
11183 libltdl_cv_sys_dlopen_deplibs=yes
11186 libltdl_cv_sys_dlopen_deplibs=yes
11189 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11190 # it did *not* use an RPATH in a shared library to find objects the
11191 # library depends on, so we explictly say `no'.
11192 libltdl_cv_sys_dlopen_deplibs=no
11194 osf5.0|osf5.0a|osf5.1)
11195 # dlopen *does* load deplibs and with the right loader patch applied
11196 # it even uses RPATH in a shared library to search for shared objects
11197 # that the library depends on, but there's no easy way to know if that
11198 # patch is installed. Since this is the case, all we can really
11199 # say is unknown -- it depends on the patch being installed. If
11200 # it is, this changes to `yes'. Without it, it would be `no'.
11201 libltdl_cv_sys_dlopen_deplibs=unknown
11204 # the two cases above should catch all versions of osf <= 5.1. Read
11205 # the comments above for what we know about them.
11206 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11207 # is used to find them so we can finally say `yes'.
11208 libltdl_cv_sys_dlopen_deplibs=yes
11211 libltdl_cv_sys_dlopen_deplibs=yes
11213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11214 libltdl_cv_sys_dlopen_deplibs=yes
11219 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11220 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11221 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11223 cat >>confdefs.h <<\_ACEOF
11224 #define LTDL_DLOPEN_DEPLIBS 1
11230 for ac_header in argz.h
11232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached
) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11291 echo "$as_me: failed program was
:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_header_compiler=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11303 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11312 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334 if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11337 echo "$as_me: failed program was
:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11351 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11354 ac_header_preproc=yes
11357 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11358 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11359 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11360 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11361 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11362 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11363 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11364 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11367 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11368 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11370 ## ----------------------------------- ##
11371 ## Report this to llvmbugs@cs.uiuc.edu ##
11372 ## ----------------------------------- ##
11374 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11377 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11378 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached
) $ECHO_C" >&6
11382 eval "$as_ac_Header=\
$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11399 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11400 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11401 if test "${ac_cv_type_error_t+set}" = set; then
11402 echo $ECHO_N "(cached
) $ECHO_C" >&6
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11414 typedef error_t ac__type_new_;
11418 if ((ac__type_new_ *) 0)
11420 if (sizeof (ac__type_new_))
11426 rm -f conftest.$ac_objext
11427 if { (ac_try="$ac_compile"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_cv_type_error_t=yes
11462 echo "$as_me: failed program was
:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_cv_type_error_t=no
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11471 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11472 if test $ac_cv_type_error_t = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define HAVE_ERROR_T 1
11481 cat >>confdefs.h <<\_ACEOF
11482 #define error_t int
11493 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11495 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11496 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11497 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11498 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11499 echo $ECHO_N "(cached
) $ECHO_C" >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11509 #define $ac_func innocuous_$ac_func
11511 /* System header to define __stub macros and hopefully few prototypes,
11512 which can conflict with char $ac_func (); below.
11513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11514 <limits.h> exists even on freestanding compilers. */
11517 # include <limits.h>
11519 # include <assert.h>
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11531 /* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
11534 #if defined __stub_$ac_func || defined __stub___$ac_func
11541 return $ac_func ();
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "$as_ac_var=yes"
11582 echo "$as_me: failed program was
:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 eval "$as_ac_var=no
"
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11591 ac_res=`eval echo '${'$as_ac_var'}'`
11592 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595 cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11629 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11632 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11633 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11634 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11635 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11636 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11637 echo $ECHO_N "(cached
) $ECHO_C" >&6
11639 ac_res=`eval echo '${'$as_ac_Header'}'`
11640 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11643 # Is the header compilable?
11644 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11645 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 $ac_includes_default
11653 #include <$ac_header>
11655 rm -f conftest.$ac_objext
11656 if { (ac_try="$ac_compile"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_compile") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest.$ac_objext'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_header_compiler=yes
11691 echo "$as_me: failed program was
:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_header_compiler=no
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11699 echo "${ECHO_T}$ac_header_compiler" >&6; }
11701 # Is the header present?
11702 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11703 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11704 cat >conftest.$ac_ext <<_ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 #include <$ac_header>
11712 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null; then
11725 if test -s conftest.err; then
11726 ac_cpp_err=$ac_c_preproc_warn_flag
11727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11734 if test -z "$ac_cpp_err"; then
11735 ac_header_preproc=yes
11737 echo "$as_me: failed program was
:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 ac_header_preproc=no
11743 rm -f conftest.err conftest.$ac_ext
11744 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11745 echo "${ECHO_T}$ac_header_preproc" >&6; }
11747 # So? What about this header?
11748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11750 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11751 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11752 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11754 ac_header_preproc=yes
11757 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11758 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11759 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11760 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11761 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11762 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11763 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11764 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11767 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11768 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11770 ## ----------------------------------- ##
11771 ## Report this to llvmbugs@cs.uiuc.edu ##
11772 ## ----------------------------------- ##
11774 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11780 echo $ECHO_N "(cached
) $ECHO_C" >&6
11782 eval "$as_ac_Header=\
$ac_header_preproc"
11784 ac_res=`eval echo '${'$as_ac_Header'}'`
11785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11786 echo "${ECHO_T}$ac_res" >&6; }
11789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11790 cat >>confdefs.h <<_ACEOF
11791 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11802 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11804 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11806 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11807 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11808 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11809 echo $ECHO_N "(cached
) $ECHO_C" >&6
11811 ac_res=`eval echo '${'$as_ac_Header'}'`
11812 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11813 echo "${ECHO_T}$ac_res" >&6; }
11815 # Is the header compilable?
11816 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11817 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <$ac_header>
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11842 { (case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_try") 2>&5
11849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 ac_header_compiler=yes
11863 echo "$as_me: failed program was
:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_header_compiler=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11871 echo "${ECHO_T}$ac_header_compiler" >&6; }
11873 # Is the header present?
11874 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11875 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <$ac_header>
11884 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11892 grep -v '^ *+' conftest.er1 >conftest.err
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11896 (exit $ac_status); } >/dev/null; then
11897 if test -s conftest.err; then
11898 ac_cpp_err=$ac_c_preproc_warn_flag
11899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11906 if test -z "$ac_cpp_err"; then
11907 ac_header_preproc=yes
11909 echo "$as_me: failed program was
:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_header_preproc=no
11915 rm -f conftest.err conftest.$ac_ext
11916 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6; }
11919 # So? What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11922 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11923 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11924 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11926 ac_header_preproc=yes
11929 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11930 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11931 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11932 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11933 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11934 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11935 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11936 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11937 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11939 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11940 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11942 ## ----------------------------------- ##
11943 ## Report this to llvmbugs@cs.uiuc.edu ##
11944 ## ----------------------------------- ##
11946 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11949 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11950 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11951 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11952 echo $ECHO_N "(cached
) $ECHO_C" >&6
11954 eval "$as_ac_Header=\
$ac_header_preproc"
11956 ac_res=`eval echo '${'$as_ac_Header'}'`
11957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11958 echo "${ECHO_T}$ac_res" >&6; }
11961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11962 cat >>confdefs.h <<_ACEOF
11963 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11972 for ac_header in string.h strings.h
11974 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11977 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11978 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11979 echo $ECHO_N "(cached
) $ECHO_C" >&6
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11985 # Is the header compilable?
11986 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11987 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11995 #include <$ac_header>
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_header_compiler=yes
12033 echo "$as_me: failed program was
:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 ac_header_compiler=no
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6; }
12043 # Is the header present?
12044 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12045 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <$ac_header>
12054 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12076 if test -z "$ac_cpp_err"; then
12077 ac_header_preproc=yes
12079 echo "$as_me: failed program was
:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_header_preproc=no
12085 rm -f conftest.err conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12087 echo "${ECHO_T}$ac_header_preproc" >&6; }
12089 # So? What about this header?
12090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12093 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12096 ac_header_preproc=yes
12099 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12100 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12101 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12102 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12103 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12104 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12105 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12106 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12109 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12110 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12112 ## ----------------------------------- ##
12113 ## Report this to llvmbugs@cs.uiuc.edu ##
12114 ## ----------------------------------- ##
12116 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12119 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12120 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12122 echo $ECHO_N "(cached
) $ECHO_C" >&6
12124 eval "$as_ac_Header=\
$ac_header_preproc"
12126 ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12143 for ac_func in strchr index
12145 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12146 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12147 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12148 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12149 echo $ECHO_N "(cached
) $ECHO_C" >&6
12151 cat >conftest.$ac_ext <<_ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159 #define $ac_func innocuous_$ac_func
12161 /* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char $ac_func (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12167 # include <limits.h>
12169 # include <assert.h>
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12181 /* The GNU C library defines this for functions which it implements
12182 to always fail with ENOSYS. Some functions are actually named
12183 something starting with __ and the normal name is an alias. */
12184 #if defined __stub_$ac_func || defined __stub___$ac_func
12191 return $ac_func ();
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 eval "$as_ac_var=yes"
12232 echo "$as_me: failed program was
:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 eval "$as_ac_var=no
"
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12241 ac_res=`eval echo '${'$as_ac_var'}'`
12242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12243 echo "${ECHO_T}$ac_res" >&6; }
12244 if test `eval echo '${'$as_ac_var'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12254 for ac_func in strrchr rindex
12256 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12257 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12258 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12259 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12260 echo $ECHO_N "(cached
) $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12270 #define $ac_func innocuous_$ac_func
12272 /* System header to define __stub macros and hopefully few prototypes,
12273 which can conflict with char $ac_func (); below.
12274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12275 <limits.h> exists even on freestanding compilers. */
12278 # include <limits.h>
12280 # include <assert.h>
12285 /* Override any GCC internal prototype to avoid an error.
12286 Use char because int might match the return type of a GCC
12287 builtin and then its argument prototype would still apply. */
12292 /* The GNU C library defines this for functions which it implements
12293 to always fail with ENOSYS. Some functions are actually named
12294 something starting with __ and the normal name is an alias. */
12295 #if defined __stub_$ac_func || defined __stub___$ac_func
12302 return $ac_func ();
12307 rm -f conftest.$ac_objext conftest$ac_exeext
12308 if { (ac_try="$ac_link"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_link") 2>conftest.er1
12316 grep -v '^ *+' conftest.er1 >conftest.err
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12322 { (case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_try") 2>&5
12329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_try") 2>&5
12339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 eval "$as_ac_var=yes"
12343 echo "$as_me: failed program was
:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 eval "$as_ac_var=no
"
12349 rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12352 ac_res=`eval echo '${'$as_ac_var'}'`
12353 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12354 echo "${ECHO_T}$ac_res" >&6; }
12355 if test `eval echo '${'$as_ac_var'}'` = yes; then
12356 cat >>confdefs.h <<_ACEOF
12357 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12365 for ac_func in memcpy bcopy
12367 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12368 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12369 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12370 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12371 echo $ECHO_N "(cached
) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12381 #define $ac_func innocuous_$ac_func
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char $ac_func (); below.
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386 <limits.h> exists even on freestanding compilers. */
12389 # include <limits.h>
12391 # include <assert.h>
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12403 /* The GNU C library defines this for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
12406 #if defined __stub_$ac_func || defined __stub___$ac_func
12413 return $ac_func ();
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 eval "$as_ac_var=yes"
12454 echo "$as_me: failed program was
:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 eval "$as_ac_var=no
"
12460 rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12463 ac_res=`eval echo '${'$as_ac_var'}'`
12464 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12465 echo "${ECHO_T}$ac_res" >&6; }
12466 if test `eval echo '${'$as_ac_var'}'` = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12476 for ac_func in memmove strcmp
12478 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12479 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12480 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12481 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12482 echo $ECHO_N "(cached
) $ECHO_C" >&6
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12492 #define $ac_func innocuous_$ac_func
12494 /* System header to define __stub macros and hopefully few prototypes,
12495 which can conflict with char $ac_func (); below.
12496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12497 <limits.h> exists even on freestanding compilers. */
12500 # include <limits.h>
12502 # include <assert.h>
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12514 /* The GNU C library defines this for functions which it implements
12515 to always fail with ENOSYS. Some functions are actually named
12516 something starting with __ and the normal name is an alias. */
12517 #if defined __stub_$ac_func || defined __stub___$ac_func
12524 return $ac_func ();
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 eval "$as_ac_var=yes"
12565 echo "$as_me: failed program was
:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 eval "$as_ac_var=no
"
12571 rm -f core conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12574 ac_res=`eval echo '${'$as_ac_var'}'`
12575 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12576 echo "${ECHO_T}$ac_res" >&6; }
12577 if test `eval echo '${'$as_ac_var'}'` = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12588 for ac_func in closedir opendir readdir
12590 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12591 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12592 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12593 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12594 echo $ECHO_N "(cached
) $ECHO_C" >&6
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12604 #define $ac_func innocuous_$ac_func
12606 /* System header to define __stub macros and hopefully few prototypes,
12607 which can conflict with char $ac_func (); below.
12608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609 <limits.h> exists even on freestanding compilers. */
12612 # include <limits.h>
12614 # include <assert.h>
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12626 /* The GNU C library defines this for functions which it implements
12627 to always fail with ENOSYS. Some functions are actually named
12628 something starting with __ and the normal name is an alias. */
12629 #if defined __stub_$ac_func || defined __stub___$ac_func
12636 return $ac_func ();
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_link") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest$ac_exeext'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 eval "$as_ac_var=yes"
12677 echo "$as_me: failed program was
:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 eval "$as_ac_var=no
"
12683 rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12686 ac_res=`eval echo '${'$as_ac_var'}'`
12687 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12688 echo "${ECHO_T}$ac_res" >&6; }
12689 if test `eval echo '${'$as_ac_var'}'` = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12698 # Check whether --enable-shared was given.
12699 if test "${enable_shared+set}" = set; then
12700 enableval=$enable_shared; p=${PACKAGE-default}
12702 yes) enable_shared=yes ;;
12703 no) enable_shared=no ;;
12706 # Look at the argument we got. We use all the common list separators.
12707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12708 for pkg in $enableval; do
12710 if test "X
$pkg" = "X
$p"; then
12722 # Check whether --enable-static was given.
12723 if test "${enable_static+set}" = set; then
12724 enableval=$enable_static; p=${PACKAGE-default}
12726 yes) enable_static=yes ;;
12727 no) enable_static=no ;;
12730 # Look at the argument we got. We use all the common list separators.
12731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12732 for pkg in $enableval; do
12734 if test "X
$pkg" = "X
$p"; then
12746 # Check whether --enable-fast-install was given.
12747 if test "${enable_fast_install+set}" = set; then
12748 enableval=$enable_fast_install; p=${PACKAGE-default}
12750 yes) enable_fast_install=yes ;;
12751 no) enable_fast_install=no ;;
12753 enable_fast_install=no
12754 # Look at the argument we got. We use all the common list separators.
12755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12756 for pkg in $enableval; do
12758 if test "X
$pkg" = "X
$p"; then
12759 enable_fast_install=yes
12766 enable_fast_install=yes
12770 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12771 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12772 if test "${lt_cv_path_SED+set}" = set; then
12773 echo $ECHO_N "(cached
) $ECHO_C" >&6
12775 # Loop through the user's path and test for sed and gsed.
12776 # Then use that list of sed's as ones to test for truncation.
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12781 test -z "$as_dir" && as_dir=.
12782 for lt_ac_prog in sed gsed; do
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12785 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12792 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12793 # along with /bin/sed that truncates output.
12794 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12795 test ! -f $lt_ac_sed && continue
12796 cat /dev/null > conftest.in
12798 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12799 # Check for GNU sed and select it if it is found.
12800 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12801 lt_cv_path_SED=$lt_ac_sed
12805 cat conftest.in conftest.in >conftest.tmp
12806 mv conftest.tmp conftest.in
12807 cp conftest.in conftest.nl
12809 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12810 cmp -s conftest.out conftest.nl || break
12811 # 10000 chars as input seems more than enough
12812 test $lt_ac_count -gt 10 && break
12813 lt_ac_count=`expr $lt_ac_count + 1`
12814 if test $lt_ac_count -gt $lt_ac_max; then
12815 lt_ac_max=$lt_ac_count
12816 lt_cv_path_SED=$lt_ac_sed
12823 SED=$lt_cv_path_SED
12824 { echo "$as_me:$LINENO: result
: $SED" >&5
12825 echo "${ECHO_T}$SED" >&6; }
12828 # Check whether --with-gnu-ld was given.
12829 if test "${with_gnu_ld+set}" = set; then
12830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12836 if test "$GCC" = yes; then
12837 # Check if gcc -print-prog-name=ld gives a path.
12838 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12839 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12842 # gcc leaves a trailing carriage return which upsets mingw
12843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12848 # Accept absolute paths.
12850 re_direlt='/[^/][^/]*/\.\./'
12851 # Canonicalize the pathname of ld
12852 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12853 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12854 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12856 test -z "$LD" && LD="$ac_prog"
12859 # If it fails, then pretend we aren't using GCC.
12863 # If it is relative, then search for the first ld in PATH.
12864 with_gnu_ld=unknown
12867 elif test "$with_gnu_ld" = yes; then
12868 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12869 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12871 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12872 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12874 if test "${lt_cv_path_LD+set}" = set; then
12875 echo $ECHO_N "(cached
) $ECHO_C" >&6
12877 if test -z "$LD"; then
12878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12879 for ac_dir in $PATH; do
12881 test -z "$ac_dir" && ac_dir=.
12882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12883 lt_cv_path_LD="$ac_dir/$ac_prog"
12884 # Check to see if the program is GNU ld. I'd rather use --version,
12885 # but apparently some variants of GNU ld only accept -v.
12886 # Break only if it was the GNU/non-GNU ld that we prefer.
12887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12888 *GNU* | *'with BFD'*)
12889 test "$with_gnu_ld" != no && break
12892 test "$with_gnu_ld" != yes && break
12899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12903 LD="$lt_cv_path_LD"
12904 if test -n "$LD"; then
12905 { echo "$as_me:$LINENO: result
: $LD" >&5
12906 echo "${ECHO_T}$LD" >&6; }
12908 { echo "$as_me:$LINENO: result
: no
" >&5
12909 echo "${ECHO_T}no
" >&6; }
12911 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12912 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12913 { (exit 1); exit 1; }; }
12914 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12915 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12916 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12917 echo $ECHO_N "(cached
) $ECHO_C" >&6
12919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12920 case `$LD -v 2>&1 </dev/null` in
12921 *GNU* | *'with BFD'*)
12922 lt_cv_prog_gnu_ld=yes
12925 lt_cv_prog_gnu_ld=no
12929 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12930 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12931 with_gnu_ld=$lt_cv_prog_gnu_ld
12934 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12935 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12936 if test "${lt_cv_ld_reload_flag+set}" = set; then
12937 echo $ECHO_N "(cached
) $ECHO_C" >&6
12939 lt_cv_ld_reload_flag='-r'
12941 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12942 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12943 reload_flag=$lt_cv_ld_reload_flag
12944 case $reload_flag in
12946 *) reload_flag=" $reload_flag" ;;
12948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12951 if test "$GCC" = yes; then
12952 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12959 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12960 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12961 if test "${lt_cv_deplibs_check_method+set}" = set; then
12962 echo $ECHO_N "(cached
) $ECHO_C" >&6
12964 lt_cv_file_magic_cmd='$MAGIC_CMD'
12965 lt_cv_file_magic_test_file=
12966 lt_cv_deplibs_check_method='unknown'
12967 # Need to set the preceding variable on all platforms that support
12968 # interlibrary dependencies.
12969 # 'none' -- dependencies not supported.
12970 # `unknown' -- same as none, but documents that we really don't know.
12971 # 'pass_all' -- all dependencies passed with no checks.
12972 # 'test_compile' -- check by making test program.
12973 # 'file_magic [[regex]]' -- check by looking for files in library path
12974 # which responds to the $file_magic_cmd with a given extended regex.
12975 # If you have `file' or equivalent on your system and you're not sure
12976 # whether `pass_all' will *always* work, you probably want this one.
12980 lt_cv_deplibs_check_method=pass_all
12984 lt_cv_deplibs_check_method=pass_all
12988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12989 lt_cv_file_magic_cmd='/usr/bin/file -L'
12990 lt_cv_file_magic_test_file=/shlib/libc.so
12994 # func_win32_libid is a shell function defined in ltmain.sh
12995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12996 lt_cv_file_magic_cmd='func_win32_libid'
13000 # Base MSYS/MinGW do not provide the 'file' command needed by
13001 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13002 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13003 lt_cv_file_magic_cmd='$OBJDUMP -f'
13006 darwin* | rhapsody*)
13007 lt_cv_deplibs_check_method=pass_all
13010 freebsd* | kfreebsd*-gnu | dragonfly*)
13011 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13014 # Not sure whether the presence of OpenBSD here was a mistake.
13015 # Let's accept both of them until this is cleared up.
13016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13017 lt_cv_file_magic_cmd=/usr/bin/file
13018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13022 lt_cv_deplibs_check_method=pass_all
13027 lt_cv_deplibs_check_method=pass_all
13030 hpux10.20* | hpux11*)
13031 lt_cv_file_magic_cmd=/usr/bin/file
13034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13038 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]'
13039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13043 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13053 irix5* | irix6* | nonstopux*)
13055 *-32|*"-32 ") libmagic=32-bit;;
13056 *-n32|*"-n32 ") libmagic=N32;;
13057 *-64|*"-64 ") libmagic=64-bit;;
13058 *) libmagic=never-match;;
13060 lt_cv_deplibs_check_method=pass_all
13063 # This must be Linux ELF.
13065 lt_cv_deplibs_check_method=pass_all
13069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13078 lt_cv_file_magic_cmd=/usr/bin/file
13079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13083 lt_cv_deplibs_check_method=unknown
13087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13094 osf3* | osf4* | osf5*)
13095 lt_cv_deplibs_check_method=pass_all
13099 lt_cv_deplibs_check_method=pass_all
13103 case $host_vendor in
13105 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]'
13106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13109 lt_cv_deplibs_check_method=pass_all
13112 lt_cv_file_magic_cmd='/bin/file'
13113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13116 lt_cv_file_magic_cmd='/bin/file'
13117 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13118 lt_cv_file_magic_test_file=/lib/libc.so
13121 lt_cv_deplibs_check_method=pass_all
13124 lt_cv_deplibs_check_method=pass_all
13129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13130 lt_cv_deplibs_check_method=pass_all
13135 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
13136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13137 file_magic_cmd=$lt_cv_file_magic_cmd
13138 deplibs_check_method=$lt_cv_deplibs_check_method
13139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13143 # If no C compiler was specified, use CC.
13146 # If no C compiler flags were specified, use CFLAGS.
13147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13149 # Allow CC to be a program name with arguments.
13152 # Check whether --enable-libtool-lock was given.
13153 if test "${enable_libtool_lock+set}" = set; then
13154 enableval=$enable_libtool_lock;
13157 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13159 # Some flags need to be propagated to the compiler or linker for good
13163 # Find out which ABI we are using.
13164 echo 'int i;' > conftest.$ac_ext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>&5
13168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13169 (exit $ac_status); }; then
13170 case `/usr/bin/file conftest.$ac_objext` in
13172 HPUX_IA64_MODE="32"
13175 HPUX_IA64_MODE="64"
13182 # Find out which ABI we are using.
13183 echo '#line 13183 "configure
"' > conftest.$ac_ext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>&5
13187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13188 (exit $ac_status); }; then
13189 if test "$lt_cv_prog_gnu_ld" = yes; then
13190 case `/usr/bin/file conftest.$ac_objext` in
13192 LD="${LD-ld} -melf32bsmip"
13195 LD="${LD-ld} -melf32bmipn32"
13198 LD="${LD-ld} -melf64bmip"
13202 case `/usr/bin/file conftest.$ac_objext` in
13218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13225 (exit $ac_status); }; then
13226 case `/usr/bin/file conftest.o` in
13230 LD="${LD-ld} -m elf_i386
"
13232 ppc64-*linux*|powerpc64-*linux*)
13233 LD="${LD-ld} -m elf32ppclinux
"
13236 LD="${LD-ld} -m elf_s390
"
13239 LD="${LD-ld} -m elf32_sparc
"
13246 LD="${LD-ld} -m elf_x86_64
"
13248 ppc*-*linux*|powerpc*-*linux*)
13249 LD="${LD-ld} -m elf64ppc
"
13252 LD="${LD-ld} -m elf64_s390
"
13255 LD="${LD-ld} -m elf64_sparc
"
13265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13266 SAVE_CFLAGS="$CFLAGS"
13267 CFLAGS="$CFLAGS -belf"
13268 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13269 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13270 if test "${lt_cv_cc_needs_belf+set}" = set; then
13271 echo $ECHO_N "(cached
) $ECHO_C" >&6
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (ac_try="$ac_link"
13296 case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13309 { (case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_try") 2>&5
13316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13317 (exit $ac_status); }; } &&
13318 { ac_try='test -s conftest$ac_exeext'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 lt_cv_cc_needs_belf=yes
13330 echo "$as_me: failed program was
:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 lt_cv_cc_needs_belf=no
13336 rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13339 ac_cpp='$CPP $CPPFLAGS'
13340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13346 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13349 CFLAGS="$SAVE_CFLAGS"
13353 # Find out which ABI we are using.
13354 echo 'int i;' > conftest.$ac_ext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>&5
13358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13359 (exit $ac_status); }; then
13360 case `/usr/bin/file conftest.o` in
13362 case $lt_cv_prog_gnu_ld in
13363 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13364 *) LD="${LD-ld} -64" ;;
13375 need_locks="$enable_libtool_lock"
13380 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13381 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13382 (test "X
$CXX" != "Xg
++"))) ; then
13384 ac_cpp='$CXXCPP $CPPFLAGS'
13385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13388 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13389 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13390 if test -z "$CXXCPP"; then
13391 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13392 echo $ECHO_N "(cached
) $ECHO_C" >&6
13394 # Double quotes because CXXCPP needs to be expanded
13395 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13397 ac_preproc_ok=false
13398 for ac_cxx_preproc_warn_flag in '' yes
13400 # Use a header file that comes with gcc, so configuring glibc
13401 # with a fresh cross-compiler works.
13402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403 # <limits.h> exists even on freestanding compilers.
13404 # On the NeXT, cc -E runs the code through the compiler's parser,
13405 # not just through cpp. "Syntax error
" is here to catch this case.
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13413 # include <limits.h>
13415 # include <assert.h>
13419 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13431 (exit $ac_status); } >/dev/null; then
13432 if test -s conftest.err; then
13433 ac_cpp_err=$ac_cxx_preproc_warn_flag
13434 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13441 if test -z "$ac_cpp_err"; then
13444 echo "$as_me: failed program was
:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 # Broken: fails on valid input.
13451 rm -f conftest.err conftest.$ac_ext
13453 # OK, works on sane cases. Now check whether nonexistent headers
13454 # can be detected and how.
13455 cat >conftest.$ac_ext <<_ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <ac_nonexistent.h>
13463 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13475 (exit $ac_status); } >/dev/null; then
13476 if test -s conftest.err; then
13477 ac_cpp_err=$ac_cxx_preproc_warn_flag
13478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13485 if test -z "$ac_cpp_err"; then
13486 # Broken: success on invalid input.
13489 echo "$as_me: failed program was
:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 # Passes both tests.
13497 rm -f conftest.err conftest.$ac_ext
13500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13501 rm -f conftest.err conftest.$ac_ext
13502 if $ac_preproc_ok; then
13507 ac_cv_prog_CXXCPP=$CXXCPP
13510 CXXCPP=$ac_cv_prog_CXXCPP
13512 ac_cv_prog_CXXCPP=$CXXCPP
13514 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13515 echo "${ECHO_T}$CXXCPP" >&6; }
13516 ac_preproc_ok=false
13517 for ac_cxx_preproc_warn_flag in '' yes
13519 # Use a header file that comes with gcc, so configuring glibc
13520 # with a fresh cross-compiler works.
13521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13522 # <limits.h> exists even on freestanding compilers.
13523 # On the NeXT, cc -E runs the code through the compiler's parser,
13524 # not just through cpp. "Syntax error
" is here to catch this case.
13525 cat >conftest.$ac_ext <<_ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13532 # include <limits.h>
13534 # include <assert.h>
13538 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13546 grep -v '^ *+' conftest.er1 >conftest.err
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13550 (exit $ac_status); } >/dev/null; then
13551 if test -s conftest.err; then
13552 ac_cpp_err=$ac_cxx_preproc_warn_flag
13553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13560 if test -z "$ac_cpp_err"; then
13563 echo "$as_me: failed program was
:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 # Broken: fails on valid input.
13570 rm -f conftest.err conftest.$ac_ext
13572 # OK, works on sane cases. Now check whether nonexistent headers
13573 # can be detected and how.
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <ac_nonexistent.h>
13582 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13594 (exit $ac_status); } >/dev/null; then
13595 if test -s conftest.err; then
13596 ac_cpp_err=$ac_cxx_preproc_warn_flag
13597 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13604 if test -z "$ac_cpp_err"; then
13605 # Broken: success on invalid input.
13608 echo "$as_me: failed program was
:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13611 # Passes both tests.
13616 rm -f conftest.err conftest.$ac_ext
13619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13620 rm -f conftest.err conftest.$ac_ext
13621 if $ac_preproc_ok; then
13624 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13625 See \
`config.log' for more details." >&5
13626 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13627 See \`config.log
' for more details." >&2;}
13628 { (exit 1); exit 1; }; }
13632 ac_cpp='$CXXCPP $CPPFLAGS'
13633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13634 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13641 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13642 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13643 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13644 if test -n "$ac_tool_prefix"; then
13645 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
13647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13651 if test "${ac_cv_prog_F77+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 if test -n "$F77"; then
13655 ac_cv_prog_F77="$F77" # Let the user override the test.
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13661 test -z "$as_dir" && as_dir=.
13662 for ac_exec_ext in '' $ac_executable_extensions; do
13663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13664 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 F77=$ac_cv_prog_F77
13675 if test -n "$F77"; then
13676 { echo "$as_me:$LINENO: result: $F77" >&5
13677 echo "${ECHO_T}$F77" >&6; }
13679 { echo "$as_me:$LINENO: result: no" >&5
13680 echo "${ECHO_T}no" >&6; }
13684 test -n "$F77" && break
13687 if test -z "$F77"; then
13689 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
13691 # Extract the first word of "$ac_prog", so it can be a program name with args.
13692 set dummy $ac_prog; ac_word=$2
13693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13695 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 if test -n "$ac_ct_F77"; then
13699 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13708 ac_cv_prog_ac_ct_F77="$ac_prog"
13709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13718 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13719 if test -n "$ac_ct_F77"; then
13720 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13721 echo "${ECHO_T}$ac_ct_F77" >&6; }
13723 { echo "$as_me:$LINENO: result: no" >&5
13724 echo "${ECHO_T}no" >&6; }
13728 test -n "$ac_ct_F77" && break
13731 if test "x$ac_ct_F77" = x; then
13734 case $cross_compiling:$ac_tool_warned in
13736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13737 whose name does not start with the host triplet. If you think this
13738 configuration is useful to you, please write to autoconf@gnu.org." >&5
13739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13740 whose name does not start with the host triplet. If you think this
13741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13742 ac_tool_warned=yes ;;
13749 # Provide some information about the compiler.
13750 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13751 ac_compiler=`set X $ac_compile; echo $2`
13752 { (ac_try="$ac_compiler --version >&5"
13753 case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_compiler --version >&5") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }
13762 { (ac_try="$ac_compiler -v >&5"
13763 case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compiler -v >&5") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }
13772 { (ac_try="$ac_compiler -V >&5"
13773 case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_compiler -V >&5") 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }
13784 # If we don't use
`.F' as extension, the preprocessor is not run on the
13785 # input file. (Note that this only needs to work for GNU compilers.)
13786 ac_save_ext=$ac_ext
13788 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13789 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13790 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 cat >conftest.$ac_ext <<_ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13805 *) ac_try_echo
=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13816 { (case "(($ac_try" in
13817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_try") 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13828 *) ac_try_echo
=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_compiler_gnu
=yes
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.
$ac_ext >&5
13843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13844 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13847 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13848 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13849 ac_ext
=$ac_save_ext
13850 ac_test_FFLAGS
=${FFLAGS+set}
13851 ac_save_FFLAGS
=$FFLAGS
13853 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13854 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13855 if test "${ac_cv_prog_f77_g+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 cat >conftest.
$ac_ext <<_ACEOF
13864 rm -f conftest.
$ac_objext
13865 if { (ac_try
="$ac_compile"
13866 case "(($ac_try" in
13867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_compile") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13879 { (case "(($ac_try" in
13880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13881 *) ac_try_echo
=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_try") 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try
='test -s conftest.$ac_objext'
13889 { (case "(($ac_try" in
13890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_prog_f77_g=yes
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 ac_cv_prog_f77_g=no
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13909 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13910 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13911 if test "$ac_test_FFLAGS" = set; then
13912 FFLAGS=$ac_save_FFLAGS
13913 elif test $ac_cv_prog_f77_g = yes; then
13914 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13920 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13927 G77=`test $ac_compiler_gnu = yes && echo yes`
13929 ac_cpp='$CPP $CPPFLAGS'
13930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13936 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13938 # find the maximum length of command line arguments
13939 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13940 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13941 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 # On DJGPP, this test can blow up pretty badly due to problems in libc
13950 # (any single argument exceeding 2000 bytes causes a buffer overrun
13951 # during glob expansion). Even if it were fixed, the result of this
13952 # check would be larger than it should be.
13953 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13957 # Under GNU Hurd, this test is not required because there is
13958 # no limit to the length of command line arguments.
13959 # Libtool will interpret -1 as no limit whatsoever
13960 lt_cv_sys_max_cmd_len=-1;
13964 # On Win9x/ME, this test blows up -- it succeeds, but takes
13965 # about 5 minutes as the teststring grows exponentially.
13966 # Worse, since 9x/ME are not pre-emptively multitasking,
13967 # you end up with a "frozen" computer, even though with patience
13968 # the test eventually succeeds (with a max line length of 256k).
13969 # Instead, let's just punt: use the minimum linelength reported by
13970 # all of the supported platforms: 8192 (on NT/2K/XP).
13971 lt_cv_sys_max_cmd_len=8192;
13975 # On AmigaOS with pdksh, this test takes hours, literally.
13976 # So we just punt and use a minimum line length of 8192.
13977 lt_cv_sys_max_cmd_len=8192;
13980 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13981 # This has been around since 386BSD, at least. Likely further.
13982 if test -x /sbin/sysctl; then
13983 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13984 elif test -x /usr/sbin/sysctl; then
13985 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13987 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13989 # And add a safety zone
13990 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13995 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13996 lt_cv_sys_max_cmd_len=196608
14000 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14001 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14002 # nice to cause kernel panics so lets avoid the loop below.
14003 # First set a reasonable default.
14004 lt_cv_sys_max_cmd_len=16384
14006 if test -x /sbin/sysconfig; then
14007 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
14008 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14013 lt_cv_sys_max_cmd_len=102400
14015 sysv5* | sco5v6* | sysv4.2uw2*)
14016 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
14017 if test -n "$kargmax"; then
14018 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
14020 lt_cv_sys_max_cmd_len=32768
14024 # If test is not a shell built-in, we'll probably end up computing a
14025 # maximum length that is only half of the actual maximum length, but
14027 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14028 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
14029 = "XX$teststring") >/dev/null 2>&1 &&
14030 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14031 lt_cv_sys_max_cmd_len=$new_result &&
14032 test $i != 17 # 1/2 MB should be enough
14035 teststring=$teststring$teststring
14038 # Add a significant safety factor because C++ compilers can tack on massive
14039 # amounts of additional arguments before passing them to the linker.
14040 # It appears as though 1/2 is a usable value.
14041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
14047 if test -n $lt_cv_sys_max_cmd_len ; then
14048 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14049 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14051 { echo "$as_me:$LINENO: result: none" >&5
14052 echo "${ECHO_T}none" >&6; }
14058 # Check for command to grab the raw symbol name followed by C symbol from nm.
14059 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14060 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14061 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 # These are sane defaults that work on at least a few old systems.
14066 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14068 # Character class describing NM global symbol codes.
14069 symcode='[BCDEGRST]'
14071 # Regexp to match symbols that can be accessed directly from C.
14072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14074 # Transform an extracted symbol line into a proper C declaration
14075 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14077 # Transform an extracted symbol line into symbol name and symbol address
14078 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'"
14080 # Define system-specific variables.
14085 cygwin* | mingw* | pw32*)
14086 symcode='[ABCDGISTW]'
14088 hpux*) # Its linker distinguishes data from code symbols
14089 if test "$host_cpu" = ia64; then
14090 symcode='[ABCDEGRST]'
14092 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14093 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'"
14096 if test "$host_cpu" = ia64; then
14097 symcode='[ABCDGIRSTW]'
14098 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14099 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'"
14102 irix* | nonstopux*)
14103 symcode='[BCDEGRST]'
14106 symcode='[BCDEGQRST]'
14117 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14125 # Handle CRLF in mingw tool chain
14129 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
14133 # If we're using GNU nm, then use its standard symbol codes.
14134 case `$NM -V 2>&1` in
14135 *GNU* | *'with BFD'*)
14136 symcode='[ABCDGIRSTW]' ;;
14139 # Try without a prefix undercore, then with it.
14140 for ac_symprfx in "" "_"; do
14142 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14143 symxfrm="\\1 $ac_symprfx\\2 \\2"
14145 # Write the raw and C identifiers.
14146 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14148 # Check to see that the pipe works correctly.
14152 cat > conftest.$ac_ext <<EOF
14157 void nm_test_func(){}
14161 int main(){nm_test_var='a';nm_test_func();return(0);}
14164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; then
14169 # Now try to grab the symbols.
14171 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14172 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && test -s "$nlist"; then
14176 # Try sorting and uniquifying the output.
14177 if sort "$nlist" | uniq > "$nlist"T; then
14178 mv -f "$nlist"T "$nlist"
14183 # Make sure that we snagged all the symbols we need.
14184 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14185 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14186 cat <<EOF > conftest.$ac_ext
14192 # Now generate the symbol file.
14193 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14195 cat <<EOF >> conftest.$ac_ext
14196 #if defined (__STDC__) && __STDC__
14197 # define lt_ptr_t void *
14199 # define lt_ptr_t char *
14203 /* The mapping between symbol names and symbols. */
14208 lt_preloaded_symbols[] =
14211 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14212 cat <<\EOF >> conftest.$ac_ext
14220 # Now try linking the two files.
14221 mv conftest.$ac_objext conftstm.$ac_objext
14222 lt_save_LIBS="$LIBS"
14223 lt_save_CFLAGS="$CFLAGS"
14224 LIBS="conftstm.$ac_objext"
14225 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14233 LIBS="$lt_save_LIBS"
14234 CFLAGS="$lt_save_CFLAGS"
14236 echo "cannot find nm_test_func in $nlist" >&5
14239 echo "cannot find nm_test_var in $nlist" >&5
14242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14245 echo "$progname: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14248 rm -f conftest* conftst*
14250 # Do not use the global_symbol_pipe unless it works.
14251 if test "$pipe_works" = yes; then
14254 lt_cv_sys_global_symbol_pipe=
14260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14261 lt_cv_sys_global_symbol_to_cdecl=
14263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14264 { echo "$as_me:$LINENO: result: failed" >&5
14265 echo "${ECHO_T}failed" >&6; }
14267 { echo "$as_me:$LINENO: result: ok" >&5
14268 echo "${ECHO_T}ok" >&6; }
14271 { echo "$as_me:$LINENO: checking for objdir" >&5
14272 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14273 if test "${lt_cv_objdir+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 rm -f .libs 2>/dev/null
14277 mkdir .libs 2>/dev/null
14278 if test -d .libs; then
14281 # MS-DOS does not allow filenames that begin with a dot.
14284 rmdir .libs 2>/dev/null
14286 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14287 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14288 objdir=$lt_cv_objdir
14296 # AIX sometimes has problems with the GCC collect2 program. For some
14297 # reason, if we set the COLLECT_NAMES environment variable, the problems
14298 # vanish in a puff of smoke.
14299 if test "X${COLLECT_NAMES+set}" != Xset; then
14301 export COLLECT_NAMES
14306 # Sed substitution that helps us do robust quoting. It backslashifies
14307 # metacharacters that are still active within double-quoted strings.
14308 Xsed='sed -e 1s/^X//'
14309 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14311 # Same as above, but do not quote variable references.
14312 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14314 # Sed substitution to delay expansion of an escaped shell variable in a
14315 # double_quote_subst'ed string.
14316 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14318 # Sed substitution to avoid accidental globbing in evaled expressions
14319 no_glob_subst='s/\*/\\\*/g'
14324 # Global variables:
14325 default_ofile=mklib
14326 can_build_shared=yes
14328 # All known linkers require a `.a' archive for static linking (except MSVC,
14329 # which needs '.lib').
14331 ltmain="$ac_aux_dir/ltmain.sh
"
14332 ofile="$default_ofile"
14333 with_gnu_ld="$lt_cv_prog_gnu_ld"
14335 if test -n "$ac_tool_prefix"; then
14336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14337 set dummy ${ac_tool_prefix}ar; ac_word=$2
14338 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14339 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14340 if test "${ac_cv_prog_AR+set}" = set; then
14341 echo $ECHO_N "(cached
) $ECHO_C" >&6
14343 if test -n "$AR"; then
14344 ac_cv_prog_AR="$AR" # Let the user override the test.
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347 for as_dir in $PATH
14350 test -z "$as_dir" && as_dir=.
14351 for ac_exec_ext in '' $ac_executable_extensions; do
14352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14353 ac_cv_prog_AR="${ac_tool_prefix}ar"
14354 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14364 if test -n "$AR"; then
14365 { echo "$as_me:$LINENO: result
: $AR" >&5
14366 echo "${ECHO_T}$AR" >&6; }
14368 { echo "$as_me:$LINENO: result
: no
" >&5
14369 echo "${ECHO_T}no
" >&6; }
14374 if test -z "$ac_cv_prog_AR"; then
14376 # Extract the first word of "ar", so it can be a program name with args.
14377 set dummy ar; ac_word=$2
14378 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14379 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14381 echo $ECHO_N "(cached
) $ECHO_C" >&6
14383 if test -n "$ac_ct_AR"; then
14384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387 for as_dir in $PATH
14390 test -z "$as_dir" && as_dir=.
14391 for ac_exec_ext in '' $ac_executable_extensions; do
14392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14393 ac_cv_prog_ac_ct_AR="ar"
14394 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14404 if test -n "$ac_ct_AR"; then
14405 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14406 echo "${ECHO_T}$ac_ct_AR" >&6; }
14408 { echo "$as_me:$LINENO: result
: no
" >&5
14409 echo "${ECHO_T}no
" >&6; }
14412 if test "x
$ac_ct_AR" = x; then
14415 case $cross_compiling:$ac_tool_warned in
14417 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14418 whose name does not start with the
host triplet. If you think this
14419 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14420 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14421 whose name does not start with the
host triplet. If you think this
14422 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14423 ac_tool_warned=yes ;;
14428 AR="$ac_cv_prog_AR"
14431 if test -n "$ac_tool_prefix"; then
14432 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14434 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14435 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14436 if test "${ac_cv_prog_RANLIB+set}" = set; then
14437 echo $ECHO_N "(cached
) $ECHO_C" >&6
14439 if test -n "$RANLIB"; then
14440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14450 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14459 RANLIB=$ac_cv_prog_RANLIB
14460 if test -n "$RANLIB"; then
14461 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14462 echo "${ECHO_T}$RANLIB" >&6; }
14464 { echo "$as_me:$LINENO: result
: no
" >&5
14465 echo "${ECHO_T}no
" >&6; }
14470 if test -z "$ac_cv_prog_RANLIB"; then
14471 ac_ct_RANLIB=$RANLIB
14472 # Extract the first word of "ranlib
", so it can be a program name with args.
14473 set dummy ranlib; ac_word=$2
14474 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14475 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14477 echo $ECHO_N "(cached
) $ECHO_C" >&6
14479 if test -n "$ac_ct_RANLIB"; then
14480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
14488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14489 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14490 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14500 if test -n "$ac_ct_RANLIB"; then
14501 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14502 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14504 { echo "$as_me:$LINENO: result
: no
" >&5
14505 echo "${ECHO_T}no
" >&6; }
14508 if test "x
$ac_ct_RANLIB" = x; then
14511 case $cross_compiling:$ac_tool_warned in
14513 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14514 whose name does not start with the
host triplet. If you think this
14515 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14516 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14517 whose name does not start with the
host triplet. If you think this
14518 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14519 ac_tool_warned=yes ;;
14521 RANLIB=$ac_ct_RANLIB
14524 RANLIB="$ac_cv_prog_RANLIB"
14527 if test -n "$ac_tool_prefix"; then
14528 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14529 set dummy ${ac_tool_prefix}strip; ac_word=$2
14530 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14531 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14532 if test "${ac_cv_prog_STRIP+set}" = set; then
14533 echo $ECHO_N "(cached
) $ECHO_C" >&6
14535 if test -n "$STRIP"; then
14536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14545 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14546 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14555 STRIP=$ac_cv_prog_STRIP
14556 if test -n "$STRIP"; then
14557 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14558 echo "${ECHO_T}$STRIP" >&6; }
14560 { echo "$as_me:$LINENO: result
: no
" >&5
14561 echo "${ECHO_T}no
" >&6; }
14566 if test -z "$ac_cv_prog_STRIP"; then
14568 # Extract the first word of "strip
", so it can be a program name with args.
14569 set dummy strip; ac_word=$2
14570 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14571 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14572 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14573 echo $ECHO_N "(cached
) $ECHO_C" >&6
14575 if test -n "$ac_ct_STRIP"; then
14576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14585 ac_cv_prog_ac_ct_STRIP="strip
"
14586 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14595 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14596 if test -n "$ac_ct_STRIP"; then
14597 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14598 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14600 { echo "$as_me:$LINENO: result
: no
" >&5
14601 echo "${ECHO_T}no
" >&6; }
14604 if test "x
$ac_ct_STRIP" = x; then
14607 case $cross_compiling:$ac_tool_warned in
14609 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14610 whose name does not start with the
host triplet. If you think this
14611 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14612 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14613 whose name does not start with the
host triplet. If you think this
14614 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14615 ac_tool_warned=yes ;;
14620 STRIP="$ac_cv_prog_STRIP"
14625 old_CFLAGS="$CFLAGS"
14627 # Set sane defaults for various variables
14628 test -z "$AR" && AR=ar
14629 test -z "$AR_FLAGS" && AR_FLAGS=cru
14630 test -z "$AS" && AS=as
14631 test -z "$CC" && CC=cc
14632 test -z "$LTCC" && LTCC=$CC
14633 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14634 test -z "$DLLTOOL" && DLLTOOL=dlltool
14635 test -z "$LD" && LD=ld
14636 test -z "$LN_S" && LN_S="ln -s"
14637 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14638 test -z "$NM" && NM=nm
14639 test -z "$SED" && SED=sed
14640 test -z "$OBJDUMP" && OBJDUMP=objdump
14641 test -z "$RANLIB" && RANLIB=:
14642 test -z "$STRIP" && STRIP=:
14643 test -z "$ac_objext" && ac_objext=o
14645 # Determine commands to create old-style static archives.
14646 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14647 old_postinstall_cmds='chmod 644 $oldlib'
14648 old_postuninstall_cmds=
14650 if test -n "$RANLIB"; then
14653 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14656 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14659 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14662 for cc_temp in $compiler""; do
14664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14670 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14673 # Only perform the check for file, if the check method requires it
14674 case $deplibs_check_method in
14676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14677 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14678 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14679 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14680 echo $ECHO_N "(cached
) $ECHO_C" >&6
14684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14687 lt_save_MAGIC_CMD="$MAGIC_CMD"
14688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14689 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14690 for ac_dir in $ac_dummy; do
14692 test -z "$ac_dir" && ac_dir=.
14693 if test -f $ac_dir/${ac_tool_prefix}file; then
14694 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14695 if test -n "$file_magic_test_file"; then
14696 case $deplibs_check_method in
14698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14701 $EGREP "$file_magic_regex" > /dev/null; then
14706 *** Warning: the command libtool uses to detect shared libraries,
14707 *** $file_magic_cmd, produces output that libtool cannot recognize.
14708 *** The result is that libtool may fail to recognize shared libraries
14709 *** as such. This will affect the creation of libtool libraries that
14710 *** depend on shared libraries, but programs linked with such libtool
14711 *** libraries will work regardless of this problem. Nevertheless, you
14712 *** may want to report the problem to your system manager and/or to
14713 *** bug-libtool@gnu.org
14723 MAGIC_CMD="$lt_save_MAGIC_CMD"
14728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14729 if test -n "$MAGIC_CMD"; then
14730 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14731 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14733 { echo "$as_me:$LINENO: result
: no
" >&5
14734 echo "${ECHO_T}no
" >&6; }
14737 if test -z "$lt_cv_path_MAGIC_CMD"; then
14738 if test -n "$ac_tool_prefix"; then
14739 { echo "$as_me:$LINENO: checking
for file" >&5
14740 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14741 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14742 echo $ECHO_N "(cached
) $ECHO_C" >&6
14746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14749 lt_save_MAGIC_CMD="$MAGIC_CMD"
14750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14751 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14752 for ac_dir in $ac_dummy; do
14754 test -z "$ac_dir" && ac_dir=.
14755 if test -f $ac_dir/file; then
14756 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14757 if test -n "$file_magic_test_file"; then
14758 case $deplibs_check_method in
14760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14763 $EGREP "$file_magic_regex" > /dev/null; then
14768 *** Warning: the command libtool uses to detect shared libraries,
14769 *** $file_magic_cmd, produces output that libtool cannot recognize.
14770 *** The result is that libtool may fail to recognize shared libraries
14771 *** as such. This will affect the creation of libtool libraries that
14772 *** depend on shared libraries, but programs linked with such libtool
14773 *** libraries will work regardless of this problem. Nevertheless, you
14774 *** may want to report the problem to your system manager and/or to
14775 *** bug-libtool@gnu.org
14785 MAGIC_CMD="$lt_save_MAGIC_CMD"
14790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791 if test -n "$MAGIC_CMD"; then
14792 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14793 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14795 { echo "$as_me:$LINENO: result
: no
" >&5
14796 echo "${ECHO_T}no
" >&6; }
14809 enable_win32_dll=no
14811 # Check whether --enable-libtool-lock was given.
14812 if test "${enable_libtool_lock+set}" = set; then
14813 enableval=$enable_libtool_lock;
14816 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14819 # Check whether --with-pic was given.
14820 if test "${with_pic+set}" = set; then
14821 withval=$with_pic; pic_mode="$withval"
14826 test -z "$pic_mode" && pic_mode=default
14828 # Use C for the default configuration in the libtool script
14832 ac_cpp='$CPP $CPPFLAGS'
14833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838 # Source file extension for C test sources.
14841 # Object file extension for compiled C test sources.
14845 # Code to be used in simple compile tests
14846 lt_simple_compile_test_code="int some_variable
= 0;\n"
14848 # Code to be used in simple link tests
14849 lt_simple_link_test_code='int main(){return(0);}\n'
14852 # If no C compiler was specified, use CC.
14855 # If no C compiler flags were specified, use CFLAGS.
14856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14858 # Allow CC to be a program name with arguments.
14862 # save warnings/boilerplate of simple test code
14863 ac_outfile=conftest.$ac_objext
14864 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14866 _lt_compiler_boilerplate=`cat conftest.err`
14869 ac_outfile=conftest.$ac_objext
14870 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14872 _lt_linker_boilerplate=`cat conftest.err`
14877 lt_prog_compiler_no_builtin_flag=
14879 if test "$GCC" = yes; then
14880 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14883 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14884 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14886 echo $ECHO_N "(cached
) $ECHO_C" >&6
14888 lt_cv_prog_compiler_rtti_exceptions=no
14889 ac_outfile=conftest.$ac_objext
14890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14891 lt_compiler_flag="-fno-rtti -fno-exceptions"
14892 # Insert the option either (1) after the last *FLAGS variable, or
14893 # (2) before a word containing "conftest.
", or (3) at the end.
14894 # Note that $ac_compile itself does not contain backslashes and begins
14895 # with a dollar sign (not a hyphen), so the echo should work correctly.
14896 # The option is referenced via a variable to avoid confusing sed.
14897 lt_compile=`echo "$ac_compile" | $SED \
14898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
14901 (eval echo "\"\
$as_me:14901: $lt_compile\"" >&5)
14902 (eval "$lt_compile" 2>conftest.err)
14904 cat conftest.err >&5
14905 echo "$as_me:14905: \$?
= $ac_status" >&5
14906 if (exit $ac_status) && test -s "$ac_outfile"; then
14907 # The compiler can only warn and ignore the option if not recognized
14908 # So say no if there are warnings other than the usual output.
14909 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14912 lt_cv_prog_compiler_rtti_exceptions=yes
14918 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14919 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14921 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14922 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14929 lt_prog_compiler_wl=
14930 lt_prog_compiler_pic=
14931 lt_prog_compiler_static=
14933 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14934 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14936 if test "$GCC" = yes; then
14937 lt_prog_compiler_wl='-Wl,'
14938 lt_prog_compiler_static='-static'
14942 # All AIX code is PIC.
14943 if test "$host_cpu" = ia64; then
14944 # AIX 5 now supports IA64 processor
14945 lt_prog_compiler_static='-Bstatic'
14950 # FIXME: we need at least 68020 code to build shared libraries, but
14951 # adding the `-m68020' flag to GCC prevents building anything better,
14953 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14956 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14957 # PIC is the default for these OSes.
14960 mingw* | pw32* | os2*)
14961 # This hack is so that the source file can tell whether it is being
14962 # built for inclusion in a dll (and should export symbols for example).
14963 lt_prog_compiler_pic='-DDLL_EXPORT'
14966 darwin* | rhapsody*)
14967 # PIC is the default on this platform
14968 # Common symbols not allowed in MH_DYLIB files
14969 lt_prog_compiler_pic='-fno-common'
14973 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14974 # Instead, we relocate shared libraries at runtime.
14978 # Just because we use GCC doesn't mean we suddenly get shared libraries
14979 # on systems that don't support them.
14980 lt_prog_compiler_can_build_shared=no
14985 if test -d /usr/nec; then
14986 lt_prog_compiler_pic=-Kconform_pic
14991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14992 # not for PA HP-UX.
14998 lt_prog_compiler_pic='-fPIC'
15004 lt_prog_compiler_pic='-fPIC'
15008 # PORTME Check for flag to pass linker flags through the system compiler.
15011 lt_prog_compiler_wl='-Wl,'
15012 if test "$host_cpu" = ia64; then
15013 # AIX 5 now supports IA64 processor
15014 lt_prog_compiler_static='-Bstatic'
15016 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15020 # PIC is the default on this platform
15021 # Common symbols not allowed in MH_DYLIB files
15022 case $cc_basename in
15024 lt_prog_compiler_pic='-qnocommon'
15025 lt_prog_compiler_wl='-Wl,'
15030 mingw* | pw32* | os2*)
15031 # This hack is so that the source file can tell whether it is being
15032 # built for inclusion in a dll (and should export symbols for example).
15033 lt_prog_compiler_pic='-DDLL_EXPORT'
15036 hpux9* | hpux10* | hpux11*)
15037 lt_prog_compiler_wl='-Wl,'
15038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15039 # not for PA HP-UX.
15045 lt_prog_compiler_pic='+Z'
15048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15049 lt_prog_compiler_static='${wl}-a ${wl}archive'
15052 irix5* | irix6* | nonstopux*)
15053 lt_prog_compiler_wl='-Wl,'
15054 # PIC (with -KPIC) is the default.
15055 lt_prog_compiler_static='-non_shared'
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15064 case $cc_basename in
15066 lt_prog_compiler_wl='-Wl,'
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-static'
15070 pgcc* | pgf77* | pgf90* | pgf95*)
15071 # Portland Group compilers (*not* the Pentium gcc compiler,
15072 # which looks to be a dead project)
15073 lt_prog_compiler_wl='-Wl,'
15074 lt_prog_compiler_pic='-fpic'
15075 lt_prog_compiler_static='-Bstatic'
15078 lt_prog_compiler_wl='-Wl,'
15079 # All Alpha code is PIC.
15080 lt_prog_compiler_static='-non_shared'
15085 osf3* | osf4* | osf5*)
15086 lt_prog_compiler_wl='-Wl,'
15087 # All OSF/1 code is PIC.
15088 lt_prog_compiler_static='-non_shared'
15092 lt_prog_compiler_pic='-KPIC'
15093 lt_prog_compiler_static='-Bstatic'
15094 case $cc_basename in
15095 f77* | f90* | f95*)
15096 lt_prog_compiler_wl='-Qoption ld ';;
15098 lt_prog_compiler_wl='-Wl,';;
15103 lt_prog_compiler_wl='-Qoption ld '
15104 lt_prog_compiler_pic='-PIC'
15105 lt_prog_compiler_static='-Bstatic'
15108 sysv4 | sysv4.2uw2* | sysv4.3*)
15109 lt_prog_compiler_wl='-Wl,'
15110 lt_prog_compiler_pic='-KPIC'
15111 lt_prog_compiler_static='-Bstatic'
15115 if test -d /usr/nec ;then
15116 lt_prog_compiler_pic='-Kconform_pic'
15117 lt_prog_compiler_static='-Bstatic'
15121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15122 lt_prog_compiler_wl='-Wl,'
15123 lt_prog_compiler_pic='-KPIC'
15124 lt_prog_compiler_static='-Bstatic'
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_can_build_shared=no
15133 lt_prog_compiler_pic='-pic'
15134 lt_prog_compiler_static='-Bstatic'
15138 lt_prog_compiler_can_build_shared=no
15143 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
15144 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15147 # Check to make sure the PIC flag actually works.
15149 if test -n "$lt_prog_compiler_pic"; then
15151 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15152 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
15153 if test "${lt_prog_compiler_pic_works+set}" = set; then
15154 echo $ECHO_N "(cached
) $ECHO_C" >&6
15156 lt_prog_compiler_pic_works=no
15157 ac_outfile=conftest.$ac_objext
15158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15159 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15160 # Insert the option either (1) after the last *FLAGS variable, or
15161 # (2) before a word containing "conftest.
", or (3) at the end.
15162 # Note that $ac_compile itself does not contain backslashes and begins
15163 # with a dollar sign (not a hyphen), so the echo should work correctly.
15164 # The option is referenced via a variable to avoid confusing sed.
15165 lt_compile=`echo "$ac_compile" | $SED \
15166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15168 -e 's:$: $lt_compiler_flag:'`
15169 (eval echo "\"\
$as_me:15169: $lt_compile\"" >&5)
15170 (eval "$lt_compile" 2>conftest.err)
15172 cat conftest.err >&5
15173 echo "$as_me:15173: \$?
= $ac_status" >&5
15174 if (exit $ac_status) && test -s "$ac_outfile"; then
15175 # The compiler can only warn and ignore the option if not recognized
15176 # So say no if there are warnings other than the usual output.
15177 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15180 lt_prog_compiler_pic_works=yes
15186 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15187 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15189 if test x"$lt_prog_compiler_pic_works" = xyes; then
15190 case $lt_prog_compiler_pic in
15192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15195 lt_prog_compiler_pic=
15196 lt_prog_compiler_can_build_shared=no
15201 # For platforms which do not support PIC, -DPIC is meaningless:
15203 lt_prog_compiler_pic=
15206 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15211 # Check to make sure the static flag actually works.
15213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15214 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15215 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15216 if test "${lt_prog_compiler_static_works+set}" = set; then
15217 echo $ECHO_N "(cached
) $ECHO_C" >&6
15219 lt_prog_compiler_static_works=no
15220 save_LDFLAGS="$LDFLAGS"
15221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15222 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15224 # The linker can only warn and ignore the option if not recognized
15225 # So say no if there are warnings
15226 if test -s conftest.err; then
15227 # Append any errors to the config.log.
15228 cat conftest.err 1>&5
15229 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15231 if diff conftest.exp conftest.er2 >/dev/null; then
15232 lt_prog_compiler_static_works=yes
15235 lt_prog_compiler_static_works=yes
15239 LDFLAGS="$save_LDFLAGS"
15242 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15243 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15245 if test x"$lt_prog_compiler_static_works" = xyes; then
15248 lt_prog_compiler_static=
15252 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15253 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15254 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15255 echo $ECHO_N "(cached
) $ECHO_C" >&6
15257 lt_cv_prog_compiler_c_o=no
15258 $rm -r conftest 2>/dev/null
15262 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15264 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15265 # Insert the option either (1) after the last *FLAGS variable, or
15266 # (2) before a word containing "conftest.
", or (3) at the end.
15267 # Note that $ac_compile itself does not contain backslashes and begins
15268 # with a dollar sign (not a hyphen), so the echo should work correctly.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\
$as_me:15273: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>out/conftest.err)
15276 cat out/conftest.err >&5
15277 echo "$as_me:15277: \$?
= $ac_status" >&5
15278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15280 # The compiler can only warn and ignore the option if not recognized
15281 # So say no if there are warnings
15282 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15285 lt_cv_prog_compiler_c_o=yes
15290 # SGI C++ compiler will create directory out/ii_files/ for
15291 # template instantiation
15292 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15293 $rm out/* && rmdir out
15299 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15300 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15303 hard_links="nottested
"
15304 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15305 # do not overwrite the value of need_locks provided by the user
15306 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15307 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15312 ln conftest.a conftest.b 2>&5 || hard_links=no
15313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15314 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15315 echo "${ECHO_T}$hard_links" >&6; }
15316 if test "$hard_links" = no; then
15317 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15318 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15325 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15326 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15329 allow_undefined_flag=
15330 enable_shared_with_static_runtimes=no
15332 archive_expsym_cmds=
15333 old_archive_From_new_cmds=
15334 old_archive_from_expsyms_cmds=
15335 export_dynamic_flag_spec=
15336 whole_archive_flag_spec=
15337 thread_safe_flag_spec=
15338 hardcode_libdir_flag_spec=
15339 hardcode_libdir_flag_spec_ld=
15340 hardcode_libdir_separator=
15342 hardcode_minus_L=no
15343 hardcode_shlibpath_var=unsupported
15344 link_all_deplibs=unknown
15345 hardcode_automatic=no
15347 module_expsym_cmds=
15348 always_export_symbols=no
15349 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15350 # include_expsyms should be a list of space-separated symbols to be *always*
15351 # included in the symbol list
15353 # exclude_expsyms can be an extended regexp of symbols to exclude
15354 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15356 # as well as any symbol that contains `d'.
15357 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15359 # platforms (ab)use it in PIC code, but their linkers get confused if
15360 # the symbol is explicitly referenced. Since portable code cannot
15361 # rely on this symbol name, it's probably fine to never include it in
15362 # preloaded symbol tables.
15363 extract_expsyms_cmds=
15364 # Just being paranoid about ensuring that cc_basename is set.
15365 for cc_temp in $compiler""; do
15367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15373 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15376 cygwin* | mingw* | pw32*)
15377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15378 # When not using gcc, we currently assume that we are using
15379 # Microsoft Visual C++.
15380 if test "$GCC" != yes; then
15385 # we just hope/assume this is gcc and not c89 (= MSVC++)
15394 if test "$with_gnu_ld" = yes; then
15395 # If archive_cmds runs LD, not CC, wlarc should be empty
15398 # Set some defaults for GNU ld with shared library support. These
15399 # are reset later if shared libraries are not supported. Putting them
15400 # here allows them to be overridden if necessary.
15401 runpath_var=LD_RUN_PATH
15402 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15403 export_dynamic_flag_spec='${wl}--export-dynamic'
15404 # ancient GNU ld didn't support --whole-archive et. al.
15405 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15408 whole_archive_flag_spec=
15410 supports_anon_versioning=no
15411 case `$LD -v 2>/dev/null` in
15412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15415 *\ 2.11.*) ;; # other 2.11 versions
15416 *) supports_anon_versioning=yes ;;
15419 # See if GNU ld supports shared libraries.
15421 aix3* | aix4* | aix5*)
15422 # On AIX/PPC, the GNU linker is very broken
15423 if test "$host_cpu" != ia64; then
15427 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15428 *** to be unable to reliably create shared libraries on AIX.
15429 *** Therefore, libtool is disabling shared libraries support. If you
15430 *** really care for shared libraries, you may want to modify your PATH
15431 *** so that a non-GNU linker is found, and then restart.
15438 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)'
15439 hardcode_libdir_flag_spec
='-L$libdir'
15440 hardcode_minus_L
=yes
15442 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15443 # that the semantics of dynamic libraries on AmigaOS, at least up
15444 # to version 4, is to share data among multiple programs linked
15445 # with the same dynamic library. Since this doesn't match the
15446 # behavior of shared libraries on other platforms, we can't use
15452 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15453 allow_undefined_flag
=unsupported
15454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15455 # support --undefined. This deserves some investigation. FIXME
15456 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15462 cygwin
* | mingw
* | pw32
*)
15463 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15464 # as there is no search path for DLLs.
15465 hardcode_libdir_flag_spec
='-L$libdir'
15466 allow_undefined_flag
=unsupported
15467 always_export_symbols
=no
15468 enable_shared_with_static_runtimes
=yes
15469 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15471 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15472 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15473 # If the export-symbols file already is a .def file (1st line
15474 # is EXPORTS), use it as is; otherwise, prepend...
15475 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476 cp $export_symbols $output_objdir/$soname.def;
15478 echo EXPORTS > $output_objdir/$soname.def;
15479 cat $export_symbols >> $output_objdir/$soname.def;
15481 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15489 hardcode_shlibpath_var
=no
15490 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15491 export_dynamic_flag_spec
='${wl}-E'
15492 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15493 # Instead, shared libraries are loaded at an image base (0x10000000 by
15494 # default) and relocated if they conflict, which is a slow very memory
15495 # consuming and fragmenting process. To avoid this, we pick a random,
15496 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15497 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15498 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15499 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'
15503 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15505 case $cc_basename,$host_cpu in
15506 pgcc
*) # Portland Group C compiler
15507 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'
15508 tmp_addflag
=' $pic_flag'
15510 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15511 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'
15512 tmp_addflag
=' $pic_flag -Mnomain' ;;
15513 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15514 tmp_addflag
=' -i_dynamic' ;;
15515 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15516 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15517 ifc
* | ifort
*) # Intel Fortran compiler
15518 tmp_addflag
=' -nofor_main' ;;
15520 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15522 if test $supports_anon_versioning = yes; then
15523 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15525 $echo "local: *; };" >> $output_objdir/$libname.ver~
15526 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15534 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15535 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15538 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15544 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15549 *** create shared libraries on Solaris systems. Therefore, libtool
15550 *** is disabling shared libraries support. We urge you to upgrade GNU
15551 *** binutils to release 2.9.1 or newer. Another option is to modify
15552 *** your PATH or compiler configuration so that the native linker is
15553 *** used, and then restart.
15556 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15564 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15565 case `$LD -v 2>&1` in
15566 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15570 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15571 *** reliably create shared libraries on SCO systems. Therefore, libtool
15572 *** is disabling shared libraries support. We urge you to upgrade GNU
15573 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15574 *** your PATH or compiler configuration so that the native linker is
15575 *** used, and then restart.
15580 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15581 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15582 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15583 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15592 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15594 hardcode_direct
=yes
15595 hardcode_shlibpath_var
=no
15599 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15600 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15601 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15608 if test "$ld_shlibs" = no
; then
15610 hardcode_libdir_flag_spec
=
15611 export_dynamic_flag_spec
=
15612 whole_archive_flag_spec
=
15615 # PORTME fill in a description of your system's linker (not GNU ld)
15618 allow_undefined_flag
=unsupported
15619 always_export_symbols
=yes
15620 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'
15621 # Note: this linker hardcodes the directories in LIBPATH if there
15622 # are no directories specified by -L.
15623 hardcode_minus_L
=yes
15624 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15625 # Neither direct hardcoding nor static linking is supported with a
15627 hardcode_direct
=unsupported
15632 if test "$host_cpu" = ia64
; then
15633 # On IA64, the linker does run time linking by default, so we don't
15634 # have to do anything special.
15635 aix_use_runtimelinking
=no
15636 exp_sym_flag
='-Bexport'
15639 # If we're using GNU nm, then we don't want the "-C" option.
15640 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15641 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15642 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'
15644 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'
15646 aix_use_runtimelinking
=no
15648 # Test if we are trying to use run time linking or normal
15649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15650 # need to do runtime linking.
15651 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15652 for ld_flag
in $LDFLAGS; do
15653 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15654 aix_use_runtimelinking
=yes
15661 exp_sym_flag
='-bexport'
15662 no_entry_flag
='-bnoentry'
15665 # When large executables or shared objects are built, AIX ld can
15666 # have problems creating the table of contents. If linking a library
15667 # or program results in "error TOC overflow" add -mminimal-toc to
15668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15672 hardcode_direct
=yes
15673 hardcode_libdir_separator
=':'
15674 link_all_deplibs
=yes
15676 if test "$GCC" = yes; then
15677 case $host_os in aix4.
[012]|aix4.
[012].
*)
15678 # We only want to do this on AIX 4.2 and lower, the check
15679 # below for broken collect2 doesn't work under 4.3+
15680 collect2name
=`${CC} -print-prog-name=collect2`
15681 if test -f "$collect2name" && \
15682 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15684 # We have reworked collect2
15685 hardcode_direct
=yes
15687 # We have old collect2
15688 hardcode_direct
=unsupported
15689 # It fails to find uninstalled libraries when the uninstalled
15690 # path is not listed in the libpath. Setting hardcode_minus_L
15691 # to unsupported forces relinking
15692 hardcode_minus_L
=yes
15693 hardcode_libdir_flag_spec
='-L$libdir'
15694 hardcode_libdir_separator
=
15698 shared_flag
='-shared'
15699 if test "$aix_use_runtimelinking" = yes; then
15700 shared_flag
="$shared_flag "'${wl}-G'
15704 if test "$host_cpu" = ia64
; then
15705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15706 # chokes on -Wl,-G. The following line is correct:
15709 if test "$aix_use_runtimelinking" = yes; then
15710 shared_flag
='${wl}-G'
15712 shared_flag
='${wl}-bM:SRE'
15717 # It seems that -bexpall does not export symbols beginning with
15718 # underscore (_), so it is better to generate a list of symbols to export.
15719 always_export_symbols
=yes
15720 if test "$aix_use_runtimelinking" = yes; then
15721 # Warning - without using the other runtime loading flags (-brtl),
15722 # -berok will link without error, but may produce a broken library.
15723 allow_undefined_flag
='-berok'
15724 # Determine the default libpath from the value encoded in an empty executable.
15725 cat >conftest.
$ac_ext <<_ACEOF
15728 cat confdefs.h
>>conftest.
$ac_ext
15729 cat >>conftest.
$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15740 rm -f conftest.
$ac_objext conftest
$ac_exeext
15741 if { (ac_try
="$ac_link"
15742 case "(($ac_try" in
15743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_link") 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755 { (case "(($ac_try" in
15756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15757 *) ac_try_echo
=$ac_try;;
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_try") 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try
='test -s conftest$ac_exeext'
15765 { (case "(($ac_try" in
15766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_try") 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15775 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15777 # Check for a 64-bit object if we didn't find anything.
15778 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; }
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15787 rm -f core conftest.err conftest.$ac_objext \
15788 conftest$ac_exeext conftest.$ac_ext
15789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15792 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"
15794 if test "$host_cpu" = ia64; then
15795 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15796 allow_undefined_flag="-z nodefs"
15797 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"
15799 # Determine the default libpath from the value encoded in an empty executable.
15800 cat >conftest.$ac_ext <<_ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15819 *) ac_try_echo
=$ac_try;;
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_link") 2>conftest.er1
15824 grep -v '^ *+' conftest.er1
>conftest.err
15826 cat conftest.err
>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830 { (case "(($ac_try" in
15831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_try") 2>&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest$ac_exeext'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15842 *) ac_try_echo
=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15850 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15852 # Check for a 64-bit object if we didn't find anything.
15853 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; }
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.
$ac_ext >&5
15862 rm -f core conftest.err conftest.
$ac_objext \
15863 conftest
$ac_exeext conftest.
$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15866 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 # Warning - without using the other run time loading flags,
15868 # -berok will link without error, but may produce a broken library.
15869 no_undefined_flag
=' ${wl}-bernotok'
15870 allow_undefined_flag
=' ${wl}-berok'
15871 # Exported symbols can be pulled into shared objects from archives
15872 whole_archive_flag_spec
='$convenience'
15873 archive_cmds_need_lc
=yes
15874 # This is similar to how AIX traditionally builds its shared libraries.
15875 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'
15881 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)'
15882 hardcode_libdir_flag_spec
='-L$libdir'
15883 hardcode_minus_L
=yes
15884 # see comment about different semantics on the GNU ld section
15889 export_dynamic_flag_spec
=-rdynamic
15892 cygwin
* | mingw
* | pw32
*)
15893 # When not using gcc, we currently assume that we are using
15894 # Microsoft Visual C++.
15895 # hardcode_libdir_flag_spec is actually meaningless, as there is
15896 # no search path for DLLs.
15897 hardcode_libdir_flag_spec
=' '
15898 allow_undefined_flag
=unsupported
15899 # Tell ltmain to make .lib files, not .a files.
15901 # Tell ltmain to make .dll files, not .so files.
15903 # FIXME: Setting linknames here is a bad hack.
15904 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15905 # The linker will automatically build a .lib file if we build a DLL.
15906 old_archive_From_new_cmds
='true'
15907 # FIXME: Should let the user specify the lib program.
15908 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15909 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15910 enable_shared_with_static_runtimes
=yes
15913 darwin
* | rhapsody
*)
15915 rhapsody
* | darwin1.
[012])
15916 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15919 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15920 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15922 case ${MACOSX_DEPLOYMENT_TARGET} in
15924 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15927 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15933 archive_cmds_need_lc
=no
15935 hardcode_automatic
=yes
15936 hardcode_shlibpath_var
=unsupported
15937 whole_archive_flag_spec
=''
15938 link_all_deplibs
=yes
15939 if test "$GCC" = yes ; then
15940 output_verbose_link_cmd
='echo'
15941 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15942 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15943 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15944 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}'
15945 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}'
15947 case $cc_basename in
15949 output_verbose_link_cmd
='echo'
15950 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15951 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15952 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15953 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}'
15954 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}'
15964 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_libdir_flag_spec
='-L$libdir'
15966 hardcode_shlibpath_var
=no
15973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15974 # support. Future versions do this automatically, but an explicit c++rt0.o
15975 # does not break anything, and helps significantly (at the cost of a little
15978 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15979 hardcode_libdir_flag_spec
='-R$libdir'
15980 hardcode_direct
=yes
15981 hardcode_shlibpath_var
=no
15984 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15986 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15987 hardcode_direct
=yes
15988 hardcode_minus_L
=yes
15989 hardcode_shlibpath_var
=no
15992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15993 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15994 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15995 hardcode_libdir_flag_spec
='-R$libdir'
15996 hardcode_direct
=yes
15997 hardcode_shlibpath_var
=no
16001 if test "$GCC" = yes; then
16002 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'
16004 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'
16006 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16007 hardcode_libdir_separator
=:
16008 hardcode_direct
=yes
16010 # hardcode_minus_L: Not really in the search PATH,
16011 # but as the default location of the library.
16012 hardcode_minus_L
=yes
16013 export_dynamic_flag_spec
='${wl}-E'
16017 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16018 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16020 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16022 if test "$with_gnu_ld" = no
; then
16023 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16024 hardcode_libdir_separator
=:
16026 hardcode_direct
=yes
16027 export_dynamic_flag_spec
='${wl}-E'
16029 # hardcode_minus_L: Not really in the search PATH,
16030 # but as the default location of the library.
16031 hardcode_minus_L
=yes
16036 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16039 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16042 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16045 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16051 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16054 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16061 if test "$with_gnu_ld" = no
; then
16062 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16063 hardcode_libdir_separator
=:
16067 hardcode_libdir_flag_spec_ld
='+b $libdir'
16069 hardcode_shlibpath_var
=no
16072 hardcode_direct
=yes
16073 export_dynamic_flag_spec
='${wl}-E'
16075 # hardcode_minus_L: Not really in the search PATH,
16076 # but as the default location of the library.
16077 hardcode_minus_L
=yes
16083 irix5
* | irix6
* | nonstopux
*)
16084 if test "$GCC" = yes; then
16085 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'
16087 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'
16088 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16090 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16091 hardcode_libdir_separator
=:
16092 link_all_deplibs
=yes
16096 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16097 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16099 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16101 hardcode_libdir_flag_spec
='-R$libdir'
16102 hardcode_direct
=yes
16103 hardcode_shlibpath_var
=no
16107 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_direct
=yes
16109 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16110 hardcode_libdir_separator
=:
16111 hardcode_shlibpath_var
=no
16115 hardcode_direct
=yes
16116 hardcode_shlibpath_var
=no
16117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16118 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16119 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16120 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16121 export_dynamic_flag_spec
='${wl}-E'
16124 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16125 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_libdir_flag_spec
='-R$libdir'
16129 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16130 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16137 hardcode_libdir_flag_spec
='-L$libdir'
16138 hardcode_minus_L
=yes
16139 allow_undefined_flag
=unsupported
16140 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'
16141 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16145 if test "$GCC" = yes; then
16146 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16147 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'
16149 allow_undefined_flag
=' -expect_unresolved \*'
16150 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'
16152 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16153 hardcode_libdir_separator
=:
16156 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16157 if test "$GCC" = yes; then
16158 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16159 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'
16160 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16162 allow_undefined_flag
=' -expect_unresolved \*'
16163 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'
16164 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16165 $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'
16167 # Both c and cxx compiler support -rpath directly
16168 hardcode_libdir_flag_spec
='-rpath $libdir'
16170 hardcode_libdir_separator
=:
16174 no_undefined_flag
=' -z text'
16175 if test "$GCC" = yes; then
16177 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16179 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16182 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16184 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16186 hardcode_libdir_flag_spec
='-R$libdir'
16187 hardcode_shlibpath_var
=no
16189 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16191 # The compiler driver will combine linker options so we
16192 # cannot just pass the convience library names through
16193 # without $wl, iff we do not link with $LD.
16194 # Luckily, gcc supports the same syntax we need for Sun Studio.
16195 # Supported since Solaris 2.6 (maybe 2.5.1?)
16198 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16200 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' ;;
16203 link_all_deplibs
=yes
16207 if test "x$host_vendor" = xsequent
; then
16208 # Use $CC to link under sequent, because it throws in some extra .o
16209 # files that make .init and .fini sections work.
16210 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16212 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16214 hardcode_libdir_flag_spec
='-L$libdir'
16215 hardcode_direct
=yes
16216 hardcode_minus_L
=yes
16217 hardcode_shlibpath_var
=no
16221 case $host_vendor in
16223 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_direct
=yes # is this really true???
16227 ## LD is ld it makes a PLAMLIB
16228 ## CC just makes a GrossModule.
16229 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16230 reload_cmds
='$CC -r -o $output$reload_objs'
16234 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16238 runpath_var
='LD_RUN_PATH'
16239 hardcode_shlibpath_var
=no
16243 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16244 hardcode_shlibpath_var
=no
16245 export_dynamic_flag_spec
='-Bexport'
16249 if test -d /usr
/nec
; then
16250 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_shlibpath_var
=no
16252 runpath_var
=LD_RUN_PATH
16253 hardcode_runpath_var
=yes
16258 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16259 no_undefined_flag
='${wl}-z,text'
16260 archive_cmds_need_lc
=no
16261 hardcode_shlibpath_var
=no
16262 runpath_var
='LD_RUN_PATH'
16264 if test "$GCC" = yes; then
16265 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16268 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16273 sysv5
* | sco3.2v5
* | sco5v6
*)
16274 # Note: We can NOT use -z defs as we might desire, because we do not
16275 # link with -lc, and that would cause any symbols used from libc to
16276 # always be unresolved, which means just about no library would
16277 # ever link correctly. If we're not using GNU ld we use -z text
16278 # though, which does catch some bad symbols but isn't as heavy-handed
16280 no_undefined_flag
='${wl}-z,text'
16281 allow_undefined_flag
='${wl}-z,nodefs'
16282 archive_cmds_need_lc
=no
16283 hardcode_shlibpath_var
=no
16284 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16285 hardcode_libdir_separator
=':'
16286 link_all_deplibs
=yes
16287 export_dynamic_flag_spec
='${wl}-Bexport'
16288 runpath_var
='LD_RUN_PATH'
16290 if test "$GCC" = yes; then
16291 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16292 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16300 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16301 hardcode_libdir_flag_spec
='-L$libdir'
16302 hardcode_shlibpath_var
=no
16311 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16312 echo "${ECHO_T}$ld_shlibs" >&6; }
16313 test "$ld_shlibs" = no
&& can_build_shared
=no
16316 # Do we need to explicitly link libc?
16318 case "x$archive_cmds_need_lc" in
16320 # Assume -lc should be added
16321 archive_cmds_need_lc
=yes
16323 if test "$enable_shared" = yes && test "$GCC" = yes; then
16324 case $archive_cmds in
16326 # FIXME: we may have to deal with multi-command sequences.
16329 # Test whether the compiler implicitly links with -lc since on some
16330 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16331 # to ld, don't add -lc before -lgcc.
16332 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16333 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16335 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } 2>conftest.err
; then
16344 libobjs
=conftest.
$ac_objext
16346 wl
=$lt_prog_compiler_wl
16347 pic_flag
=$lt_prog_compiler_pic
16353 lt_save_allow_undefined_flag
=$allow_undefined_flag
16354 allow_undefined_flag
=
16355 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16356 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }
16361 archive_cmds_need_lc
=no
16363 archive_cmds_need_lc
=yes
16365 allow_undefined_flag
=$lt_save_allow_undefined_flag
16367 cat conftest.err
1>&5
16370 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16371 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16378 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16379 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16380 library_names_spec
=
16381 libname_spec
='lib$name'
16385 postuninstall_cmds
=
16389 shlibpath_overrides_runpath
=unknown
16391 dynamic_linker
="$host_os ld.so"
16392 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16393 if test "$GCC" = yes; then
16394 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16395 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16396 # if the path contains ";" then we assume it to be the separator
16397 # otherwise default to the standard path separator (i.e. ":") - it is
16398 # assumed that no part of a normal pathname contains ";" but that should
16399 # okay in the real world where ";" in dirpaths is itself problematic.
16400 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16402 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16405 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16407 need_lib_prefix
=unknown
16408 hardcode_into_libs
=no
16410 # when you set need_version to no, make sure it does not cause -set_version
16411 # flags to be left without arguments
16412 need_version
=unknown
16417 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16418 shlibpath_var
=LIBPATH
16420 # AIX 3 has no versioning support, so we append a major version to the name.
16421 soname_spec
='${libname}${release}${shared_ext}$major'
16428 hardcode_into_libs
=yes
16429 if test "$host_cpu" = ia64
; then
16430 # AIX 5 supports IA64
16431 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16432 shlibpath_var
=LD_LIBRARY_PATH
16434 # With GCC up to 2.95.x, collect2 would create an import file
16435 # for dependence libraries. The import file would start with
16436 # the line `#! .'. This would cause the generated library to
16437 # depend on `.', always an invalid library. This was fixed in
16438 # development snapshots of GCC prior to 3.0.
16440 aix4 | aix4.
[01] | aix4.
[01].
*)
16441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16443 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16446 can_build_shared
=no
16450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16451 # soname into executable. Probably we can add versioning support to
16452 # collect2, so additional links can be useful in future.
16453 if test "$aix_use_runtimelinking" = yes; then
16454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16455 # instead of lib<name>.a to let people know that these are not
16456 # typical AIX shared libraries.
16457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 # We preserve .a as extension for shared libraries through AIX4.2
16460 # and later when we are not doing run time linking.
16461 library_names_spec
='${libname}${release}.a $libname.a'
16462 soname_spec
='${libname}${release}${shared_ext}$major'
16464 shlibpath_var
=LIBPATH
16469 library_names_spec
='$libname.ixlibrary $libname.a'
16470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16471 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'
16475 library_names_spec
='${libname}${shared_ext}'
16476 dynamic_linker
="$host_os ld.so"
16477 shlibpath_var
=LIBRARY_PATH
16483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec
='${libname}${release}${shared_ext}$major'
16485 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16486 shlibpath_var
=LD_LIBRARY_PATH
16487 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16488 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16489 # the default ld.so.conf also contains /usr/contrib/lib and
16490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16491 # libtool to hard-code these into programs
16494 cygwin
* | mingw
* | pw32
*)
16495 version_type
=windows
16500 case $GCC,$host_os in
16501 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16502 library_names_spec
='$libname.dll.a'
16503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16504 postinstall_cmds
='base_file=`basename \${file}`~
16505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16506 dldir=$destdir/`dirname \$dlpath`~
16507 test -d \$dldir || mkdir -p \$dldir~
16508 $install_prog $dir/$dlname \$dldir/$dlname~
16509 chmod a+x \$dldir/$dlname'
16510 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16511 dlpath=$dir/\$dldll~
16513 shlibpath_overrides_runpath
=yes
16517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16518 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16519 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16522 # MinGW DLLs use traditional 'lib' prefix
16523 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16524 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16525 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16526 # It is most probably a Windows format PATH printed by
16527 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16528 # path with ; separators, and with drive letters. We can handle the
16529 # drive letters (cygwin fileutils understands them), so leave them,
16530 # especially as we might pass files found there to a mingw objdump,
16531 # which wouldn't understand a cygwinified path. Ahh.
16532 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16534 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16538 # pw32 DLLs use 'pw' prefix rather than 'lib'
16539 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16545 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16548 dynamic_linker
='Win32 ld.exe'
16549 # FIXME: first we should search . and the directory the executable is in
16553 darwin
* | rhapsody
*)
16554 dynamic_linker
="$host_os dyld"
16555 version_type
=darwin
16558 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16559 soname_spec
='${libname}${release}${major}$shared_ext'
16560 shlibpath_overrides_runpath
=yes
16561 shlibpath_var
=DYLD_LIBRARY_PATH
16562 shrext_cmds
='.dylib'
16563 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16564 if test "$GCC" = yes; then
16565 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"`
16567 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16569 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16577 soname_spec
='${libname}${release}${shared_ext}$major'
16578 shlibpath_var
=LD_LIBRARY_PATH
16589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16590 soname_spec
='${libname}${release}${shared_ext}$major'
16591 shlibpath_var
=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath
=no
16593 hardcode_into_libs
=yes
16594 dynamic_linker
='GNU ld.so'
16597 freebsd
* | dragonfly
*)
16598 # DragonFly does not have aout. When/if they implement a new
16599 # versioning mechanism, adjust this.
16600 if test -x /usr
/bin
/objformat
; then
16601 objformat
=`/usr/bin/objformat`
16604 freebsd
[123]*) objformat
=aout
;;
16605 *) objformat
=elf
;;
16608 version_type
=freebsd-
$objformat
16609 case $version_type in
16611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16616 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16620 shlibpath_var
=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath
=yes
16625 freebsd3.
[01]* | freebsdelf3.
[01]*)
16626 shlibpath_overrides_runpath
=yes
16627 hardcode_into_libs
=yes
16629 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16630 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16631 shlibpath_overrides_runpath
=no
16632 hardcode_into_libs
=yes
16634 freebsd
*) # from 4.6 on
16635 shlibpath_overrides_runpath
=yes
16636 hardcode_into_libs
=yes
16645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16646 soname_spec
='${libname}${release}${shared_ext}$major'
16647 shlibpath_var
=LD_LIBRARY_PATH
16648 hardcode_into_libs
=yes
16651 hpux9
* | hpux10
* | hpux11
*)
16652 # Give a soname corresponding to the major version so that dld.sl refuses to
16653 # link against other versions.
16660 hardcode_into_libs
=yes
16661 dynamic_linker
="$host_os dld.so"
16662 shlibpath_var
=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec
='${libname}${release}${shared_ext}$major'
16666 if test "X$HPUX_IA64_MODE" = X32
; then
16667 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16669 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16671 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16675 hardcode_into_libs
=yes
16676 dynamic_linker
="$host_os dld.sl"
16677 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16678 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 soname_spec
='${libname}${release}${shared_ext}$major'
16681 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16682 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16686 dynamic_linker
="$host_os dld.sl"
16687 shlibpath_var
=SHLIB_PATH
16688 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 soname_spec
='${libname}${release}${shared_ext}$major'
16693 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16694 postinstall_cmds
='chmod 555 $lib'
16701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16702 soname_spec
='${libname}${release}${shared_ext}$major'
16703 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16704 shlibpath_var
=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath
=no
16706 hardcode_into_libs
=yes
16709 irix5
* | irix6
* | nonstopux
*)
16711 nonstopux
*) version_type
=nonstopux
;;
16713 if test "$lt_cv_prog_gnu_ld" = yes; then
16721 soname_spec
='${libname}${release}${shared_ext}$major'
16722 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16724 irix5
* | nonstopux
*)
16725 libsuff
= shlibsuff
=
16728 case $LD in # libtool.m4 will add one of these switches to LD
16729 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16730 libsuff
= shlibsuff
= libmagic
=32-bit;;
16731 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16732 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16733 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16734 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16735 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16739 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16740 shlibpath_overrides_runpath
=no
16741 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16742 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16743 hardcode_into_libs
=yes
16746 # No shared lib support for Linux oldld, aout, or coff.
16747 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16751 # This must be Linux ELF.
16756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec
='${libname}${release}${shared_ext}$major'
16758 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16759 shlibpath_var
=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath
=no
16761 # This implies no fast_install, which is unacceptable.
16762 # Some rework will be needed to allow for fast_install
16763 # before this can be enabled.
16764 hardcode_into_libs
=yes
16766 # Append ld.so.conf contents to the search path
16767 if test -f /etc
/ld.so.conf
; then
16768 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' ' '`
16769 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16772 # We used to test for /lib/ld.so.1 and disable shared libraries on
16773 # powerpc, because MkLinux only supported shared libraries with the
16774 # GNU dynamic linker. Since this was broken with cross compilers,
16775 # most powerpc-linux boxes support dynamic linking these days and
16776 # people can always --disable-shared, the test was removed, and we
16777 # assume the GNU/Linux dynamic linker is in use.
16778 dynamic_linker
='GNU/Linux ld.so'
16785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786 soname_spec
='${libname}${release}${shared_ext}$major'
16787 shlibpath_var
=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath
=no
16789 hardcode_into_libs
=yes
16790 dynamic_linker
='GNU ld.so'
16797 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16799 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16800 dynamic_linker
='NetBSD (a.out) ld.so'
16802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16803 soname_spec
='${libname}${release}${shared_ext}$major'
16804 dynamic_linker
='NetBSD ld.elf_so'
16806 shlibpath_var
=LD_LIBRARY_PATH
16807 shlibpath_overrides_runpath
=yes
16808 hardcode_into_libs
=yes
16813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 shlibpath_var
=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath
=yes
16822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823 soname_spec
='${libname}${release}${shared_ext}$major'
16824 shlibpath_var
=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath
=yes
16830 sys_lib_dlsearch_path_spec
="/usr/lib"
16832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16834 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16835 *) need_version
=no
;;
16837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839 shlibpath_var
=LD_LIBRARY_PATH
16840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16842 openbsd2.
[89] | openbsd2.
[89].
*)
16843 shlibpath_overrides_runpath
=no
16846 shlibpath_overrides_runpath
=yes
16850 shlibpath_overrides_runpath
=yes
16855 libname_spec
='$name'
16858 library_names_spec
='$libname${shared_ext} $libname.a'
16859 dynamic_linker
='OS/2 ld.exe'
16860 shlibpath_var
=LIBPATH
16863 osf3
* | osf4
* | osf5
*)
16867 soname_spec
='${libname}${release}${shared_ext}$major'
16868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 shlibpath_var
=LD_LIBRARY_PATH
16870 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 soname_spec
='${libname}${release}${shared_ext}$major'
16880 shlibpath_var
=LD_LIBRARY_PATH
16881 shlibpath_overrides_runpath
=yes
16882 hardcode_into_libs
=yes
16883 # ldd complains unless libraries are executable
16884 postinstall_cmds
='chmod +x $lib'
16889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16890 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16891 shlibpath_var
=LD_LIBRARY_PATH
16892 shlibpath_overrides_runpath
=yes
16893 if test "$with_gnu_ld" = yes; then
16901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902 soname_spec
='${libname}${release}${shared_ext}$major'
16903 shlibpath_var
=LD_LIBRARY_PATH
16904 case $host_vendor in
16906 shlibpath_overrides_runpath
=no
16908 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16909 runpath_var
=LD_RUN_PATH
16917 shlibpath_overrides_runpath
=no
16918 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16924 if test -d /usr
/nec
;then
16926 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16927 soname_spec
='$libname${shared_ext}.$major'
16928 shlibpath_var
=LD_LIBRARY_PATH
16932 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16933 version_type
=freebsd-elf
16936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16937 soname_spec
='${libname}${release}${shared_ext}$major'
16938 shlibpath_var
=LD_LIBRARY_PATH
16939 hardcode_into_libs
=yes
16940 if test "$with_gnu_ld" = yes; then
16941 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16942 shlibpath_overrides_runpath
=no
16944 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16945 shlibpath_overrides_runpath
=yes
16948 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16952 sys_lib_dlsearch_path_spec
='/usr/lib'
16957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958 soname_spec
='${libname}${release}${shared_ext}$major'
16959 shlibpath_var
=LD_LIBRARY_PATH
16966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16967 echo "${ECHO_T}$dynamic_linker" >&6; }
16968 test "$dynamic_linker" = no
&& can_build_shared
=no
16970 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16971 if test "$GCC" = yes; then
16972 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16975 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16976 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16978 if test -n "$hardcode_libdir_flag_spec" || \
16979 test -n "$runpath_var" || \
16980 test "X$hardcode_automatic" = "Xyes" ; then
16982 # We can hardcode non-existant directories.
16983 if test "$hardcode_direct" != no
&&
16984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16985 # have to relink, otherwise we might link with an installed library
16986 # when we should be linking with a yet-to-be-installed one
16987 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16988 test "$hardcode_minus_L" != no
; then
16989 # Linking always hardcodes the temporary library directory.
16990 hardcode_action
=relink
16992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16993 hardcode_action
=immediate
16996 # We cannot hardcode anything, or else we can only hardcode existing
16998 hardcode_action
=unsupported
17000 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17001 echo "${ECHO_T}$hardcode_action" >&6; }
17003 if test "$hardcode_action" = relink
; then
17004 # Fast installation is not supported
17005 enable_fast_install
=no
17006 elif test "$shlibpath_overrides_runpath" = yes ||
17007 test "$enable_shared" = no
; then
17008 # Fast installation is not necessary
17009 enable_fast_install
=needless
17014 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17015 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17016 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17017 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17018 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17019 { echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6; }
17022 # FIXME - insert some real tests, host_os isn't really good enough
17025 if test -n "$STRIP" ; then
17026 striplib
="$STRIP -x"
17027 { echo "$as_me:$LINENO: result: yes" >&5
17028 echo "${ECHO_T}yes" >&6; }
17030 { echo "$as_me:$LINENO: result: no" >&5
17031 echo "${ECHO_T}no" >&6; }
17035 { echo "$as_me:$LINENO: result: no" >&5
17036 echo "${ECHO_T}no" >&6; }
17041 if test "x$enable_dlopen" != xyes
; then
17042 enable_dlopen
=unknown
17043 enable_dlopen_self
=unknown
17044 enable_dlopen_self_static
=unknown
17051 lt_cv_dlopen
="load_add_on"
17053 lt_cv_dlopen_self
=yes
17057 lt_cv_dlopen
="LoadLibrary"
17062 lt_cv_dlopen
="dlopen"
17067 # if libdl is installed we need to link against it
17068 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17069 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17070 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 ac_check_lib_save_LIBS
=$LIBS
17075 cat >conftest.
$ac_ext <<_ACEOF
17078 cat confdefs.h
>>conftest.
$ac_ext
17079 cat >>conftest.
$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17097 rm -f conftest.
$ac_objext conftest
$ac_exeext
17098 if { (ac_try
="$ac_link"
17099 case "(($ac_try" in
17100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17114 *) ac_try_echo
=$ac_try;;
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try
='test -s conftest$ac_exeext'
17122 { (case "(($ac_try" in
17123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_lib_dl_dlopen=yes
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_cv_lib_dl_dlopen=no
17139 rm -f core conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141 LIBS=$ac_check_lib_save_LIBS
17143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17144 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17145 if test $ac_cv_lib_dl_dlopen = yes; then
17146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17149 lt_cv_dlopen="dyld"
17151 lt_cv_dlopen_self=yes
17158 { echo "$as_me:$LINENO: checking for shl_load" >&5
17159 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17160 if test "${ac_cv_func_shl_load+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171 #define shl_load innocuous_shl_load
17173 /* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char shl_load (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17179 # include <limits.h>
17181 # include <assert.h>
17186 /* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17193 /* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196 #if defined __stub_shl_load || defined __stub___shl_load
17203 return shl_load ();
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17212 *) ac_try_echo
=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1
>conftest.err
17219 cat conftest.err
>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17235 *) ac_try_echo
=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_func_shl_load
=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.
$ac_ext >&5
17247 ac_cv_func_shl_load
=no
17250 rm -f core conftest.err conftest.
$ac_objext \
17251 conftest
$ac_exeext conftest.
$ac_ext
17253 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17254 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17255 if test $ac_cv_func_shl_load = yes; then
17256 lt_cv_dlopen
="shl_load"
17258 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17259 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17260 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 ac_check_lib_save_LIBS
=$LIBS
17265 cat >conftest.
$ac_ext <<_ACEOF
17268 cat confdefs.h
>>conftest.
$ac_ext
17269 cat >>conftest.
$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17272 /* Override any GCC internal prototype to avoid an error.
17273 Use char because int might match the return type of a GCC
17274 builtin and then its argument prototype would still apply. */
17282 return shl_load ();
17287 rm -f conftest.
$ac_objext conftest
$ac_exeext
17288 if { (ac_try
="$ac_link"
17289 case "(($ac_try" in
17290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17302 { (case "(($ac_try" in
17303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17304 *) ac_try_echo
=$ac_try;;
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_try") 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try
='test -s conftest$ac_exeext'
17312 { (case "(($ac_try" in
17313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 ac_cv_lib_dld_shl_load=yes
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_cv_lib_dld_shl_load=no
17329 rm -f core conftest.err conftest.$ac_objext \
17330 conftest$ac_exeext conftest.$ac_ext
17331 LIBS=$ac_check_lib_save_LIBS
17333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17334 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17335 if test $ac_cv_lib_dld_shl_load = yes; then
17336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17338 { echo "$as_me:$LINENO: checking for dlopen" >&5
17339 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17340 if test "${ac_cv_func_dlopen+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351 #define dlopen innocuous_dlopen
17353 /* System header to define __stub macros and hopefully few prototypes,
17354 which can conflict with char dlopen (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
17359 # include <limits.h>
17361 # include <assert.h>
17366 /* Override any GCC internal prototype to avoid an error.
17367 Use char because int might match the return type of a GCC
17368 builtin and then its argument prototype would still apply. */
17373 /* The GNU C library defines this for functions which it implements
17374 to always fail with ENOSYS. Some functions are actually named
17375 something starting with __ and the normal name is an alias. */
17376 #if defined __stub_dlopen || defined __stub___dlopen
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17392 *) ac_try_echo
=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17397 grep -v '^ *+' conftest.er1
>conftest.err
17399 cat conftest.err
>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
17402 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17403 { (case "(($ac_try" in
17404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest$ac_exeext'
17413 { (case "(($ac_try" in
17414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17415 *) ac_try_echo
=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_try") 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_dlopen
=yes
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.
$ac_ext >&5
17427 ac_cv_func_dlopen
=no
17430 rm -f core conftest.err conftest.
$ac_objext \
17431 conftest
$ac_exeext conftest.
$ac_ext
17433 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17434 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17435 if test $ac_cv_func_dlopen = yes; then
17436 lt_cv_dlopen
="dlopen"
17438 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 ac_check_lib_save_LIBS
=$LIBS
17445 cat >conftest.
$ac_ext <<_ACEOF
17448 cat confdefs.h
>>conftest.
$ac_ext
17449 cat >>conftest.
$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17467 rm -f conftest.
$ac_objext conftest
$ac_exeext
17468 if { (ac_try
="$ac_link"
17469 case "(($ac_try" in
17470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_link") 2>conftest.er1
17476 grep -v '^ *+' conftest.er1 >conftest.err
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17484 *) ac_try_echo
=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try
='test -s conftest$ac_exeext'
17492 { (case "(($ac_try" in
17493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 ac_cv_lib_dl_dlopen=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_lib_dl_dlopen=no
17509 rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17513 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17515 if test $ac_cv_lib_dl_dlopen = yes; then
17516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17518 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17519 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17520 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 ac_check_lib_save_LIBS=$LIBS
17524 LIBS="-lsvld $LIBS"
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17532 /* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
17547 rm -f conftest.$ac_objext conftest$ac_exeext
17548 if { (ac_try="$ac_link"
17549 case "(($ac_try" in
17550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17551 *) ac_try_echo
=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_link") 2>conftest.er1
17556 grep -v '^ *+' conftest.er1
>conftest.err
17558 cat conftest.err
>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17562 { (case "(($ac_try" in
17563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_try") 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17574 *) ac_try_echo
=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_cv_lib_svld_dlopen
=yes
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.
$ac_ext >&5
17586 ac_cv_lib_svld_dlopen
=no
17589 rm -f core conftest.err conftest.
$ac_objext \
17590 conftest
$ac_exeext conftest.
$ac_ext
17591 LIBS
=$ac_check_lib_save_LIBS
17593 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17594 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17595 if test $ac_cv_lib_svld_dlopen = yes; then
17596 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17598 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17599 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17600 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 ac_check_lib_save_LIBS
=$LIBS
17605 cat >conftest.
$ac_ext <<_ACEOF
17608 cat confdefs.h
>>conftest.
$ac_ext
17609 cat >>conftest.
$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17612 /* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
17622 return dld_link ();
17627 rm -f conftest.
$ac_objext conftest
$ac_exeext
17628 if { (ac_try
="$ac_link"
17629 case "(($ac_try" in
17630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_link") 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
17641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17644 *) ac_try_echo
=$ac_try;;
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try
='test -s conftest$ac_exeext'
17652 { (case "(($ac_try" in
17653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_lib_dld_dld_link=yes
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_lib_dld_dld_link=no
17669 rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_lib_save_LIBS
17673 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17674 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17675 if test $ac_cv_lib_dld_dld_link = yes; then
17676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17697 if test "x$lt_cv_dlopen" != xno; then
17703 case $lt_cv_dlopen in
17705 save_CPPFLAGS="$CPPFLAGS"
17706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17708 save_LDFLAGS="$LDFLAGS"
17709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17712 LIBS="$lt_cv_dlopen_libs $LIBS"
17714 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17715 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17716 if test "${lt_cv_dlopen_self+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 if test "$cross_compiling" = yes; then :
17720 lt_cv_dlopen_self=cross
17722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17723 lt_status=$lt_dlunknown
17724 cat > conftest.$ac_ext <<EOF
17725 #line 17725 "configure"
17726 #include "confdefs.h"
17735 # define LT_DLGLOBAL RTLD_GLOBAL
17738 # define LT_DLGLOBAL DL_GLOBAL
17740 # define LT_DLGLOBAL 0
17744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17745 find out it does not work in some platform. */
17746 #ifndef LT_DLLAZY_OR_NOW
17748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17751 # define LT_DLLAZY_OR_NOW DL_LAZY
17754 # define LT_DLLAZY_OR_NOW RTLD_NOW
17757 # define LT_DLLAZY_OR_NOW DL_NOW
17759 # define LT_DLLAZY_OR_NOW 0
17767 extern "C" void exit (int);
17770 void fnord() { int i=42;}
17773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17774 int status = $lt_dlunknown;
17778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17780 /* dlclose (self); */
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789 (eval $ac_link) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17793 (./conftest; exit; ) >&5 2>/dev/null
17795 case x$lt_status in
17796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17801 # compilation failed
17802 lt_cv_dlopen_self=no
17809 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17810 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17812 if test "x$lt_cv_dlopen_self" = xyes; then
17813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17814 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17815 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17816 if test "${lt_cv_dlopen_self_static+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 if test "$cross_compiling" = yes; then :
17820 lt_cv_dlopen_self_static=cross
17822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17823 lt_status=$lt_dlunknown
17824 cat > conftest.$ac_ext <<EOF
17825 #line 17825 "configure"
17826 #include "confdefs.h"
17835 # define LT_DLGLOBAL RTLD_GLOBAL
17838 # define LT_DLGLOBAL DL_GLOBAL
17840 # define LT_DLGLOBAL 0
17844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17845 find out it does not work in some platform. */
17846 #ifndef LT_DLLAZY_OR_NOW
17848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17851 # define LT_DLLAZY_OR_NOW DL_LAZY
17854 # define LT_DLLAZY_OR_NOW RTLD_NOW
17857 # define LT_DLLAZY_OR_NOW DL_NOW
17859 # define LT_DLLAZY_OR_NOW 0
17867 extern "C" void exit (int);
17870 void fnord() { int i=42;}
17873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17874 int status = $lt_dlunknown;
17878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17880 /* dlclose (self); */
17888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889 (eval $ac_link) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17893 (./conftest; exit; ) >&5 2>/dev/null
17895 case x$lt_status in
17896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17898 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17901 # compilation failed
17902 lt_cv_dlopen_self_static=no
17909 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17913 CPPFLAGS="$save_CPPFLAGS"
17914 LDFLAGS="$save_LDFLAGS"
17919 case $lt_cv_dlopen_self in
17920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17921 *) enable_dlopen_self=unknown ;;
17924 case $lt_cv_dlopen_self_static in
17925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17926 *) enable_dlopen_self_static=unknown ;;
17931 # Report which library types will actually be built
17932 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17933 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17934 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17935 echo "${ECHO_T}$can_build_shared" >&6; }
17937 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17938 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17939 test "$can_build_shared" = "no" && enable_shared=no
17941 # On AIX, shared libraries and static libraries use the same namespace, and
17942 # are all built from PIC.
17945 test "$enable_shared" = yes && enable_static=no
17946 if test -n "$RANLIB"; then
17947 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17948 postinstall_cmds='$RANLIB $lib'
17953 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17954 test "$enable_shared" = yes && enable_static=no
17958 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17959 echo "${ECHO_T}$enable_shared" >&6; }
17961 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17962 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17963 # Make sure either enable_shared or enable_static is yes.
17964 test "$enable_shared" = yes || enable_static=yes
17965 { echo "$as_me:$LINENO: result: $enable_static" >&5
17966 echo "${ECHO_T}$enable_static" >&6; }
17968 # The else clause should only fire when bootstrapping the
17969 # libtool distribution, otherwise you forgot to ship ltmain.sh
17970 # with your package, and you will get complaints that there are
17971 # no rules to generate ltmain.sh.
17972 if test -f "$ltmain"; then
17973 # See if we are running on zsh, and set the options which allow our commands through
17974 # without removal of \ escapes.
17975 if test -n "${ZSH_VERSION+set}" ; then
17976 setopt NO_GLOB_SUBST
17978 # Now quote all the things that may contain metacharacters while being
17979 # careful not to overquote the AC_SUBSTed values. We take copies of the
17980 # variables and quote the copies for generation of the libtool script.
17981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17985 deplibs_check_method reload_flag reload_cmds need_locks \
17986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17987 lt_cv_sys_global_symbol_to_c_name_address \
17988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17989 old_postinstall_cmds old_postuninstall_cmds \
17993 lt_prog_compiler_wl \
17994 lt_prog_compiler_pic \
17995 lt_prog_compiler_static \
17996 lt_prog_compiler_no_builtin_flag \
17997 export_dynamic_flag_spec \
17998 thread_safe_flag_spec \
17999 whole_archive_flag_spec \
18000 enable_shared_with_static_runtimes \
18002 old_archive_from_new_cmds \
18007 compiler_lib_search_path \
18009 archive_expsym_cmds \
18011 postuninstall_cmds \
18012 old_archive_from_expsyms_cmds \
18013 allow_undefined_flag \
18014 no_undefined_flag \
18015 export_symbols_cmds \
18016 hardcode_libdir_flag_spec \
18017 hardcode_libdir_flag_spec_ld \
18018 hardcode_libdir_separator \
18019 hardcode_automatic \
18021 module_expsym_cmds \
18022 lt_cv_prog_compiler_c_o \
18024 include_expsyms; do
18027 old_archive_cmds | \
18028 old_archive_from_new_cmds | \
18030 archive_expsym_cmds | \
18032 module_expsym_cmds | \
18033 old_archive_from_expsyms_cmds | \
18034 export_symbols_cmds | \
18035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18036 postinstall_cmds | postuninstall_cmds | \
18037 old_postinstall_cmds | old_postuninstall_cmds | \
18038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18039 # Double-quote double-evaled strings.
18040 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
18043 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
18049 *'\$0 --fallback-echo"')
18050 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18054 cfgfile="${ofile}T"
18055 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18057 { echo "$as_me:$LINENO: creating $ofile" >&5
18058 echo "$as_me: creating $ofile" >&6;}
18060 cat <<__EOF__ >> "$cfgfile"
18063 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
18064 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18065 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18067 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18068 # Free Software Foundation, Inc.
18070 # This file is part of GNU Libtool:
18071 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18073 # This program is free software; you can redistribute it and/or modify
18074 # it under the terms of the GNU General Public License as published by
18075 # the Free Software Foundation; either version 2 of the License, or
18076 # (at your option) any later version.
18078 # This program is distributed in the hope that it will be useful, but
18079 # WITHOUT ANY WARRANTY; without even the implied warranty of
18080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18081 # General Public License for more details.
18083 # You should have received a copy of the GNU General Public License
18084 # along with this program; if not, write to the Free Software
18085 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18087 # As a special exception to the GNU General Public License, if you
18088 # distribute this file as part of a program that contains a
18089 # configuration script generated by Autoconf, you may include it under
18090 # the same distribution terms that you use for the rest of that program.
18092 # A sed program that does not truncate output.
18095 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18096 Xsed="$SED -e 1s/^X//"
18098 # The HP-UX ksh and POSIX shell print the target directory to stdout
18099 # if CDPATH is set.
18100 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18102 # The names of the tagged configurations supported by this script.
18105 # ### BEGIN LIBTOOL CONFIG
18107 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
18109 # Shell to use when invoking shell scripts.
18112 # Whether or not to build shared libraries.
18113 build_libtool_libs=$enable_shared
18115 # Whether or not to build static libraries.
18116 build_old_libs=$enable_static
18118 # Whether or not to add -lc for building shared libraries.
18119 build_libtool_need_lc=$archive_cmds_need_lc
18121 # Whether or not to disallow shared libs when runtime libs are static
18122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18124 # Whether or not to optimize for fast installation.
18125 fast_install=$enable_fast_install
18128 host_alias=$host_alias
18132 # The build system.
18133 build_alias=$build_alias
18137 # An echo program that does not interpret backslashes.
18142 AR_FLAGS=$lt_AR_FLAGS
18147 # LTCC compiler flags.
18148 LTCFLAGS=$lt_LTCFLAGS
18150 # A language-specific compiler.
18153 # Is the compiler the GNU C compiler?
18159 # The linker used to build libraries.
18162 # Whether we need hard or soft links.
18165 # A BSD-compatible nm program.
18168 # A symbol stripping program
18171 # Used to examine libraries when file_magic_cmd begins "file"
18172 MAGIC_CMD=$MAGIC_CMD
18174 # Used on cygwin: DLL creation program.
18177 # Used on cygwin: object dumper.
18180 # Used on cygwin: assembler.
18183 # The name of the directory that contains temporary libtool files.
18186 # How to create reloadable object files.
18187 reload_flag=$lt_reload_flag
18188 reload_cmds=$lt_reload_cmds
18190 # How to pass a linker flag through the compiler.
18191 wl=$lt_lt_prog_compiler_wl
18193 # Object file suffix (normally "o").
18194 objext="$ac_objext"
18196 # Old archive suffix (normally "a").
18199 # Shared library suffix (normally ".so").
18200 shrext_cmds='$shrext_cmds'
18202 # Executable file suffix (normally "").
18205 # Additional compiler flags for building library objects.
18206 pic_flag=$lt_lt_prog_compiler_pic
18209 # What is the maximum length of a command?
18210 max_cmd_len=$lt_cv_sys_max_cmd_len
18212 # Does compiler simultaneously support -c and -o options?
18213 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18215 # Must we lock files when doing compilation?
18216 need_locks=$lt_need_locks
18218 # Do we need the lib prefix for modules?
18219 need_lib_prefix=$need_lib_prefix
18221 # Do we need a version for libraries?
18222 need_version=$need_version
18224 # Whether dlopen is supported.
18225 dlopen_support=$enable_dlopen
18227 # Whether dlopen of programs is supported.
18228 dlopen_self=$enable_dlopen_self
18230 # Whether dlopen of statically linked programs is supported.
18231 dlopen_self_static=$enable_dlopen_self_static
18233 # Compiler flag to prevent dynamic linking.
18234 link_static_flag=$lt_lt_prog_compiler_static
18236 # Compiler flag to turn off builtin functions.
18237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18239 # Compiler flag to allow reflexive dlopens.
18240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18242 # Compiler flag to generate shared objects directly from archives.
18243 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18245 # Compiler flag to generate thread-safe objects.
18246 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18248 # Library versioning type.
18249 version_type=$version_type
18251 # Format of library name prefix.
18252 libname_spec=$lt_libname_spec
18254 # List of archive names. First name is the real one, the rest are links.
18255 # The last name is the one that the linker finds with -lNAME.
18256 library_names_spec=$lt_library_names_spec
18258 # The coded name of the library, if different from the real name.
18259 soname_spec=$lt_soname_spec
18261 # Commands used to build and install an old-style archive.
18263 old_archive_cmds=$lt_old_archive_cmds
18264 old_postinstall_cmds=$lt_old_postinstall_cmds
18265 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18267 # Create an old-style archive from a shared archive.
18268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18270 # Create a temporary old-style archive to link instead of a shared archive.
18271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18273 # Commands used to build and install a shared archive.
18274 archive_cmds=$lt_archive_cmds
18275 archive_expsym_cmds=$lt_archive_expsym_cmds
18276 postinstall_cmds=$lt_postinstall_cmds
18277 postuninstall_cmds=$lt_postuninstall_cmds
18279 # Commands used to build a loadable module (assumed same as above if empty)
18280 module_cmds=$lt_module_cmds
18281 module_expsym_cmds=$lt_module_expsym_cmds
18283 # Commands to strip libraries.
18284 old_striplib=$lt_old_striplib
18285 striplib=$lt_striplib
18287 # Dependencies to place before the objects being linked to create a
18289 predep_objects=$lt_predep_objects
18291 # Dependencies to place after the objects being linked to create a
18293 postdep_objects=$lt_postdep_objects
18295 # Dependencies to place before the objects being linked to create a
18297 predeps=$lt_predeps
18299 # Dependencies to place after the objects being linked to create a
18301 postdeps=$lt_postdeps
18303 # The library search path used internally by the compiler when linking
18304 # a shared library.
18305 compiler_lib_search_path=$lt_compiler_lib_search_path
18307 # Method to check whether dependent libraries are shared objects.
18308 deplibs_check_method=$lt_deplibs_check_method
18310 # Command to use when deplibs_check_method == file_magic.
18311 file_magic_cmd=$lt_file_magic_cmd
18313 # Flag that allows shared libraries with undefined symbols to be built.
18314 allow_undefined_flag=$lt_allow_undefined_flag
18316 # Flag that forces no undefined symbols.
18317 no_undefined_flag=$lt_no_undefined_flag
18319 # Commands used to finish a libtool library installation in a directory.
18320 finish_cmds=$lt_finish_cmds
18322 # Same as above, but a single script fragment to be evaled but not shown.
18323 finish_eval=$lt_finish_eval
18325 # Take the output of nm and produce a listing of raw symbols and C names.
18326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18328 # Transform the output of nm in a proper C declaration
18329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18331 # Transform the output of nm in a C name address pair
18332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18334 # This is the shared library runtime path variable.
18335 runpath_var=$runpath_var
18337 # This is the shared library path variable.
18338 shlibpath_var=$shlibpath_var
18340 # Is shlibpath searched before the hard-coded library search path?
18341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18343 # How to hardcode a shared library path into an executable.
18344 hardcode_action=$hardcode_action
18346 # Whether we should hardcode library paths into libraries.
18347 hardcode_into_libs=$hardcode_into_libs
18349 # Flag to hardcode \$libdir into a binary during linking.
18350 # This must work even if \$libdir does not exist.
18351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18353 # If ld is used when linking, flag to hardcode \$libdir into
18354 # a binary during linking. This must work even if \$libdir does
18356 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18358 # Whether we need a single -rpath flag with a separated argument.
18359 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18361 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18362 # resulting binary.
18363 hardcode_direct=$hardcode_direct
18365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18366 # resulting binary.
18367 hardcode_minus_L=$hardcode_minus_L
18369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18370 # the resulting binary.
18371 hardcode_shlibpath_var=$hardcode_shlibpath_var
18373 # Set to yes if building a shared library automatically hardcodes DIR into the library
18374 # and all subsequent libraries and executables linked against it.
18375 hardcode_automatic=$hardcode_automatic
18377 # Variables whose values should be saved in libtool wrapper scripts and
18378 # restored at relink time.
18379 variables_saved_for_relink="$variables_saved_for_relink"
18381 # Whether libtool must link a program against all its dependency libraries.
18382 link_all_deplibs=$link_all_deplibs
18384 # Compile-time system search path for libraries
18385 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18387 # Run-time system search path for libraries
18388 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18390 # Fix the shell variable \$srcfile for the compiler.
18391 fix_srcfile_path="$fix_srcfile_path"
18393 # Set to yes if exported symbols are required.
18394 always_export_symbols=$always_export_symbols
18396 # The commands to list exported symbols.
18397 export_symbols_cmds=$lt_export_symbols_cmds
18399 # The commands to extract the exported symbol list from a shared archive.
18400 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18402 # Symbols that should not be listed in the preloaded symbols.
18403 exclude_expsyms=$lt_exclude_expsyms
18405 # Symbols that must always be exported.
18406 include_expsyms=$lt_include_expsyms
18408 # ### END LIBTOOL CONFIG
18415 cat <<\EOF >> "$cfgfile"
18417 # AIX sometimes has problems with the GCC collect2 program. For some
18418 # reason, if we set the COLLECT_NAMES environment variable, the problems
18419 # vanish in a puff of smoke.
18420 if test "X${COLLECT_NAMES+set}" != Xset; then
18422 export COLLECT_NAMES
18428 # We use sed instead of cat because bash on DJGPP gets confused if
18429 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18430 # text mode, it properly converts lines to CR/LF. This bash problem
18431 # is reportedly fixed, but why not run on old versions too?
18432 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18434 mv -f "$cfgfile" "$ofile" || \
18435 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18439 # If there is no Makefile yet, we rely on a make rule to execute
18440 # `config.status
--recheck' to rerun these tests and create the
18441 # libtool script then.
18442 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18443 if test -f "$ltmain_in"; then
18444 test -f Makefile && make "$ltmain"
18450 ac_cpp='$CPP $CPPFLAGS'
18451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18452 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18458 # Check whether --with-tags was given.
18459 if test "${with_tags+set}" = set; then
18460 withval=$with_tags; tagnames="$withval"
18464 if test -f "$ltmain" && test -n "$tagnames"; then
18465 if test ! -f "${ofile}"; then
18466 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18467 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18470 if test -z "$LTCC"; then
18471 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18472 if test -z "$LTCC"; then
18473 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18474 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18476 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18477 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18480 if test -z "$LTCFLAGS"; then
18481 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18484 # Extract list of available tagged configurations in $ofile.
18485 # Note that this assumes the entire list is on one line.
18486 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18489 for tagname in $tagnames; do
18491 # Check whether tagname contains only valid characters
18492 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18494 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18495 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18496 { (exit 1); exit 1; }; }
18500 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18502 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18503 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18504 { (exit 1); exit 1; }; }
18507 # Update the list of available tags.
18508 if test -n "$tagname"; then
18509 echo appending configuration tag \"$tagname\" to $ofile
18513 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18514 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18515 (test "X$CXX" != "Xg++"))) ; then
18517 ac_cpp='$CXXCPP $CPPFLAGS'
18518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18525 archive_cmds_need_lc_CXX=no
18526 allow_undefined_flag_CXX=
18527 always_export_symbols_CXX=no
18528 archive_expsym_cmds_CXX=
18529 export_dynamic_flag_spec_CXX=
18530 hardcode_direct_CXX=no
18531 hardcode_libdir_flag_spec_CXX=
18532 hardcode_libdir_flag_spec_ld_CXX=
18533 hardcode_libdir_separator_CXX=
18534 hardcode_minus_L_CXX=no
18535 hardcode_shlibpath_var_CXX=unsupported
18536 hardcode_automatic_CXX=no
18538 module_expsym_cmds_CXX=
18539 link_all_deplibs_CXX=unknown
18540 old_archive_cmds_CXX=$old_archive_cmds
18541 no_undefined_flag_CXX=
18542 whole_archive_flag_spec_CXX=
18543 enable_shared_with_static_runtimes_CXX=no
18545 # Dependencies to place before and after the object being linked:
18546 predep_objects_CXX=
18547 postdep_objects_CXX=
18550 compiler_lib_search_path_CXX=
18552 # Source file extension for C++ test sources.
18555 # Object file extension for compiled C++ test sources.
18559 # Code to be used in simple compile tests
18560 lt_simple_compile_test_code="int some_variable = 0;\n"
18562 # Code to be used in simple link tests
18563 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18565 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18567 # If no C compiler was specified, use CC.
18570 # If no C compiler flags were specified, use CFLAGS.
18571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18573 # Allow CC to be a program name with arguments.
18577 # save warnings/boilerplate of simple test code
18578 ac_outfile=conftest.$ac_objext
18579 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581 _lt_compiler_boilerplate=`cat conftest.err
`
18584 ac_outfile=conftest.$ac_objext
18585 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587 _lt_linker_boilerplate=`cat conftest.err
`
18591 # Allow CC to be a program name with arguments.
18596 lt_save_with_gnu_ld=$with_gnu_ld
18597 lt_save_path_LD=$lt_cv_path_LD
18598 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18599 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18601 $as_unset lt_cv_prog_gnu_ld
18603 if test -n "${lt_cv_path_LDCXX+set}"; then
18604 lt_cv_path_LD=$lt_cv_path_LDCXX
18606 $as_unset lt_cv_path_LD
18608 test -z "${LDCXX+set}" || LD=$LDCXX
18612 for cc_temp in $compiler""; do
18614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18620 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18623 # We don't want -fno-exception wen compiling C++ code, so set the
18624 # no_builtin_flag separately
18625 if test "$GXX" = yes; then
18626 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18628 lt_prog_compiler_no_builtin_flag_CXX=
18631 if test "$GXX" = yes; then
18632 # Set up default GNU C++ configuration
18635 # Check whether --with-gnu-ld was given.
18636 if test "${with_gnu_ld+set}" = set; then
18637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18643 if test "$GCC" = yes; then
18644 # Check if gcc -print-prog-name=ld gives a path.
18645 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18646 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18649 # gcc leaves a trailing carriage return which upsets mingw
18650 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18652 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18655 # Accept absolute paths.
18657 re_direlt='/[^/][^/]*/\.\./'
18658 # Canonicalize the pathname of ld
18659 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18660 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18661 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18663 test -z "$LD" && LD="$ac_prog"
18666 # If it fails, then pretend we aren't using GCC.
18670 # If it is relative, then search for the first ld in PATH.
18671 with_gnu_ld=unknown
18674 elif test "$with_gnu_ld" = yes; then
18675 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18676 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18678 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18679 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18681 if test "${lt_cv_path_LD+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 if test -z "$LD"; then
18685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18686 for ac_dir in $PATH; do
18688 test -z "$ac_dir" && ac_dir=.
18689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18690 lt_cv_path_LD="$ac_dir/$ac_prog"
18691 # Check to see if the program is GNU ld. I'd rather use --version,
18692 # but apparently some variants of GNU ld only accept -v.
18693 # Break only if it was the GNU/non-GNU ld that we prefer.
18694 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18695 *GNU* | *'with BFD'*)
18696 test "$with_gnu_ld" != no && break
18699 test "$with_gnu_ld" != yes && break
18706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18710 LD="$lt_cv_path_LD"
18711 if test -n "$LD"; then
18712 { echo "$as_me:$LINENO: result: $LD" >&5
18713 echo "${ECHO_T}$LD" >&6; }
18715 { echo "$as_me:$LINENO: result: no" >&5
18716 echo "${ECHO_T}no" >&6; }
18718 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18719 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18720 { (exit 1); exit 1; }; }
18721 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18722 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18723 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18727 case `$LD -v 2>&1 </dev
/null
` in
18728 *GNU* | *'with BFD'*)
18729 lt_cv_prog_gnu_ld=yes
18732 lt_cv_prog_gnu_ld=no
18736 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18737 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18738 with_gnu_ld=$lt_cv_prog_gnu_ld
18742 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18743 # archiving commands below assume that GNU ld is being used.
18744 if test "$with_gnu_ld" = yes; then
18745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18746 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'
18748 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18751 # If archive_cmds runs LD, not CC, wlarc should be empty
18752 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18753 # investigate it a little bit more. (MM)
18756 # ancient GNU ld didn't support --whole-archive et. al.
18757 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18758 grep 'no-whole-archive' > /dev/null; then
18759 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18761 whole_archive_flag_spec_CXX=
18767 # A generic and very simple default shared library creation
18768 # command for GNU C++ for the case where it uses the native
18769 # linker, instead of GNU ld. If possible, this setting should
18770 # overridden to take advantage of the native linker features on
18771 # the platform it is being used on.
18772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18775 # Commands to make compiler produce verbose output that lists
18776 # what "hidden" libraries, object files and flags are used when
18777 # linking a shared library.
18778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18786 # PORTME: fill in a description of your system's C++ link characteristics
18787 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18788 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18792 # FIXME: insert proper C++ library support
18796 if test "$host_cpu" = ia64; then
18797 # On IA64, the linker does run time linking by default, so we don't
18798 # have to do anything special.
18799 aix_use_runtimelinking=no
18800 exp_sym_flag='-Bexport'
18803 aix_use_runtimelinking=no
18805 # Test if we are trying to use run time linking or normal
18806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18807 # need to do runtime linking.
18808 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18809 for ld_flag in $LDFLAGS; do
18812 aix_use_runtimelinking=yes
18820 exp_sym_flag='-bexport'
18821 no_entry_flag='-bnoentry'
18824 # When large executables or shared objects are built, AIX ld can
18825 # have problems creating the table of contents. If linking a library
18826 # or program results in "error TOC overflow" add -mminimal-toc to
18827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18830 archive_cmds_CXX=''
18831 hardcode_direct_CXX=yes
18832 hardcode_libdir_separator_CXX=':'
18833 link_all_deplibs_CXX=yes
18835 if test "$GXX" = yes; then
18836 case $host_os in aix4.[012]|aix4.[012].*)
18837 # We only want to do this on AIX 4.2 and lower, the check
18838 # below for broken collect2 doesn't work under 4.3+
18839 collect2name=`${CC} -print-prog-name=collect2
`
18840 if test -f "$collect2name" && \
18841 strings "$collect2name" | grep resolve_lib_name >/dev/null
18843 # We have reworked collect2
18844 hardcode_direct_CXX=yes
18846 # We have old collect2
18847 hardcode_direct_CXX=unsupported
18848 # It fails to find uninstalled libraries when the uninstalled
18849 # path is not listed in the libpath. Setting hardcode_minus_L
18850 # to unsupported forces relinking
18851 hardcode_minus_L_CXX=yes
18852 hardcode_libdir_flag_spec_CXX='-L$libdir'
18853 hardcode_libdir_separator_CXX=
18857 shared_flag='-shared'
18858 if test "$aix_use_runtimelinking" = yes; then
18859 shared_flag="$shared_flag "'${wl}-G'
18863 if test "$host_cpu" = ia64; then
18864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18865 # chokes on -Wl,-G. The following line is correct:
18868 if test "$aix_use_runtimelinking" = yes; then
18869 shared_flag='${wl}-G'
18871 shared_flag='${wl}-bM:SRE'
18876 # It seems that -bexpall does not export symbols beginning with
18877 # underscore (_), so it is better to generate a list of symbols to export.
18878 always_export_symbols_CXX=yes
18879 if test "$aix_use_runtimelinking" = yes; then
18880 # Warning - without using the other runtime loading flags (-brtl),
18881 # -berok will link without error, but may produce a broken library.
18882 allow_undefined_flag_CXX='-berok'
18883 # Determine the default libpath from the value encoded in an empty executable.
18884 cat >conftest.$ac_ext <<_ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18903 *) ac_try_echo
=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1
>conftest.err
18910 cat conftest.err
>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18926 *) ac_try_echo
=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18934 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18936 # Check for a 64-bit object if we didn't find anything.
18937 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; }
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.
$ac_ext >&5
18946 rm -f core conftest.err conftest.
$ac_objext \
18947 conftest
$ac_exeext conftest.
$ac_ext
18948 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18950 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18952 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"
18954 if test "$host_cpu" = ia64
; then
18955 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18956 allow_undefined_flag_CXX
="-z nodefs"
18957 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"
18959 # Determine the default libpath from the value encoded in an empty executable.
18960 cat >conftest.
$ac_ext <<_ACEOF
18963 cat confdefs.h
>>conftest.
$ac_ext
18964 cat >>conftest.
$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18975 rm -f conftest.
$ac_objext conftest
$ac_exeext
18976 if { (ac_try
="$ac_link"
18977 case "(($ac_try" in
18978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_link") 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18990 { (case "(($ac_try" in
18991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18992 *) ac_try_echo
=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_try") 2>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; } &&
18999 { ac_try
='test -s conftest$ac_exeext'
19000 { (case "(($ac_try" in
19001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19002 *) ac_try_echo=$ac_try;;
19004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005 (eval "$ac_try") 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19010 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19012 # Check for a 64-bit object if we didn't find anything.
19013 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; }
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19026 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19027 # Warning - without using the other run time loading flags,
19028 # -berok will link without error, but may produce a broken library.
19029 no_undefined_flag_CXX=' ${wl}-bernotok'
19030 allow_undefined_flag_CXX=' ${wl}-berok'
19031 # Exported symbols can be pulled into shared objects from archives
19032 whole_archive_flag_spec_CXX='$convenience'
19033 archive_cmds_need_lc_CXX=yes
19034 # This is similar to how AIX traditionally builds its shared libraries.
19035 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'
19041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042 allow_undefined_flag_CXX=unsupported
19043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19044 # support --undefined. This deserves some investigation. FIXME
19045 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19052 case $cc_basename in
19054 # FIXME: insert proper C++ library support
19060 cygwin* | mingw* | pw32*)
19061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19062 # as there is no search path for DLLs.
19063 hardcode_libdir_flag_spec_CXX='-L$libdir'
19064 allow_undefined_flag_CXX=unsupported
19065 always_export_symbols_CXX=no
19066 enable_shared_with_static_runtimes_CXX=yes
19068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19069 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'
19070 # If the export-symbols file already is a .def file (1st line
19071 # is EXPORTS), use it as is; otherwise, prepend...
19072 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
19073 cp $export_symbols $output_objdir/$soname.def;
19075 echo EXPORTS > $output_objdir/$soname.def;
19076 cat $export_symbols >> $output_objdir/$soname.def;
19078 $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'
19083 darwin* | rhapsody*)
19085 rhapsody* | darwin1.[012])
19086 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19089 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19090 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19092 case ${MACOSX_DEPLOYMENT_TARGET} in
19094 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19097 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19103 archive_cmds_need_lc_CXX=no
19104 hardcode_direct_CXX=no
19105 hardcode_automatic_CXX=yes
19106 hardcode_shlibpath_var_CXX=unsupported
19107 whole_archive_flag_spec_CXX=''
19108 link_all_deplibs_CXX=yes
19110 if test "$GXX" = yes ; then
19111 lt_int_apple_cc_single_mod=no
19112 output_verbose_link_cmd='echo'
19113 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19114 lt_int_apple_cc_single_mod=yes
19116 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19117 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19119 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'
19121 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19123 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19124 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}'
19126 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}'
19128 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}'
19130 case $cc_basename in
19132 output_verbose_link_cmd='echo'
19133 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'
19134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19136 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}'
19137 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}'
19147 case $cc_basename in
19149 # FIXME: insert proper C++ library support
19153 # Green Hills C++ Compiler
19154 # FIXME: insert proper C++ library support
19158 # FIXME: insert proper C++ library support
19164 # C++ shared libraries reported to be fairly broken before switch to ELF
19168 archive_cmds_need_lc_CXX=no
19170 freebsd* | kfreebsd*-gnu | dragonfly*)
19171 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19179 hardcode_libdir_separator_CXX=:
19180 export_dynamic_flag_spec_CXX='${wl}-E'
19181 hardcode_direct_CXX=yes
19182 hardcode_minus_L_CXX=yes # Not in the search PATH,
19183 # but as the default
19184 # location of the library.
19186 case $cc_basename in
19188 # FIXME: insert proper C++ library support
19192 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'
19193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19197 # There doesn't appear to be a way to prevent this compiler from
19198 # explicitly linking system object files so we need to strip them
19199 # from the output so that they don't get included in the library
19201 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'
19204 if test "$GXX" = yes; then
19205 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'
19207 # FIXME: insert proper C++ library support
19214 if test $with_gnu_ld = no; then
19215 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19216 hardcode_libdir_separator_CXX=:
19220 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19223 export_dynamic_flag_spec_CXX='${wl}-E'
19229 hardcode_direct_CXX=no
19230 hardcode_shlibpath_var_CXX=no
19233 hardcode_direct_CXX=yes
19234 hardcode_minus_L_CXX=yes # Not in the search PATH,
19235 # but as the default
19236 # location of the library.
19240 case $cc_basename in
19242 # FIXME: insert proper C++ library support
19248 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19254 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19257 # Commands to make compiler produce verbose output that lists
19258 # what "hidden" libraries, object files and flags are used when
19259 # linking a shared library.
19261 # There doesn't appear to be a way to prevent this compiler from
19262 # explicitly linking system object files so we need to strip them
19263 # from the output so that they don't get included in the library
19265 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'
19268 if test "$GXX" = yes; then
19269 if test $with_gnu_ld = no; then
19272 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19275 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19278 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'
19283 # FIXME: insert proper C++ library support
19290 hardcode_direct_CXX=no
19291 hardcode_shlibpath_var_CXX=no
19292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19293 export_dynamic_flag_spec_CXX='${wl}-E'
19294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19295 # Instead, shared libraries are loaded at an image base (0x10000000 by
19296 # default) and relocated if they conflict, which is a slow very memory
19297 # consuming and fragmenting process. To avoid this, we pick a random,
19298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19300 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'
19301 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'
19304 case $cc_basename in
19307 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'
19309 # Archives containing C++ object files must be created using
19310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19311 # necessary to make sure instantiated templates are included
19313 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19316 if test "$GXX" = yes; then
19317 if test "$with_gnu_ld" = no; then
19318 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'
19320 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'
19323 link_all_deplibs_CXX=yes
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 hardcode_libdir_separator_CXX=:
19330 case $cc_basename in
19332 # Kuck and Associates, Inc. (KAI) C++ Compiler
19334 # KCC will only create a shared library if the output file
19335 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19336 # to its proper name (with version) after linking.
19337 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'
19338 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'
19339 # Commands to make compiler produce verbose output that lists
19340 # what "hidden" libraries, object files and flags are used when
19341 # linking a shared library.
19343 # There doesn't appear to be a way to prevent this compiler from
19344 # explicitly linking system object files so we need to strip them
19345 # from the output so that they don't get included in the library
19347 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'
19349 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19350 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19352 # Archives containing C++ object files must be created using
19353 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19354 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19359 # version 8.0 and above of icpc choke on multiply defined symbols
19360 # if we add $predep_objects and $postdep_objects, however 7.1 and
19361 # earlier do not add the objects themselves.
19362 case `$CC -V 2>&1` in
19364 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19365 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'
19367 *) # Version 8.0 or newer
19370 ia64
*) tmp_idyn
=' -i_dynamic';;
19372 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19373 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'
19376 archive_cmds_need_lc_CXX
=no
19377 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19378 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19379 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19382 # Portland Group C++ compiler
19383 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19384 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'
19386 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19387 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19388 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'
19392 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19393 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'
19395 runpath_var
=LD_RUN_PATH
19396 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19397 hardcode_libdir_separator_CXX
=:
19399 # Commands to make compiler produce verbose output that lists
19400 # what "hidden" libraries, object files and flags are used when
19401 # linking a shared library.
19403 # There doesn't appear to be a way to prevent this compiler from
19404 # explicitly linking system object files so we need to strip them
19405 # from the output so that they don't get included in the library
19407 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'
19412 # FIXME: insert proper C++ library support
19416 # FIXME: insert proper C++ library support
19420 case $cc_basename in
19422 # FIXME: insert proper C++ library support
19426 # FIXME: insert proper C++ library support
19432 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19433 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19435 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19436 hardcode_direct_CXX
=yes
19437 hardcode_shlibpath_var_CXX
=no
19439 # Workaround some broken pre-1.5 toolchains
19440 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19443 # C++ shared libraries are fairly broken
19447 hardcode_direct_CXX
=yes
19448 hardcode_shlibpath_var_CXX
=no
19449 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19450 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19452 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19453 export_dynamic_flag_spec_CXX
='${wl}-E'
19454 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19456 output_verbose_link_cmd
='echo'
19459 case $cc_basename in
19461 # Kuck and Associates, Inc. (KAI) C++ Compiler
19463 # KCC will only create a shared library if the output file
19464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19465 # to its proper name (with version) after linking.
19466 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'
19468 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19469 hardcode_libdir_separator_CXX
=:
19471 # Archives containing C++ object files must be created using
19472 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19473 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19477 # Rational C++ 2.4.1
19478 # FIXME: insert proper C++ library support
19482 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19483 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'
19485 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19486 hardcode_libdir_separator_CXX
=:
19488 # Commands to make compiler produce verbose output that lists
19489 # what "hidden" libraries, object files and flags are used when
19490 # linking a shared library.
19492 # There doesn't appear to be a way to prevent this compiler from
19493 # explicitly linking system object files so we need to strip them
19494 # from the output so that they don't get included in the library
19496 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'
19499 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19500 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19501 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'
19503 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19504 hardcode_libdir_separator_CXX
=:
19506 # Commands to make compiler produce verbose output that lists
19507 # what "hidden" libraries, object files and flags are used when
19508 # linking a shared library.
19509 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19512 # FIXME: insert proper C++ library support
19519 case $cc_basename in
19521 # Kuck and Associates, Inc. (KAI) C++ Compiler
19523 # KCC will only create a shared library if the output file
19524 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19525 # to its proper name (with version) after linking.
19526 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'
19528 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19529 hardcode_libdir_separator_CXX
=:
19531 # Archives containing C++ object files must be created using
19532 # the KAI C++ compiler.
19533 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19536 # Rational C++ 2.4.1
19537 # FIXME: insert proper C++ library support
19541 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19542 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'
19543 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19544 echo "-hidden">> $lib.exp~
19545 $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~
19548 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19549 hardcode_libdir_separator_CXX
=:
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19555 # There doesn't appear to be a way to prevent this compiler from
19556 # explicitly linking system object files so we need to strip them
19557 # from the output so that they don't get included in the library
19559 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'
19562 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19563 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19564 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'
19566 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19567 hardcode_libdir_separator_CXX
=:
19569 # Commands to make compiler produce verbose output that lists
19570 # what "hidden" libraries, object files and flags are used when
19571 # linking a shared library.
19572 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19575 # FIXME: insert proper C++ library support
19582 # FIXME: insert proper C++ library support
19586 case $cc_basename in
19589 # FIXME: insert proper C++ library support
19594 # FIXME: insert proper C++ library support
19598 # FIXME: insert proper C++ library support
19604 case $cc_basename in
19606 # Sun C++ 4.2, 5.x and Centerline C++
19607 archive_cmds_need_lc_CXX
=yes
19608 no_undefined_flag_CXX
=' -zdefs'
19609 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $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'
19613 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19614 hardcode_shlibpath_var_CXX
=no
19616 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19618 # The C++ compiler is used as linker so we must use $wl
19619 # flag to pass the commands to the underlying system
19620 # linker. We must also pass each convience library through
19621 # to the system linker between allextract/defaultextract.
19622 # The C++ compiler will combine linker options so we
19623 # cannot just pass the convience library names through
19625 # Supported since Solaris 2.6 (maybe 2.5.1?)
19626 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'
19629 link_all_deplibs_CXX
=yes
19631 output_verbose_link_cmd
='echo'
19633 # Archives containing C++ object files must be created using
19634 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19635 # necessary to make sure instantiated templates are included
19637 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19640 # Green Hills C++ Compiler
19641 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19643 # The C++ compiler must be used to create the archive.
19644 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19647 # GNU C++ compiler with Solaris linker
19648 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19649 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19650 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19651 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19652 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19655 # Commands to make compiler produce verbose output that lists
19656 # what "hidden" libraries, object files and flags are used when
19657 # linking a shared library.
19658 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19660 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19662 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19663 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19664 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19666 # Commands to make compiler produce verbose output that lists
19667 # what "hidden" libraries, object files and flags are used when
19668 # linking a shared library.
19669 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19672 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19677 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19678 no_undefined_flag_CXX
='${wl}-z,text'
19679 archive_cmds_need_lc_CXX
=no
19680 hardcode_shlibpath_var_CXX
=no
19681 runpath_var
='LD_RUN_PATH'
19683 case $cc_basename in
19685 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19694 sysv5
* | sco3.2v5
* | sco5v6
*)
19695 # Note: We can NOT use -z defs as we might desire, because we do not
19696 # link with -lc, and that would cause any symbols used from libc to
19697 # always be unresolved, which means just about no library would
19698 # ever link correctly. If we're not using GNU ld we use -z text
19699 # though, which does catch some bad symbols but isn't as heavy-handed
19701 # For security reasons, it is highly recommended that you always
19702 # use absolute paths for naming shared libraries, and exclude the
19703 # DT_RUNPATH tag from executables and libraries. But doing so
19704 # requires that you compile everything twice, which is a pain.
19705 # So that behaviour is only enabled if SCOABSPATH is set to a
19706 # non-empty value in the environment. Most likely only useful for
19707 # creating official distributions of packages.
19708 # This is a hack until libtool officially supports absolute path
19709 # names for shared libraries.
19710 no_undefined_flag_CXX
='${wl}-z,text'
19711 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19712 archive_cmds_need_lc_CXX
=no
19713 hardcode_shlibpath_var_CXX
=no
19714 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19715 hardcode_libdir_separator_CXX
=':'
19716 link_all_deplibs_CXX
=yes
19717 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19718 runpath_var
='LD_RUN_PATH'
19720 case $cc_basename in
19722 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19726 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19732 case $cc_basename in
19734 # NonStop-UX NCC 3.20
19735 # FIXME: insert proper C++ library support
19739 # FIXME: insert proper C++ library support
19745 # FIXME: insert proper C++ library support
19749 # FIXME: insert proper C++ library support
19753 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19754 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19755 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19761 cat > conftest.
$ac_ext <<EOF
19765 Foo (void) { a = 0; }
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; then
19776 # Parse the compiler output and extract the necessary
19777 # objects, libraries and library flags.
19779 # Sentinel used to keep track of whether or not we are before
19780 # the conftest object file.
19781 pre_test_object_deps_done
=no
19783 # The `*' in the case matches for architectures that use `case' in
19784 # $output_verbose_cmd can trigger glob expansion during the loop
19785 # eval without this substitution.
19786 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19788 for p
in `eval $output_verbose_link_cmd`; do
19792 # Some compilers place space between "-{L,R}" and the path.
19793 # Remove the space.
19794 if test $p = "-L" \
19795 ||
test $p = "-R"; then
19802 if test "$pre_test_object_deps_done" = no
; then
19805 # Internal compiler library paths should come after those
19806 # provided the user. The postdeps already come after the
19807 # user supplied libs so there is no need to process them.
19808 if test -z "$compiler_lib_search_path_CXX"; then
19809 compiler_lib_search_path_CXX
="${prev}${p}"
19811 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19814 # The "-l" case would never come before the object being
19815 # linked, so don't bother handling this case.
19818 if test -z "$postdeps_CXX"; then
19819 postdeps_CXX
="${prev}${p}"
19821 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19827 # This assumes that the test object file only shows up
19828 # once in the compiler output.
19829 if test "$p" = "conftest.$objext"; then
19830 pre_test_object_deps_done
=yes
19834 if test "$pre_test_object_deps_done" = no
; then
19835 if test -z "$predep_objects_CXX"; then
19836 predep_objects_CXX
="$p"
19838 predep_objects_CXX
="$predep_objects_CXX $p"
19841 if test -z "$postdep_objects_CXX"; then
19842 postdep_objects_CXX
="$p"
19844 postdep_objects_CXX
="$postdep_objects_CXX $p"
19849 *) ;; # Ignore the rest.
19857 echo "libtool.m4: error: problem compiling CXX test program"
19860 $rm -f confest.
$objext
19862 # PORTME: override above test on systems where it is broken
19865 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19866 # hack all around it, let's just trust "g++" to DTRT.
19867 predep_objects_CXX
=
19868 postdep_objects_CXX
=
19873 case $cc_basename in
19875 # Adding this requires a known-good setup of shared libraries for
19876 # Sun compiler versions before 5.6, else PIC objects from an old
19877 # archive will be linked into the output, leading to subtle bugs.
19878 postdeps_CXX
='-lCstd -lCrun'
19885 case " $postdeps_CXX " in
19886 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19889 lt_prog_compiler_wl_CXX
=
19890 lt_prog_compiler_pic_CXX
=
19891 lt_prog_compiler_static_CXX
=
19893 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19896 # C++ specific cases for pic, static, wl, etc.
19897 if test "$GXX" = yes; then
19898 lt_prog_compiler_wl_CXX
='-Wl,'
19899 lt_prog_compiler_static_CXX
='-static'
19903 # All AIX code is PIC.
19904 if test "$host_cpu" = ia64
; then
19905 # AIX 5 now supports IA64 processor
19906 lt_prog_compiler_static_CXX
='-Bstatic'
19910 # FIXME: we need at least 68020 code to build shared libraries, but
19911 # adding the `-m68020' flag to GCC prevents building anything better,
19913 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19915 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19916 # PIC is the default for these OSes.
19918 mingw
* | os2
* | pw32
*)
19919 # This hack is so that the source file can tell whether it is being
19920 # built for inclusion in a dll (and should export symbols for example).
19921 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19923 darwin
* | rhapsody
*)
19924 # PIC is the default on this platform
19925 # Common symbols not allowed in MH_DYLIB files
19926 lt_prog_compiler_pic_CXX
='-fno-common'
19929 # DJGPP does not support shared libraries at all
19930 lt_prog_compiler_pic_CXX
=
19933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19934 # Instead, we relocate shared libraries at runtime.
19937 if test -d /usr
/nec
; then
19938 lt_prog_compiler_pic_CXX
=-Kconform_pic
19942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19943 # not for PA HP-UX.
19948 lt_prog_compiler_pic_CXX
='-fPIC'
19953 lt_prog_compiler_pic_CXX
='-fPIC'
19959 # All AIX code is PIC.
19960 if test "$host_cpu" = ia64
; then
19961 # AIX 5 now supports IA64 processor
19962 lt_prog_compiler_static_CXX
='-Bstatic'
19964 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19968 case $cc_basename in
19970 # Green Hills C++ Compiler
19971 # _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"
19976 # PIC is the default on this platform
19977 # Common symbols not allowed in MH_DYLIB files
19978 case $cc_basename in
19980 lt_prog_compiler_pic_CXX
='-qnocommon'
19981 lt_prog_compiler_wl_CXX
='-Wl,'
19986 case $cc_basename in
19988 lt_prog_compiler_pic_CXX
='-KPIC'
19991 # Green Hills C++ Compiler
19992 lt_prog_compiler_pic_CXX
='-pic'
19998 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19999 # FreeBSD uses GNU C++
20001 hpux9
* | hpux10
* | hpux11
*)
20002 case $cc_basename in
20004 lt_prog_compiler_wl_CXX
='-Wl,'
20005 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20006 if test "$host_cpu" != ia64
; then
20007 lt_prog_compiler_pic_CXX
='+Z'
20011 lt_prog_compiler_wl_CXX
='-Wl,'
20012 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20018 lt_prog_compiler_pic_CXX
='+Z'
20027 # This is c89, which is MS Visual C++ (no shared libs)
20028 # Anyone wants to do a port?
20030 irix5
* | irix6
* | nonstopux
*)
20031 case $cc_basename in
20033 lt_prog_compiler_wl_CXX
='-Wl,'
20034 lt_prog_compiler_static_CXX
='-non_shared'
20035 # CC pic flag -KPIC is the default.
20042 case $cc_basename in
20045 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20046 lt_prog_compiler_pic_CXX
='-fPIC'
20050 lt_prog_compiler_wl_CXX
='-Wl,'
20051 lt_prog_compiler_pic_CXX
='-KPIC'
20052 lt_prog_compiler_static_CXX
='-static'
20055 # Portland Group C++ compiler.
20056 lt_prog_compiler_wl_CXX
='-Wl,'
20057 lt_prog_compiler_pic_CXX
='-fpic'
20058 lt_prog_compiler_static_CXX
='-Bstatic'
20062 # Make sure the PIC flag is empty. It appears that all Alpha
20063 # Linux and Compaq Tru64 Unix objects are PIC.
20064 lt_prog_compiler_pic_CXX
=
20065 lt_prog_compiler_static_CXX
='-non_shared'
20076 case $cc_basename in
20078 lt_prog_compiler_pic_CXX
='-W c,exportall'
20086 osf3
* | osf4
* | osf5
*)
20087 case $cc_basename in
20089 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20092 # Rational C++ 2.4.1
20093 lt_prog_compiler_pic_CXX
='-pic'
20096 # Digital/Compaq C++
20097 lt_prog_compiler_wl_CXX
='-Wl,'
20098 # Make sure the PIC flag is empty. It appears that all Alpha
20099 # Linux and Compaq Tru64 Unix objects are PIC.
20100 lt_prog_compiler_pic_CXX
=
20101 lt_prog_compiler_static_CXX
='-non_shared'
20110 case $cc_basename in
20112 # Sun C++ 4.2, 5.x and Centerline C++
20113 lt_prog_compiler_pic_CXX
='-KPIC'
20114 lt_prog_compiler_static_CXX
='-Bstatic'
20115 lt_prog_compiler_wl_CXX
='-Qoption ld '
20118 # Green Hills C++ Compiler
20119 lt_prog_compiler_pic_CXX
='-PIC'
20126 case $cc_basename in
20129 lt_prog_compiler_pic_CXX
='-pic'
20130 lt_prog_compiler_static_CXX
='-Bstatic'
20134 lt_prog_compiler_pic_CXX
='-pic'
20141 case $cc_basename in
20143 # NonStop-UX NCC 3.20
20144 lt_prog_compiler_pic_CXX
='-KPIC'
20150 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20151 case $cc_basename in
20153 lt_prog_compiler_wl_CXX
='-Wl,'
20154 lt_prog_compiler_pic_CXX
='-KPIC'
20155 lt_prog_compiler_static_CXX
='-Bstatic'
20162 lt_prog_compiler_can_build_shared_CXX
=no
20167 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20168 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20171 # Check to make sure the PIC flag actually works.
20173 if test -n "$lt_prog_compiler_pic_CXX"; then
20175 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20176 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20177 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 lt_prog_compiler_pic_works_CXX
=no
20181 ac_outfile
=conftest.
$ac_objext
20182 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20183 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20184 # Insert the option either (1) after the last *FLAGS variable, or
20185 # (2) before a word containing "conftest.", or (3) at the end.
20186 # Note that $ac_compile itself does not contain backslashes and begins
20187 # with a dollar sign (not a hyphen), so the echo should work correctly.
20188 # The option is referenced via a variable to avoid confusing sed.
20189 lt_compile
=`echo "$ac_compile" | $SED \
20190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20192 -e 's:$: $lt_compiler_flag:'`
20193 (eval echo "\"\$as_me:20193: $lt_compile\"" >&5)
20194 (eval "$lt_compile" 2>conftest.err
)
20196 cat conftest.err
>&5
20197 echo "$as_me:20197: \$? = $ac_status" >&5
20198 if (exit $ac_status) && test -s "$ac_outfile"; then
20199 # The compiler can only warn and ignore the option if not recognized
20200 # So say no if there are warnings other than the usual output.
20201 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20202 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20203 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20204 lt_prog_compiler_pic_works_CXX
=yes
20210 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20211 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20213 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20214 case $lt_prog_compiler_pic_CXX in
20216 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20219 lt_prog_compiler_pic_CXX
=
20220 lt_prog_compiler_can_build_shared_CXX
=no
20225 # For platforms which do not support PIC, -DPIC is meaningless:
20227 lt_prog_compiler_pic_CXX
=
20230 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20235 # Check to make sure the static flag actually works.
20237 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20238 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20239 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20240 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 lt_prog_compiler_static_works_CXX
=no
20244 save_LDFLAGS
="$LDFLAGS"
20245 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20246 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20247 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20248 # The linker can only warn and ignore the option if not recognized
20249 # So say no if there are warnings
20250 if test -s conftest.err
; then
20251 # Append any errors to the config.log.
20252 cat conftest.err
1>&5
20253 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20254 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20255 if diff conftest.exp conftest.er2
>/dev
/null
; then
20256 lt_prog_compiler_static_works_CXX
=yes
20259 lt_prog_compiler_static_works_CXX
=yes
20263 LDFLAGS
="$save_LDFLAGS"
20266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20267 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20269 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20272 lt_prog_compiler_static_CXX
=
20276 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20278 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 lt_cv_prog_compiler_c_o_CXX
=no
20282 $rm -r conftest
2>/dev
/null
20286 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20288 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20289 # Insert the option either (1) after the last *FLAGS variable, or
20290 # (2) before a word containing "conftest.", or (3) at the end.
20291 # Note that $ac_compile itself does not contain backslashes and begins
20292 # with a dollar sign (not a hyphen), so the echo should work correctly.
20293 lt_compile
=`echo "$ac_compile" | $SED \
20294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20296 -e 's:$: $lt_compiler_flag:'`
20297 (eval echo "\"\$as_me:20297: $lt_compile\"" >&5)
20298 (eval "$lt_compile" 2>out
/conftest.err
)
20300 cat out
/conftest.err
>&5
20301 echo "$as_me:20301: \$? = $ac_status" >&5
20302 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20304 # The compiler can only warn and ignore the option if not recognized
20305 # So say no if there are warnings
20306 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20307 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20308 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20309 lt_cv_prog_compiler_c_o_CXX
=yes
20314 # SGI C++ compiler will create directory out/ii_files/ for
20315 # template instantiation
20316 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20317 $rm out
/* && rmdir out
20323 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20327 hard_links
="nottested"
20328 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20329 # do not overwrite the value of need_locks provided by the user
20330 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20334 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20336 ln conftest.a conftest.b
2>&5 || hard_links
=no
20337 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20338 { echo "$as_me:$LINENO: result: $hard_links" >&5
20339 echo "${ECHO_T}$hard_links" >&6; }
20340 if test "$hard_links" = no
; then
20341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20349 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20352 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20355 # If we're using GNU nm, then we don't want the "-C" option.
20356 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20357 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20358 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'
20360 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'
20364 export_symbols_cmds_CXX
="$ltdll_cmds"
20367 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'
20370 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20374 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20375 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20376 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20379 # Do we need to explicitly link libc?
20381 case "x$archive_cmds_need_lc_CXX" in
20383 # Assume -lc should be added
20384 archive_cmds_need_lc_CXX
=yes
20386 if test "$enable_shared" = yes && test "$GCC" = yes; then
20387 case $archive_cmds_CXX in
20389 # FIXME: we may have to deal with multi-command sequences.
20392 # Test whether the compiler implicitly links with -lc since on some
20393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20394 # to ld, don't add -lc before -lgcc.
20395 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20396 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20398 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } 2>conftest.err
; then
20407 libobjs
=conftest.
$ac_objext
20409 wl
=$lt_prog_compiler_wl_CXX
20410 pic_flag
=$lt_prog_compiler_pic_CXX
20416 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20417 allow_undefined_flag_CXX
=
20418 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20419 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }
20424 archive_cmds_need_lc_CXX
=no
20426 archive_cmds_need_lc_CXX
=yes
20428 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20430 cat conftest.err
1>&5
20433 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20434 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20441 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20442 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20443 library_names_spec
=
20444 libname_spec
='lib$name'
20448 postuninstall_cmds
=
20452 shlibpath_overrides_runpath
=unknown
20454 dynamic_linker
="$host_os ld.so"
20455 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20456 if test "$GCC" = yes; then
20457 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20458 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20459 # if the path contains ";" then we assume it to be the separator
20460 # otherwise default to the standard path separator (i.e. ":") - it is
20461 # assumed that no part of a normal pathname contains ";" but that should
20462 # okay in the real world where ";" in dirpaths is itself problematic.
20463 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20465 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20468 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20470 need_lib_prefix
=unknown
20471 hardcode_into_libs
=no
20473 # when you set need_version to no, make sure it does not cause -set_version
20474 # flags to be left without arguments
20475 need_version
=unknown
20480 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20481 shlibpath_var
=LIBPATH
20483 # AIX 3 has no versioning support, so we append a major version to the name.
20484 soname_spec
='${libname}${release}${shared_ext}$major'
20491 hardcode_into_libs
=yes
20492 if test "$host_cpu" = ia64
; then
20493 # AIX 5 supports IA64
20494 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20495 shlibpath_var
=LD_LIBRARY_PATH
20497 # With GCC up to 2.95.x, collect2 would create an import file
20498 # for dependence libraries. The import file would start with
20499 # the line `#! .'. This would cause the generated library to
20500 # depend on `.', always an invalid library. This was fixed in
20501 # development snapshots of GCC prior to 3.0.
20503 aix4 | aix4.
[01] | aix4.
[01].
*)
20504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20506 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20509 can_build_shared
=no
20513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20514 # soname into executable. Probably we can add versioning support to
20515 # collect2, so additional links can be useful in future.
20516 if test "$aix_use_runtimelinking" = yes; then
20517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20518 # instead of lib<name>.a to let people know that these are not
20519 # typical AIX shared libraries.
20520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522 # We preserve .a as extension for shared libraries through AIX4.2
20523 # and later when we are not doing run time linking.
20524 library_names_spec
='${libname}${release}.a $libname.a'
20525 soname_spec
='${libname}${release}${shared_ext}$major'
20527 shlibpath_var
=LIBPATH
20532 library_names_spec
='$libname.ixlibrary $libname.a'
20533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20534 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'
20538 library_names_spec
='${libname}${shared_ext}'
20539 dynamic_linker
="$host_os ld.so"
20540 shlibpath_var
=LIBRARY_PATH
20546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec
='${libname}${release}${shared_ext}$major'
20548 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20549 shlibpath_var
=LD_LIBRARY_PATH
20550 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20551 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20552 # the default ld.so.conf also contains /usr/contrib/lib and
20553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20554 # libtool to hard-code these into programs
20557 cygwin
* | mingw
* | pw32
*)
20558 version_type
=windows
20563 case $GCC,$host_os in
20564 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20565 library_names_spec
='$libname.dll.a'
20566 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20567 postinstall_cmds
='base_file=`basename \${file}`~
20568 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20569 dldir=$destdir/`dirname \$dlpath`~
20570 test -d \$dldir || mkdir -p \$dldir~
20571 $install_prog $dir/$dlname \$dldir/$dlname~
20572 chmod a+x \$dldir/$dlname'
20573 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20574 dlpath=$dir/\$dldll~
20576 shlibpath_overrides_runpath
=yes
20580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20581 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20582 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20585 # MinGW DLLs use traditional 'lib' prefix
20586 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20587 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20588 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20589 # It is most probably a Windows format PATH printed by
20590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20591 # path with ; separators, and with drive letters. We can handle the
20592 # drive letters (cygwin fileutils understands them), so leave them,
20593 # especially as we might pass files found there to a mingw objdump,
20594 # which wouldn't understand a cygwinified path. Ahh.
20595 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20597 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20601 # pw32 DLLs use 'pw' prefix rather than 'lib'
20602 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20608 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20611 dynamic_linker
='Win32 ld.exe'
20612 # FIXME: first we should search . and the directory the executable is in
20616 darwin
* | rhapsody
*)
20617 dynamic_linker
="$host_os dyld"
20618 version_type
=darwin
20621 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20622 soname_spec
='${libname}${release}${major}$shared_ext'
20623 shlibpath_overrides_runpath
=yes
20624 shlibpath_var
=DYLD_LIBRARY_PATH
20625 shrext_cmds
='.dylib'
20626 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20627 if test "$GCC" = yes; then
20628 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"`
20630 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20632 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20640 soname_spec
='${libname}${release}${shared_ext}$major'
20641 shlibpath_var
=LD_LIBRARY_PATH
20652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20653 soname_spec
='${libname}${release}${shared_ext}$major'
20654 shlibpath_var
=LD_LIBRARY_PATH
20655 shlibpath_overrides_runpath
=no
20656 hardcode_into_libs
=yes
20657 dynamic_linker
='GNU ld.so'
20660 freebsd
* | dragonfly
*)
20661 # DragonFly does not have aout. When/if they implement a new
20662 # versioning mechanism, adjust this.
20663 if test -x /usr
/bin
/objformat
; then
20664 objformat
=`/usr/bin/objformat`
20667 freebsd
[123]*) objformat
=aout
;;
20668 *) objformat
=elf
;;
20671 version_type
=freebsd-
$objformat
20672 case $version_type in
20674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20679 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20683 shlibpath_var
=LD_LIBRARY_PATH
20686 shlibpath_overrides_runpath
=yes
20688 freebsd3.
[01]* | freebsdelf3.
[01]*)
20689 shlibpath_overrides_runpath
=yes
20690 hardcode_into_libs
=yes
20692 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20693 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20694 shlibpath_overrides_runpath
=no
20695 hardcode_into_libs
=yes
20697 freebsd
*) # from 4.6 on
20698 shlibpath_overrides_runpath
=yes
20699 hardcode_into_libs
=yes
20708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20709 soname_spec
='${libname}${release}${shared_ext}$major'
20710 shlibpath_var
=LD_LIBRARY_PATH
20711 hardcode_into_libs
=yes
20714 hpux9
* | hpux10
* | hpux11
*)
20715 # Give a soname corresponding to the major version so that dld.sl refuses to
20716 # link against other versions.
20723 hardcode_into_libs
=yes
20724 dynamic_linker
="$host_os dld.so"
20725 shlibpath_var
=LD_LIBRARY_PATH
20726 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec
='${libname}${release}${shared_ext}$major'
20729 if test "X$HPUX_IA64_MODE" = X32
; then
20730 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20732 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20734 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20738 hardcode_into_libs
=yes
20739 dynamic_linker
="$host_os dld.sl"
20740 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20741 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 soname_spec
='${libname}${release}${shared_ext}$major'
20744 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20745 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20749 dynamic_linker
="$host_os dld.sl"
20750 shlibpath_var
=SHLIB_PATH
20751 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20753 soname_spec
='${libname}${release}${shared_ext}$major'
20756 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20757 postinstall_cmds
='chmod 555 $lib'
20764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20765 soname_spec
='${libname}${release}${shared_ext}$major'
20766 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20767 shlibpath_var
=LD_LIBRARY_PATH
20768 shlibpath_overrides_runpath
=no
20769 hardcode_into_libs
=yes
20772 irix5
* | irix6
* | nonstopux
*)
20774 nonstopux
*) version_type
=nonstopux
;;
20776 if test "$lt_cv_prog_gnu_ld" = yes; then
20784 soname_spec
='${libname}${release}${shared_ext}$major'
20785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20787 irix5
* | nonstopux
*)
20788 libsuff
= shlibsuff
=
20791 case $LD in # libtool.m4 will add one of these switches to LD
20792 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20793 libsuff
= shlibsuff
= libmagic
=32-bit;;
20794 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20795 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20796 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20797 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20798 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20802 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20803 shlibpath_overrides_runpath
=no
20804 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20805 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20806 hardcode_into_libs
=yes
20809 # No shared lib support for Linux oldld, aout, or coff.
20810 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20814 # This must be Linux ELF.
20819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820 soname_spec
='${libname}${release}${shared_ext}$major'
20821 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20822 shlibpath_var
=LD_LIBRARY_PATH
20823 shlibpath_overrides_runpath
=no
20824 # This implies no fast_install, which is unacceptable.
20825 # Some rework will be needed to allow for fast_install
20826 # before this can be enabled.
20827 hardcode_into_libs
=yes
20829 # Append ld.so.conf contents to the search path
20830 if test -f /etc
/ld.so.conf
; then
20831 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' ' '`
20832 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20835 # We used to test for /lib/ld.so.1 and disable shared libraries on
20836 # powerpc, because MkLinux only supported shared libraries with the
20837 # GNU dynamic linker. Since this was broken with cross compilers,
20838 # most powerpc-linux boxes support dynamic linking these days and
20839 # people can always --disable-shared, the test was removed, and we
20840 # assume the GNU/Linux dynamic linker is in use.
20841 dynamic_linker
='GNU/Linux ld.so'
20848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20849 soname_spec
='${libname}${release}${shared_ext}$major'
20850 shlibpath_var
=LD_LIBRARY_PATH
20851 shlibpath_overrides_runpath
=no
20852 hardcode_into_libs
=yes
20853 dynamic_linker
='GNU ld.so'
20860 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20862 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20863 dynamic_linker
='NetBSD (a.out) ld.so'
20865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20866 soname_spec
='${libname}${release}${shared_ext}$major'
20867 dynamic_linker
='NetBSD ld.elf_so'
20869 shlibpath_var
=LD_LIBRARY_PATH
20870 shlibpath_overrides_runpath
=yes
20871 hardcode_into_libs
=yes
20876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20877 shlibpath_var
=LD_LIBRARY_PATH
20878 shlibpath_overrides_runpath
=yes
20885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20886 soname_spec
='${libname}${release}${shared_ext}$major'
20887 shlibpath_var
=LD_LIBRARY_PATH
20888 shlibpath_overrides_runpath
=yes
20893 sys_lib_dlsearch_path_spec
="/usr/lib"
20895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20897 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20898 *) need_version
=no
;;
20900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20901 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20902 shlibpath_var
=LD_LIBRARY_PATH
20903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20905 openbsd2.
[89] | openbsd2.
[89].
*)
20906 shlibpath_overrides_runpath
=no
20909 shlibpath_overrides_runpath
=yes
20913 shlibpath_overrides_runpath
=yes
20918 libname_spec
='$name'
20921 library_names_spec
='$libname${shared_ext} $libname.a'
20922 dynamic_linker
='OS/2 ld.exe'
20923 shlibpath_var
=LIBPATH
20926 osf3
* | osf4
* | osf5
*)
20930 soname_spec
='${libname}${release}${shared_ext}$major'
20931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20932 shlibpath_var
=LD_LIBRARY_PATH
20933 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20934 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942 soname_spec
='${libname}${release}${shared_ext}$major'
20943 shlibpath_var
=LD_LIBRARY_PATH
20944 shlibpath_overrides_runpath
=yes
20945 hardcode_into_libs
=yes
20946 # ldd complains unless libraries are executable
20947 postinstall_cmds
='chmod +x $lib'
20952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20953 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20954 shlibpath_var
=LD_LIBRARY_PATH
20955 shlibpath_overrides_runpath
=yes
20956 if test "$with_gnu_ld" = yes; then
20964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20965 soname_spec
='${libname}${release}${shared_ext}$major'
20966 shlibpath_var
=LD_LIBRARY_PATH
20967 case $host_vendor in
20969 shlibpath_overrides_runpath
=no
20971 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20972 runpath_var
=LD_RUN_PATH
20980 shlibpath_overrides_runpath
=no
20981 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20987 if test -d /usr
/nec
;then
20989 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20990 soname_spec
='$libname${shared_ext}.$major'
20991 shlibpath_var
=LD_LIBRARY_PATH
20995 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20996 version_type
=freebsd-elf
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21000 soname_spec
='${libname}${release}${shared_ext}$major'
21001 shlibpath_var
=LD_LIBRARY_PATH
21002 hardcode_into_libs
=yes
21003 if test "$with_gnu_ld" = yes; then
21004 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21005 shlibpath_overrides_runpath
=no
21007 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21008 shlibpath_overrides_runpath
=yes
21011 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21015 sys_lib_dlsearch_path_spec
='/usr/lib'
21020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21021 soname_spec
='${libname}${release}${shared_ext}$major'
21022 shlibpath_var
=LD_LIBRARY_PATH
21029 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21030 echo "${ECHO_T}$dynamic_linker" >&6; }
21031 test "$dynamic_linker" = no
&& can_build_shared
=no
21033 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21034 if test "$GCC" = yes; then
21035 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21038 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21039 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21040 hardcode_action_CXX
=
21041 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21042 test -n "$runpath_var_CXX" || \
21043 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21045 # We can hardcode non-existant directories.
21046 if test "$hardcode_direct_CXX" != no
&&
21047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21048 # have to relink, otherwise we might link with an installed library
21049 # when we should be linking with a yet-to-be-installed one
21050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21051 test "$hardcode_minus_L_CXX" != no
; then
21052 # Linking always hardcodes the temporary library directory.
21053 hardcode_action_CXX
=relink
21055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21056 hardcode_action_CXX
=immediate
21059 # We cannot hardcode anything, or else we can only hardcode existing
21061 hardcode_action_CXX
=unsupported
21063 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21064 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21066 if test "$hardcode_action_CXX" = relink
; then
21067 # Fast installation is not supported
21068 enable_fast_install
=no
21069 elif test "$shlibpath_overrides_runpath" = yes ||
21070 test "$enable_shared" = no
; then
21071 # Fast installation is not necessary
21072 enable_fast_install
=needless
21076 # The else clause should only fire when bootstrapping the
21077 # libtool distribution, otherwise you forgot to ship ltmain.sh
21078 # with your package, and you will get complaints that there are
21079 # no rules to generate ltmain.sh.
21080 if test -f "$ltmain"; then
21081 # See if we are running on zsh, and set the options which allow our commands through
21082 # without removal of \ escapes.
21083 if test -n "${ZSH_VERSION+set}" ; then
21084 setopt NO_GLOB_SUBST
21086 # Now quote all the things that may contain metacharacters while being
21087 # careful not to overquote the AC_SUBSTed values. We take copies of the
21088 # variables and quote the copies for generation of the libtool script.
21089 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21091 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21092 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21093 deplibs_check_method reload_flag reload_cmds need_locks \
21094 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21095 lt_cv_sys_global_symbol_to_c_name_address \
21096 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21097 old_postinstall_cmds old_postuninstall_cmds \
21101 lt_prog_compiler_wl_CXX \
21102 lt_prog_compiler_pic_CXX \
21103 lt_prog_compiler_static_CXX \
21104 lt_prog_compiler_no_builtin_flag_CXX \
21105 export_dynamic_flag_spec_CXX \
21106 thread_safe_flag_spec_CXX \
21107 whole_archive_flag_spec_CXX \
21108 enable_shared_with_static_runtimes_CXX \
21109 old_archive_cmds_CXX \
21110 old_archive_from_new_cmds_CXX \
21111 predep_objects_CXX \
21112 postdep_objects_CXX \
21115 compiler_lib_search_path_CXX \
21117 archive_expsym_cmds_CXX \
21118 postinstall_cmds_CXX \
21119 postuninstall_cmds_CXX \
21120 old_archive_from_expsyms_cmds_CXX \
21121 allow_undefined_flag_CXX \
21122 no_undefined_flag_CXX \
21123 export_symbols_cmds_CXX \
21124 hardcode_libdir_flag_spec_CXX \
21125 hardcode_libdir_flag_spec_ld_CXX \
21126 hardcode_libdir_separator_CXX \
21127 hardcode_automatic_CXX \
21129 module_expsym_cmds_CXX \
21130 lt_cv_prog_compiler_c_o_CXX \
21131 exclude_expsyms_CXX \
21132 include_expsyms_CXX
; do
21135 old_archive_cmds_CXX | \
21136 old_archive_from_new_cmds_CXX | \
21137 archive_cmds_CXX | \
21138 archive_expsym_cmds_CXX | \
21139 module_cmds_CXX | \
21140 module_expsym_cmds_CXX | \
21141 old_archive_from_expsyms_cmds_CXX | \
21142 export_symbols_cmds_CXX | \
21143 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21144 postinstall_cmds | postuninstall_cmds | \
21145 old_postinstall_cmds | old_postuninstall_cmds | \
21146 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21147 # Double-quote double-evaled strings.
21148 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21157 *'\$0 --fallback-echo"')
21158 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21164 cat <<__EOF__ >> "$cfgfile"
21165 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21169 # Shell to use when invoking shell scripts.
21172 # Whether or not to build shared libraries.
21173 build_libtool_libs=$enable_shared
21175 # Whether or not to build static libraries.
21176 build_old_libs=$enable_static
21178 # Whether or not to add -lc for building shared libraries.
21179 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21181 # Whether or not to disallow shared libs when runtime libs are static
21182 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21184 # Whether or not to optimize for fast installation.
21185 fast_install=$enable_fast_install
21188 host_alias=$host_alias
21192 # The build system.
21193 build_alias=$build_alias
21197 # An echo program that does not interpret backslashes.
21202 AR_FLAGS=$lt_AR_FLAGS
21207 # LTCC compiler flags.
21208 LTCFLAGS=$lt_LTCFLAGS
21210 # A language-specific compiler.
21211 CC=$lt_compiler_CXX
21213 # Is the compiler the GNU C compiler?
21219 # The linker used to build libraries.
21222 # Whether we need hard or soft links.
21225 # A BSD-compatible nm program.
21228 # A symbol stripping program
21231 # Used to examine libraries when file_magic_cmd begins "file"
21232 MAGIC_CMD=$MAGIC_CMD
21234 # Used on cygwin: DLL creation program.
21237 # Used on cygwin: object dumper.
21240 # Used on cygwin: assembler.
21243 # The name of the directory that contains temporary libtool files.
21246 # How to create reloadable object files.
21247 reload_flag=$lt_reload_flag
21248 reload_cmds=$lt_reload_cmds
21250 # How to pass a linker flag through the compiler.
21251 wl=$lt_lt_prog_compiler_wl_CXX
21253 # Object file suffix (normally "o").
21254 objext="$ac_objext"
21256 # Old archive suffix (normally "a").
21259 # Shared library suffix (normally ".so").
21260 shrext_cmds='$shrext_cmds'
21262 # Executable file suffix (normally "").
21265 # Additional compiler flags for building library objects.
21266 pic_flag=$lt_lt_prog_compiler_pic_CXX
21269 # What is the maximum length of a command?
21270 max_cmd_len=$lt_cv_sys_max_cmd_len
21272 # Does compiler simultaneously support -c and -o options?
21273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21275 # Must we lock files when doing compilation?
21276 need_locks=$lt_need_locks
21278 # Do we need the lib prefix for modules?
21279 need_lib_prefix=$need_lib_prefix
21281 # Do we need a version for libraries?
21282 need_version=$need_version
21284 # Whether dlopen is supported.
21285 dlopen_support=$enable_dlopen
21287 # Whether dlopen of programs is supported.
21288 dlopen_self=$enable_dlopen_self
21290 # Whether dlopen of statically linked programs is supported.
21291 dlopen_self_static=$enable_dlopen_self_static
21293 # Compiler flag to prevent dynamic linking.
21294 link_static_flag=$lt_lt_prog_compiler_static_CXX
21296 # Compiler flag to turn off builtin functions.
21297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21299 # Compiler flag to allow reflexive dlopens.
21300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21302 # Compiler flag to generate shared objects directly from archives.
21303 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21305 # Compiler flag to generate thread-safe objects.
21306 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21308 # Library versioning type.
21309 version_type=$version_type
21311 # Format of library name prefix.
21312 libname_spec=$lt_libname_spec
21314 # List of archive names. First name is the real one, the rest are links.
21315 # The last name is the one that the linker finds with -lNAME.
21316 library_names_spec=$lt_library_names_spec
21318 # The coded name of the library, if different from the real name.
21319 soname_spec=$lt_soname_spec
21321 # Commands used to build and install an old-style archive.
21323 old_archive_cmds=$lt_old_archive_cmds_CXX
21324 old_postinstall_cmds=$lt_old_postinstall_cmds
21325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21327 # Create an old-style archive from a shared archive.
21328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21330 # Create a temporary old-style archive to link instead of a shared archive.
21331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21333 # Commands used to build and install a shared archive.
21334 archive_cmds=$lt_archive_cmds_CXX
21335 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21336 postinstall_cmds=$lt_postinstall_cmds
21337 postuninstall_cmds=$lt_postuninstall_cmds
21339 # Commands used to build a loadable module (assumed same as above if empty)
21340 module_cmds=$lt_module_cmds_CXX
21341 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21343 # Commands to strip libraries.
21344 old_striplib=$lt_old_striplib
21345 striplib=$lt_striplib
21347 # Dependencies to place before the objects being linked to create a
21349 predep_objects=$lt_predep_objects_CXX
21351 # Dependencies to place after the objects being linked to create a
21353 postdep_objects=$lt_postdep_objects_CXX
21355 # Dependencies to place before the objects being linked to create a
21357 predeps=$lt_predeps_CXX
21359 # Dependencies to place after the objects being linked to create a
21361 postdeps=$lt_postdeps_CXX
21363 # The library search path used internally by the compiler when linking
21364 # a shared library.
21365 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21367 # Method to check whether dependent libraries are shared objects.
21368 deplibs_check_method=$lt_deplibs_check_method
21370 # Command to use when deplibs_check_method == file_magic.
21371 file_magic_cmd=$lt_file_magic_cmd
21373 # Flag that allows shared libraries with undefined symbols to be built.
21374 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21376 # Flag that forces no undefined symbols.
21377 no_undefined_flag=$lt_no_undefined_flag_CXX
21379 # Commands used to finish a libtool library installation in a directory.
21380 finish_cmds=$lt_finish_cmds
21382 # Same as above, but a single script fragment to be evaled but not shown.
21383 finish_eval=$lt_finish_eval
21385 # Take the output of nm and produce a listing of raw symbols and C names.
21386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21388 # Transform the output of nm in a proper C declaration
21389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21391 # Transform the output of nm in a C name address pair
21392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21394 # This is the shared library runtime path variable.
21395 runpath_var=$runpath_var
21397 # This is the shared library path variable.
21398 shlibpath_var=$shlibpath_var
21400 # Is shlibpath searched before the hard-coded library search path?
21401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21403 # How to hardcode a shared library path into an executable.
21404 hardcode_action=$hardcode_action_CXX
21406 # Whether we should hardcode library paths into libraries.
21407 hardcode_into_libs=$hardcode_into_libs
21409 # Flag to hardcode \$libdir into a binary during linking.
21410 # This must work even if \$libdir does not exist.
21411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21413 # If ld is used when linking, flag to hardcode \$libdir into
21414 # a binary during linking. This must work even if \$libdir does
21416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21418 # Whether we need a single -rpath flag with a separated argument.
21419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21421 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21422 # resulting binary.
21423 hardcode_direct=$hardcode_direct_CXX
21425 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21426 # resulting binary.
21427 hardcode_minus_L=$hardcode_minus_L_CXX
21429 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21430 # the resulting binary.
21431 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21433 # Set to yes if building a shared library automatically hardcodes DIR into the library
21434 # and all subsequent libraries and executables linked against it.
21435 hardcode_automatic=$hardcode_automatic_CXX
21437 # Variables whose values should be saved in libtool wrapper scripts and
21438 # restored at relink time.
21439 variables_saved_for_relink="$variables_saved_for_relink"
21441 # Whether libtool must link a program against all its dependency libraries.
21442 link_all_deplibs=$link_all_deplibs_CXX
21444 # Compile-time system search path for libraries
21445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21447 # Run-time system search path for libraries
21448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21450 # Fix the shell variable \$srcfile for the compiler.
21451 fix_srcfile_path="$fix_srcfile_path_CXX"
21453 # Set to yes if exported symbols are required.
21454 always_export_symbols=$always_export_symbols_CXX
21456 # The commands to list exported symbols.
21457 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21459 # The commands to extract the exported symbol list from a shared archive.
21460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21462 # Symbols that should not be listed in the preloaded symbols.
21463 exclude_expsyms=$lt_exclude_expsyms_CXX
21465 # Symbols that must always be exported.
21466 include_expsyms=$lt_include_expsyms_CXX
21468 # ### END LIBTOOL TAG CONFIG: $tagname
21474 # If there is no Makefile yet, we rely on a make rule to execute
21475 # `config.status --recheck' to rerun these tests and create the
21476 # libtool script then.
21477 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21478 if test -f "$ltmain_in"; then
21479 test -f Makefile
&& make "$ltmain"
21485 ac_cpp
='$CPP $CPPFLAGS'
21486 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21494 with_gnu_ldcxx
=$with_gnu_ld
21495 with_gnu_ld
=$lt_save_with_gnu_ld
21496 lt_cv_path_LDCXX
=$lt_cv_path_LD
21497 lt_cv_path_LD
=$lt_save_path_LD
21498 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21499 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21507 if test -n "$F77" && test "X$F77" != "Xno"; then
21510 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21511 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21515 archive_cmds_need_lc_F77
=no
21516 allow_undefined_flag_F77
=
21517 always_export_symbols_F77
=no
21518 archive_expsym_cmds_F77
=
21519 export_dynamic_flag_spec_F77
=
21520 hardcode_direct_F77
=no
21521 hardcode_libdir_flag_spec_F77
=
21522 hardcode_libdir_flag_spec_ld_F77
=
21523 hardcode_libdir_separator_F77
=
21524 hardcode_minus_L_F77
=no
21525 hardcode_automatic_F77
=no
21527 module_expsym_cmds_F77
=
21528 link_all_deplibs_F77
=unknown
21529 old_archive_cmds_F77
=$old_archive_cmds
21530 no_undefined_flag_F77
=
21531 whole_archive_flag_spec_F77
=
21532 enable_shared_with_static_runtimes_F77
=no
21534 # Source file extension for f77 test sources.
21537 # Object file extension for compiled f77 test sources.
21541 # Code to be used in simple compile tests
21542 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21544 # Code to be used in simple link tests
21545 lt_simple_link_test_code
=" program t\n end\n"
21547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21549 # If no C compiler was specified, use CC.
21552 # If no C compiler flags were specified, use CFLAGS.
21553 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21555 # Allow CC to be a program name with arguments.
21559 # save warnings/boilerplate of simple test code
21560 ac_outfile
=conftest.
$ac_objext
21561 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21562 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21563 _lt_compiler_boilerplate
=`cat conftest.err`
21566 ac_outfile
=conftest.
$ac_objext
21567 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21568 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21569 _lt_linker_boilerplate
=`cat conftest.err`
21573 # Allow CC to be a program name with arguments.
21578 for cc_temp
in $compiler""; do
21580 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21581 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21586 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21589 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21590 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21591 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21592 echo "${ECHO_T}$can_build_shared" >&6; }
21594 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21595 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21596 test "$can_build_shared" = "no" && enable_shared
=no
21598 # On AIX, shared libraries and static libraries use the same namespace, and
21599 # are all built from PIC.
21602 test "$enable_shared" = yes && enable_static
=no
21603 if test -n "$RANLIB"; then
21604 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21605 postinstall_cmds
='$RANLIB $lib'
21609 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21610 test "$enable_shared" = yes && enable_static
=no
21614 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21615 echo "${ECHO_T}$enable_shared" >&6; }
21617 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21618 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21619 # Make sure either enable_shared or enable_static is yes.
21620 test "$enable_shared" = yes || enable_static
=yes
21621 { echo "$as_me:$LINENO: result: $enable_static" >&5
21622 echo "${ECHO_T}$enable_static" >&6; }
21627 lt_prog_compiler_wl_F77
=
21628 lt_prog_compiler_pic_F77
=
21629 lt_prog_compiler_static_F77
=
21631 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21632 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21634 if test "$GCC" = yes; then
21635 lt_prog_compiler_wl_F77
='-Wl,'
21636 lt_prog_compiler_static_F77
='-static'
21640 # All AIX code is PIC.
21641 if test "$host_cpu" = ia64
; then
21642 # AIX 5 now supports IA64 processor
21643 lt_prog_compiler_static_F77
='-Bstatic'
21648 # FIXME: we need at least 68020 code to build shared libraries, but
21649 # adding the `-m68020' flag to GCC prevents building anything better,
21651 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21654 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21655 # PIC is the default for these OSes.
21658 mingw
* | pw32
* | os2
*)
21659 # This hack is so that the source file can tell whether it is being
21660 # built for inclusion in a dll (and should export symbols for example).
21661 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21664 darwin
* | rhapsody
*)
21665 # PIC is the default on this platform
21666 # Common symbols not allowed in MH_DYLIB files
21667 lt_prog_compiler_pic_F77
='-fno-common'
21671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21672 # Instead, we relocate shared libraries at runtime.
21676 # Just because we use GCC doesn't mean we suddenly get shared libraries
21677 # on systems that don't support them.
21678 lt_prog_compiler_can_build_shared_F77
=no
21683 if test -d /usr
/nec
; then
21684 lt_prog_compiler_pic_F77
=-Kconform_pic
21689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21690 # not for PA HP-UX.
21696 lt_prog_compiler_pic_F77
='-fPIC'
21702 lt_prog_compiler_pic_F77
='-fPIC'
21706 # PORTME Check for flag to pass linker flags through the system compiler.
21709 lt_prog_compiler_wl_F77
='-Wl,'
21710 if test "$host_cpu" = ia64
; then
21711 # AIX 5 now supports IA64 processor
21712 lt_prog_compiler_static_F77
='-Bstatic'
21714 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21718 # PIC is the default on this platform
21719 # Common symbols not allowed in MH_DYLIB files
21720 case $cc_basename in
21722 lt_prog_compiler_pic_F77
='-qnocommon'
21723 lt_prog_compiler_wl_F77
='-Wl,'
21728 mingw
* | pw32
* | os2
*)
21729 # This hack is so that the source file can tell whether it is being
21730 # built for inclusion in a dll (and should export symbols for example).
21731 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21734 hpux9
* | hpux10
* | hpux11
*)
21735 lt_prog_compiler_wl_F77
='-Wl,'
21736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21737 # not for PA HP-UX.
21743 lt_prog_compiler_pic_F77
='+Z'
21746 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21747 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21750 irix5
* | irix6
* | nonstopux
*)
21751 lt_prog_compiler_wl_F77
='-Wl,'
21752 # PIC (with -KPIC) is the default.
21753 lt_prog_compiler_static_F77
='-non_shared'
21757 lt_prog_compiler_pic_F77
='-KPIC'
21758 lt_prog_compiler_static_F77
='-Bstatic'
21762 case $cc_basename in
21764 lt_prog_compiler_wl_F77
='-Wl,'
21765 lt_prog_compiler_pic_F77
='-KPIC'
21766 lt_prog_compiler_static_F77
='-static'
21768 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21769 # Portland Group compilers (*not* the Pentium gcc compiler,
21770 # which looks to be a dead project)
21771 lt_prog_compiler_wl_F77
='-Wl,'
21772 lt_prog_compiler_pic_F77
='-fpic'
21773 lt_prog_compiler_static_F77
='-Bstatic'
21776 lt_prog_compiler_wl_F77
='-Wl,'
21777 # All Alpha code is PIC.
21778 lt_prog_compiler_static_F77
='-non_shared'
21783 osf3
* | osf4
* | osf5
*)
21784 lt_prog_compiler_wl_F77
='-Wl,'
21785 # All OSF/1 code is PIC.
21786 lt_prog_compiler_static_F77
='-non_shared'
21790 lt_prog_compiler_pic_F77
='-KPIC'
21791 lt_prog_compiler_static_F77
='-Bstatic'
21792 case $cc_basename in
21793 f77
* | f90
* | f95
*)
21794 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21796 lt_prog_compiler_wl_F77
='-Wl,';;
21801 lt_prog_compiler_wl_F77
='-Qoption ld '
21802 lt_prog_compiler_pic_F77
='-PIC'
21803 lt_prog_compiler_static_F77
='-Bstatic'
21806 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21807 lt_prog_compiler_wl_F77
='-Wl,'
21808 lt_prog_compiler_pic_F77
='-KPIC'
21809 lt_prog_compiler_static_F77
='-Bstatic'
21813 if test -d /usr
/nec
;then
21814 lt_prog_compiler_pic_F77
='-Kconform_pic'
21815 lt_prog_compiler_static_F77
='-Bstatic'
21819 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21820 lt_prog_compiler_wl_F77
='-Wl,'
21821 lt_prog_compiler_pic_F77
='-KPIC'
21822 lt_prog_compiler_static_F77
='-Bstatic'
21826 lt_prog_compiler_wl_F77
='-Wl,'
21827 lt_prog_compiler_can_build_shared_F77
=no
21831 lt_prog_compiler_pic_F77
='-pic'
21832 lt_prog_compiler_static_F77
='-Bstatic'
21836 lt_prog_compiler_can_build_shared_F77
=no
21841 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21842 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21845 # Check to make sure the PIC flag actually works.
21847 if test -n "$lt_prog_compiler_pic_F77"; then
21849 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21850 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21851 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 lt_prog_compiler_pic_works_F77
=no
21855 ac_outfile
=conftest.
$ac_objext
21856 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21857 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21858 # Insert the option either (1) after the last *FLAGS variable, or
21859 # (2) before a word containing "conftest.", or (3) at the end.
21860 # Note that $ac_compile itself does not contain backslashes and begins
21861 # with a dollar sign (not a hyphen), so the echo should work correctly.
21862 # The option is referenced via a variable to avoid confusing sed.
21863 lt_compile
=`echo "$ac_compile" | $SED \
21864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21866 -e 's:$: $lt_compiler_flag:'`
21867 (eval echo "\"\$as_me:21867: $lt_compile\"" >&5)
21868 (eval "$lt_compile" 2>conftest.err
)
21870 cat conftest.err
>&5
21871 echo "$as_me:21871: \$? = $ac_status" >&5
21872 if (exit $ac_status) && test -s "$ac_outfile"; then
21873 # The compiler can only warn and ignore the option if not recognized
21874 # So say no if there are warnings other than the usual output.
21875 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21876 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21877 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21878 lt_prog_compiler_pic_works_F77
=yes
21884 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21885 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21887 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21888 case $lt_prog_compiler_pic_F77 in
21890 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21893 lt_prog_compiler_pic_F77
=
21894 lt_prog_compiler_can_build_shared_F77
=no
21899 # For platforms which do not support PIC, -DPIC is meaningless:
21901 lt_prog_compiler_pic_F77
=
21904 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21909 # Check to make sure the static flag actually works.
21911 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21912 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21913 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21914 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 lt_prog_compiler_static_works_F77
=no
21918 save_LDFLAGS
="$LDFLAGS"
21919 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21920 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21921 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21922 # The linker can only warn and ignore the option if not recognized
21923 # So say no if there are warnings
21924 if test -s conftest.err
; then
21925 # Append any errors to the config.log.
21926 cat conftest.err
1>&5
21927 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21928 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21929 if diff conftest.exp conftest.er2
>/dev
/null
; then
21930 lt_prog_compiler_static_works_F77
=yes
21933 lt_prog_compiler_static_works_F77
=yes
21937 LDFLAGS
="$save_LDFLAGS"
21940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21941 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21943 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21946 lt_prog_compiler_static_F77
=
21950 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21951 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21952 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 lt_cv_prog_compiler_c_o_F77
=no
21956 $rm -r conftest
2>/dev
/null
21960 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21962 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21963 # Insert the option either (1) after the last *FLAGS variable, or
21964 # (2) before a word containing "conftest.", or (3) at the end.
21965 # Note that $ac_compile itself does not contain backslashes and begins
21966 # with a dollar sign (not a hyphen), so the echo should work correctly.
21967 lt_compile
=`echo "$ac_compile" | $SED \
21968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21970 -e 's:$: $lt_compiler_flag:'`
21971 (eval echo "\"\$as_me:21971: $lt_compile\"" >&5)
21972 (eval "$lt_compile" 2>out
/conftest.err
)
21974 cat out
/conftest.err
>&5
21975 echo "$as_me:21975: \$? = $ac_status" >&5
21976 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21978 # The compiler can only warn and ignore the option if not recognized
21979 # So say no if there are warnings
21980 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21981 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21982 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21983 lt_cv_prog_compiler_c_o_F77
=yes
21988 # SGI C++ compiler will create directory out/ii_files/ for
21989 # template instantiation
21990 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21991 $rm out
/* && rmdir out
21997 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21998 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22001 hard_links
="nottested"
22002 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
22003 # do not overwrite the value of need_locks provided by the user
22004 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22008 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22010 ln conftest.a conftest.b
2>&5 || hard_links
=no
22011 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22012 { echo "$as_me:$LINENO: result: $hard_links" >&5
22013 echo "${ECHO_T}$hard_links" >&6; }
22014 if test "$hard_links" = no
; then
22015 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22023 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22027 allow_undefined_flag_F77
=
22028 enable_shared_with_static_runtimes_F77
=no
22030 archive_expsym_cmds_F77
=
22031 old_archive_From_new_cmds_F77
=
22032 old_archive_from_expsyms_cmds_F77
=
22033 export_dynamic_flag_spec_F77
=
22034 whole_archive_flag_spec_F77
=
22035 thread_safe_flag_spec_F77
=
22036 hardcode_libdir_flag_spec_F77
=
22037 hardcode_libdir_flag_spec_ld_F77
=
22038 hardcode_libdir_separator_F77
=
22039 hardcode_direct_F77
=no
22040 hardcode_minus_L_F77
=no
22041 hardcode_shlibpath_var_F77
=unsupported
22042 link_all_deplibs_F77
=unknown
22043 hardcode_automatic_F77
=no
22045 module_expsym_cmds_F77
=
22046 always_export_symbols_F77
=no
22047 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22048 # include_expsyms should be a list of space-separated symbols to be *always*
22049 # included in the symbol list
22050 include_expsyms_F77
=
22051 # exclude_expsyms can be an extended regexp of symbols to exclude
22052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22054 # as well as any symbol that contains `d'.
22055 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
22056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22057 # platforms (ab)use it in PIC code, but their linkers get confused if
22058 # the symbol is explicitly referenced. Since portable code cannot
22059 # rely on this symbol name, it's probably fine to never include it in
22060 # preloaded symbol tables.
22061 extract_expsyms_cmds
=
22062 # Just being paranoid about ensuring that cc_basename is set.
22063 for cc_temp
in $compiler""; do
22065 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22066 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22071 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22074 cygwin
* | mingw
* | pw32
*)
22075 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22076 # When not using gcc, we currently assume that we are using
22077 # Microsoft Visual C++.
22078 if test "$GCC" != yes; then
22083 # we just hope/assume this is gcc and not c89 (= MSVC++)
22092 if test "$with_gnu_ld" = yes; then
22093 # If archive_cmds runs LD, not CC, wlarc should be empty
22096 # Set some defaults for GNU ld with shared library support. These
22097 # are reset later if shared libraries are not supported. Putting them
22098 # here allows them to be overridden if necessary.
22099 runpath_var
=LD_RUN_PATH
22100 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
22101 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
22102 # ancient GNU ld didn't support --whole-archive et. al.
22103 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
22104 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22106 whole_archive_flag_spec_F77
=
22108 supports_anon_versioning
=no
22109 case `$LD -v 2>/dev/null` in
22110 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
22111 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
22112 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
22113 *\
2.11.
*) ;; # other 2.11 versions
22114 *) supports_anon_versioning
=yes ;;
22117 # See if GNU ld supports shared libraries.
22119 aix3
* | aix4
* | aix5
*)
22120 # On AIX/PPC, the GNU linker is very broken
22121 if test "$host_cpu" != ia64
; then
22125 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22126 *** to be unable to reliably create shared libraries on AIX.
22127 *** Therefore, libtool is disabling shared libraries support. If you
22128 *** really care for shared libraries, you may want to modify your PATH
22129 *** so that a non-GNU linker is found, and then restart.
22136 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)'
22137 hardcode_libdir_flag_spec_F77
='-L$libdir'
22138 hardcode_minus_L_F77
=yes
22140 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22141 # that the semantics of dynamic libraries on AmigaOS, at least up
22142 # to version 4, is to share data among multiple programs linked
22143 # with the same dynamic library. Since this doesn't match the
22144 # behavior of shared libraries on other platforms, we can't use
22150 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22151 allow_undefined_flag_F77
=unsupported
22152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22153 # support --undefined. This deserves some investigation. FIXME
22154 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22160 cygwin
* | mingw
* | pw32
*)
22161 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22162 # as there is no search path for DLLs.
22163 hardcode_libdir_flag_spec_F77
='-L$libdir'
22164 allow_undefined_flag_F77
=unsupported
22165 always_export_symbols_F77
=no
22166 enable_shared_with_static_runtimes_F77
=yes
22167 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22169 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22170 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22171 # If the export-symbols file already is a .def file (1st line
22172 # is EXPORTS), use it as is; otherwise, prepend...
22173 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22174 cp $export_symbols $output_objdir/$soname.def;
22176 echo EXPORTS > $output_objdir/$soname.def;
22177 cat $export_symbols >> $output_objdir/$soname.def;
22179 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22186 hardcode_direct_F77
=no
22187 hardcode_shlibpath_var_F77
=no
22188 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22189 export_dynamic_flag_spec_F77
='${wl}-E'
22190 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22191 # Instead, shared libraries are loaded at an image base (0x10000000 by
22192 # default) and relocated if they conflict, which is a slow very memory
22193 # consuming and fragmenting process. To avoid this, we pick a random,
22194 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22195 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22196 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'
22197 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'
22201 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22203 case $cc_basename,$host_cpu in
22204 pgcc
*) # Portland Group C compiler
22205 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'
22206 tmp_addflag
=' $pic_flag'
22208 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22209 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'
22210 tmp_addflag
=' $pic_flag -Mnomain' ;;
22211 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22212 tmp_addflag
=' -i_dynamic' ;;
22213 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22214 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22215 ifc
* | ifort
*) # Intel Fortran compiler
22216 tmp_addflag
=' -nofor_main' ;;
22218 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22220 if test $supports_anon_versioning = yes; then
22221 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22223 $echo "local: *; };" >> $output_objdir/$libname.ver~
22224 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22232 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22233 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22236 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22237 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22242 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22247 *** create shared libraries on Solaris systems. Therefore, libtool
22248 *** is disabling shared libraries support. We urge you to upgrade GNU
22249 *** binutils to release 2.9.1 or newer. Another option is to modify
22250 *** your PATH or compiler configuration so that the native linker is
22251 *** used, and then restart.
22254 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22255 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22256 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22262 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22263 case `$LD -v 2>&1` in
22264 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22269 *** reliably create shared libraries on SCO systems. Therefore, libtool
22270 *** is disabling shared libraries support. We urge you to upgrade GNU
22271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22272 *** your PATH or compiler configuration so that the native linker is
22273 *** used, and then restart.
22278 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22279 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22280 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22281 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22290 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22292 hardcode_direct_F77
=yes
22293 hardcode_shlibpath_var_F77
=no
22297 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22298 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22299 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22306 if test "$ld_shlibs_F77" = no
; then
22308 hardcode_libdir_flag_spec_F77
=
22309 export_dynamic_flag_spec_F77
=
22310 whole_archive_flag_spec_F77
=
22313 # PORTME fill in a description of your system's linker (not GNU ld)
22316 allow_undefined_flag_F77
=unsupported
22317 always_export_symbols_F77
=yes
22318 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'
22319 # Note: this linker hardcodes the directories in LIBPATH if there
22320 # are no directories specified by -L.
22321 hardcode_minus_L_F77
=yes
22322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22323 # Neither direct hardcoding nor static linking is supported with a
22325 hardcode_direct_F77
=unsupported
22330 if test "$host_cpu" = ia64
; then
22331 # On IA64, the linker does run time linking by default, so we don't
22332 # have to do anything special.
22333 aix_use_runtimelinking
=no
22334 exp_sym_flag
='-Bexport'
22337 # If we're using GNU nm, then we don't want the "-C" option.
22338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22339 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22340 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'
22342 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'
22344 aix_use_runtimelinking
=no
22346 # Test if we are trying to use run time linking or normal
22347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22348 # need to do runtime linking.
22349 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22350 for ld_flag
in $LDFLAGS; do
22351 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22352 aix_use_runtimelinking
=yes
22359 exp_sym_flag
='-bexport'
22360 no_entry_flag
='-bnoentry'
22363 # When large executables or shared objects are built, AIX ld can
22364 # have problems creating the table of contents. If linking a library
22365 # or program results in "error TOC overflow" add -mminimal-toc to
22366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22369 archive_cmds_F77
=''
22370 hardcode_direct_F77
=yes
22371 hardcode_libdir_separator_F77
=':'
22372 link_all_deplibs_F77
=yes
22374 if test "$GCC" = yes; then
22375 case $host_os in aix4.
[012]|aix4.
[012].
*)
22376 # We only want to do this on AIX 4.2 and lower, the check
22377 # below for broken collect2 doesn't work under 4.3+
22378 collect2name
=`${CC} -print-prog-name=collect2`
22379 if test -f "$collect2name" && \
22380 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22382 # We have reworked collect2
22383 hardcode_direct_F77
=yes
22385 # We have old collect2
22386 hardcode_direct_F77
=unsupported
22387 # It fails to find uninstalled libraries when the uninstalled
22388 # path is not listed in the libpath. Setting hardcode_minus_L
22389 # to unsupported forces relinking
22390 hardcode_minus_L_F77
=yes
22391 hardcode_libdir_flag_spec_F77
='-L$libdir'
22392 hardcode_libdir_separator_F77
=
22396 shared_flag
='-shared'
22397 if test "$aix_use_runtimelinking" = yes; then
22398 shared_flag
="$shared_flag "'${wl}-G'
22402 if test "$host_cpu" = ia64
; then
22403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22404 # chokes on -Wl,-G. The following line is correct:
22407 if test "$aix_use_runtimelinking" = yes; then
22408 shared_flag
='${wl}-G'
22410 shared_flag
='${wl}-bM:SRE'
22415 # It seems that -bexpall does not export symbols beginning with
22416 # underscore (_), so it is better to generate a list of symbols to export.
22417 always_export_symbols_F77
=yes
22418 if test "$aix_use_runtimelinking" = yes; then
22419 # Warning - without using the other runtime loading flags (-brtl),
22420 # -berok will link without error, but may produce a broken library.
22421 allow_undefined_flag_F77
='-berok'
22422 # Determine the default libpath from the value encoded in an empty executable.
22423 cat >conftest.
$ac_ext <<_ACEOF
22428 rm -f conftest.
$ac_objext conftest
$ac_exeext
22429 if { (ac_try
="$ac_link"
22430 case "(($ac_try" in
22431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_link") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
22442 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22443 { (case "(($ac_try" in
22444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22445 *) ac_try_echo
=$ac_try;;
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_try") 2>&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; } &&
22452 { ac_try
='test -s conftest$ac_exeext'
22453 { (case "(($ac_try" in
22454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_try") 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22463 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22465 # Check for a 64-bit object if we didn't find anything.
22466 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; }
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22475 rm -f core conftest.err conftest.$ac_objext \
22476 conftest$ac_exeext conftest.$ac_ext
22477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22479 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22480 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"
22482 if test "$host_cpu" = ia64; then
22483 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22484 allow_undefined_flag_F77="-z nodefs"
22485 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"
22487 # Determine the default libpath from the value encoded in an empty executable.
22488 cat >conftest.$ac_ext <<_ACEOF
22493 rm -f conftest.$ac_objext conftest$ac_exeext
22494 if { (ac_try="$ac_link"
22495 case "(($ac_try" in
22496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22497 *) ac_try_echo
=$ac_try;;
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_link") 2>conftest.er1
22502 grep -v '^ *+' conftest.er1
>conftest.err
22504 cat conftest.err
>&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } &&
22507 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22508 { (case "(($ac_try" in
22509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_try") 2>&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; } &&
22517 { ac_try='test -s conftest$ac_exeext'
22518 { (case "(($ac_try" in
22519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22520 *) ac_try_echo
=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_try") 2>&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }; then
22528 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22530 # Check for a 64-bit object if we didn't find anything.
22531 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; }
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.
$ac_ext >&5
22540 rm -f core conftest.err conftest.
$ac_objext \
22541 conftest
$ac_exeext conftest.
$ac_ext
22542 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22544 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22545 # Warning - without using the other run time loading flags,
22546 # -berok will link without error, but may produce a broken library.
22547 no_undefined_flag_F77
=' ${wl}-bernotok'
22548 allow_undefined_flag_F77
=' ${wl}-berok'
22549 # Exported symbols can be pulled into shared objects from archives
22550 whole_archive_flag_spec_F77
='$convenience'
22551 archive_cmds_need_lc_F77
=yes
22552 # This is similar to how AIX traditionally builds its shared libraries.
22553 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'
22559 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)'
22560 hardcode_libdir_flag_spec_F77
='-L$libdir'
22561 hardcode_minus_L_F77
=yes
22562 # see comment about different semantics on the GNU ld section
22567 export_dynamic_flag_spec_F77
=-rdynamic
22570 cygwin
* | mingw
* | pw32
*)
22571 # When not using gcc, we currently assume that we are using
22572 # Microsoft Visual C++.
22573 # hardcode_libdir_flag_spec is actually meaningless, as there is
22574 # no search path for DLLs.
22575 hardcode_libdir_flag_spec_F77
=' '
22576 allow_undefined_flag_F77
=unsupported
22577 # Tell ltmain to make .lib files, not .a files.
22579 # Tell ltmain to make .dll files, not .so files.
22581 # FIXME: Setting linknames here is a bad hack.
22582 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22583 # The linker will automatically build a .lib file if we build a DLL.
22584 old_archive_From_new_cmds_F77
='true'
22585 # FIXME: Should let the user specify the lib program.
22586 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22587 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22588 enable_shared_with_static_runtimes_F77
=yes
22591 darwin
* | rhapsody
*)
22593 rhapsody
* | darwin1.
[012])
22594 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22597 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22598 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22600 case ${MACOSX_DEPLOYMENT_TARGET} in
22602 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22605 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22611 archive_cmds_need_lc_F77
=no
22612 hardcode_direct_F77
=no
22613 hardcode_automatic_F77
=yes
22614 hardcode_shlibpath_var_F77
=unsupported
22615 whole_archive_flag_spec_F77
=''
22616 link_all_deplibs_F77
=yes
22617 if test "$GCC" = yes ; then
22618 output_verbose_link_cmd
='echo'
22619 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22620 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22621 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22622 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}'
22623 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}'
22625 case $cc_basename in
22627 output_verbose_link_cmd
='echo'
22628 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22629 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22631 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}'
22632 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}'
22642 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643 hardcode_libdir_flag_spec_F77
='-L$libdir'
22644 hardcode_shlibpath_var_F77
=no
22651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22652 # support. Future versions do this automatically, but an explicit c++rt0.o
22653 # does not break anything, and helps significantly (at the cost of a little
22656 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22657 hardcode_libdir_flag_spec_F77
='-R$libdir'
22658 hardcode_direct_F77
=yes
22659 hardcode_shlibpath_var_F77
=no
22662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22664 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22665 hardcode_direct_F77
=yes
22666 hardcode_minus_L_F77
=yes
22667 hardcode_shlibpath_var_F77
=no
22670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22671 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22672 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22673 hardcode_libdir_flag_spec_F77
='-R$libdir'
22674 hardcode_direct_F77
=yes
22675 hardcode_shlibpath_var_F77
=no
22679 if test "$GCC" = yes; then
22680 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'
22682 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'
22684 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22685 hardcode_libdir_separator_F77
=:
22686 hardcode_direct_F77
=yes
22688 # hardcode_minus_L: Not really in the search PATH,
22689 # but as the default location of the library.
22690 hardcode_minus_L_F77
=yes
22691 export_dynamic_flag_spec_F77
='${wl}-E'
22695 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22696 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22698 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22700 if test "$with_gnu_ld" = no
; then
22701 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22702 hardcode_libdir_separator_F77
=:
22704 hardcode_direct_F77
=yes
22705 export_dynamic_flag_spec_F77
='${wl}-E'
22707 # hardcode_minus_L: Not really in the search PATH,
22708 # but as the default location of the library.
22709 hardcode_minus_L_F77
=yes
22714 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22717 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22720 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22723 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22729 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22732 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22735 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22739 if test "$with_gnu_ld" = no
; then
22740 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22741 hardcode_libdir_separator_F77
=:
22745 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22746 hardcode_direct_F77
=no
22747 hardcode_shlibpath_var_F77
=no
22750 hardcode_direct_F77
=yes
22751 export_dynamic_flag_spec_F77
='${wl}-E'
22753 # hardcode_minus_L: Not really in the search PATH,
22754 # but as the default location of the library.
22755 hardcode_minus_L_F77
=yes
22761 irix5
* | irix6
* | nonstopux
*)
22762 if test "$GCC" = yes; then
22763 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'
22765 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'
22766 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22768 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22769 hardcode_libdir_separator_F77
=:
22770 link_all_deplibs_F77
=yes
22774 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22775 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22777 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22779 hardcode_libdir_flag_spec_F77
='-R$libdir'
22780 hardcode_direct_F77
=yes
22781 hardcode_shlibpath_var_F77
=no
22785 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22786 hardcode_direct_F77
=yes
22787 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22788 hardcode_libdir_separator_F77
=:
22789 hardcode_shlibpath_var_F77
=no
22793 hardcode_direct_F77
=yes
22794 hardcode_shlibpath_var_F77
=no
22795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22796 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22797 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22798 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22799 export_dynamic_flag_spec_F77
='${wl}-E'
22802 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22803 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22804 hardcode_libdir_flag_spec_F77
='-R$libdir'
22807 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22808 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22815 hardcode_libdir_flag_spec_F77
='-L$libdir'
22816 hardcode_minus_L_F77
=yes
22817 allow_undefined_flag_F77
=unsupported
22818 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'
22819 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22823 if test "$GCC" = yes; then
22824 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22825 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'
22827 allow_undefined_flag_F77
=' -expect_unresolved \*'
22828 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'
22830 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22831 hardcode_libdir_separator_F77
=:
22834 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22835 if test "$GCC" = yes; then
22836 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22837 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'
22838 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22840 allow_undefined_flag_F77
=' -expect_unresolved \*'
22841 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'
22842 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~
22843 $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'
22845 # Both c and cxx compiler support -rpath directly
22846 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22848 hardcode_libdir_separator_F77
=:
22852 no_undefined_flag_F77
=' -z text'
22853 if test "$GCC" = yes; then
22855 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22856 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22857 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22860 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22861 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22864 hardcode_libdir_flag_spec_F77
='-R$libdir'
22865 hardcode_shlibpath_var_F77
=no
22867 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22869 # The compiler driver will combine linker options so we
22870 # cannot just pass the convience library names through
22871 # without $wl, iff we do not link with $LD.
22872 # Luckily, gcc supports the same syntax we need for Sun Studio.
22873 # Supported since Solaris 2.6 (maybe 2.5.1?)
22876 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22878 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' ;;
22881 link_all_deplibs_F77
=yes
22885 if test "x$host_vendor" = xsequent
; then
22886 # Use $CC to link under sequent, because it throws in some extra .o
22887 # files that make .init and .fini sections work.
22888 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22890 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22892 hardcode_libdir_flag_spec_F77
='-L$libdir'
22893 hardcode_direct_F77
=yes
22894 hardcode_minus_L_F77
=yes
22895 hardcode_shlibpath_var_F77
=no
22899 case $host_vendor in
22901 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22902 hardcode_direct_F77
=yes # is this really true???
22905 ## LD is ld it makes a PLAMLIB
22906 ## CC just makes a GrossModule.
22907 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22908 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22909 hardcode_direct_F77
=no
22912 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22913 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22916 runpath_var
='LD_RUN_PATH'
22917 hardcode_shlibpath_var_F77
=no
22921 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22922 hardcode_shlibpath_var_F77
=no
22923 export_dynamic_flag_spec_F77
='-Bexport'
22927 if test -d /usr
/nec
; then
22928 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22929 hardcode_shlibpath_var_F77
=no
22930 runpath_var
=LD_RUN_PATH
22931 hardcode_runpath_var
=yes
22936 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22937 no_undefined_flag_F77
='${wl}-z,text'
22938 archive_cmds_need_lc_F77
=no
22939 hardcode_shlibpath_var_F77
=no
22940 runpath_var
='LD_RUN_PATH'
22942 if test "$GCC" = yes; then
22943 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22944 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22946 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22947 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22951 sysv5
* | sco3.2v5
* | sco5v6
*)
22952 # Note: We can NOT use -z defs as we might desire, because we do not
22953 # link with -lc, and that would cause any symbols used from libc to
22954 # always be unresolved, which means just about no library would
22955 # ever link correctly. If we're not using GNU ld we use -z text
22956 # though, which does catch some bad symbols but isn't as heavy-handed
22958 no_undefined_flag_F77
='${wl}-z,text'
22959 allow_undefined_flag_F77
='${wl}-z,nodefs'
22960 archive_cmds_need_lc_F77
=no
22961 hardcode_shlibpath_var_F77
=no
22962 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22963 hardcode_libdir_separator_F77
=':'
22964 link_all_deplibs_F77
=yes
22965 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22966 runpath_var
='LD_RUN_PATH'
22968 if test "$GCC" = yes; then
22969 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22970 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22972 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22973 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22978 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22979 hardcode_libdir_flag_spec_F77
='-L$libdir'
22980 hardcode_shlibpath_var_F77
=no
22989 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22990 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22991 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22994 # Do we need to explicitly link libc?
22996 case "x$archive_cmds_need_lc_F77" in
22998 # Assume -lc should be added
22999 archive_cmds_need_lc_F77
=yes
23001 if test "$enable_shared" = yes && test "$GCC" = yes; then
23002 case $archive_cmds_F77 in
23004 # FIXME: we may have to deal with multi-command sequences.
23007 # Test whether the compiler implicitly links with -lc since on some
23008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23009 # to ld, don't add -lc before -lgcc.
23010 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23013 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016 (eval $ac_compile) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } 2>conftest.err
; then
23022 libobjs
=conftest.
$ac_objext
23024 wl
=$lt_prog_compiler_wl_F77
23025 pic_flag
=$lt_prog_compiler_pic_F77
23031 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
23032 allow_undefined_flag_F77
=
23033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23034 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }
23039 archive_cmds_need_lc_F77
=no
23041 archive_cmds_need_lc_F77
=yes
23043 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
23045 cat conftest.err
1>&5
23048 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23049 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23056 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23057 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23058 library_names_spec
=
23059 libname_spec
='lib$name'
23063 postuninstall_cmds
=
23067 shlibpath_overrides_runpath
=unknown
23069 dynamic_linker
="$host_os ld.so"
23070 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
23071 if test "$GCC" = yes; then
23072 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23073 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
23074 # if the path contains ";" then we assume it to be the separator
23075 # otherwise default to the standard path separator (i.e. ":") - it is
23076 # assumed that no part of a normal pathname contains ";" but that should
23077 # okay in the real world where ";" in dirpaths is itself problematic.
23078 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23080 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23083 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
23085 need_lib_prefix
=unknown
23086 hardcode_into_libs
=no
23088 # when you set need_version to no, make sure it does not cause -set_version
23089 # flags to be left without arguments
23090 need_version
=unknown
23095 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
23096 shlibpath_var
=LIBPATH
23098 # AIX 3 has no versioning support, so we append a major version to the name.
23099 soname_spec
='${libname}${release}${shared_ext}$major'
23106 hardcode_into_libs
=yes
23107 if test "$host_cpu" = ia64
; then
23108 # AIX 5 supports IA64
23109 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23110 shlibpath_var
=LD_LIBRARY_PATH
23112 # With GCC up to 2.95.x, collect2 would create an import file
23113 # for dependence libraries. The import file would start with
23114 # the line `#! .'. This would cause the generated library to
23115 # depend on `.', always an invalid library. This was fixed in
23116 # development snapshots of GCC prior to 3.0.
23118 aix4 | aix4.
[01] | aix4.
[01].
*)
23119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23121 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
23124 can_build_shared
=no
23128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23129 # soname into executable. Probably we can add versioning support to
23130 # collect2, so additional links can be useful in future.
23131 if test "$aix_use_runtimelinking" = yes; then
23132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23133 # instead of lib<name>.a to let people know that these are not
23134 # typical AIX shared libraries.
23135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23137 # We preserve .a as extension for shared libraries through AIX4.2
23138 # and later when we are not doing run time linking.
23139 library_names_spec
='${libname}${release}.a $libname.a'
23140 soname_spec
='${libname}${release}${shared_ext}$major'
23142 shlibpath_var
=LIBPATH
23147 library_names_spec
='$libname.ixlibrary $libname.a'
23148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23149 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'
23153 library_names_spec
='${libname}${shared_ext}'
23154 dynamic_linker
="$host_os ld.so"
23155 shlibpath_var
=LIBRARY_PATH
23161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23162 soname_spec
='${libname}${release}${shared_ext}$major'
23163 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23164 shlibpath_var
=LD_LIBRARY_PATH
23165 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23166 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23167 # the default ld.so.conf also contains /usr/contrib/lib and
23168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23169 # libtool to hard-code these into programs
23172 cygwin
* | mingw
* | pw32
*)
23173 version_type
=windows
23178 case $GCC,$host_os in
23179 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23180 library_names_spec
='$libname.dll.a'
23181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23182 postinstall_cmds
='base_file=`basename \${file}`~
23183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23184 dldir=$destdir/`dirname \$dlpath`~
23185 test -d \$dldir || mkdir -p \$dldir~
23186 $install_prog $dir/$dlname \$dldir/$dlname~
23187 chmod a+x \$dldir/$dlname'
23188 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23189 dlpath=$dir/\$dldll~
23191 shlibpath_overrides_runpath
=yes
23195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23196 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23197 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23200 # MinGW DLLs use traditional 'lib' prefix
23201 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23202 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23203 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23204 # It is most probably a Windows format PATH printed by
23205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23206 # path with ; separators, and with drive letters. We can handle the
23207 # drive letters (cygwin fileutils understands them), so leave them,
23208 # especially as we might pass files found there to a mingw objdump,
23209 # which wouldn't understand a cygwinified path. Ahh.
23210 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23212 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23216 # pw32 DLLs use 'pw' prefix rather than 'lib'
23217 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23223 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23226 dynamic_linker
='Win32 ld.exe'
23227 # FIXME: first we should search . and the directory the executable is in
23231 darwin
* | rhapsody
*)
23232 dynamic_linker
="$host_os dyld"
23233 version_type
=darwin
23236 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23237 soname_spec
='${libname}${release}${major}$shared_ext'
23238 shlibpath_overrides_runpath
=yes
23239 shlibpath_var
=DYLD_LIBRARY_PATH
23240 shrext_cmds
='.dylib'
23241 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23242 if test "$GCC" = yes; then
23243 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"`
23245 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23247 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23255 soname_spec
='${libname}${release}${shared_ext}$major'
23256 shlibpath_var
=LD_LIBRARY_PATH
23267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23268 soname_spec
='${libname}${release}${shared_ext}$major'
23269 shlibpath_var
=LD_LIBRARY_PATH
23270 shlibpath_overrides_runpath
=no
23271 hardcode_into_libs
=yes
23272 dynamic_linker
='GNU ld.so'
23275 freebsd
* | dragonfly
*)
23276 # DragonFly does not have aout. When/if they implement a new
23277 # versioning mechanism, adjust this.
23278 if test -x /usr
/bin
/objformat
; then
23279 objformat
=`/usr/bin/objformat`
23282 freebsd
[123]*) objformat
=aout
;;
23283 *) objformat
=elf
;;
23286 version_type
=freebsd-
$objformat
23287 case $version_type in
23289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23294 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23298 shlibpath_var
=LD_LIBRARY_PATH
23301 shlibpath_overrides_runpath
=yes
23303 freebsd3.
[01]* | freebsdelf3.
[01]*)
23304 shlibpath_overrides_runpath
=yes
23305 hardcode_into_libs
=yes
23307 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23308 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23309 shlibpath_overrides_runpath
=no
23310 hardcode_into_libs
=yes
23312 freebsd
*) # from 4.6 on
23313 shlibpath_overrides_runpath
=yes
23314 hardcode_into_libs
=yes
23323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23324 soname_spec
='${libname}${release}${shared_ext}$major'
23325 shlibpath_var
=LD_LIBRARY_PATH
23326 hardcode_into_libs
=yes
23329 hpux9
* | hpux10
* | hpux11
*)
23330 # Give a soname corresponding to the major version so that dld.sl refuses to
23331 # link against other versions.
23338 hardcode_into_libs
=yes
23339 dynamic_linker
="$host_os dld.so"
23340 shlibpath_var
=LD_LIBRARY_PATH
23341 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343 soname_spec
='${libname}${release}${shared_ext}$major'
23344 if test "X$HPUX_IA64_MODE" = X32
; then
23345 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23347 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23349 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23353 hardcode_into_libs
=yes
23354 dynamic_linker
="$host_os dld.sl"
23355 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23356 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358 soname_spec
='${libname}${release}${shared_ext}$major'
23359 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23360 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23364 dynamic_linker
="$host_os dld.sl"
23365 shlibpath_var
=SHLIB_PATH
23366 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23368 soname_spec
='${libname}${release}${shared_ext}$major'
23371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23372 postinstall_cmds
='chmod 555 $lib'
23379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23380 soname_spec
='${libname}${release}${shared_ext}$major'
23381 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23382 shlibpath_var
=LD_LIBRARY_PATH
23383 shlibpath_overrides_runpath
=no
23384 hardcode_into_libs
=yes
23387 irix5
* | irix6
* | nonstopux
*)
23389 nonstopux
*) version_type
=nonstopux
;;
23391 if test "$lt_cv_prog_gnu_ld" = yes; then
23399 soname_spec
='${libname}${release}${shared_ext}$major'
23400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23402 irix5
* | nonstopux
*)
23403 libsuff
= shlibsuff
=
23406 case $LD in # libtool.m4 will add one of these switches to LD
23407 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23408 libsuff
= shlibsuff
= libmagic
=32-bit;;
23409 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23410 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23411 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23412 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23413 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23417 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23418 shlibpath_overrides_runpath
=no
23419 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23420 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23421 hardcode_into_libs
=yes
23424 # No shared lib support for Linux oldld, aout, or coff.
23425 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23429 # This must be Linux ELF.
23434 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23435 soname_spec
='${libname}${release}${shared_ext}$major'
23436 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23437 shlibpath_var
=LD_LIBRARY_PATH
23438 shlibpath_overrides_runpath
=no
23439 # This implies no fast_install, which is unacceptable.
23440 # Some rework will be needed to allow for fast_install
23441 # before this can be enabled.
23442 hardcode_into_libs
=yes
23444 # Append ld.so.conf contents to the search path
23445 if test -f /etc
/ld.so.conf
; then
23446 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' ' '`
23447 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23450 # We used to test for /lib/ld.so.1 and disable shared libraries on
23451 # powerpc, because MkLinux only supported shared libraries with the
23452 # GNU dynamic linker. Since this was broken with cross compilers,
23453 # most powerpc-linux boxes support dynamic linking these days and
23454 # people can always --disable-shared, the test was removed, and we
23455 # assume the GNU/Linux dynamic linker is in use.
23456 dynamic_linker
='GNU/Linux ld.so'
23463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23464 soname_spec
='${libname}${release}${shared_ext}$major'
23465 shlibpath_var
=LD_LIBRARY_PATH
23466 shlibpath_overrides_runpath
=no
23467 hardcode_into_libs
=yes
23468 dynamic_linker
='GNU ld.so'
23475 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23477 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23478 dynamic_linker
='NetBSD (a.out) ld.so'
23480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23481 soname_spec
='${libname}${release}${shared_ext}$major'
23482 dynamic_linker
='NetBSD ld.elf_so'
23484 shlibpath_var
=LD_LIBRARY_PATH
23485 shlibpath_overrides_runpath
=yes
23486 hardcode_into_libs
=yes
23491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23492 shlibpath_var
=LD_LIBRARY_PATH
23493 shlibpath_overrides_runpath
=yes
23500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23501 soname_spec
='${libname}${release}${shared_ext}$major'
23502 shlibpath_var
=LD_LIBRARY_PATH
23503 shlibpath_overrides_runpath
=yes
23508 sys_lib_dlsearch_path_spec
="/usr/lib"
23510 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23512 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23513 *) need_version
=no
;;
23515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23516 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23517 shlibpath_var
=LD_LIBRARY_PATH
23518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23520 openbsd2.
[89] | openbsd2.
[89].
*)
23521 shlibpath_overrides_runpath
=no
23524 shlibpath_overrides_runpath
=yes
23528 shlibpath_overrides_runpath
=yes
23533 libname_spec
='$name'
23536 library_names_spec
='$libname${shared_ext} $libname.a'
23537 dynamic_linker
='OS/2 ld.exe'
23538 shlibpath_var
=LIBPATH
23541 osf3
* | osf4
* | osf5
*)
23545 soname_spec
='${libname}${release}${shared_ext}$major'
23546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23547 shlibpath_var
=LD_LIBRARY_PATH
23548 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23549 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23557 soname_spec
='${libname}${release}${shared_ext}$major'
23558 shlibpath_var
=LD_LIBRARY_PATH
23559 shlibpath_overrides_runpath
=yes
23560 hardcode_into_libs
=yes
23561 # ldd complains unless libraries are executable
23562 postinstall_cmds
='chmod +x $lib'
23567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23568 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23569 shlibpath_var
=LD_LIBRARY_PATH
23570 shlibpath_overrides_runpath
=yes
23571 if test "$with_gnu_ld" = yes; then
23579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23580 soname_spec
='${libname}${release}${shared_ext}$major'
23581 shlibpath_var
=LD_LIBRARY_PATH
23582 case $host_vendor in
23584 shlibpath_overrides_runpath
=no
23586 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23587 runpath_var
=LD_RUN_PATH
23595 shlibpath_overrides_runpath
=no
23596 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23602 if test -d /usr
/nec
;then
23604 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23605 soname_spec
='$libname${shared_ext}.$major'
23606 shlibpath_var
=LD_LIBRARY_PATH
23610 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23611 version_type
=freebsd-elf
23614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23615 soname_spec
='${libname}${release}${shared_ext}$major'
23616 shlibpath_var
=LD_LIBRARY_PATH
23617 hardcode_into_libs
=yes
23618 if test "$with_gnu_ld" = yes; then
23619 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23620 shlibpath_overrides_runpath
=no
23622 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23623 shlibpath_overrides_runpath
=yes
23626 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23630 sys_lib_dlsearch_path_spec
='/usr/lib'
23635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23636 soname_spec
='${libname}${release}${shared_ext}$major'
23637 shlibpath_var
=LD_LIBRARY_PATH
23644 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23645 echo "${ECHO_T}$dynamic_linker" >&6; }
23646 test "$dynamic_linker" = no
&& can_build_shared
=no
23648 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23649 if test "$GCC" = yes; then
23650 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23653 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23654 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23655 hardcode_action_F77
=
23656 if test -n "$hardcode_libdir_flag_spec_F77" || \
23657 test -n "$runpath_var_F77" || \
23658 test "X$hardcode_automatic_F77" = "Xyes" ; then
23660 # We can hardcode non-existant directories.
23661 if test "$hardcode_direct_F77" != no
&&
23662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23663 # have to relink, otherwise we might link with an installed library
23664 # when we should be linking with a yet-to-be-installed one
23665 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23666 test "$hardcode_minus_L_F77" != no
; then
23667 # Linking always hardcodes the temporary library directory.
23668 hardcode_action_F77
=relink
23670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23671 hardcode_action_F77
=immediate
23674 # We cannot hardcode anything, or else we can only hardcode existing
23676 hardcode_action_F77
=unsupported
23678 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23679 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23681 if test "$hardcode_action_F77" = relink
; then
23682 # Fast installation is not supported
23683 enable_fast_install
=no
23684 elif test "$shlibpath_overrides_runpath" = yes ||
23685 test "$enable_shared" = no
; then
23686 # Fast installation is not necessary
23687 enable_fast_install
=needless
23691 # The else clause should only fire when bootstrapping the
23692 # libtool distribution, otherwise you forgot to ship ltmain.sh
23693 # with your package, and you will get complaints that there are
23694 # no rules to generate ltmain.sh.
23695 if test -f "$ltmain"; then
23696 # See if we are running on zsh, and set the options which allow our commands through
23697 # without removal of \ escapes.
23698 if test -n "${ZSH_VERSION+set}" ; then
23699 setopt NO_GLOB_SUBST
23701 # Now quote all the things that may contain metacharacters while being
23702 # careful not to overquote the AC_SUBSTed values. We take copies of the
23703 # variables and quote the copies for generation of the libtool script.
23704 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23708 deplibs_check_method reload_flag reload_cmds need_locks \
23709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23710 lt_cv_sys_global_symbol_to_c_name_address \
23711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23712 old_postinstall_cmds old_postuninstall_cmds \
23716 lt_prog_compiler_wl_F77 \
23717 lt_prog_compiler_pic_F77 \
23718 lt_prog_compiler_static_F77 \
23719 lt_prog_compiler_no_builtin_flag_F77 \
23720 export_dynamic_flag_spec_F77 \
23721 thread_safe_flag_spec_F77 \
23722 whole_archive_flag_spec_F77 \
23723 enable_shared_with_static_runtimes_F77 \
23724 old_archive_cmds_F77 \
23725 old_archive_from_new_cmds_F77 \
23726 predep_objects_F77 \
23727 postdep_objects_F77 \
23730 compiler_lib_search_path_F77 \
23732 archive_expsym_cmds_F77 \
23733 postinstall_cmds_F77 \
23734 postuninstall_cmds_F77 \
23735 old_archive_from_expsyms_cmds_F77 \
23736 allow_undefined_flag_F77 \
23737 no_undefined_flag_F77 \
23738 export_symbols_cmds_F77 \
23739 hardcode_libdir_flag_spec_F77 \
23740 hardcode_libdir_flag_spec_ld_F77 \
23741 hardcode_libdir_separator_F77 \
23742 hardcode_automatic_F77 \
23744 module_expsym_cmds_F77 \
23745 lt_cv_prog_compiler_c_o_F77 \
23746 exclude_expsyms_F77 \
23747 include_expsyms_F77
; do
23750 old_archive_cmds_F77 | \
23751 old_archive_from_new_cmds_F77 | \
23752 archive_cmds_F77 | \
23753 archive_expsym_cmds_F77 | \
23754 module_cmds_F77 | \
23755 module_expsym_cmds_F77 | \
23756 old_archive_from_expsyms_cmds_F77 | \
23757 export_symbols_cmds_F77 | \
23758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23759 postinstall_cmds | postuninstall_cmds | \
23760 old_postinstall_cmds | old_postuninstall_cmds | \
23761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23762 # Double-quote double-evaled strings.
23763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23772 *'\$0 --fallback-echo"')
23773 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23779 cat <<__EOF__ >> "$cfgfile"
23780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23784 # Shell to use when invoking shell scripts.
23787 # Whether or not to build shared libraries.
23788 build_libtool_libs=$enable_shared
23790 # Whether or not to build static libraries.
23791 build_old_libs=$enable_static
23793 # Whether or not to add -lc for building shared libraries.
23794 build_libtool_need_lc=$archive_cmds_need_lc_F77
23796 # Whether or not to disallow shared libs when runtime libs are static
23797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23799 # Whether or not to optimize for fast installation.
23800 fast_install=$enable_fast_install
23803 host_alias=$host_alias
23807 # The build system.
23808 build_alias=$build_alias
23812 # An echo program that does not interpret backslashes.
23817 AR_FLAGS=$lt_AR_FLAGS
23822 # LTCC compiler flags.
23823 LTCFLAGS=$lt_LTCFLAGS
23825 # A language-specific compiler.
23826 CC=$lt_compiler_F77
23828 # Is the compiler the GNU C compiler?
23834 # The linker used to build libraries.
23837 # Whether we need hard or soft links.
23840 # A BSD-compatible nm program.
23843 # A symbol stripping program
23846 # Used to examine libraries when file_magic_cmd begins "file"
23847 MAGIC_CMD=$MAGIC_CMD
23849 # Used on cygwin: DLL creation program.
23852 # Used on cygwin: object dumper.
23855 # Used on cygwin: assembler.
23858 # The name of the directory that contains temporary libtool files.
23861 # How to create reloadable object files.
23862 reload_flag=$lt_reload_flag
23863 reload_cmds=$lt_reload_cmds
23865 # How to pass a linker flag through the compiler.
23866 wl=$lt_lt_prog_compiler_wl_F77
23868 # Object file suffix (normally "o").
23869 objext="$ac_objext"
23871 # Old archive suffix (normally "a").
23874 # Shared library suffix (normally ".so").
23875 shrext_cmds='$shrext_cmds'
23877 # Executable file suffix (normally "").
23880 # Additional compiler flags for building library objects.
23881 pic_flag=$lt_lt_prog_compiler_pic_F77
23884 # What is the maximum length of a command?
23885 max_cmd_len=$lt_cv_sys_max_cmd_len
23887 # Does compiler simultaneously support -c and -o options?
23888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23890 # Must we lock files when doing compilation?
23891 need_locks=$lt_need_locks
23893 # Do we need the lib prefix for modules?
23894 need_lib_prefix=$need_lib_prefix
23896 # Do we need a version for libraries?
23897 need_version=$need_version
23899 # Whether dlopen is supported.
23900 dlopen_support=$enable_dlopen
23902 # Whether dlopen of programs is supported.
23903 dlopen_self=$enable_dlopen_self
23905 # Whether dlopen of statically linked programs is supported.
23906 dlopen_self_static=$enable_dlopen_self_static
23908 # Compiler flag to prevent dynamic linking.
23909 link_static_flag=$lt_lt_prog_compiler_static_F77
23911 # Compiler flag to turn off builtin functions.
23912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23914 # Compiler flag to allow reflexive dlopens.
23915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23917 # Compiler flag to generate shared objects directly from archives.
23918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23920 # Compiler flag to generate thread-safe objects.
23921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23923 # Library versioning type.
23924 version_type=$version_type
23926 # Format of library name prefix.
23927 libname_spec=$lt_libname_spec
23929 # List of archive names. First name is the real one, the rest are links.
23930 # The last name is the one that the linker finds with -lNAME.
23931 library_names_spec=$lt_library_names_spec
23933 # The coded name of the library, if different from the real name.
23934 soname_spec=$lt_soname_spec
23936 # Commands used to build and install an old-style archive.
23938 old_archive_cmds=$lt_old_archive_cmds_F77
23939 old_postinstall_cmds=$lt_old_postinstall_cmds
23940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23942 # Create an old-style archive from a shared archive.
23943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23945 # Create a temporary old-style archive to link instead of a shared archive.
23946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23948 # Commands used to build and install a shared archive.
23949 archive_cmds=$lt_archive_cmds_F77
23950 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23951 postinstall_cmds=$lt_postinstall_cmds
23952 postuninstall_cmds=$lt_postuninstall_cmds
23954 # Commands used to build a loadable module (assumed same as above if empty)
23955 module_cmds=$lt_module_cmds_F77
23956 module_expsym_cmds=$lt_module_expsym_cmds_F77
23958 # Commands to strip libraries.
23959 old_striplib=$lt_old_striplib
23960 striplib=$lt_striplib
23962 # Dependencies to place before the objects being linked to create a
23964 predep_objects=$lt_predep_objects_F77
23966 # Dependencies to place after the objects being linked to create a
23968 postdep_objects=$lt_postdep_objects_F77
23970 # Dependencies to place before the objects being linked to create a
23972 predeps=$lt_predeps_F77
23974 # Dependencies to place after the objects being linked to create a
23976 postdeps=$lt_postdeps_F77
23978 # The library search path used internally by the compiler when linking
23979 # a shared library.
23980 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23982 # Method to check whether dependent libraries are shared objects.
23983 deplibs_check_method=$lt_deplibs_check_method
23985 # Command to use when deplibs_check_method == file_magic.
23986 file_magic_cmd=$lt_file_magic_cmd
23988 # Flag that allows shared libraries with undefined symbols to be built.
23989 allow_undefined_flag=$lt_allow_undefined_flag_F77
23991 # Flag that forces no undefined symbols.
23992 no_undefined_flag=$lt_no_undefined_flag_F77
23994 # Commands used to finish a libtool library installation in a directory.
23995 finish_cmds=$lt_finish_cmds
23997 # Same as above, but a single script fragment to be evaled but not shown.
23998 finish_eval=$lt_finish_eval
24000 # Take the output of nm and produce a listing of raw symbols and C names.
24001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24003 # Transform the output of nm in a proper C declaration
24004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24006 # Transform the output of nm in a C name address pair
24007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24009 # This is the shared library runtime path variable.
24010 runpath_var=$runpath_var
24012 # This is the shared library path variable.
24013 shlibpath_var=$shlibpath_var
24015 # Is shlibpath searched before the hard-coded library search path?
24016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24018 # How to hardcode a shared library path into an executable.
24019 hardcode_action=$hardcode_action_F77
24021 # Whether we should hardcode library paths into libraries.
24022 hardcode_into_libs=$hardcode_into_libs
24024 # Flag to hardcode \$libdir into a binary during linking.
24025 # This must work even if \$libdir does not exist.
24026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24028 # If ld is used when linking, flag to hardcode \$libdir into
24029 # a binary during linking. This must work even if \$libdir does
24031 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24033 # Whether we need a single -rpath flag with a separated argument.
24034 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24036 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24037 # resulting binary.
24038 hardcode_direct=$hardcode_direct_F77
24040 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24041 # resulting binary.
24042 hardcode_minus_L=$hardcode_minus_L_F77
24044 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24045 # the resulting binary.
24046 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24048 # Set to yes if building a shared library automatically hardcodes DIR into the library
24049 # and all subsequent libraries and executables linked against it.
24050 hardcode_automatic=$hardcode_automatic_F77
24052 # Variables whose values should be saved in libtool wrapper scripts and
24053 # restored at relink time.
24054 variables_saved_for_relink="$variables_saved_for_relink"
24056 # Whether libtool must link a program against all its dependency libraries.
24057 link_all_deplibs=$link_all_deplibs_F77
24059 # Compile-time system search path for libraries
24060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24062 # Run-time system search path for libraries
24063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24065 # Fix the shell variable \$srcfile for the compiler.
24066 fix_srcfile_path="$fix_srcfile_path_F77"
24068 # Set to yes if exported symbols are required.
24069 always_export_symbols=$always_export_symbols_F77
24071 # The commands to list exported symbols.
24072 export_symbols_cmds=$lt_export_symbols_cmds_F77
24074 # The commands to extract the exported symbol list from a shared archive.
24075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24077 # Symbols that should not be listed in the preloaded symbols.
24078 exclude_expsyms=$lt_exclude_expsyms_F77
24080 # Symbols that must always be exported.
24081 include_expsyms=$lt_include_expsyms_F77
24083 # ### END LIBTOOL TAG CONFIG: $tagname
24089 # If there is no Makefile yet, we rely on a make rule to execute
24090 # `config.status --recheck' to rerun these tests and create the
24091 # libtool script then.
24092 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24093 if test -f "$ltmain_in"; then
24094 test -f Makefile
&& make "$ltmain"
24100 ac_cpp
='$CPP $CPPFLAGS'
24101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24113 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24115 ac_cpp
='$CPP $CPPFLAGS'
24116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24121 # Source file extension for Java test sources.
24124 # Object file extension for compiled Java test sources.
24128 # Code to be used in simple compile tests
24129 lt_simple_compile_test_code
="class foo {}\n"
24131 # Code to be used in simple link tests
24132 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
24134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24136 # If no C compiler was specified, use CC.
24139 # If no C compiler flags were specified, use CFLAGS.
24140 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
24142 # Allow CC to be a program name with arguments.
24146 # save warnings/boilerplate of simple test code
24147 ac_outfile
=conftest.
$ac_objext
24148 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
24149 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24150 _lt_compiler_boilerplate
=`cat conftest.err`
24153 ac_outfile
=conftest.
$ac_objext
24154 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
24155 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24156 _lt_linker_boilerplate
=`cat conftest.err`
24160 # Allow CC to be a program name with arguments.
24165 for cc_temp
in $compiler""; do
24167 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24168 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24173 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24176 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24177 archive_cmds_need_lc_GCJ
=no
24179 old_archive_cmds_GCJ
=$old_archive_cmds
24182 lt_prog_compiler_no_builtin_flag_GCJ
=
24184 if test "$GCC" = yes; then
24185 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24188 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24189 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24190 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24193 lt_cv_prog_compiler_rtti_exceptions
=no
24194 ac_outfile
=conftest.
$ac_objext
24195 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24196 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24197 # Insert the option either (1) after the last *FLAGS variable, or
24198 # (2) before a word containing "conftest.", or (3) at the end.
24199 # Note that $ac_compile itself does not contain backslashes and begins
24200 # with a dollar sign (not a hyphen), so the echo should work correctly.
24201 # The option is referenced via a variable to avoid confusing sed.
24202 lt_compile
=`echo "$ac_compile" | $SED \
24203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24205 -e 's:$: $lt_compiler_flag:'`
24206 (eval echo "\"\$as_me:24206: $lt_compile\"" >&5)
24207 (eval "$lt_compile" 2>conftest.err
)
24209 cat conftest.err
>&5
24210 echo "$as_me:24210: \$? = $ac_status" >&5
24211 if (exit $ac_status) && test -s "$ac_outfile"; then
24212 # The compiler can only warn and ignore the option if not recognized
24213 # So say no if there are warnings other than the usual output.
24214 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24215 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24216 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24217 lt_cv_prog_compiler_rtti_exceptions
=yes
24223 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24224 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24226 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24227 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24234 lt_prog_compiler_wl_GCJ
=
24235 lt_prog_compiler_pic_GCJ
=
24236 lt_prog_compiler_static_GCJ
=
24238 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24239 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24241 if test "$GCC" = yes; then
24242 lt_prog_compiler_wl_GCJ
='-Wl,'
24243 lt_prog_compiler_static_GCJ
='-static'
24247 # All AIX code is PIC.
24248 if test "$host_cpu" = ia64
; then
24249 # AIX 5 now supports IA64 processor
24250 lt_prog_compiler_static_GCJ
='-Bstatic'
24255 # FIXME: we need at least 68020 code to build shared libraries, but
24256 # adding the `-m68020' flag to GCC prevents building anything better,
24258 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24261 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24262 # PIC is the default for these OSes.
24265 mingw
* | pw32
* | os2
*)
24266 # This hack is so that the source file can tell whether it is being
24267 # built for inclusion in a dll (and should export symbols for example).
24268 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24271 darwin
* | rhapsody
*)
24272 # PIC is the default on this platform
24273 # Common symbols not allowed in MH_DYLIB files
24274 lt_prog_compiler_pic_GCJ
='-fno-common'
24278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24279 # Instead, we relocate shared libraries at runtime.
24283 # Just because we use GCC doesn't mean we suddenly get shared libraries
24284 # on systems that don't support them.
24285 lt_prog_compiler_can_build_shared_GCJ
=no
24290 if test -d /usr
/nec
; then
24291 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24297 # not for PA HP-UX.
24303 lt_prog_compiler_pic_GCJ
='-fPIC'
24309 lt_prog_compiler_pic_GCJ
='-fPIC'
24313 # PORTME Check for flag to pass linker flags through the system compiler.
24316 lt_prog_compiler_wl_GCJ
='-Wl,'
24317 if test "$host_cpu" = ia64
; then
24318 # AIX 5 now supports IA64 processor
24319 lt_prog_compiler_static_GCJ
='-Bstatic'
24321 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24325 # PIC is the default on this platform
24326 # Common symbols not allowed in MH_DYLIB files
24327 case $cc_basename in
24329 lt_prog_compiler_pic_GCJ
='-qnocommon'
24330 lt_prog_compiler_wl_GCJ
='-Wl,'
24335 mingw
* | pw32
* | os2
*)
24336 # This hack is so that the source file can tell whether it is being
24337 # built for inclusion in a dll (and should export symbols for example).
24338 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24341 hpux9
* | hpux10
* | hpux11
*)
24342 lt_prog_compiler_wl_GCJ
='-Wl,'
24343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24344 # not for PA HP-UX.
24350 lt_prog_compiler_pic_GCJ
='+Z'
24353 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24354 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24357 irix5
* | irix6
* | nonstopux
*)
24358 lt_prog_compiler_wl_GCJ
='-Wl,'
24359 # PIC (with -KPIC) is the default.
24360 lt_prog_compiler_static_GCJ
='-non_shared'
24364 lt_prog_compiler_pic_GCJ
='-KPIC'
24365 lt_prog_compiler_static_GCJ
='-Bstatic'
24369 case $cc_basename in
24371 lt_prog_compiler_wl_GCJ
='-Wl,'
24372 lt_prog_compiler_pic_GCJ
='-KPIC'
24373 lt_prog_compiler_static_GCJ
='-static'
24375 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24376 # Portland Group compilers (*not* the Pentium gcc compiler,
24377 # which looks to be a dead project)
24378 lt_prog_compiler_wl_GCJ
='-Wl,'
24379 lt_prog_compiler_pic_GCJ
='-fpic'
24380 lt_prog_compiler_static_GCJ
='-Bstatic'
24383 lt_prog_compiler_wl_GCJ
='-Wl,'
24384 # All Alpha code is PIC.
24385 lt_prog_compiler_static_GCJ
='-non_shared'
24390 osf3
* | osf4
* | osf5
*)
24391 lt_prog_compiler_wl_GCJ
='-Wl,'
24392 # All OSF/1 code is PIC.
24393 lt_prog_compiler_static_GCJ
='-non_shared'
24397 lt_prog_compiler_pic_GCJ
='-KPIC'
24398 lt_prog_compiler_static_GCJ
='-Bstatic'
24399 case $cc_basename in
24400 f77
* | f90
* | f95
*)
24401 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24403 lt_prog_compiler_wl_GCJ
='-Wl,';;
24408 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24409 lt_prog_compiler_pic_GCJ
='-PIC'
24410 lt_prog_compiler_static_GCJ
='-Bstatic'
24413 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24414 lt_prog_compiler_wl_GCJ
='-Wl,'
24415 lt_prog_compiler_pic_GCJ
='-KPIC'
24416 lt_prog_compiler_static_GCJ
='-Bstatic'
24420 if test -d /usr
/nec
;then
24421 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24422 lt_prog_compiler_static_GCJ
='-Bstatic'
24426 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24427 lt_prog_compiler_wl_GCJ
='-Wl,'
24428 lt_prog_compiler_pic_GCJ
='-KPIC'
24429 lt_prog_compiler_static_GCJ
='-Bstatic'
24433 lt_prog_compiler_wl_GCJ
='-Wl,'
24434 lt_prog_compiler_can_build_shared_GCJ
=no
24438 lt_prog_compiler_pic_GCJ
='-pic'
24439 lt_prog_compiler_static_GCJ
='-Bstatic'
24443 lt_prog_compiler_can_build_shared_GCJ
=no
24448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24449 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24452 # Check to make sure the PIC flag actually works.
24454 if test -n "$lt_prog_compiler_pic_GCJ"; then
24456 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24457 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24458 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24461 lt_prog_compiler_pic_works_GCJ
=no
24462 ac_outfile
=conftest.
$ac_objext
24463 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24464 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24465 # Insert the option either (1) after the last *FLAGS variable, or
24466 # (2) before a word containing "conftest.", or (3) at the end.
24467 # Note that $ac_compile itself does not contain backslashes and begins
24468 # with a dollar sign (not a hyphen), so the echo should work correctly.
24469 # The option is referenced via a variable to avoid confusing sed.
24470 lt_compile
=`echo "$ac_compile" | $SED \
24471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24473 -e 's:$: $lt_compiler_flag:'`
24474 (eval echo "\"\$as_me:24474: $lt_compile\"" >&5)
24475 (eval "$lt_compile" 2>conftest.err
)
24477 cat conftest.err
>&5
24478 echo "$as_me:24478: \$? = $ac_status" >&5
24479 if (exit $ac_status) && test -s "$ac_outfile"; then
24480 # The compiler can only warn and ignore the option if not recognized
24481 # So say no if there are warnings other than the usual output.
24482 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24483 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24484 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24485 lt_prog_compiler_pic_works_GCJ
=yes
24491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24492 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24494 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24495 case $lt_prog_compiler_pic_GCJ in
24497 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24500 lt_prog_compiler_pic_GCJ
=
24501 lt_prog_compiler_can_build_shared_GCJ
=no
24506 # For platforms which do not support PIC, -DPIC is meaningless:
24508 lt_prog_compiler_pic_GCJ
=
24511 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24516 # Check to make sure the static flag actually works.
24518 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24519 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24520 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24521 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24524 lt_prog_compiler_static_works_GCJ
=no
24525 save_LDFLAGS
="$LDFLAGS"
24526 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24527 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24528 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24529 # The linker can only warn and ignore the option if not recognized
24530 # So say no if there are warnings
24531 if test -s conftest.err
; then
24532 # Append any errors to the config.log.
24533 cat conftest.err
1>&5
24534 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24535 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24536 if diff conftest.exp conftest.er2
>/dev
/null
; then
24537 lt_prog_compiler_static_works_GCJ
=yes
24540 lt_prog_compiler_static_works_GCJ
=yes
24544 LDFLAGS
="$save_LDFLAGS"
24547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24548 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24550 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24553 lt_prog_compiler_static_GCJ
=
24557 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24558 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24559 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24560 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 lt_cv_prog_compiler_c_o_GCJ
=no
24563 $rm -r conftest
2>/dev
/null
24567 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24569 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24570 # Insert the option either (1) after the last *FLAGS variable, or
24571 # (2) before a word containing "conftest.", or (3) at the end.
24572 # Note that $ac_compile itself does not contain backslashes and begins
24573 # with a dollar sign (not a hyphen), so the echo should work correctly.
24574 lt_compile
=`echo "$ac_compile" | $SED \
24575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24577 -e 's:$: $lt_compiler_flag:'`
24578 (eval echo "\"\$as_me:24578: $lt_compile\"" >&5)
24579 (eval "$lt_compile" 2>out
/conftest.err
)
24581 cat out
/conftest.err
>&5
24582 echo "$as_me:24582: \$? = $ac_status" >&5
24583 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24585 # The compiler can only warn and ignore the option if not recognized
24586 # So say no if there are warnings
24587 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24588 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24589 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24590 lt_cv_prog_compiler_c_o_GCJ
=yes
24595 # SGI C++ compiler will create directory out/ii_files/ for
24596 # template instantiation
24597 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24598 $rm out
/* && rmdir out
24604 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24608 hard_links
="nottested"
24609 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24610 # do not overwrite the value of need_locks provided by the user
24611 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24615 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24617 ln conftest.a conftest.b
2>&5 || hard_links
=no
24618 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24619 { echo "$as_me:$LINENO: result: $hard_links" >&5
24620 echo "${ECHO_T}$hard_links" >&6; }
24621 if test "$hard_links" = no
; then
24622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24630 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24634 allow_undefined_flag_GCJ
=
24635 enable_shared_with_static_runtimes_GCJ
=no
24637 archive_expsym_cmds_GCJ
=
24638 old_archive_From_new_cmds_GCJ
=
24639 old_archive_from_expsyms_cmds_GCJ
=
24640 export_dynamic_flag_spec_GCJ
=
24641 whole_archive_flag_spec_GCJ
=
24642 thread_safe_flag_spec_GCJ
=
24643 hardcode_libdir_flag_spec_GCJ
=
24644 hardcode_libdir_flag_spec_ld_GCJ
=
24645 hardcode_libdir_separator_GCJ
=
24646 hardcode_direct_GCJ
=no
24647 hardcode_minus_L_GCJ
=no
24648 hardcode_shlibpath_var_GCJ
=unsupported
24649 link_all_deplibs_GCJ
=unknown
24650 hardcode_automatic_GCJ
=no
24652 module_expsym_cmds_GCJ
=
24653 always_export_symbols_GCJ
=no
24654 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24655 # include_expsyms should be a list of space-separated symbols to be *always*
24656 # included in the symbol list
24657 include_expsyms_GCJ
=
24658 # exclude_expsyms can be an extended regexp of symbols to exclude
24659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24660 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24661 # as well as any symbol that contains `d'.
24662 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24664 # platforms (ab)use it in PIC code, but their linkers get confused if
24665 # the symbol is explicitly referenced. Since portable code cannot
24666 # rely on this symbol name, it's probably fine to never include it in
24667 # preloaded symbol tables.
24668 extract_expsyms_cmds
=
24669 # Just being paranoid about ensuring that cc_basename is set.
24670 for cc_temp
in $compiler""; do
24672 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24673 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24678 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24681 cygwin
* | mingw
* | pw32
*)
24682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24683 # When not using gcc, we currently assume that we are using
24684 # Microsoft Visual C++.
24685 if test "$GCC" != yes; then
24690 # we just hope/assume this is gcc and not c89 (= MSVC++)
24699 if test "$with_gnu_ld" = yes; then
24700 # If archive_cmds runs LD, not CC, wlarc should be empty
24703 # Set some defaults for GNU ld with shared library support. These
24704 # are reset later if shared libraries are not supported. Putting them
24705 # here allows them to be overridden if necessary.
24706 runpath_var
=LD_RUN_PATH
24707 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24708 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24709 # ancient GNU ld didn't support --whole-archive et. al.
24710 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24711 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24713 whole_archive_flag_spec_GCJ
=
24715 supports_anon_versioning
=no
24716 case `$LD -v 2>/dev/null` in
24717 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24718 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24719 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24720 *\
2.11.
*) ;; # other 2.11 versions
24721 *) supports_anon_versioning
=yes ;;
24724 # See if GNU ld supports shared libraries.
24726 aix3
* | aix4
* | aix5
*)
24727 # On AIX/PPC, the GNU linker is very broken
24728 if test "$host_cpu" != ia64
; then
24732 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24733 *** to be unable to reliably create shared libraries on AIX.
24734 *** Therefore, libtool is disabling shared libraries support. If you
24735 *** really care for shared libraries, you may want to modify your PATH
24736 *** so that a non-GNU linker is found, and then restart.
24743 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)'
24744 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24745 hardcode_minus_L_GCJ
=yes
24747 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24748 # that the semantics of dynamic libraries on AmigaOS, at least up
24749 # to version 4, is to share data among multiple programs linked
24750 # with the same dynamic library. Since this doesn't match the
24751 # behavior of shared libraries on other platforms, we can't use
24757 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24758 allow_undefined_flag_GCJ
=unsupported
24759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24760 # support --undefined. This deserves some investigation. FIXME
24761 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24767 cygwin
* | mingw
* | pw32
*)
24768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24769 # as there is no search path for DLLs.
24770 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24771 allow_undefined_flag_GCJ
=unsupported
24772 always_export_symbols_GCJ
=no
24773 enable_shared_with_static_runtimes_GCJ
=yes
24774 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24776 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24777 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24778 # If the export-symbols file already is a .def file (1st line
24779 # is EXPORTS), use it as is; otherwise, prepend...
24780 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24781 cp $export_symbols $output_objdir/$soname.def;
24783 echo EXPORTS > $output_objdir/$soname.def;
24784 cat $export_symbols >> $output_objdir/$soname.def;
24786 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24793 hardcode_direct_GCJ
=no
24794 hardcode_shlibpath_var_GCJ
=no
24795 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24796 export_dynamic_flag_spec_GCJ
='${wl}-E'
24797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24798 # Instead, shared libraries are loaded at an image base (0x10000000 by
24799 # default) and relocated if they conflict, which is a slow very memory
24800 # consuming and fragmenting process. To avoid this, we pick a random,
24801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24803 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'
24804 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'
24808 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24810 case $cc_basename,$host_cpu in
24811 pgcc
*) # Portland Group C compiler
24812 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'
24813 tmp_addflag
=' $pic_flag'
24815 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24816 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'
24817 tmp_addflag
=' $pic_flag -Mnomain' ;;
24818 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24819 tmp_addflag
=' -i_dynamic' ;;
24820 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24821 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24822 ifc
* | ifort
*) # Intel Fortran compiler
24823 tmp_addflag
=' -nofor_main' ;;
24825 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24827 if test $supports_anon_versioning = yes; then
24828 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24830 $echo "local: *; };" >> $output_objdir/$libname.ver~
24831 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24839 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24840 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24843 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24844 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24849 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24853 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24854 *** create shared libraries on Solaris systems. Therefore, libtool
24855 *** is disabling shared libraries support. We urge you to upgrade GNU
24856 *** binutils to release 2.9.1 or newer. Another option is to modify
24857 *** your PATH or compiler configuration so that the native linker is
24858 *** used, and then restart.
24861 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24862 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24863 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24869 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24870 case `$LD -v 2>&1` in
24871 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24875 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24876 *** reliably create shared libraries on SCO systems. Therefore, libtool
24877 *** is disabling shared libraries support. We urge you to upgrade GNU
24878 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24879 *** your PATH or compiler configuration so that the native linker is
24880 *** used, and then restart.
24885 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24886 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24887 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24888 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24897 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24899 hardcode_direct_GCJ
=yes
24900 hardcode_shlibpath_var_GCJ
=no
24904 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24905 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24906 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24913 if test "$ld_shlibs_GCJ" = no
; then
24915 hardcode_libdir_flag_spec_GCJ
=
24916 export_dynamic_flag_spec_GCJ
=
24917 whole_archive_flag_spec_GCJ
=
24920 # PORTME fill in a description of your system's linker (not GNU ld)
24923 allow_undefined_flag_GCJ
=unsupported
24924 always_export_symbols_GCJ
=yes
24925 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'
24926 # Note: this linker hardcodes the directories in LIBPATH if there
24927 # are no directories specified by -L.
24928 hardcode_minus_L_GCJ
=yes
24929 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24930 # Neither direct hardcoding nor static linking is supported with a
24932 hardcode_direct_GCJ
=unsupported
24937 if test "$host_cpu" = ia64
; then
24938 # On IA64, the linker does run time linking by default, so we don't
24939 # have to do anything special.
24940 aix_use_runtimelinking
=no
24941 exp_sym_flag
='-Bexport'
24944 # If we're using GNU nm, then we don't want the "-C" option.
24945 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24946 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24947 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'
24949 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'
24951 aix_use_runtimelinking
=no
24953 # Test if we are trying to use run time linking or normal
24954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24955 # need to do runtime linking.
24956 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24957 for ld_flag
in $LDFLAGS; do
24958 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24959 aix_use_runtimelinking
=yes
24966 exp_sym_flag
='-bexport'
24967 no_entry_flag
='-bnoentry'
24970 # When large executables or shared objects are built, AIX ld can
24971 # have problems creating the table of contents. If linking a library
24972 # or program results in "error TOC overflow" add -mminimal-toc to
24973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24976 archive_cmds_GCJ
=''
24977 hardcode_direct_GCJ
=yes
24978 hardcode_libdir_separator_GCJ
=':'
24979 link_all_deplibs_GCJ
=yes
24981 if test "$GCC" = yes; then
24982 case $host_os in aix4.
[012]|aix4.
[012].
*)
24983 # We only want to do this on AIX 4.2 and lower, the check
24984 # below for broken collect2 doesn't work under 4.3+
24985 collect2name
=`${CC} -print-prog-name=collect2`
24986 if test -f "$collect2name" && \
24987 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24989 # We have reworked collect2
24990 hardcode_direct_GCJ
=yes
24992 # We have old collect2
24993 hardcode_direct_GCJ
=unsupported
24994 # It fails to find uninstalled libraries when the uninstalled
24995 # path is not listed in the libpath. Setting hardcode_minus_L
24996 # to unsupported forces relinking
24997 hardcode_minus_L_GCJ
=yes
24998 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24999 hardcode_libdir_separator_GCJ
=
25003 shared_flag
='-shared'
25004 if test "$aix_use_runtimelinking" = yes; then
25005 shared_flag
="$shared_flag "'${wl}-G'
25009 if test "$host_cpu" = ia64
; then
25010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25011 # chokes on -Wl,-G. The following line is correct:
25014 if test "$aix_use_runtimelinking" = yes; then
25015 shared_flag
='${wl}-G'
25017 shared_flag
='${wl}-bM:SRE'
25022 # It seems that -bexpall does not export symbols beginning with
25023 # underscore (_), so it is better to generate a list of symbols to export.
25024 always_export_symbols_GCJ
=yes
25025 if test "$aix_use_runtimelinking" = yes; then
25026 # Warning - without using the other runtime loading flags (-brtl),
25027 # -berok will link without error, but may produce a broken library.
25028 allow_undefined_flag_GCJ
='-berok'
25029 # Determine the default libpath from the value encoded in an empty executable.
25030 cat >conftest.
$ac_ext <<_ACEOF
25033 cat confdefs.h
>>conftest.
$ac_ext
25034 cat >>conftest.
$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25045 rm -f conftest.
$ac_objext conftest
$ac_exeext
25046 if { (ac_try
="$ac_link"
25047 case "(($ac_try" in
25048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_link") 2>conftest.er1
25054 grep -v '^ *+' conftest.er1 >conftest.err
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } &&
25059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25060 { (case "(($ac_try" in
25061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25062 *) ac_try_echo
=$ac_try;;
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065 (eval "$ac_try") 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try
='test -s conftest$ac_exeext'
25070 { (case "(($ac_try" in
25071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_try") 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25080 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25082 # Check for a 64-bit object if we didn't find anything.
25083 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; }
25086 echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25092 rm -f core conftest.err conftest.$ac_objext \
25093 conftest$ac_exeext conftest.$ac_ext
25094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25096 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25097 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"
25099 if test "$host_cpu" = ia64; then
25100 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25101 allow_undefined_flag_GCJ="-z nodefs"
25102 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"
25104 # Determine the default libpath from the value encoded in an empty executable.
25105 cat >conftest.$ac_ext <<_ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25120 rm -f conftest.$ac_objext conftest$ac_exeext
25121 if { (ac_try="$ac_link"
25122 case "(($ac_try" in
25123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25124 *) ac_try_echo
=$ac_try;;
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_link") 2>conftest.er1
25129 grep -v '^ *+' conftest.er1
>conftest.err
25131 cat conftest.err
>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } &&
25134 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25135 { (case "(($ac_try" in
25136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25137 *) ac_try_echo=$ac_try;;
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140 (eval "$ac_try") 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; } &&
25144 { ac_try='test -s conftest$ac_exeext'
25145 { (case "(($ac_try" in
25146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25147 *) ac_try_echo
=$ac_try;;
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_try") 2>&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; }; then
25155 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25157 # Check for a 64-bit object if we didn't find anything.
25158 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; }
25161 echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.
$ac_ext >&5
25167 rm -f core conftest.err conftest.
$ac_objext \
25168 conftest
$ac_exeext conftest.
$ac_ext
25169 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
25171 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
25172 # Warning - without using the other run time loading flags,
25173 # -berok will link without error, but may produce a broken library.
25174 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25175 allow_undefined_flag_GCJ
=' ${wl}-berok'
25176 # Exported symbols can be pulled into shared objects from archives
25177 whole_archive_flag_spec_GCJ
='$convenience'
25178 archive_cmds_need_lc_GCJ
=yes
25179 # This is similar to how AIX traditionally builds its shared libraries.
25180 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'
25186 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)'
25187 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25188 hardcode_minus_L_GCJ
=yes
25189 # see comment about different semantics on the GNU ld section
25194 export_dynamic_flag_spec_GCJ
=-rdynamic
25197 cygwin
* | mingw
* | pw32
*)
25198 # When not using gcc, we currently assume that we are using
25199 # Microsoft Visual C++.
25200 # hardcode_libdir_flag_spec is actually meaningless, as there is
25201 # no search path for DLLs.
25202 hardcode_libdir_flag_spec_GCJ
=' '
25203 allow_undefined_flag_GCJ
=unsupported
25204 # Tell ltmain to make .lib files, not .a files.
25206 # Tell ltmain to make .dll files, not .so files.
25208 # FIXME: Setting linknames here is a bad hack.
25209 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25210 # The linker will automatically build a .lib file if we build a DLL.
25211 old_archive_From_new_cmds_GCJ
='true'
25212 # FIXME: Should let the user specify the lib program.
25213 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25214 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25215 enable_shared_with_static_runtimes_GCJ
=yes
25218 darwin
* | rhapsody
*)
25220 rhapsody
* | darwin1.
[012])
25221 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25225 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25227 case ${MACOSX_DEPLOYMENT_TARGET} in
25229 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25232 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25238 archive_cmds_need_lc_GCJ
=no
25239 hardcode_direct_GCJ
=no
25240 hardcode_automatic_GCJ
=yes
25241 hardcode_shlibpath_var_GCJ
=unsupported
25242 whole_archive_flag_spec_GCJ
=''
25243 link_all_deplibs_GCJ
=yes
25244 if test "$GCC" = yes ; then
25245 output_verbose_link_cmd
='echo'
25246 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25247 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25249 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}'
25250 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}'
25252 case $cc_basename in
25254 output_verbose_link_cmd
='echo'
25255 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25256 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25258 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}'
25259 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}'
25269 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25270 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25271 hardcode_shlibpath_var_GCJ
=no
25278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25279 # support. Future versions do this automatically, but an explicit c++rt0.o
25280 # does not break anything, and helps significantly (at the cost of a little
25283 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25284 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25285 hardcode_direct_GCJ
=yes
25286 hardcode_shlibpath_var_GCJ
=no
25289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25291 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25292 hardcode_direct_GCJ
=yes
25293 hardcode_minus_L_GCJ
=yes
25294 hardcode_shlibpath_var_GCJ
=no
25297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25298 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25299 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25300 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25301 hardcode_direct_GCJ
=yes
25302 hardcode_shlibpath_var_GCJ
=no
25306 if test "$GCC" = yes; then
25307 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'
25309 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'
25311 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25312 hardcode_libdir_separator_GCJ
=:
25313 hardcode_direct_GCJ
=yes
25315 # hardcode_minus_L: Not really in the search PATH,
25316 # but as the default location of the library.
25317 hardcode_minus_L_GCJ
=yes
25318 export_dynamic_flag_spec_GCJ
='${wl}-E'
25322 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25323 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25325 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25327 if test "$with_gnu_ld" = no
; then
25328 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25329 hardcode_libdir_separator_GCJ
=:
25331 hardcode_direct_GCJ
=yes
25332 export_dynamic_flag_spec_GCJ
='${wl}-E'
25334 # hardcode_minus_L: Not really in the search PATH,
25335 # but as the default location of the library.
25336 hardcode_minus_L_GCJ
=yes
25341 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25344 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25347 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25350 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25356 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25359 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25362 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25366 if test "$with_gnu_ld" = no
; then
25367 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25368 hardcode_libdir_separator_GCJ
=:
25372 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25373 hardcode_direct_GCJ
=no
25374 hardcode_shlibpath_var_GCJ
=no
25377 hardcode_direct_GCJ
=yes
25378 export_dynamic_flag_spec_GCJ
='${wl}-E'
25380 # hardcode_minus_L: Not really in the search PATH,
25381 # but as the default location of the library.
25382 hardcode_minus_L_GCJ
=yes
25388 irix5
* | irix6
* | nonstopux
*)
25389 if test "$GCC" = yes; then
25390 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'
25392 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'
25393 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25395 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25396 hardcode_libdir_separator_GCJ
=:
25397 link_all_deplibs_GCJ
=yes
25401 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25402 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25404 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25406 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25407 hardcode_direct_GCJ
=yes
25408 hardcode_shlibpath_var_GCJ
=no
25412 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25413 hardcode_direct_GCJ
=yes
25414 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25415 hardcode_libdir_separator_GCJ
=:
25416 hardcode_shlibpath_var_GCJ
=no
25420 hardcode_direct_GCJ
=yes
25421 hardcode_shlibpath_var_GCJ
=no
25422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25423 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25424 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25425 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25426 export_dynamic_flag_spec_GCJ
='${wl}-E'
25429 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25430 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25431 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25434 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25435 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25442 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25443 hardcode_minus_L_GCJ
=yes
25444 allow_undefined_flag_GCJ
=unsupported
25445 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'
25446 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25450 if test "$GCC" = yes; then
25451 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25452 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'
25454 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25455 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'
25457 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25458 hardcode_libdir_separator_GCJ
=:
25461 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25462 if test "$GCC" = yes; then
25463 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25464 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'
25465 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25467 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25468 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'
25469 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~
25470 $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'
25472 # Both c and cxx compiler support -rpath directly
25473 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25475 hardcode_libdir_separator_GCJ
=:
25479 no_undefined_flag_GCJ
=' -z text'
25480 if test "$GCC" = yes; then
25482 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25483 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25484 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25487 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25488 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25491 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25492 hardcode_shlibpath_var_GCJ
=no
25494 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25496 # The compiler driver will combine linker options so we
25497 # cannot just pass the convience library names through
25498 # without $wl, iff we do not link with $LD.
25499 # Luckily, gcc supports the same syntax we need for Sun Studio.
25500 # Supported since Solaris 2.6 (maybe 2.5.1?)
25503 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25505 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' ;;
25508 link_all_deplibs_GCJ
=yes
25512 if test "x$host_vendor" = xsequent
; then
25513 # Use $CC to link under sequent, because it throws in some extra .o
25514 # files that make .init and .fini sections work.
25515 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25517 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25519 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25520 hardcode_direct_GCJ
=yes
25521 hardcode_minus_L_GCJ
=yes
25522 hardcode_shlibpath_var_GCJ
=no
25526 case $host_vendor in
25528 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25529 hardcode_direct_GCJ
=yes # is this really true???
25532 ## LD is ld it makes a PLAMLIB
25533 ## CC just makes a GrossModule.
25534 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25535 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25536 hardcode_direct_GCJ
=no
25539 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25540 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25543 runpath_var
='LD_RUN_PATH'
25544 hardcode_shlibpath_var_GCJ
=no
25548 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25549 hardcode_shlibpath_var_GCJ
=no
25550 export_dynamic_flag_spec_GCJ
='-Bexport'
25554 if test -d /usr
/nec
; then
25555 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25556 hardcode_shlibpath_var_GCJ
=no
25557 runpath_var
=LD_RUN_PATH
25558 hardcode_runpath_var
=yes
25563 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25564 no_undefined_flag_GCJ
='${wl}-z,text'
25565 archive_cmds_need_lc_GCJ
=no
25566 hardcode_shlibpath_var_GCJ
=no
25567 runpath_var
='LD_RUN_PATH'
25569 if test "$GCC" = yes; then
25570 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25571 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25573 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25574 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25578 sysv5
* | sco3.2v5
* | sco5v6
*)
25579 # Note: We can NOT use -z defs as we might desire, because we do not
25580 # link with -lc, and that would cause any symbols used from libc to
25581 # always be unresolved, which means just about no library would
25582 # ever link correctly. If we're not using GNU ld we use -z text
25583 # though, which does catch some bad symbols but isn't as heavy-handed
25585 no_undefined_flag_GCJ
='${wl}-z,text'
25586 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25587 archive_cmds_need_lc_GCJ
=no
25588 hardcode_shlibpath_var_GCJ
=no
25589 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25590 hardcode_libdir_separator_GCJ
=':'
25591 link_all_deplibs_GCJ
=yes
25592 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25593 runpath_var
='LD_RUN_PATH'
25595 if test "$GCC" = yes; then
25596 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25597 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25599 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25600 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25605 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25606 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25607 hardcode_shlibpath_var_GCJ
=no
25616 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25617 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25618 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25621 # Do we need to explicitly link libc?
25623 case "x$archive_cmds_need_lc_GCJ" in
25625 # Assume -lc should be added
25626 archive_cmds_need_lc_GCJ
=yes
25628 if test "$enable_shared" = yes && test "$GCC" = yes; then
25629 case $archive_cmds_GCJ in
25631 # FIXME: we may have to deal with multi-command sequences.
25634 # Test whether the compiler implicitly links with -lc since on some
25635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25636 # to ld, don't add -lc before -lgcc.
25637 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25640 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25643 (eval $ac_compile) 2>&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } 2>conftest.err
; then
25649 libobjs
=conftest.
$ac_objext
25651 wl
=$lt_prog_compiler_wl_GCJ
25652 pic_flag
=$lt_prog_compiler_pic_GCJ
25658 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25659 allow_undefined_flag_GCJ
=
25660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25661 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); }
25666 archive_cmds_need_lc_GCJ
=no
25668 archive_cmds_need_lc_GCJ
=yes
25670 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25672 cat conftest.err
1>&5
25675 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25676 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25683 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25685 library_names_spec
=
25686 libname_spec
='lib$name'
25690 postuninstall_cmds
=
25694 shlibpath_overrides_runpath
=unknown
25696 dynamic_linker
="$host_os ld.so"
25697 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25698 if test "$GCC" = yes; then
25699 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25700 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25701 # if the path contains ";" then we assume it to be the separator
25702 # otherwise default to the standard path separator (i.e. ":") - it is
25703 # assumed that no part of a normal pathname contains ";" but that should
25704 # okay in the real world where ";" in dirpaths is itself problematic.
25705 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25707 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25710 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25712 need_lib_prefix
=unknown
25713 hardcode_into_libs
=no
25715 # when you set need_version to no, make sure it does not cause -set_version
25716 # flags to be left without arguments
25717 need_version
=unknown
25722 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25723 shlibpath_var
=LIBPATH
25725 # AIX 3 has no versioning support, so we append a major version to the name.
25726 soname_spec
='${libname}${release}${shared_ext}$major'
25733 hardcode_into_libs
=yes
25734 if test "$host_cpu" = ia64
; then
25735 # AIX 5 supports IA64
25736 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25737 shlibpath_var
=LD_LIBRARY_PATH
25739 # With GCC up to 2.95.x, collect2 would create an import file
25740 # for dependence libraries. The import file would start with
25741 # the line `#! .'. This would cause the generated library to
25742 # depend on `.', always an invalid library. This was fixed in
25743 # development snapshots of GCC prior to 3.0.
25745 aix4 | aix4.
[01] | aix4.
[01].
*)
25746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25748 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25751 can_build_shared
=no
25755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25756 # soname into executable. Probably we can add versioning support to
25757 # collect2, so additional links can be useful in future.
25758 if test "$aix_use_runtimelinking" = yes; then
25759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25760 # instead of lib<name>.a to let people know that these are not
25761 # typical AIX shared libraries.
25762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25764 # We preserve .a as extension for shared libraries through AIX4.2
25765 # and later when we are not doing run time linking.
25766 library_names_spec
='${libname}${release}.a $libname.a'
25767 soname_spec
='${libname}${release}${shared_ext}$major'
25769 shlibpath_var
=LIBPATH
25774 library_names_spec
='$libname.ixlibrary $libname.a'
25775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25776 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'
25780 library_names_spec
='${libname}${shared_ext}'
25781 dynamic_linker
="$host_os ld.so"
25782 shlibpath_var
=LIBRARY_PATH
25788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25789 soname_spec
='${libname}${release}${shared_ext}$major'
25790 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25791 shlibpath_var
=LD_LIBRARY_PATH
25792 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25793 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25794 # the default ld.so.conf also contains /usr/contrib/lib and
25795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25796 # libtool to hard-code these into programs
25799 cygwin
* | mingw
* | pw32
*)
25800 version_type
=windows
25805 case $GCC,$host_os in
25806 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25807 library_names_spec
='$libname.dll.a'
25808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25809 postinstall_cmds
='base_file=`basename \${file}`~
25810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25811 dldir=$destdir/`dirname \$dlpath`~
25812 test -d \$dldir || mkdir -p \$dldir~
25813 $install_prog $dir/$dlname \$dldir/$dlname~
25814 chmod a+x \$dldir/$dlname'
25815 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25816 dlpath=$dir/\$dldll~
25818 shlibpath_overrides_runpath
=yes
25822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25823 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25824 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25827 # MinGW DLLs use traditional 'lib' prefix
25828 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25829 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25830 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25831 # It is most probably a Windows format PATH printed by
25832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25833 # path with ; separators, and with drive letters. We can handle the
25834 # drive letters (cygwin fileutils understands them), so leave them,
25835 # especially as we might pass files found there to a mingw objdump,
25836 # which wouldn't understand a cygwinified path. Ahh.
25837 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25839 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25843 # pw32 DLLs use 'pw' prefix rather than 'lib'
25844 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25850 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25853 dynamic_linker
='Win32 ld.exe'
25854 # FIXME: first we should search . and the directory the executable is in
25858 darwin
* | rhapsody
*)
25859 dynamic_linker
="$host_os dyld"
25860 version_type
=darwin
25863 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25864 soname_spec
='${libname}${release}${major}$shared_ext'
25865 shlibpath_overrides_runpath
=yes
25866 shlibpath_var
=DYLD_LIBRARY_PATH
25867 shrext_cmds
='.dylib'
25868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25869 if test "$GCC" = yes; then
25870 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"`
25872 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25874 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25882 soname_spec
='${libname}${release}${shared_ext}$major'
25883 shlibpath_var
=LD_LIBRARY_PATH
25894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25895 soname_spec
='${libname}${release}${shared_ext}$major'
25896 shlibpath_var
=LD_LIBRARY_PATH
25897 shlibpath_overrides_runpath
=no
25898 hardcode_into_libs
=yes
25899 dynamic_linker
='GNU ld.so'
25902 freebsd
* | dragonfly
*)
25903 # DragonFly does not have aout. When/if they implement a new
25904 # versioning mechanism, adjust this.
25905 if test -x /usr
/bin
/objformat
; then
25906 objformat
=`/usr/bin/objformat`
25909 freebsd
[123]*) objformat
=aout
;;
25910 *) objformat
=elf
;;
25913 version_type
=freebsd-
$objformat
25914 case $version_type in
25916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25921 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25925 shlibpath_var
=LD_LIBRARY_PATH
25928 shlibpath_overrides_runpath
=yes
25930 freebsd3.
[01]* | freebsdelf3.
[01]*)
25931 shlibpath_overrides_runpath
=yes
25932 hardcode_into_libs
=yes
25934 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25935 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25936 shlibpath_overrides_runpath
=no
25937 hardcode_into_libs
=yes
25939 freebsd
*) # from 4.6 on
25940 shlibpath_overrides_runpath
=yes
25941 hardcode_into_libs
=yes
25950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25951 soname_spec
='${libname}${release}${shared_ext}$major'
25952 shlibpath_var
=LD_LIBRARY_PATH
25953 hardcode_into_libs
=yes
25956 hpux9
* | hpux10
* | hpux11
*)
25957 # Give a soname corresponding to the major version so that dld.sl refuses to
25958 # link against other versions.
25965 hardcode_into_libs
=yes
25966 dynamic_linker
="$host_os dld.so"
25967 shlibpath_var
=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970 soname_spec
='${libname}${release}${shared_ext}$major'
25971 if test "X$HPUX_IA64_MODE" = X32
; then
25972 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25974 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25976 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25980 hardcode_into_libs
=yes
25981 dynamic_linker
="$host_os dld.sl"
25982 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25983 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 soname_spec
='${libname}${release}${shared_ext}$major'
25986 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25987 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25991 dynamic_linker
="$host_os dld.sl"
25992 shlibpath_var
=SHLIB_PATH
25993 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25995 soname_spec
='${libname}${release}${shared_ext}$major'
25998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25999 postinstall_cmds
='chmod 555 $lib'
26006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26007 soname_spec
='${libname}${release}${shared_ext}$major'
26008 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
26009 shlibpath_var
=LD_LIBRARY_PATH
26010 shlibpath_overrides_runpath
=no
26011 hardcode_into_libs
=yes
26014 irix5
* | irix6
* | nonstopux
*)
26016 nonstopux
*) version_type
=nonstopux
;;
26018 if test "$lt_cv_prog_gnu_ld" = yes; then
26026 soname_spec
='${libname}${release}${shared_ext}$major'
26027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26029 irix5
* | nonstopux
*)
26030 libsuff
= shlibsuff
=
26033 case $LD in # libtool.m4 will add one of these switches to LD
26034 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
26035 libsuff
= shlibsuff
= libmagic
=32-bit;;
26036 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
26037 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
26038 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
26039 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
26040 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
26044 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
26045 shlibpath_overrides_runpath
=no
26046 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26047 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
26048 hardcode_into_libs
=yes
26051 # No shared lib support for Linux oldld, aout, or coff.
26052 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
26056 # This must be Linux ELF.
26061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26062 soname_spec
='${libname}${release}${shared_ext}$major'
26063 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26064 shlibpath_var
=LD_LIBRARY_PATH
26065 shlibpath_overrides_runpath
=no
26066 # This implies no fast_install, which is unacceptable.
26067 # Some rework will be needed to allow for fast_install
26068 # before this can be enabled.
26069 hardcode_into_libs
=yes
26071 # Append ld.so.conf contents to the search path
26072 if test -f /etc
/ld.so.conf
; then
26073 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' ' '`
26074 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
26077 # We used to test for /lib/ld.so.1 and disable shared libraries on
26078 # powerpc, because MkLinux only supported shared libraries with the
26079 # GNU dynamic linker. Since this was broken with cross compilers,
26080 # most powerpc-linux boxes support dynamic linking these days and
26081 # people can always --disable-shared, the test was removed, and we
26082 # assume the GNU/Linux dynamic linker is in use.
26083 dynamic_linker
='GNU/Linux ld.so'
26090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26091 soname_spec
='${libname}${release}${shared_ext}$major'
26092 shlibpath_var
=LD_LIBRARY_PATH
26093 shlibpath_overrides_runpath
=no
26094 hardcode_into_libs
=yes
26095 dynamic_linker
='GNU ld.so'
26102 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
26103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26104 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26105 dynamic_linker
='NetBSD (a.out) ld.so'
26107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26108 soname_spec
='${libname}${release}${shared_ext}$major'
26109 dynamic_linker
='NetBSD ld.elf_so'
26111 shlibpath_var
=LD_LIBRARY_PATH
26112 shlibpath_overrides_runpath
=yes
26113 hardcode_into_libs
=yes
26118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26119 shlibpath_var
=LD_LIBRARY_PATH
26120 shlibpath_overrides_runpath
=yes
26127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26128 soname_spec
='${libname}${release}${shared_ext}$major'
26129 shlibpath_var
=LD_LIBRARY_PATH
26130 shlibpath_overrides_runpath
=yes
26135 sys_lib_dlsearch_path_spec
="/usr/lib"
26137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26139 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
26140 *) need_version
=no
;;
26142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26143 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26144 shlibpath_var
=LD_LIBRARY_PATH
26145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26147 openbsd2.
[89] | openbsd2.
[89].
*)
26148 shlibpath_overrides_runpath
=no
26151 shlibpath_overrides_runpath
=yes
26155 shlibpath_overrides_runpath
=yes
26160 libname_spec
='$name'
26163 library_names_spec
='$libname${shared_ext} $libname.a'
26164 dynamic_linker
='OS/2 ld.exe'
26165 shlibpath_var
=LIBPATH
26168 osf3
* | osf4
* | osf5
*)
26172 soname_spec
='${libname}${release}${shared_ext}$major'
26173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26174 shlibpath_var
=LD_LIBRARY_PATH
26175 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26176 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26184 soname_spec
='${libname}${release}${shared_ext}$major'
26185 shlibpath_var
=LD_LIBRARY_PATH
26186 shlibpath_overrides_runpath
=yes
26187 hardcode_into_libs
=yes
26188 # ldd complains unless libraries are executable
26189 postinstall_cmds
='chmod +x $lib'
26194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26195 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26196 shlibpath_var
=LD_LIBRARY_PATH
26197 shlibpath_overrides_runpath
=yes
26198 if test "$with_gnu_ld" = yes; then
26206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26207 soname_spec
='${libname}${release}${shared_ext}$major'
26208 shlibpath_var
=LD_LIBRARY_PATH
26209 case $host_vendor in
26211 shlibpath_overrides_runpath
=no
26213 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26214 runpath_var
=LD_RUN_PATH
26222 shlibpath_overrides_runpath
=no
26223 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26229 if test -d /usr
/nec
;then
26231 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26232 soname_spec
='$libname${shared_ext}.$major'
26233 shlibpath_var
=LD_LIBRARY_PATH
26237 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26238 version_type
=freebsd-elf
26241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26242 soname_spec
='${libname}${release}${shared_ext}$major'
26243 shlibpath_var
=LD_LIBRARY_PATH
26244 hardcode_into_libs
=yes
26245 if test "$with_gnu_ld" = yes; then
26246 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26247 shlibpath_overrides_runpath
=no
26249 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26250 shlibpath_overrides_runpath
=yes
26253 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26257 sys_lib_dlsearch_path_spec
='/usr/lib'
26262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26263 soname_spec
='${libname}${release}${shared_ext}$major'
26264 shlibpath_var
=LD_LIBRARY_PATH
26271 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26272 echo "${ECHO_T}$dynamic_linker" >&6; }
26273 test "$dynamic_linker" = no
&& can_build_shared
=no
26275 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26276 if test "$GCC" = yes; then
26277 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26280 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26282 hardcode_action_GCJ
=
26283 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26284 test -n "$runpath_var_GCJ" || \
26285 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26287 # We can hardcode non-existant directories.
26288 if test "$hardcode_direct_GCJ" != no
&&
26289 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26290 # have to relink, otherwise we might link with an installed library
26291 # when we should be linking with a yet-to-be-installed one
26292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26293 test "$hardcode_minus_L_GCJ" != no
; then
26294 # Linking always hardcodes the temporary library directory.
26295 hardcode_action_GCJ
=relink
26297 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26298 hardcode_action_GCJ
=immediate
26301 # We cannot hardcode anything, or else we can only hardcode existing
26303 hardcode_action_GCJ
=unsupported
26305 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26306 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26308 if test "$hardcode_action_GCJ" = relink
; then
26309 # Fast installation is not supported
26310 enable_fast_install
=no
26311 elif test "$shlibpath_overrides_runpath" = yes ||
26312 test "$enable_shared" = no
; then
26313 # Fast installation is not necessary
26314 enable_fast_install
=needless
26318 # The else clause should only fire when bootstrapping the
26319 # libtool distribution, otherwise you forgot to ship ltmain.sh
26320 # with your package, and you will get complaints that there are
26321 # no rules to generate ltmain.sh.
26322 if test -f "$ltmain"; then
26323 # See if we are running on zsh, and set the options which allow our commands through
26324 # without removal of \ escapes.
26325 if test -n "${ZSH_VERSION+set}" ; then
26326 setopt NO_GLOB_SUBST
26328 # Now quote all the things that may contain metacharacters while being
26329 # careful not to overquote the AC_SUBSTed values. We take copies of the
26330 # variables and quote the copies for generation of the libtool script.
26331 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26335 deplibs_check_method reload_flag reload_cmds need_locks \
26336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26337 lt_cv_sys_global_symbol_to_c_name_address \
26338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26339 old_postinstall_cmds old_postuninstall_cmds \
26343 lt_prog_compiler_wl_GCJ \
26344 lt_prog_compiler_pic_GCJ \
26345 lt_prog_compiler_static_GCJ \
26346 lt_prog_compiler_no_builtin_flag_GCJ \
26347 export_dynamic_flag_spec_GCJ \
26348 thread_safe_flag_spec_GCJ \
26349 whole_archive_flag_spec_GCJ \
26350 enable_shared_with_static_runtimes_GCJ \
26351 old_archive_cmds_GCJ \
26352 old_archive_from_new_cmds_GCJ \
26353 predep_objects_GCJ \
26354 postdep_objects_GCJ \
26357 compiler_lib_search_path_GCJ \
26359 archive_expsym_cmds_GCJ \
26360 postinstall_cmds_GCJ \
26361 postuninstall_cmds_GCJ \
26362 old_archive_from_expsyms_cmds_GCJ \
26363 allow_undefined_flag_GCJ \
26364 no_undefined_flag_GCJ \
26365 export_symbols_cmds_GCJ \
26366 hardcode_libdir_flag_spec_GCJ \
26367 hardcode_libdir_flag_spec_ld_GCJ \
26368 hardcode_libdir_separator_GCJ \
26369 hardcode_automatic_GCJ \
26371 module_expsym_cmds_GCJ \
26372 lt_cv_prog_compiler_c_o_GCJ \
26373 exclude_expsyms_GCJ \
26374 include_expsyms_GCJ
; do
26377 old_archive_cmds_GCJ | \
26378 old_archive_from_new_cmds_GCJ | \
26379 archive_cmds_GCJ | \
26380 archive_expsym_cmds_GCJ | \
26381 module_cmds_GCJ | \
26382 module_expsym_cmds_GCJ | \
26383 old_archive_from_expsyms_cmds_GCJ | \
26384 export_symbols_cmds_GCJ | \
26385 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26386 postinstall_cmds | postuninstall_cmds | \
26387 old_postinstall_cmds | old_postuninstall_cmds | \
26388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26389 # Double-quote double-evaled strings.
26390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26399 *'\$0 --fallback-echo"')
26400 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26406 cat <<__EOF__ >> "$cfgfile"
26407 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26411 # Shell to use when invoking shell scripts.
26414 # Whether or not to build shared libraries.
26415 build_libtool_libs=$enable_shared
26417 # Whether or not to build static libraries.
26418 build_old_libs=$enable_static
26420 # Whether or not to add -lc for building shared libraries.
26421 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26423 # Whether or not to disallow shared libs when runtime libs are static
26424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26426 # Whether or not to optimize for fast installation.
26427 fast_install=$enable_fast_install
26430 host_alias=$host_alias
26434 # The build system.
26435 build_alias=$build_alias
26439 # An echo program that does not interpret backslashes.
26444 AR_FLAGS=$lt_AR_FLAGS
26449 # LTCC compiler flags.
26450 LTCFLAGS=$lt_LTCFLAGS
26452 # A language-specific compiler.
26453 CC=$lt_compiler_GCJ
26455 # Is the compiler the GNU C compiler?
26461 # The linker used to build libraries.
26464 # Whether we need hard or soft links.
26467 # A BSD-compatible nm program.
26470 # A symbol stripping program
26473 # Used to examine libraries when file_magic_cmd begins "file"
26474 MAGIC_CMD=$MAGIC_CMD
26476 # Used on cygwin: DLL creation program.
26479 # Used on cygwin: object dumper.
26482 # Used on cygwin: assembler.
26485 # The name of the directory that contains temporary libtool files.
26488 # How to create reloadable object files.
26489 reload_flag=$lt_reload_flag
26490 reload_cmds=$lt_reload_cmds
26492 # How to pass a linker flag through the compiler.
26493 wl=$lt_lt_prog_compiler_wl_GCJ
26495 # Object file suffix (normally "o").
26496 objext="$ac_objext"
26498 # Old archive suffix (normally "a").
26501 # Shared library suffix (normally ".so").
26502 shrext_cmds='$shrext_cmds'
26504 # Executable file suffix (normally "").
26507 # Additional compiler flags for building library objects.
26508 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26511 # What is the maximum length of a command?
26512 max_cmd_len=$lt_cv_sys_max_cmd_len
26514 # Does compiler simultaneously support -c and -o options?
26515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26517 # Must we lock files when doing compilation?
26518 need_locks=$lt_need_locks
26520 # Do we need the lib prefix for modules?
26521 need_lib_prefix=$need_lib_prefix
26523 # Do we need a version for libraries?
26524 need_version=$need_version
26526 # Whether dlopen is supported.
26527 dlopen_support=$enable_dlopen
26529 # Whether dlopen of programs is supported.
26530 dlopen_self=$enable_dlopen_self
26532 # Whether dlopen of statically linked programs is supported.
26533 dlopen_self_static=$enable_dlopen_self_static
26535 # Compiler flag to prevent dynamic linking.
26536 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26538 # Compiler flag to turn off builtin functions.
26539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26541 # Compiler flag to allow reflexive dlopens.
26542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26544 # Compiler flag to generate shared objects directly from archives.
26545 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26547 # Compiler flag to generate thread-safe objects.
26548 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26550 # Library versioning type.
26551 version_type=$version_type
26553 # Format of library name prefix.
26554 libname_spec=$lt_libname_spec
26556 # List of archive names. First name is the real one, the rest are links.
26557 # The last name is the one that the linker finds with -lNAME.
26558 library_names_spec=$lt_library_names_spec
26560 # The coded name of the library, if different from the real name.
26561 soname_spec=$lt_soname_spec
26563 # Commands used to build and install an old-style archive.
26565 old_archive_cmds=$lt_old_archive_cmds_GCJ
26566 old_postinstall_cmds=$lt_old_postinstall_cmds
26567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26569 # Create an old-style archive from a shared archive.
26570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26572 # Create a temporary old-style archive to link instead of a shared archive.
26573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26575 # Commands used to build and install a shared archive.
26576 archive_cmds=$lt_archive_cmds_GCJ
26577 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26578 postinstall_cmds=$lt_postinstall_cmds
26579 postuninstall_cmds=$lt_postuninstall_cmds
26581 # Commands used to build a loadable module (assumed same as above if empty)
26582 module_cmds=$lt_module_cmds_GCJ
26583 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26585 # Commands to strip libraries.
26586 old_striplib=$lt_old_striplib
26587 striplib=$lt_striplib
26589 # Dependencies to place before the objects being linked to create a
26591 predep_objects=$lt_predep_objects_GCJ
26593 # Dependencies to place after the objects being linked to create a
26595 postdep_objects=$lt_postdep_objects_GCJ
26597 # Dependencies to place before the objects being linked to create a
26599 predeps=$lt_predeps_GCJ
26601 # Dependencies to place after the objects being linked to create a
26603 postdeps=$lt_postdeps_GCJ
26605 # The library search path used internally by the compiler when linking
26606 # a shared library.
26607 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26609 # Method to check whether dependent libraries are shared objects.
26610 deplibs_check_method=$lt_deplibs_check_method
26612 # Command to use when deplibs_check_method == file_magic.
26613 file_magic_cmd=$lt_file_magic_cmd
26615 # Flag that allows shared libraries with undefined symbols to be built.
26616 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26618 # Flag that forces no undefined symbols.
26619 no_undefined_flag=$lt_no_undefined_flag_GCJ
26621 # Commands used to finish a libtool library installation in a directory.
26622 finish_cmds=$lt_finish_cmds
26624 # Same as above, but a single script fragment to be evaled but not shown.
26625 finish_eval=$lt_finish_eval
26627 # Take the output of nm and produce a listing of raw symbols and C names.
26628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26630 # Transform the output of nm in a proper C declaration
26631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26633 # Transform the output of nm in a C name address pair
26634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26636 # This is the shared library runtime path variable.
26637 runpath_var=$runpath_var
26639 # This is the shared library path variable.
26640 shlibpath_var=$shlibpath_var
26642 # Is shlibpath searched before the hard-coded library search path?
26643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26645 # How to hardcode a shared library path into an executable.
26646 hardcode_action=$hardcode_action_GCJ
26648 # Whether we should hardcode library paths into libraries.
26649 hardcode_into_libs=$hardcode_into_libs
26651 # Flag to hardcode \$libdir into a binary during linking.
26652 # This must work even if \$libdir does not exist.
26653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26655 # If ld is used when linking, flag to hardcode \$libdir into
26656 # a binary during linking. This must work even if \$libdir does
26658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26660 # Whether we need a single -rpath flag with a separated argument.
26661 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26664 # resulting binary.
26665 hardcode_direct=$hardcode_direct_GCJ
26667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26668 # resulting binary.
26669 hardcode_minus_L=$hardcode_minus_L_GCJ
26671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26672 # the resulting binary.
26673 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26675 # Set to yes if building a shared library automatically hardcodes DIR into the library
26676 # and all subsequent libraries and executables linked against it.
26677 hardcode_automatic=$hardcode_automatic_GCJ
26679 # Variables whose values should be saved in libtool wrapper scripts and
26680 # restored at relink time.
26681 variables_saved_for_relink="$variables_saved_for_relink"
26683 # Whether libtool must link a program against all its dependency libraries.
26684 link_all_deplibs=$link_all_deplibs_GCJ
26686 # Compile-time system search path for libraries
26687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26689 # Run-time system search path for libraries
26690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26692 # Fix the shell variable \$srcfile for the compiler.
26693 fix_srcfile_path="$fix_srcfile_path_GCJ"
26695 # Set to yes if exported symbols are required.
26696 always_export_symbols=$always_export_symbols_GCJ
26698 # The commands to list exported symbols.
26699 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26701 # The commands to extract the exported symbol list from a shared archive.
26702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26704 # Symbols that should not be listed in the preloaded symbols.
26705 exclude_expsyms=$lt_exclude_expsyms_GCJ
26707 # Symbols that must always be exported.
26708 include_expsyms=$lt_include_expsyms_GCJ
26710 # ### END LIBTOOL TAG CONFIG: $tagname
26716 # If there is no Makefile yet, we rely on a make rule to execute
26717 # `config.status --recheck' to rerun these tests and create the
26718 # libtool script then.
26719 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26720 if test -f "$ltmain_in"; then
26721 test -f Makefile
&& make "$ltmain"
26727 ac_cpp
='$CPP $CPPFLAGS'
26728 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26729 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26730 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26741 ac_cpp
='$CPP $CPPFLAGS'
26742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26747 # Source file extension for RC test sources.
26750 # Object file extension for compiled RC test sources.
26754 # Code to be used in simple compile tests
26755 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26757 # Code to be used in simple link tests
26758 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26762 # If no C compiler was specified, use CC.
26765 # If no C compiler flags were specified, use CFLAGS.
26766 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26768 # Allow CC to be a program name with arguments.
26772 # save warnings/boilerplate of simple test code
26773 ac_outfile
=conftest.
$ac_objext
26774 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26775 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26776 _lt_compiler_boilerplate
=`cat conftest.err`
26779 ac_outfile
=conftest.
$ac_objext
26780 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26781 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26782 _lt_linker_boilerplate
=`cat conftest.err`
26786 # Allow CC to be a program name with arguments.
26791 for cc_temp
in $compiler""; do
26793 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26794 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26799 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26801 lt_cv_prog_compiler_c_o_RC
=yes
26803 # The else clause should only fire when bootstrapping the
26804 # libtool distribution, otherwise you forgot to ship ltmain.sh
26805 # with your package, and you will get complaints that there are
26806 # no rules to generate ltmain.sh.
26807 if test -f "$ltmain"; then
26808 # See if we are running on zsh, and set the options which allow our commands through
26809 # without removal of \ escapes.
26810 if test -n "${ZSH_VERSION+set}" ; then
26811 setopt NO_GLOB_SUBST
26813 # Now quote all the things that may contain metacharacters while being
26814 # careful not to overquote the AC_SUBSTed values. We take copies of the
26815 # variables and quote the copies for generation of the libtool script.
26816 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26818 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26819 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26820 deplibs_check_method reload_flag reload_cmds need_locks \
26821 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26822 lt_cv_sys_global_symbol_to_c_name_address \
26823 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26824 old_postinstall_cmds old_postuninstall_cmds \
26828 lt_prog_compiler_wl_RC \
26829 lt_prog_compiler_pic_RC \
26830 lt_prog_compiler_static_RC \
26831 lt_prog_compiler_no_builtin_flag_RC \
26832 export_dynamic_flag_spec_RC \
26833 thread_safe_flag_spec_RC \
26834 whole_archive_flag_spec_RC \
26835 enable_shared_with_static_runtimes_RC \
26836 old_archive_cmds_RC \
26837 old_archive_from_new_cmds_RC \
26838 predep_objects_RC \
26839 postdep_objects_RC \
26842 compiler_lib_search_path_RC \
26844 archive_expsym_cmds_RC \
26845 postinstall_cmds_RC \
26846 postuninstall_cmds_RC \
26847 old_archive_from_expsyms_cmds_RC \
26848 allow_undefined_flag_RC \
26849 no_undefined_flag_RC \
26850 export_symbols_cmds_RC \
26851 hardcode_libdir_flag_spec_RC \
26852 hardcode_libdir_flag_spec_ld_RC \
26853 hardcode_libdir_separator_RC \
26854 hardcode_automatic_RC \
26856 module_expsym_cmds_RC \
26857 lt_cv_prog_compiler_c_o_RC \
26858 exclude_expsyms_RC \
26859 include_expsyms_RC
; do
26862 old_archive_cmds_RC | \
26863 old_archive_from_new_cmds_RC | \
26864 archive_cmds_RC | \
26865 archive_expsym_cmds_RC | \
26867 module_expsym_cmds_RC | \
26868 old_archive_from_expsyms_cmds_RC | \
26869 export_symbols_cmds_RC | \
26870 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26871 postinstall_cmds | postuninstall_cmds | \
26872 old_postinstall_cmds | old_postuninstall_cmds | \
26873 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26874 # Double-quote double-evaled strings.
26875 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26878 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26884 *'\$0 --fallback-echo"')
26885 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26891 cat <<__EOF__ >> "$cfgfile"
26892 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26896 # Shell to use when invoking shell scripts.
26899 # Whether or not to build shared libraries.
26900 build_libtool_libs=$enable_shared
26902 # Whether or not to build static libraries.
26903 build_old_libs=$enable_static
26905 # Whether or not to add -lc for building shared libraries.
26906 build_libtool_need_lc=$archive_cmds_need_lc_RC
26908 # Whether or not to disallow shared libs when runtime libs are static
26909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26911 # Whether or not to optimize for fast installation.
26912 fast_install=$enable_fast_install
26915 host_alias=$host_alias
26919 # The build system.
26920 build_alias=$build_alias
26924 # An echo program that does not interpret backslashes.
26929 AR_FLAGS=$lt_AR_FLAGS
26934 # LTCC compiler flags.
26935 LTCFLAGS=$lt_LTCFLAGS
26937 # A language-specific compiler.
26940 # Is the compiler the GNU C compiler?
26946 # The linker used to build libraries.
26949 # Whether we need hard or soft links.
26952 # A BSD-compatible nm program.
26955 # A symbol stripping program
26958 # Used to examine libraries when file_magic_cmd begins "file"
26959 MAGIC_CMD=$MAGIC_CMD
26961 # Used on cygwin: DLL creation program.
26964 # Used on cygwin: object dumper.
26967 # Used on cygwin: assembler.
26970 # The name of the directory that contains temporary libtool files.
26973 # How to create reloadable object files.
26974 reload_flag=$lt_reload_flag
26975 reload_cmds=$lt_reload_cmds
26977 # How to pass a linker flag through the compiler.
26978 wl=$lt_lt_prog_compiler_wl_RC
26980 # Object file suffix (normally "o").
26981 objext="$ac_objext"
26983 # Old archive suffix (normally "a").
26986 # Shared library suffix (normally ".so").
26987 shrext_cmds='$shrext_cmds'
26989 # Executable file suffix (normally "").
26992 # Additional compiler flags for building library objects.
26993 pic_flag=$lt_lt_prog_compiler_pic_RC
26996 # What is the maximum length of a command?
26997 max_cmd_len=$lt_cv_sys_max_cmd_len
26999 # Does compiler simultaneously support -c and -o options?
27000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27002 # Must we lock files when doing compilation?
27003 need_locks=$lt_need_locks
27005 # Do we need the lib prefix for modules?
27006 need_lib_prefix=$need_lib_prefix
27008 # Do we need a version for libraries?
27009 need_version=$need_version
27011 # Whether dlopen is supported.
27012 dlopen_support=$enable_dlopen
27014 # Whether dlopen of programs is supported.
27015 dlopen_self=$enable_dlopen_self
27017 # Whether dlopen of statically linked programs is supported.
27018 dlopen_self_static=$enable_dlopen_self_static
27020 # Compiler flag to prevent dynamic linking.
27021 link_static_flag=$lt_lt_prog_compiler_static_RC
27023 # Compiler flag to turn off builtin functions.
27024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27026 # Compiler flag to allow reflexive dlopens.
27027 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27029 # Compiler flag to generate shared objects directly from archives.
27030 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27032 # Compiler flag to generate thread-safe objects.
27033 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27035 # Library versioning type.
27036 version_type=$version_type
27038 # Format of library name prefix.
27039 libname_spec=$lt_libname_spec
27041 # List of archive names. First name is the real one, the rest are links.
27042 # The last name is the one that the linker finds with -lNAME.
27043 library_names_spec=$lt_library_names_spec
27045 # The coded name of the library, if different from the real name.
27046 soname_spec=$lt_soname_spec
27048 # Commands used to build and install an old-style archive.
27050 old_archive_cmds=$lt_old_archive_cmds_RC
27051 old_postinstall_cmds=$lt_old_postinstall_cmds
27052 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27054 # Create an old-style archive from a shared archive.
27055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27057 # Create a temporary old-style archive to link instead of a shared archive.
27058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27060 # Commands used to build and install a shared archive.
27061 archive_cmds=$lt_archive_cmds_RC
27062 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27063 postinstall_cmds=$lt_postinstall_cmds
27064 postuninstall_cmds=$lt_postuninstall_cmds
27066 # Commands used to build a loadable module (assumed same as above if empty)
27067 module_cmds=$lt_module_cmds_RC
27068 module_expsym_cmds=$lt_module_expsym_cmds_RC
27070 # Commands to strip libraries.
27071 old_striplib=$lt_old_striplib
27072 striplib=$lt_striplib
27074 # Dependencies to place before the objects being linked to create a
27076 predep_objects=$lt_predep_objects_RC
27078 # Dependencies to place after the objects being linked to create a
27080 postdep_objects=$lt_postdep_objects_RC
27082 # Dependencies to place before the objects being linked to create a
27084 predeps=$lt_predeps_RC
27086 # Dependencies to place after the objects being linked to create a
27088 postdeps=$lt_postdeps_RC
27090 # The library search path used internally by the compiler when linking
27091 # a shared library.
27092 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27094 # Method to check whether dependent libraries are shared objects.
27095 deplibs_check_method=$lt_deplibs_check_method
27097 # Command to use when deplibs_check_method == file_magic.
27098 file_magic_cmd=$lt_file_magic_cmd
27100 # Flag that allows shared libraries with undefined symbols to be built.
27101 allow_undefined_flag=$lt_allow_undefined_flag_RC
27103 # Flag that forces no undefined symbols.
27104 no_undefined_flag=$lt_no_undefined_flag_RC
27106 # Commands used to finish a libtool library installation in a directory.
27107 finish_cmds=$lt_finish_cmds
27109 # Same as above, but a single script fragment to be evaled but not shown.
27110 finish_eval=$lt_finish_eval
27112 # Take the output of nm and produce a listing of raw symbols and C names.
27113 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27115 # Transform the output of nm in a proper C declaration
27116 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27118 # Transform the output of nm in a C name address pair
27119 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27121 # This is the shared library runtime path variable.
27122 runpath_var=$runpath_var
27124 # This is the shared library path variable.
27125 shlibpath_var=$shlibpath_var
27127 # Is shlibpath searched before the hard-coded library search path?
27128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27130 # How to hardcode a shared library path into an executable.
27131 hardcode_action=$hardcode_action_RC
27133 # Whether we should hardcode library paths into libraries.
27134 hardcode_into_libs=$hardcode_into_libs
27136 # Flag to hardcode \$libdir into a binary during linking.
27137 # This must work even if \$libdir does not exist.
27138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27140 # If ld is used when linking, flag to hardcode \$libdir into
27141 # a binary during linking. This must work even if \$libdir does
27143 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27145 # Whether we need a single -rpath flag with a separated argument.
27146 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27148 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27149 # resulting binary.
27150 hardcode_direct=$hardcode_direct_RC
27152 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27153 # resulting binary.
27154 hardcode_minus_L=$hardcode_minus_L_RC
27156 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27157 # the resulting binary.
27158 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27160 # Set to yes if building a shared library automatically hardcodes DIR into the library
27161 # and all subsequent libraries and executables linked against it.
27162 hardcode_automatic=$hardcode_automatic_RC
27164 # Variables whose values should be saved in libtool wrapper scripts and
27165 # restored at relink time.
27166 variables_saved_for_relink="$variables_saved_for_relink"
27168 # Whether libtool must link a program against all its dependency libraries.
27169 link_all_deplibs=$link_all_deplibs_RC
27171 # Compile-time system search path for libraries
27172 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27174 # Run-time system search path for libraries
27175 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27177 # Fix the shell variable \$srcfile for the compiler.
27178 fix_srcfile_path="$fix_srcfile_path_RC"
27180 # Set to yes if exported symbols are required.
27181 always_export_symbols=$always_export_symbols_RC
27183 # The commands to list exported symbols.
27184 export_symbols_cmds=$lt_export_symbols_cmds_RC
27186 # The commands to extract the exported symbol list from a shared archive.
27187 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27189 # Symbols that should not be listed in the preloaded symbols.
27190 exclude_expsyms=$lt_exclude_expsyms_RC
27192 # Symbols that must always be exported.
27193 include_expsyms=$lt_include_expsyms_RC
27195 # ### END LIBTOOL TAG CONFIG: $tagname
27201 # If there is no Makefile yet, we rely on a make rule to execute
27202 # `config.status --recheck' to rerun these tests and create the
27203 # libtool script then.
27204 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27205 if test -f "$ltmain_in"; then
27206 test -f Makefile
&& make "$ltmain"
27212 ac_cpp
='$CPP $CPPFLAGS'
27213 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27214 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27215 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27222 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27223 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27224 { (exit 1); exit 1; }; }
27228 # Append the new tag name to the list of available tags.
27229 if test -n "$tagname" ; then
27230 available_tags
="$available_tags $tagname"
27236 # Now substitute the updated list of available tags.
27237 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27238 mv "${ofile}T" "$ofile"
27242 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27243 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27244 { (exit 1); exit 1; }; }
27250 # This can be used to rebuild libtool when needed
27251 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27253 # Always use our own libtool.
27254 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27256 # Prevent multiple expansion
27278 if test "$lt_cv_dlopen_self" = "yes" ; then
27280 cat >>confdefs.h
<<\_ACEOF
27281 #define CAN_DLOPEN_SELF 1
27287 if test "$WITH_LLVMGCCDIR" = "default" ; then
27288 LLVMGCC
="llvm-gcc${EXEEXT}"
27289 LLVMGXX
="llvm-g++${EXEEXT}"
27290 LLVMGCCCOMMAND
="$LLVMGCC"
27291 LLVMGXXCOMMAND
="$LLVMGXX"
27292 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27294 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27296 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27297 set dummy
$LLVMGCC; ac_word
=$2
27298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27300 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27305 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27309 for as_dir
in $PATH
27312 test -z "$as_dir" && as_dir
=.
27313 for ac_exec_ext
in '' $ac_executable_extensions; do
27314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27315 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27326 LLVMGCC
=$ac_cv_path_LLVMGCC
27327 if test -n "$LLVMGCC"; then
27328 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27329 echo "${ECHO_T}$LLVMGCC" >&6; }
27331 { echo "$as_me:$LINENO: result: no" >&5
27332 echo "${ECHO_T}no" >&6; }
27336 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27337 set dummy
$LLVMGXX; ac_word
=$2
27338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27340 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27345 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27349 for as_dir
in $PATH
27352 test -z "$as_dir" && as_dir
=.
27353 for ac_exec_ext
in '' $ac_executable_extensions; do
27354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27355 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27366 LLVMGXX
=$ac_cv_path_LLVMGXX
27367 if test -n "$LLVMGXX"; then
27368 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27369 echo "${ECHO_T}$LLVMGXX" >&6; }
27371 { echo "$as_me:$LINENO: result: no" >&5
27372 echo "${ECHO_T}no" >&6; }
27377 if test -z "$LLVMGCC"; then
27378 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27379 LLVMGCCCOMMAND
="$LLVMGCC"
27381 if test -z "$LLVMGXX"; then
27382 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27383 LLVMGXXCOMMAND
="$LLVMGXX"
27390 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27392 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27397 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27398 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27411 if test "$GCC" != "yes" && test "$ICC" != "yes"
27413 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27414 echo "$as_me: error: gcc|icc required but not found" >&2;}
27415 { (exit 1); exit 1; }; }
27418 if test "$GXX" != "yes" && test "$IXX" != "yes"
27420 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27421 echo "$as_me: error: g++|icc required but not found" >&2;}
27422 { (exit 1); exit 1; }; }
27425 if test "$GCC" = "yes"
27427 cat >conftest.
$ac_ext <<_ACEOF
27428 #if !defined(__GNUC__) || __GNUC__ < 3
27429 #error Unsupported GCC version
27433 rm -f conftest.
$ac_objext
27434 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
27442 grep -v '^ *+' conftest.er1 >conftest.err
27444 cat conftest.err >&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } &&
27447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27448 { (case "(($ac_try" in
27449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27450 *) ac_try_echo
=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_try") 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; } &&
27457 { ac_try
='test -s conftest.$ac_objext'
27458 { (case "(($ac_try" in
27459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_try") 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27473 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27474 { (exit 1); exit 1; }; }
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480 if test -z "$llvm_cv_gnu_make_command"
27482 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27483 echo "$as_me: error: GNU Make required but not found" >&2;}
27484 { (exit 1); exit 1; }; }
27487 { echo "$as_me:$LINENO: result: ok" >&5
27488 echo "${ECHO_T}ok" >&6; }
27490 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27491 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27492 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev
/null
2>/dev
/null
&& echo -Wno-variadic-macros`
27494 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev
/null
2>/dev
/null
&& echo -Wno-missing-field-initializers`
27496 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27497 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27501 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27502 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27503 if test "${ac_cv_lib_m_sin+set}" = set; then
27504 echo $ECHO_N "(cached) $ECHO_C" >&6
27506 ac_check_lib_save_LIBS=$LIBS
27508 cat >conftest.$ac_ext <<_ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27515 /* Override any GCC internal prototype to avoid an error.
27516 Use char because int might match the return type of a GCC
27517 builtin and then its argument prototype would still apply. */
27530 rm -f conftest.$ac_objext conftest$ac_exeext
27531 if { (ac_try="$ac_link"
27532 case "(($ac_try" in
27533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27534 *) ac_try_echo
=$ac_try;;
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_link") 2>conftest.er1
27539 grep -v '^ *+' conftest.er1
>conftest.err
27541 cat conftest.err
>&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } &&
27544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27545 { (case "(($ac_try" in
27546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_try") 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } &&
27554 { ac_try='test -s conftest$ac_exeext'
27555 { (case "(($ac_try" in
27556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27557 *) ac_try_echo
=$ac_try;;
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_try") 2>&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; }; then
27564 ac_cv_lib_m_sin
=yes
27566 echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.
$ac_ext >&5
27572 rm -f core conftest.err conftest.
$ac_objext \
27573 conftest
$ac_exeext conftest.
$ac_ext
27574 LIBS
=$ac_check_lib_save_LIBS
27576 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27577 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27578 if test $ac_cv_lib_m_sin = yes; then
27579 cat >>confdefs.h
<<_ACEOF
27580 #define HAVE_LIBM 1
27587 if test "$llvm_cv_os_type" = "MingW" ; then
27589 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27590 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27591 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27594 ac_check_lib_save_LIBS
=$LIBS
27595 LIBS
="-limagehlp $LIBS"
27596 cat >conftest.
$ac_ext <<_ACEOF
27599 cat confdefs.h
>>conftest.
$ac_ext
27600 cat >>conftest.
$ac_ext <<_ACEOF
27601 /* end confdefs.h. */
27612 rm -f conftest.
$ac_objext conftest
$ac_exeext
27613 if { (ac_try
="$ac_link"
27614 case "(($ac_try" in
27615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27616 *) ac_try_echo=$ac_try;;
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619 (eval "$ac_link") 2>conftest.er1
27621 grep -v '^ *+' conftest.er1 >conftest.err
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
27626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27627 { (case "(($ac_try" in
27628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27629 *) ac_try_echo
=$ac_try;;
27631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632 (eval "$ac_try") 2>&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
27646 ac_cv_lib_imagehlp_main=yes
27648 echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27651 ac_cv_lib_imagehlp_main=no
27654 rm -f core conftest.err conftest.$ac_objext \
27655 conftest$ac_exeext conftest.$ac_ext
27656 LIBS=$ac_check_lib_save_LIBS
27658 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27659 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27660 if test $ac_cv_lib_imagehlp_main = yes; then
27661 cat >>confdefs.h <<_ACEOF
27662 #define HAVE_LIBIMAGEHLP 1
27665 LIBS="-limagehlp $LIBS"
27670 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27671 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27672 if test "${ac_cv_lib_psapi_main+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 ac_check_lib_save_LIBS=$LIBS
27676 LIBS="-lpsapi $LIBS"
27677 cat >conftest.$ac_ext <<_ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h. */
27693 rm -f conftest.$ac_objext conftest$ac_exeext
27694 if { (ac_try="$ac_link"
27695 case "(($ac_try" in
27696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27697 *) ac_try_echo
=$ac_try;;
27699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700 (eval "$ac_link") 2>conftest.er1
27702 grep -v '^ *+' conftest.er1
>conftest.err
27704 cat conftest.err
>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); } &&
27707 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27708 { (case "(($ac_try" in
27709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_try") 2>&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); }; } &&
27717 { ac_try='test -s conftest$ac_exeext'
27718 { (case "(($ac_try" in
27719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27720 *) ac_try_echo
=$ac_try;;
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723 (eval "$ac_try") 2>&5
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; }; then
27727 ac_cv_lib_psapi_main
=yes
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.
$ac_ext >&5
27732 ac_cv_lib_psapi_main
=no
27735 rm -f core conftest.err conftest.
$ac_objext \
27736 conftest
$ac_exeext conftest.
$ac_ext
27737 LIBS
=$ac_check_lib_save_LIBS
27739 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27740 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27741 if test $ac_cv_lib_psapi_main = yes; then
27742 cat >>confdefs.h
<<_ACEOF
27743 #define HAVE_LIBPSAPI 1
27746 LIBS
="-lpsapi $LIBS"
27752 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27753 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27754 if test "${ac_cv_search_dlopen+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27757 ac_func_search_save_LIBS
=$LIBS
27758 cat >conftest.
$ac_ext <<_ACEOF
27761 cat confdefs.h
>>conftest.
$ac_ext
27762 cat >>conftest.
$ac_ext <<_ACEOF
27763 /* end confdefs.h. */
27765 /* Override any GCC internal prototype to avoid an error.
27766 Use char because int might match the return type of a GCC
27767 builtin and then its argument prototype would still apply. */
27780 for ac_lib
in '' dl
; do
27781 if test -z "$ac_lib"; then
27782 ac_res
="none required"
27785 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27787 rm -f conftest.
$ac_objext conftest
$ac_exeext
27788 if { (ac_try
="$ac_link"
27789 case "(($ac_try" in
27790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_link") 2>conftest.er1
27796 grep -v '^ *+' conftest.er1 >conftest.err
27798 cat conftest.err >&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
27801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27804 *) ac_try_echo
=$ac_try;;
27806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; } &&
27811 { ac_try
='test -s conftest$ac_exeext'
27812 { (case "(($ac_try" in
27813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_try") 2>&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; }; then
27821 ac_cv_search_dlopen=$ac_res
27823 echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27829 rm -f core conftest.err conftest.$ac_objext \
27831 if test "${ac_cv_search_dlopen+set}" = set; then
27835 if test "${ac_cv_search_dlopen+set}" = set; then
27838 ac_cv_search_dlopen=no
27840 rm conftest.$ac_ext
27841 LIBS=$ac_func_search_save_LIBS
27843 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27844 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27845 ac_res=$ac_cv_search_dlopen
27846 if test "$ac_res" != no; then
27847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27849 cat >>confdefs.h <<\_ACEOF
27850 #define HAVE_DLOPEN 1
27854 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27855 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27859 if test "$llvm_cv_enable_libffi" = "yes" ; then
27860 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27861 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27862 if test "${ac_cv_search_ffi_call+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
27865 ac_func_search_save_LIBS=$LIBS
27866 cat >conftest.$ac_ext <<_ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27873 /* Override any GCC internal prototype to avoid an error.
27874 Use char because int might match the return type of a GCC
27875 builtin and then its argument prototype would still apply. */
27883 return ffi_call ();
27888 for ac_lib in '' ffi; do
27889 if test -z "$ac_lib"; then
27890 ac_res="none required"
27893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27895 rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (ac_try="$ac_link"
27897 case "(($ac_try" in
27898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27899 *) ac_try_echo
=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_link") 2>conftest.er1
27904 grep -v '^ *+' conftest.er1
>conftest.err
27906 cat conftest.err
>&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } &&
27909 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27910 { (case "(($ac_try" in
27911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915 (eval "$ac_try") 2>&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; } &&
27919 { ac_try='test -s conftest$ac_exeext'
27920 { (case "(($ac_try" in
27921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27922 *) ac_try_echo
=$ac_try;;
27924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925 (eval "$ac_try") 2>&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
27929 ac_cv_search_ffi_call
=$ac_res
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.
$ac_ext >&5
27937 rm -f core conftest.err conftest.
$ac_objext \
27939 if test "${ac_cv_search_ffi_call+set}" = set; then
27943 if test "${ac_cv_search_ffi_call+set}" = set; then
27946 ac_cv_search_ffi_call
=no
27948 rm conftest.
$ac_ext
27949 LIBS
=$ac_func_search_save_LIBS
27951 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27952 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27953 ac_res
=$ac_cv_search_ffi_call
27954 if test "$ac_res" != no
; then
27955 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27957 cat >>confdefs.h
<<\_ACEOF
27958 #define HAVE_FFI_CALL 1
27962 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27963 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27968 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27969 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27970 if test "${ac_cv_search_mallinfo+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27973 ac_func_search_save_LIBS
=$LIBS
27974 cat >conftest.
$ac_ext <<_ACEOF
27977 cat confdefs.h
>>conftest.
$ac_ext
27978 cat >>conftest.
$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27981 /* Override any GCC internal prototype to avoid an error.
27982 Use char because int might match the return type of a GCC
27983 builtin and then its argument prototype would still apply. */
27991 return mallinfo ();
27996 for ac_lib
in '' malloc
; do
27997 if test -z "$ac_lib"; then
27998 ac_res
="none required"
28001 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28003 rm -f conftest.
$ac_objext conftest
$ac_exeext
28004 if { (ac_try
="$ac_link"
28005 case "(($ac_try" in
28006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28007 *) ac_try_echo=$ac_try;;
28009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010 (eval "$ac_link") 2>conftest.er1
28012 grep -v '^ *+' conftest.er1 >conftest.err
28014 cat conftest.err >&5
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); } &&
28017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28018 { (case "(($ac_try" in
28019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28020 *) ac_try_echo
=$ac_try;;
28022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28023 (eval "$ac_try") 2>&5
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); }; } &&
28027 { ac_try
='test -s conftest$ac_exeext'
28028 { (case "(($ac_try" in
28029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_try") 2>&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; }; then
28037 ac_cv_search_mallinfo=$ac_res
28039 echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28045 rm -f core conftest.err conftest.$ac_objext \
28047 if test "${ac_cv_search_mallinfo+set}" = set; then
28051 if test "${ac_cv_search_mallinfo+set}" = set; then
28054 ac_cv_search_mallinfo=no
28056 rm conftest.$ac_ext
28057 LIBS=$ac_func_search_save_LIBS
28059 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28060 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28061 ac_res=$ac_cv_search_mallinfo
28062 if test "$ac_res" != no; then
28063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28065 cat >>confdefs.h <<\_ACEOF
28066 #define HAVE_MALLINFO 1
28072 if test "$ENABLE_THREADS" -eq 1 ; then
28074 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28075 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28076 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 ac_check_lib_save_LIBS=$LIBS
28080 LIBS="-lpthread $LIBS"
28081 cat >conftest.$ac_ext <<_ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h. */
28088 /* Override any GCC internal prototype to avoid an error.
28089 Use char because int might match the return type of a GCC
28090 builtin and then its argument prototype would still apply. */
28094 char pthread_mutex_init ();
28098 return pthread_mutex_init ();
28103 rm -f conftest.$ac_objext conftest$ac_exeext
28104 if { (ac_try="$ac_link"
28105 case "(($ac_try" in
28106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28107 *) ac_try_echo
=$ac_try;;
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110 (eval "$ac_link") 2>conftest.er1
28112 grep -v '^ *+' conftest.er1
>conftest.err
28114 cat conftest.err
>&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } &&
28117 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28118 { (case "(($ac_try" in
28119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28120 *) ac_try_echo=$ac_try;;
28122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28123 (eval "$ac_try") 2>&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); }; } &&
28127 { ac_try='test -s conftest$ac_exeext'
28128 { (case "(($ac_try" in
28129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28130 *) ac_try_echo
=$ac_try;;
28132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28133 (eval "$ac_try") 2>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
28137 ac_cv_lib_pthread_pthread_mutex_init
=yes
28139 echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.
$ac_ext >&5
28142 ac_cv_lib_pthread_pthread_mutex_init
=no
28145 rm -f core conftest.err conftest.
$ac_objext \
28146 conftest
$ac_exeext conftest.
$ac_ext
28147 LIBS
=$ac_check_lib_save_LIBS
28149 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28150 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28151 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28152 cat >>confdefs.h
<<_ACEOF
28153 #define HAVE_LIBPTHREAD 1
28156 LIBS
="-lpthread $LIBS"
28160 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28161 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28162 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28165 ac_func_search_save_LIBS
=$LIBS
28166 cat >conftest.
$ac_ext <<_ACEOF
28169 cat confdefs.h
>>conftest.
$ac_ext
28170 cat >>conftest.
$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28173 /* Override any GCC internal prototype to avoid an error.
28174 Use char because int might match the return type of a GCC
28175 builtin and then its argument prototype would still apply. */
28179 char pthread_mutex_lock ();
28183 return pthread_mutex_lock ();
28188 for ac_lib
in '' pthread
; do
28189 if test -z "$ac_lib"; then
28190 ac_res
="none required"
28193 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28195 rm -f conftest.
$ac_objext conftest
$ac_exeext
28196 if { (ac_try
="$ac_link"
28197 case "(($ac_try" in
28198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_link") 2>conftest.er1
28204 grep -v '^ *+' conftest.er1 >conftest.err
28206 cat conftest.err >&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } &&
28209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28210 { (case "(($ac_try" in
28211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28212 *) ac_try_echo
=$ac_try;;
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_try") 2>&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try
='test -s conftest$ac_exeext'
28220 { (case "(($ac_try" in
28221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_try") 2>&5
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; }; then
28229 ac_cv_search_pthread_mutex_lock=$ac_res
28231 echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28237 rm -f core conftest.err conftest.$ac_objext \
28239 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28243 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28246 ac_cv_search_pthread_mutex_lock=no
28248 rm conftest.$ac_ext
28249 LIBS=$ac_func_search_save_LIBS
28251 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28252 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28253 ac_res=$ac_cv_search_pthread_mutex_lock
28254 if test "$ac_res" != no; then
28255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28257 cat >>confdefs.h <<\_ACEOF
28258 #define HAVE_PTHREAD_MUTEX_LOCK 1
28263 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28264 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28265 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 ac_func_search_save_LIBS=$LIBS
28269 cat >conftest.$ac_ext <<_ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28276 /* Override any GCC internal prototype to avoid an error.
28277 Use char because int might match the return type of a GCC
28278 builtin and then its argument prototype would still apply. */
28282 char pthread_rwlock_init ();
28286 return pthread_rwlock_init ();
28291 for ac_lib in '' pthread; do
28292 if test -z "$ac_lib"; then
28293 ac_res="none required"
28296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28302 *) ac_try_echo
=$ac_try;;
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28307 grep -v '^ *+' conftest.er1
>conftest.err
28309 cat conftest.err
>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } &&
28312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28313 { (case "(($ac_try" in
28314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; } &&
28322 { ac_try='test -s conftest$ac_exeext'
28323 { (case "(($ac_try" in
28324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28325 *) ac_try_echo
=$ac_try;;
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_try") 2>&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; }; then
28332 ac_cv_search_pthread_rwlock_init
=$ac_res
28334 echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.
$ac_ext >&5
28340 rm -f core conftest.err conftest.
$ac_objext \
28342 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28346 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28349 ac_cv_search_pthread_rwlock_init
=no
28351 rm conftest.
$ac_ext
28352 LIBS
=$ac_func_search_save_LIBS
28354 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28355 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28356 ac_res
=$ac_cv_search_pthread_rwlock_init
28357 if test "$ac_res" != no
; then
28358 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28360 cat >>confdefs.h
<<\_ACEOF
28361 #define HAVE_PTHREAD_RWLOCK_INIT 1
28366 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28367 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28368 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28369 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_func_search_save_LIBS
=$LIBS
28372 cat >conftest.
$ac_ext <<_ACEOF
28375 cat confdefs.h
>>conftest.
$ac_ext
28376 cat >>conftest.
$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28379 /* Override any GCC internal prototype to avoid an error.
28380 Use char because int might match the return type of a GCC
28381 builtin and then its argument prototype would still apply. */
28385 char pthread_getspecific ();
28389 return pthread_getspecific ();
28394 for ac_lib
in '' pthread
; do
28395 if test -z "$ac_lib"; then
28396 ac_res
="none required"
28399 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28401 rm -f conftest.
$ac_objext conftest
$ac_exeext
28402 if { (ac_try
="$ac_link"
28403 case "(($ac_try" in
28404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_link") 2>conftest.er1
28410 grep -v '^ *+' conftest.er1 >conftest.err
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } &&
28415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416 { (case "(($ac_try" in
28417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28418 *) ac_try_echo
=$ac_try;;
28420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28421 (eval "$ac_try") 2>&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; } &&
28425 { ac_try
='test -s conftest$ac_exeext'
28426 { (case "(($ac_try" in
28427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28428 *) ac_try_echo=$ac_try;;
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431 (eval "$ac_try") 2>&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
28435 ac_cv_search_pthread_getspecific=$ac_res
28437 echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28443 rm -f core conftest.err conftest.$ac_objext \
28445 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28449 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28452 ac_cv_search_pthread_getspecific=no
28454 rm conftest.$ac_ext
28455 LIBS=$ac_func_search_save_LIBS
28457 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28458 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28459 ac_res=$ac_cv_search_pthread_getspecific
28460 if test "$ac_res" != no; then
28461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28463 cat >>confdefs.h <<\_ACEOF
28464 #define HAVE_PTHREAD_GETSPECIFIC 1
28472 # Check whether --with-udis86 was given.
28473 if test "${with_udis86+set}" = set; then
28474 withval=$with_udis86;
28479 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28482 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28483 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28484 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28487 ac_check_lib_save_LIBS=$LIBS
28488 LIBS="-ludis86 $LIBS"
28489 cat >conftest.$ac_ext <<_ACEOF
28492 cat confdefs.h >>conftest.$ac_ext
28493 cat >>conftest.$ac_ext <<_ACEOF
28494 /* end confdefs.h. */
28496 /* Override any GCC internal prototype to avoid an error.
28497 Use char because int might match the return type of a GCC
28498 builtin and then its argument prototype would still apply. */
28511 rm -f conftest.$ac_objext conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28515 *) ac_try_echo
=$ac_try;;
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_link") 2>conftest.er1
28520 grep -v '^ *+' conftest.er1
>conftest.err
28522 cat conftest.err
>&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } &&
28525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28526 { (case "(($ac_try" in
28527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28528 *) ac_try_echo=$ac_try;;
28530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28531 (eval "$ac_try") 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
28536 { (case "(($ac_try" in
28537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28538 *) ac_try_echo
=$ac_try;;
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541 (eval "$ac_try") 2>&5
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); }; }; then
28545 ac_cv_lib_udis86_ud_init
=yes
28547 echo "$as_me: failed program was:" >&5
28548 sed 's/^/| /' conftest.
$ac_ext >&5
28550 ac_cv_lib_udis86_ud_init
=no
28553 rm -f core conftest.err conftest.
$ac_objext \
28554 conftest
$ac_exeext conftest.
$ac_ext
28555 LIBS
=$ac_check_lib_save_LIBS
28557 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28558 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28559 if test $ac_cv_lib_udis86_ud_init = yes; then
28560 cat >>confdefs.h
<<_ACEOF
28561 #define HAVE_LIBUDIS86 1
28564 LIBS
="-ludis86 $LIBS"
28568 echo "Error! You need to have libudis86 around."
28580 cat >>confdefs.h
<<_ACEOF
28581 #define USE_UDIS86 $USE_UDIS86
28586 # Check whether --with-oprofile was given.
28587 if test "${with_oprofile+set}" = set; then
28588 withval
=$with_oprofile;
28592 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
28593 no
) llvm_cv_oppath
=
28596 *) llvm_cv_oppath
="${withval}/lib/oprofile"
28597 CPPFLAGS
="-I${withval}/include";;
28599 if test -n "$llvm_cv_oppath" ; then
28600 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28601 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28602 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28603 if test "${ac_cv_search_bfd_init+set}" = set; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28606 ac_func_search_save_LIBS
=$LIBS
28607 cat >conftest.
$ac_ext <<_ACEOF
28610 cat confdefs.h
>>conftest.
$ac_ext
28611 cat >>conftest.
$ac_ext <<_ACEOF
28612 /* end confdefs.h. */
28614 /* Override any GCC internal prototype to avoid an error.
28615 Use char because int might match the return type of a GCC
28616 builtin and then its argument prototype would still apply. */
28624 return bfd_init ();
28629 for ac_lib
in '' bfd
; do
28630 if test -z "$ac_lib"; then
28631 ac_res
="none required"
28634 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28636 rm -f conftest.
$ac_objext conftest
$ac_exeext
28637 if { (ac_try
="$ac_link"
28638 case "(($ac_try" in
28639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28640 *) ac_try_echo=$ac_try;;
28642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643 (eval "$ac_link") 2>conftest.er1
28645 grep -v '^ *+' conftest.er1 >conftest.err
28647 cat conftest.err >&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } &&
28650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28651 { (case "(($ac_try" in
28652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28653 *) ac_try_echo
=$ac_try;;
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_try") 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; } &&
28660 { ac_try
='test -s conftest$ac_exeext'
28661 { (case "(($ac_try" in
28662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28663 *) ac_try_echo=$ac_try;;
28665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666 (eval "$ac_try") 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; }; then
28670 ac_cv_search_bfd_init=$ac_res
28672 echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28678 rm -f core conftest.err conftest.$ac_objext \
28680 if test "${ac_cv_search_bfd_init+set}" = set; then
28684 if test "${ac_cv_search_bfd_init+set}" = set; then
28687 ac_cv_search_bfd_init=no
28689 rm conftest.$ac_ext
28690 LIBS=$ac_func_search_save_LIBS
28692 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28693 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28694 ac_res=$ac_cv_search_bfd_init
28695 if test "$ac_res" != no; then
28696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28700 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28701 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28702 if test "${ac_cv_search_op_open_agent+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 ac_func_search_save_LIBS=$LIBS
28706 cat >conftest.$ac_ext <<_ACEOF
28709 cat confdefs.h >>conftest.$ac_ext
28710 cat >>conftest.$ac_ext <<_ACEOF
28711 /* end confdefs.h. */
28713 /* Override any GCC internal prototype to avoid an error.
28714 Use char because int might match the return type of a GCC
28715 builtin and then its argument prototype would still apply. */
28719 char op_open_agent ();
28723 return op_open_agent ();
28728 for ac_lib in '' opagent; do
28729 if test -z "$ac_lib"; then
28730 ac_res="none required"
28733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28735 rm -f conftest.$ac_objext conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28739 *) ac_try_echo
=$ac_try;;
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_link") 2>conftest.er1
28744 grep -v '^ *+' conftest.er1
>conftest.err
28746 cat conftest.err
>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } &&
28749 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28750 { (case "(($ac_try" in
28751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28752 *) ac_try_echo=$ac_try;;
28754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755 (eval "$ac_try") 2>&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); }; } &&
28759 { ac_try='test -s conftest$ac_exeext'
28760 { (case "(($ac_try" in
28761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28762 *) ac_try_echo
=$ac_try;;
28764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765 (eval "$ac_try") 2>&5
28767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768 (exit $ac_status); }; }; then
28769 ac_cv_search_op_open_agent
=$ac_res
28771 echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.
$ac_ext >&5
28777 rm -f core conftest.err conftest.
$ac_objext \
28779 if test "${ac_cv_search_op_open_agent+set}" = set; then
28783 if test "${ac_cv_search_op_open_agent+set}" = set; then
28786 ac_cv_search_op_open_agent
=no
28788 rm conftest.
$ac_ext
28789 LIBS
=$ac_func_search_save_LIBS
28791 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28792 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28793 ac_res
=$ac_cv_search_op_open_agent
28794 if test "$ac_res" != no
; then
28795 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28799 echo "Error! You need to have libopagent around."
28804 if test "${ac_cv_header_opagent_h+set}" = set; then
28805 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28806 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28807 if test "${ac_cv_header_opagent_h+set}" = set; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28810 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28811 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28813 # Is the header compilable?
28814 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28815 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28816 cat >conftest.
$ac_ext <<_ACEOF
28819 cat confdefs.h
>>conftest.
$ac_ext
28820 cat >>conftest.
$ac_ext <<_ACEOF
28821 /* end confdefs.h. */
28822 $ac_includes_default
28823 #include <opagent.h>
28825 rm -f conftest.
$ac_objext
28826 if { (ac_try
="$ac_compile"
28827 case "(($ac_try" in
28828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_compile") 2>conftest.er1
28834 grep -v '^ *+' conftest.er1 >conftest.err
28836 cat conftest.err >&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } &&
28839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28840 { (case "(($ac_try" in
28841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28842 *) ac_try_echo
=$ac_try;;
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_try") 2>&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; } &&
28849 { ac_try
='test -s conftest.$ac_objext'
28850 { (case "(($ac_try" in
28851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28852 *) ac_try_echo=$ac_try;;
28854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28855 (eval "$ac_try") 2>&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); }; }; then
28859 ac_header_compiler=yes
28861 echo "$as_me: failed program was:" >&5
28862 sed 's/^/| /' conftest.$ac_ext >&5
28864 ac_header_compiler=no
28867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28869 echo "${ECHO_T}$ac_header_compiler" >&6; }
28871 # Is the header present?
28872 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28873 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28874 cat >conftest.$ac_ext <<_ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h. */
28880 #include <opagent.h>
28882 if { (ac_try="$ac_cpp conftest.$ac_ext"
28883 case "(($ac_try" in
28884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28885 *) ac_try_echo
=$ac_try;;
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28890 grep -v '^ *+' conftest.er1
>conftest.err
28892 cat conftest.err
>&5
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } >/dev
/null
; then
28895 if test -s conftest.err
; then
28896 ac_cpp_err
=$ac_c_preproc_warn_flag
28897 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28904 if test -z "$ac_cpp_err"; then
28905 ac_header_preproc
=yes
28907 echo "$as_me: failed program was:" >&5
28908 sed 's/^/| /' conftest.
$ac_ext >&5
28910 ac_header_preproc
=no
28913 rm -f conftest.err conftest.
$ac_ext
28914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28915 echo "${ECHO_T}$ac_header_preproc" >&6; }
28917 # So? What about this header?
28918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28920 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28921 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28923 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28924 ac_header_preproc
=yes
28927 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28928 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28929 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28930 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28931 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28932 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28934 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28936 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28937 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28938 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28940 ## ----------------------------------- ##
28941 ## Report this to llvmbugs@cs.uiuc.edu ##
28942 ## ----------------------------------- ##
28944 ) |
sed "s/^/$as_me: WARNING: /" >&2
28947 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28948 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28949 if test "${ac_cv_header_opagent_h+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28952 ac_cv_header_opagent_h
=$ac_header_preproc
28954 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28955 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28958 if test $ac_cv_header_opagent_h = yes; then
28962 echo "Error! You need to have opagent.h around."
28978 cat >>confdefs.h
<<_ACEOF
28979 #define USE_OPROFILE $USE_OPROFILE
28989 ac_header_dirent
=no
28990 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
28991 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28992 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28993 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28994 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 cat >conftest.
$ac_ext <<_ACEOF
29000 cat confdefs.h
>>conftest.
$ac_ext
29001 cat >>conftest.
$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29003 #include <sys/types.h>
29015 rm -f conftest.
$ac_objext
29016 if { (ac_try
="$ac_compile"
29017 case "(($ac_try" in
29018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29019 *) ac_try_echo=$ac_try;;
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022 (eval "$ac_compile") 2>conftest.er1
29024 grep -v '^ *+' conftest.er1 >conftest.err
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
29029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29030 { (case "(($ac_try" in
29031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29032 *) ac_try_echo
=$ac_try;;
29034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29035 (eval "$ac_try") 2>&5
29037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038 (exit $ac_status); }; } &&
29039 { ac_try
='test -s conftest.$ac_objext'
29040 { (case "(($ac_try" in
29041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29042 *) ac_try_echo=$ac_try;;
29044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045 (eval "$ac_try") 2>&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; }; then
29049 eval "$as_ac_Header=yes"
29051 echo "$as_me: failed program was:" >&5
29052 sed 's/^/| /' conftest.$ac_ext >&5
29054 eval "$as_ac_Header=no"
29057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29059 ac_res=`eval echo '${'$as_ac_Header'}'`
29060 { echo "$as_me:$LINENO: result: $ac_res" >&5
29061 echo "${ECHO_T}$ac_res" >&6; }
29062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29063 cat >>confdefs.h <<_ACEOF
29064 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
29067 ac_header_dirent=$ac_hdr; break
29071 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29072 if test $ac_header_dirent = dirent.h; then
29073 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29074 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29075 if test "${ac_cv_search_opendir+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 ac_func_search_save_LIBS=$LIBS
29079 cat >conftest.$ac_ext <<_ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h. */
29086 /* Override any GCC internal prototype to avoid an error.
29087 Use char because int might match the return type of a GCC
29088 builtin and then its argument prototype would still apply. */
29101 for ac_lib in '' dir; do
29102 if test -z "$ac_lib"; then
29103 ac_res="none required"
29106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29108 rm -f conftest.$ac_objext conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29112 *) ac_try_echo
=$ac_try;;
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115 (eval "$ac_link") 2>conftest.er1
29117 grep -v '^ *+' conftest.er1
>conftest.err
29119 cat conftest.err
>&5
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); } &&
29122 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29123 { (case "(($ac_try" in
29124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_try") 2>&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest$ac_exeext'
29133 { (case "(($ac_try" in
29134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29135 *) ac_try_echo
=$ac_try;;
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138 (eval "$ac_try") 2>&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); }; }; then
29142 ac_cv_search_opendir
=$ac_res
29144 echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.
$ac_ext >&5
29150 rm -f core conftest.err conftest.
$ac_objext \
29152 if test "${ac_cv_search_opendir+set}" = set; then
29156 if test "${ac_cv_search_opendir+set}" = set; then
29159 ac_cv_search_opendir
=no
29161 rm conftest.
$ac_ext
29162 LIBS
=$ac_func_search_save_LIBS
29164 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29165 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29166 ac_res
=$ac_cv_search_opendir
29167 if test "$ac_res" != no
; then
29168 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29173 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29174 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29175 if test "${ac_cv_search_opendir+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29178 ac_func_search_save_LIBS
=$LIBS
29179 cat >conftest.
$ac_ext <<_ACEOF
29182 cat confdefs.h
>>conftest.
$ac_ext
29183 cat >>conftest.
$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29186 /* Override any GCC internal prototype to avoid an error.
29187 Use char because int might match the return type of a GCC
29188 builtin and then its argument prototype would still apply. */
29201 for ac_lib
in '' x
; do
29202 if test -z "$ac_lib"; then
29203 ac_res
="none required"
29206 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29208 rm -f conftest.
$ac_objext conftest
$ac_exeext
29209 if { (ac_try
="$ac_link"
29210 case "(($ac_try" in
29211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29212 *) ac_try_echo=$ac_try;;
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215 (eval "$ac_link") 2>conftest.er1
29217 grep -v '^ *+' conftest.er1 >conftest.err
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
29222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29223 { (case "(($ac_try" in
29224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29225 *) ac_try_echo
=$ac_try;;
29227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228 (eval "$ac_try") 2>&5
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); }; } &&
29232 { ac_try
='test -s conftest$ac_exeext'
29233 { (case "(($ac_try" in
29234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29235 *) ac_try_echo=$ac_try;;
29237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29238 (eval "$ac_try") 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; }; then
29242 ac_cv_search_opendir=$ac_res
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29250 rm -f core conftest.err conftest.$ac_objext \
29252 if test "${ac_cv_search_opendir+set}" = set; then
29256 if test "${ac_cv_search_opendir+set}" = set; then
29259 ac_cv_search_opendir=no
29261 rm conftest.$ac_ext
29262 LIBS=$ac_func_search_save_LIBS
29264 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29265 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29266 ac_res=$ac_cv_search_opendir
29267 if test "$ac_res" != no; then
29268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29274 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29275 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29276 if test "${ac_cv_header_mmap_anon+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29280 ac_cpp='$CPP $CPPFLAGS'
29281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29285 cat >conftest.$ac_ext <<_ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h. */
29291 #include <sys/mman.h>
29292 #include <unistd.h>
29297 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29302 rm -f conftest.$ac_objext
29303 if { (ac_try="$ac_compile"
29304 case "(($ac_try" in
29305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29306 *) ac_try_echo
=$ac_try;;
29308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29309 (eval "$ac_compile") 2>conftest.er1
29311 grep -v '^ *+' conftest.er1
>conftest.err
29313 cat conftest.err
>&5
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } &&
29316 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29317 { (case "(($ac_try" in
29318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29319 *) ac_try_echo=$ac_try;;
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322 (eval "$ac_try") 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest.$ac_objext'
29327 { (case "(($ac_try" in
29328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29329 *) ac_try_echo
=$ac_try;;
29331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29332 (eval "$ac_try") 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
29336 ac_cv_header_mmap_anon
=yes
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.
$ac_ext >&5
29341 ac_cv_header_mmap_anon
=no
29344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29346 ac_cpp
='$CPP $CPPFLAGS'
29347 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29348 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29349 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29353 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29354 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29355 if test "$ac_cv_header_mmap_anon" = yes; then
29357 cat >>confdefs.h
<<\_ACEOF
29358 #define HAVE_MMAP_ANONYMOUS 1
29363 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29364 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29365 if test "${ac_cv_header_stat_broken+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29368 cat >conftest.
$ac_ext <<_ACEOF
29371 cat confdefs.h
>>conftest.
$ac_ext
29372 cat >>conftest.
$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29374 #include <sys/types.h>
29375 #include <sys/stat.h>
29377 #if defined S_ISBLK && defined S_IFDIR
29378 # if S_ISBLK (S_IFDIR)
29383 #if defined S_ISBLK && defined S_IFCHR
29384 # if S_ISBLK (S_IFCHR)
29389 #if defined S_ISLNK && defined S_IFREG
29390 # if S_ISLNK (S_IFREG)
29395 #if defined S_ISSOCK && defined S_IFREG
29396 # if S_ISSOCK (S_IFREG)
29402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29403 $EGREP "You lose" >/dev
/null
2>&1; then
29404 ac_cv_header_stat_broken
=yes
29406 ac_cv_header_stat_broken
=no
29411 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29412 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29413 if test $ac_cv_header_stat_broken = yes; then
29415 cat >>confdefs.h
<<\_ACEOF
29416 #define STAT_MACROS_BROKEN 1
29421 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29422 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29423 if test "${ac_cv_header_stdc+set}" = set; then
29424 echo $ECHO_N "(cached) $ECHO_C" >&6
29426 cat >conftest.
$ac_ext <<_ACEOF
29429 cat confdefs.h
>>conftest.
$ac_ext
29430 cat >>conftest.
$ac_ext <<_ACEOF
29431 /* end confdefs.h. */
29432 #include <stdlib.h>
29433 #include <stdarg.h>
29434 #include <string.h>
29445 rm -f conftest.
$ac_objext
29446 if { (ac_try
="$ac_compile"
29447 case "(($ac_try" in
29448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_compile") 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } &&
29459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29460 { (case "(($ac_try" in
29461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29462 *) ac_try_echo
=$ac_try;;
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_try") 2>&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try
='test -s conftest.$ac_objext'
29470 { (case "(($ac_try" in
29471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_try") 2>&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
29479 ac_cv_header_stdc=yes
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29484 ac_cv_header_stdc=no
29487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29489 if test $ac_cv_header_stdc = yes; then
29490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29491 cat >conftest.$ac_ext <<_ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h. */
29497 #include <string.h>
29500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29501 $EGREP "memchr" >/dev/null 2>&1; then
29504 ac_cv_header_stdc=no
29510 if test $ac_cv_header_stdc = yes; then
29511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29512 cat >conftest.$ac_ext <<_ACEOF
29515 cat confdefs.h >>conftest.$ac_ext
29516 cat >>conftest.$ac_ext <<_ACEOF
29517 /* end confdefs.h. */
29518 #include <stdlib.h>
29521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29522 $EGREP "free" >/dev/null 2>&1; then
29525 ac_cv_header_stdc=no
29531 if test $ac_cv_header_stdc = yes; then
29532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29533 if test "$cross_compiling" = yes; then
29536 cat >conftest.$ac_ext <<_ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h. */
29543 #include <stdlib.h>
29544 #if ((' ' & 0x0FF) == 0x020)
29545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29548 # define ISLOWER(c) \
29549 (('a' <= (c) && (c) <= 'i') \
29550 || ('j' <= (c) && (c) <= 'r') \
29551 || ('s' <= (c) && (c) <= 'z'))
29552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29560 for (i = 0; i < 256; i++)
29561 if (XOR (islower (i), ISLOWER (i))
29562 || toupper (i) != TOUPPER (i))
29567 rm -f conftest$ac_exeext
29568 if { (ac_try="$ac_link"
29569 case "(($ac_try" in
29570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29571 *) ac_try_echo
=$ac_try;;
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_link") 2>&5
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29578 { (case "(($ac_try" in
29579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
29589 echo "$as_me: program exited with status $ac_status" >&5
29590 echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29593 ( exit $ac_status )
29594 ac_cv_header_stdc=no
29596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29602 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29603 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29604 if test $ac_cv_header_stdc = yes; then
29606 cat >>confdefs.h <<\_ACEOF
29607 #define STDC_HEADERS 1
29612 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29613 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29614 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29617 cat >conftest.$ac_ext <<_ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h. */
29623 #include <sys/types.h>
29624 #include <sys/wait.h>
29625 #ifndef WEXITSTATUS
29626 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29642 rm -f conftest.$ac_objext
29643 if { (ac_try="$ac_compile"
29644 case "(($ac_try" in
29645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29646 *) ac_try_echo
=$ac_try;;
29648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649 (eval "$ac_compile") 2>conftest.er1
29651 grep -v '^ *+' conftest.er1
>conftest.err
29653 cat conftest.err
>&5
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); } &&
29656 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29657 { (case "(($ac_try" in
29658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_try") 2>&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; } &&
29666 { ac_try='test -s conftest.$ac_objext'
29667 { (case "(($ac_try" in
29668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29669 *) ac_try_echo
=$ac_try;;
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672 (eval "$ac_try") 2>&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); }; }; then
29676 ac_cv_header_sys_wait_h
=yes
29678 echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.
$ac_ext >&5
29681 ac_cv_header_sys_wait_h
=no
29684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29686 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29687 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29688 if test $ac_cv_header_sys_wait_h = yes; then
29690 cat >>confdefs.h
<<\_ACEOF
29691 #define HAVE_SYS_WAIT_H 1
29696 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29697 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29698 if test "${ac_cv_header_time+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29701 cat >conftest.
$ac_ext <<_ACEOF
29704 cat confdefs.h
>>conftest.
$ac_ext
29705 cat >>conftest.
$ac_ext <<_ACEOF
29706 /* end confdefs.h. */
29707 #include <sys/types.h>
29708 #include <sys/time.h>
29714 if ((struct tm *) 0)
29720 rm -f conftest.
$ac_objext
29721 if { (ac_try
="$ac_compile"
29722 case "(($ac_try" in
29723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29724 *) ac_try_echo=$ac_try;;
29726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29727 (eval "$ac_compile") 2>conftest.er1
29729 grep -v '^ *+' conftest.er1 >conftest.err
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29735 { (case "(($ac_try" in
29736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29737 *) ac_try_echo
=$ac_try;;
29739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740 (eval "$ac_try") 2>&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; } &&
29744 { ac_try
='test -s conftest.$ac_objext'
29745 { (case "(($ac_try" in
29746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_try") 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 ac_cv_header_time=yes
29756 echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29759 ac_cv_header_time=no
29762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29764 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29765 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29766 if test $ac_cv_header_time = yes; then
29768 cat >>confdefs.h <<\_ACEOF
29769 #define TIME_WITH_SYS_TIME 1
29781 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29783 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29788 echo $ECHO_N "(cached) $ECHO_C" >&6
29790 ac_res=`eval echo '${'$as_ac_Header'}'`
29791 { echo "$as_me:$LINENO: result: $ac_res" >&5
29792 echo "${ECHO_T}$ac_res" >&6; }
29794 # Is the header compilable?
29795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29797 cat >conftest.$ac_ext <<_ACEOF
29800 cat confdefs.h >>conftest.$ac_ext
29801 cat >>conftest.$ac_ext <<_ACEOF
29802 /* end confdefs.h. */
29803 $ac_includes_default
29804 #include <$ac_header>
29806 rm -f conftest.$ac_objext
29807 if { (ac_try="$ac_compile"
29808 case "(($ac_try" in
29809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29810 *) ac_try_echo
=$ac_try;;
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_compile") 2>conftest.er1
29815 grep -v '^ *+' conftest.er1
>conftest.err
29817 cat conftest.err
>&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
29820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821 { (case "(($ac_try" in
29822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29823 *) ac_try_echo=$ac_try;;
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826 (eval "$ac_try") 2>&5
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); }; } &&
29830 { ac_try='test -s conftest.$ac_objext'
29831 { (case "(($ac_try" in
29832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29833 *) ac_try_echo
=$ac_try;;
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_try") 2>&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; }; then
29840 ac_header_compiler
=yes
29842 echo "$as_me: failed program was:" >&5
29843 sed 's/^/| /' conftest.
$ac_ext >&5
29845 ac_header_compiler
=no
29848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29850 echo "${ECHO_T}$ac_header_compiler" >&6; }
29852 # Is the header present?
29853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29855 cat >conftest.
$ac_ext <<_ACEOF
29858 cat confdefs.h
>>conftest.
$ac_ext
29859 cat >>conftest.
$ac_ext <<_ACEOF
29860 /* end confdefs.h. */
29861 #include <$ac_header>
29863 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29864 case "(($ac_try" in
29865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29871 grep -v '^ *+' conftest.er1 >conftest.err
29873 cat conftest.err >&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); } >/dev/null; then
29876 if test -s conftest.err; then
29877 ac_cpp_err=$ac_c_preproc_warn_flag
29878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29885 if test -z "$ac_cpp_err"; then
29886 ac_header_preproc=yes
29888 echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29891 ac_header_preproc=no
29894 rm -f conftest.err conftest.$ac_ext
29895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29896 echo "${ECHO_T}$ac_header_preproc" >&6; }
29898 # So? What about this header?
29899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29905 ac_header_preproc=yes
29908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29921 ## ----------------------------------- ##
29922 ## Report this to llvmbugs@cs.uiuc.edu ##
29923 ## ----------------------------------- ##
29925 ) | sed "s/^/$as_me: WARNING: /" >&2
29928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
29933 eval "$as_ac_Header=\$ac_header_preproc"
29935 ac_res=`eval echo '${'$as_ac_Header'}'`
29936 { echo "$as_me:$LINENO: result: $ac_res" >&5
29937 echo "${ECHO_T}$ac_res" >&6; }
29940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29941 cat >>confdefs.h <<_ACEOF
29942 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29955 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29957 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29962 echo $ECHO_N "(cached) $ECHO_C" >&6
29964 ac_res=`eval echo '${'$as_ac_Header'}'`
29965 { echo "$as_me:$LINENO: result: $ac_res" >&5
29966 echo "${ECHO_T}$ac_res" >&6; }
29968 # Is the header compilable?
29969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29971 cat >conftest.$ac_ext <<_ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h. */
29977 $ac_includes_default
29978 #include <$ac_header>
29980 rm -f conftest.$ac_objext
29981 if { (ac_try="$ac_compile"
29982 case "(($ac_try" in
29983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29984 *) ac_try_echo
=$ac_try;;
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987 (eval "$ac_compile") 2>conftest.er1
29989 grep -v '^ *+' conftest.er1
>conftest.err
29991 cat conftest.err
>&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); } &&
29994 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29995 { (case "(($ac_try" in
29996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_try") 2>&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest.$ac_objext'
30005 { (case "(($ac_try" in
30006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30007 *) ac_try_echo
=$ac_try;;
30009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30010 (eval "$ac_try") 2>&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 ac_header_compiler
=yes
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.
$ac_ext >&5
30019 ac_header_compiler
=no
30022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30024 echo "${ECHO_T}$ac_header_compiler" >&6; }
30026 # Is the header present?
30027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30029 cat >conftest.
$ac_ext <<_ACEOF
30032 cat confdefs.h
>>conftest.
$ac_ext
30033 cat >>conftest.
$ac_ext <<_ACEOF
30034 /* end confdefs.h. */
30035 #include <$ac_header>
30037 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30038 case "(($ac_try" in
30039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30045 grep -v '^ *+' conftest.er1 >conftest.err
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } >/dev/null; then
30050 if test -s conftest.err; then
30051 ac_cpp_err=$ac_c_preproc_warn_flag
30052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30059 if test -z "$ac_cpp_err"; then
30060 ac_header_preproc=yes
30062 echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30065 ac_header_preproc=no
30068 rm -f conftest.err conftest.$ac_ext
30069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30070 echo "${ECHO_T}$ac_header_preproc" >&6; }
30072 # So? What about this header?
30073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30079 ac_header_preproc=yes
30082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30095 ## ----------------------------------- ##
30096 ## Report this to llvmbugs@cs.uiuc.edu ##
30097 ## ----------------------------------- ##
30099 ) | sed "s/^/$as_me: WARNING: /" >&2
30102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30105 echo $ECHO_N "(cached) $ECHO_C" >&6
30107 eval "$as_ac_Header=\$ac_header_preproc"
30109 ac_res=`eval echo '${'$as_ac_Header'}'`
30110 { echo "$as_me:$LINENO: result: $ac_res" >&5
30111 echo "${ECHO_T}$ac_res" >&6; }
30114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30115 cat >>confdefs.h <<_ACEOF
30116 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30125 for ac_header in utime.h windows.h
30127 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30134 ac_res=`eval echo '${'$as_ac_Header'}'`
30135 { echo "$as_me:$LINENO: result: $ac_res" >&5
30136 echo "${ECHO_T}$ac_res" >&6; }
30138 # Is the header compilable?
30139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30141 cat >conftest.$ac_ext <<_ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h. */
30147 $ac_includes_default
30148 #include <$ac_header>
30150 rm -f conftest.$ac_objext
30151 if { (ac_try="$ac_compile"
30152 case "(($ac_try" in
30153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30154 *) ac_try_echo
=$ac_try;;
30156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157 (eval "$ac_compile") 2>conftest.er1
30159 grep -v '^ *+' conftest.er1
>conftest.err
30161 cat conftest.err
>&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); } &&
30164 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30165 { (case "(($ac_try" in
30166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170 (eval "$ac_try") 2>&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; } &&
30174 { ac_try='test -s conftest.$ac_objext'
30175 { (case "(($ac_try" in
30176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30177 *) ac_try_echo
=$ac_try;;
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_try") 2>&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; }; then
30184 ac_header_compiler
=yes
30186 echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.
$ac_ext >&5
30189 ac_header_compiler
=no
30192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30194 echo "${ECHO_T}$ac_header_compiler" >&6; }
30196 # Is the header present?
30197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30199 cat >conftest.
$ac_ext <<_ACEOF
30202 cat confdefs.h
>>conftest.
$ac_ext
30203 cat >>conftest.
$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 #include <$ac_header>
30207 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30208 case "(($ac_try" in
30209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30215 grep -v '^ *+' conftest.er1 >conftest.err
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } >/dev/null; then
30220 if test -s conftest.err; then
30221 ac_cpp_err=$ac_c_preproc_warn_flag
30222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30229 if test -z "$ac_cpp_err"; then
30230 ac_header_preproc=yes
30232 echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30235 ac_header_preproc=no
30238 rm -f conftest.err conftest.$ac_ext
30239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30240 echo "${ECHO_T}$ac_header_preproc" >&6; }
30242 # So? What about this header?
30243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30249 ac_header_preproc=yes
30252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30265 ## ----------------------------------- ##
30266 ## Report this to llvmbugs@cs.uiuc.edu ##
30267 ## ----------------------------------- ##
30269 ) | sed "s/^/$as_me: WARNING: /" >&2
30272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30277 eval "$as_ac_Header=\$ac_header_preproc"
30279 ac_res=`eval echo '${'$as_ac_Header'}'`
30280 { echo "$as_me:$LINENO: result: $ac_res" >&5
30281 echo "${ECHO_T}$ac_res" >&6; }
30284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30285 cat >>confdefs.h <<_ACEOF
30286 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30297 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30299 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30304 echo $ECHO_N "(cached) $ECHO_C" >&6
30306 ac_res=`eval echo '${'$as_ac_Header'}'`
30307 { echo "$as_me:$LINENO: result: $ac_res" >&5
30308 echo "${ECHO_T}$ac_res" >&6; }
30310 # Is the header compilable?
30311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30313 cat >conftest.$ac_ext <<_ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h. */
30319 $ac_includes_default
30320 #include <$ac_header>
30322 rm -f conftest.$ac_objext
30323 if { (ac_try="$ac_compile"
30324 case "(($ac_try" in
30325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30326 *) ac_try_echo
=$ac_try;;
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_compile") 2>conftest.er1
30331 grep -v '^ *+' conftest.er1
>conftest.err
30333 cat conftest.err
>&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } &&
30336 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337 { (case "(($ac_try" in
30338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30349 *) ac_try_echo
=$ac_try;;
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
30356 ac_header_compiler
=yes
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.
$ac_ext >&5
30361 ac_header_compiler
=no
30364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30366 echo "${ECHO_T}$ac_header_compiler" >&6; }
30368 # Is the header present?
30369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30371 cat >conftest.
$ac_ext <<_ACEOF
30374 cat confdefs.h
>>conftest.
$ac_ext
30375 cat >>conftest.
$ac_ext <<_ACEOF
30376 /* end confdefs.h. */
30377 #include <$ac_header>
30379 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30380 case "(($ac_try" in
30381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30387 grep -v '^ *+' conftest.er1 >conftest.err
30389 cat conftest.err >&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); } >/dev/null; then
30392 if test -s conftest.err; then
30393 ac_cpp_err=$ac_c_preproc_warn_flag
30394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30401 if test -z "$ac_cpp_err"; then
30402 ac_header_preproc=yes
30404 echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 ac_header_preproc=no
30410 rm -f conftest.err conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30412 echo "${ECHO_T}$ac_header_preproc" >&6; }
30414 # So? What about this header?
30415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30421 ac_header_preproc=yes
30424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30437 ## ----------------------------------- ##
30438 ## Report this to llvmbugs@cs.uiuc.edu ##
30439 ## ----------------------------------- ##
30441 ) | sed "s/^/$as_me: WARNING: /" >&2
30444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30447 echo $ECHO_N "(cached) $ECHO_C" >&6
30449 eval "$as_ac_Header=\$ac_header_preproc"
30451 ac_res=`eval echo '${'$as_ac_Header'}'`
30452 { echo "$as_me:$LINENO: result: $ac_res" >&5
30453 echo "${ECHO_T}$ac_res" >&6; }
30456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30457 cat >>confdefs.h <<_ACEOF
30458 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30469 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30471 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30478 ac_res=`eval echo '${'$as_ac_Header'}'`
30479 { echo "$as_me:$LINENO: result: $ac_res" >&5
30480 echo "${ECHO_T}$ac_res" >&6; }
30482 # Is the header compilable?
30483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30485 cat >conftest.$ac_ext <<_ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h. */
30491 $ac_includes_default
30492 #include <$ac_header>
30494 rm -f conftest.$ac_objext
30495 if { (ac_try="$ac_compile"
30496 case "(($ac_try" in
30497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30498 *) ac_try_echo
=$ac_try;;
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_compile") 2>conftest.er1
30503 grep -v '^ *+' conftest.er1
>conftest.err
30505 cat conftest.err
>&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } &&
30508 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30509 { (case "(($ac_try" in
30510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_try") 2>&5
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest.$ac_objext'
30519 { (case "(($ac_try" in
30520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30521 *) ac_try_echo
=$ac_try;;
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_try") 2>&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; }; then
30528 ac_header_compiler
=yes
30530 echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.
$ac_ext >&5
30533 ac_header_compiler
=no
30536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30538 echo "${ECHO_T}$ac_header_compiler" >&6; }
30540 # Is the header present?
30541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30543 cat >conftest.
$ac_ext <<_ACEOF
30546 cat confdefs.h
>>conftest.
$ac_ext
30547 cat >>conftest.
$ac_ext <<_ACEOF
30548 /* end confdefs.h. */
30549 #include <$ac_header>
30551 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30552 case "(($ac_try" in
30553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30559 grep -v '^ *+' conftest.er1 >conftest.err
30561 cat conftest.err >&5
30562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563 (exit $ac_status); } >/dev/null; then
30564 if test -s conftest.err; then
30565 ac_cpp_err=$ac_c_preproc_warn_flag
30566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30573 if test -z "$ac_cpp_err"; then
30574 ac_header_preproc=yes
30576 echo "$as_me: failed program was:" >&5
30577 sed 's/^/| /' conftest.$ac_ext >&5
30579 ac_header_preproc=no
30582 rm -f conftest.err conftest.$ac_ext
30583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30584 echo "${ECHO_T}$ac_header_preproc" >&6; }
30586 # So? What about this header?
30587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30593 ac_header_preproc=yes
30596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30609 ## ----------------------------------- ##
30610 ## Report this to llvmbugs@cs.uiuc.edu ##
30611 ## ----------------------------------- ##
30613 ) | sed "s/^/$as_me: WARNING: /" >&2
30616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30619 echo $ECHO_N "(cached) $ECHO_C" >&6
30621 eval "$as_ac_Header=\$ac_header_preproc"
30623 ac_res=`eval echo '${'$as_ac_Header'}'`
30624 { echo "$as_me:$LINENO: result: $ac_res" >&5
30625 echo "${ECHO_T}$ac_res" >&6; }
30628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30629 cat >>confdefs.h <<_ACEOF
30630 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30637 if test "$ENABLE_THREADS" -eq 1 ; then
30639 for ac_header in pthread.h
30641 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30646 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 ac_res=`eval echo '${'$as_ac_Header'}'`
30649 { echo "$as_me:$LINENO: result: $ac_res" >&5
30650 echo "${ECHO_T}$ac_res" >&6; }
30652 # Is the header compilable?
30653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30655 cat >conftest.$ac_ext <<_ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h. */
30661 $ac_includes_default
30662 #include <$ac_header>
30664 rm -f conftest.$ac_objext
30665 if { (ac_try="$ac_compile"
30666 case "(($ac_try" in
30667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30668 *) ac_try_echo
=$ac_try;;
30670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671 (eval "$ac_compile") 2>conftest.er1
30673 grep -v '^ *+' conftest.er1
>conftest.err
30675 cat conftest.err
>&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); } &&
30678 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30679 { (case "(($ac_try" in
30680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30681 *) ac_try_echo=$ac_try;;
30683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684 (eval "$ac_try") 2>&5
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; } &&
30688 { ac_try='test -s conftest.$ac_objext'
30689 { (case "(($ac_try" in
30690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30691 *) ac_try_echo
=$ac_try;;
30693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30694 (eval "$ac_try") 2>&5
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; }; then
30698 ac_header_compiler
=yes
30700 echo "$as_me: failed program was:" >&5
30701 sed 's/^/| /' conftest.
$ac_ext >&5
30703 ac_header_compiler
=no
30706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30708 echo "${ECHO_T}$ac_header_compiler" >&6; }
30710 # Is the header present?
30711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30713 cat >conftest.
$ac_ext <<_ACEOF
30716 cat confdefs.h
>>conftest.
$ac_ext
30717 cat >>conftest.
$ac_ext <<_ACEOF
30718 /* end confdefs.h. */
30719 #include <$ac_header>
30721 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30722 case "(($ac_try" in
30723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30729 grep -v '^ *+' conftest.er1 >conftest.err
30731 cat conftest.err >&5
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); } >/dev/null; then
30734 if test -s conftest.err; then
30735 ac_cpp_err=$ac_c_preproc_warn_flag
30736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30743 if test -z "$ac_cpp_err"; then
30744 ac_header_preproc=yes
30746 echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30749 ac_header_preproc=no
30752 rm -f conftest.err conftest.$ac_ext
30753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30754 echo "${ECHO_T}$ac_header_preproc" >&6; }
30756 # So? What about this header?
30757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30763 ac_header_preproc=yes
30766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30779 ## ----------------------------------- ##
30780 ## Report this to llvmbugs@cs.uiuc.edu ##
30781 ## ----------------------------------- ##
30783 ) | sed "s/^/$as_me: WARNING: /" >&2
30786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30791 eval "$as_ac_Header=\$ac_header_preproc"
30793 ac_res=`eval echo '${'$as_ac_Header'}'`
30794 { echo "$as_me:$LINENO: result: $ac_res" >&5
30795 echo "${ECHO_T}$ac_res" >&6; }
30798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30799 cat >>confdefs.h <<_ACEOF
30800 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30816 if test "$llvm_cv_enable_libffi" = "yes" ; then
30819 for ac_header in ffi.h ffi/ffi.h
30821 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30828 ac_res=`eval echo '${'$as_ac_Header'}'`
30829 { echo "$as_me:$LINENO: result: $ac_res" >&5
30830 echo "${ECHO_T}$ac_res" >&6; }
30832 # Is the header compilable?
30833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30835 cat >conftest.$ac_ext <<_ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h. */
30841 $ac_includes_default
30842 #include <$ac_header>
30844 rm -f conftest.$ac_objext
30845 if { (ac_try="$ac_compile"
30846 case "(($ac_try" in
30847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30848 *) ac_try_echo
=$ac_try;;
30850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30851 (eval "$ac_compile") 2>conftest.er1
30853 grep -v '^ *+' conftest.er1
>conftest.err
30855 cat conftest.err
>&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } &&
30858 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30859 { (case "(($ac_try" in
30860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30861 *) ac_try_echo=$ac_try;;
30863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864 (eval "$ac_try") 2>&5
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); }; } &&
30868 { ac_try='test -s conftest.$ac_objext'
30869 { (case "(($ac_try" in
30870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30871 *) ac_try_echo
=$ac_try;;
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_try") 2>&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); }; }; then
30878 ac_header_compiler
=yes
30880 echo "$as_me: failed program was:" >&5
30881 sed 's/^/| /' conftest.
$ac_ext >&5
30883 ac_header_compiler
=no
30886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30888 echo "${ECHO_T}$ac_header_compiler" >&6; }
30890 # Is the header present?
30891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30893 cat >conftest.
$ac_ext <<_ACEOF
30896 cat confdefs.h
>>conftest.
$ac_ext
30897 cat >>conftest.
$ac_ext <<_ACEOF
30898 /* end confdefs.h. */
30899 #include <$ac_header>
30901 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30902 case "(($ac_try" in
30903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30909 grep -v '^ *+' conftest.er1 >conftest.err
30911 cat conftest.err >&5
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); } >/dev/null; then
30914 if test -s conftest.err; then
30915 ac_cpp_err=$ac_c_preproc_warn_flag
30916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30923 if test -z "$ac_cpp_err"; then
30924 ac_header_preproc=yes
30926 echo "$as_me: failed program was:" >&5
30927 sed 's/^/| /' conftest.$ac_ext >&5
30929 ac_header_preproc=no
30932 rm -f conftest.err conftest.$ac_ext
30933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30934 echo "${ECHO_T}$ac_header_preproc" >&6; }
30936 # So? What about this header?
30937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30943 ac_header_preproc=yes
30946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30959 ## ----------------------------------- ##
30960 ## Report this to llvmbugs@cs.uiuc.edu ##
30961 ## ----------------------------------- ##
30963 ) | sed "s/^/$as_me: WARNING: /" >&2
30966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30969 echo $ECHO_N "(cached) $ECHO_C" >&6
30971 eval "$as_ac_Header=\$ac_header_preproc"
30973 ac_res=`eval echo '${'$as_ac_Header'}'`
30974 { echo "$as_me:$LINENO: result: $ac_res" >&5
30975 echo "${ECHO_T}$ac_res" >&6; }
30978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30979 cat >>confdefs.h <<_ACEOF
30980 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30991 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30992 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30993 if test "${ac_cv_huge_val_sanity+set}" = set; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30998 ac_cpp='$CXXCPP $CPPFLAGS'
30999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31004 if test "$cross_compiling" = yes; then
31005 ac_cv_huge_val_sanity=yes
31007 cat >conftest.$ac_ext <<_ACEOF
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h. */
31017 double x = HUGE_VAL; return x != x;
31022 rm -f conftest$ac_exeext
31023 if { (ac_try="$ac_link"
31024 case "(($ac_try" in
31025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31026 *) ac_try_echo
=$ac_try;;
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_link") 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31033 { (case "(($ac_try" in
31034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_try") 2>&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; }; then
31042 ac_cv_huge_val_sanity=yes
31044 echo "$as_me: program exited with status $ac_status" >&5
31045 echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31048 ( exit $ac_status )
31049 ac_cv_huge_val_sanity=no
31051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31056 ac_cpp='$CPP $CPPFLAGS'
31057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31063 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31064 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31068 { echo "$as_me:$LINENO: checking for pid_t" >&5
31069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31070 if test "${ac_cv_type_pid_t+set}" = set; then
31071 echo $ECHO_N "(cached) $ECHO_C" >&6
31073 cat >conftest.$ac_ext <<_ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h. */
31079 $ac_includes_default
31080 typedef pid_t ac__type_new_;
31084 if ((ac__type_new_ *) 0)
31086 if (sizeof (ac__type_new_))
31092 rm -f conftest.$ac_objext
31093 if { (ac_try="$ac_compile"
31094 case "(($ac_try" in
31095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31096 *) ac_try_echo
=$ac_try;;
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
31101 grep -v '^ *+' conftest.er1
>conftest.err
31103 cat conftest.err
>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } &&
31106 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31107 { (case "(($ac_try" in
31108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_try") 2>&5
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; } &&
31116 { ac_try='test -s conftest.$ac_objext'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31119 *) ac_try_echo
=$ac_try;;
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; }; then
31126 ac_cv_type_pid_t
=yes
31128 echo "$as_me: failed program was:" >&5
31129 sed 's/^/| /' conftest.
$ac_ext >&5
31131 ac_cv_type_pid_t
=no
31134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31136 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31138 if test $ac_cv_type_pid_t = yes; then
31142 cat >>confdefs.h
<<_ACEOF
31148 { echo "$as_me:$LINENO: checking for size_t" >&5
31149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31150 if test "${ac_cv_type_size_t+set}" = set; then
31151 echo $ECHO_N "(cached) $ECHO_C" >&6
31153 cat >conftest.
$ac_ext <<_ACEOF
31156 cat confdefs.h
>>conftest.
$ac_ext
31157 cat >>conftest.
$ac_ext <<_ACEOF
31158 /* end confdefs.h. */
31159 $ac_includes_default
31160 typedef size_t ac__type_new_;
31164 if ((ac__type_new_ *) 0)
31166 if (sizeof (ac__type_new_))
31172 rm -f conftest.
$ac_objext
31173 if { (ac_try
="$ac_compile"
31174 case "(($ac_try" in
31175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_compile") 2>conftest.er1
31181 grep -v '^ *+' conftest.er1 >conftest.err
31183 cat conftest.err >&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } &&
31186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31189 *) ac_try_echo
=$ac_try;;
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try
='test -s conftest.$ac_objext'
31197 { (case "(($ac_try" in
31198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
31206 ac_cv_type_size_t=yes
31208 echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31211 ac_cv_type_size_t=no
31214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31218 if test $ac_cv_type_size_t = yes; then
31222 cat >>confdefs.h <<_ACEOF
31223 #define size_t unsigned int
31228 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31229 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31230 if test "${ac_cv_type_signal+set}" = set; then
31231 echo $ECHO_N "(cached) $ECHO_C" >&6
31233 cat >conftest.$ac_ext <<_ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h. */
31239 #include <sys/types.h>
31240 #include <signal.h>
31245 return *(signal (0, 0)) (0) == 1;
31250 rm -f conftest.$ac_objext
31251 if { (ac_try="$ac_compile"
31252 case "(($ac_try" in
31253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31254 *) ac_try_echo
=$ac_try;;
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_compile") 2>conftest.er1
31259 grep -v '^ *+' conftest.er1
>conftest.err
31261 cat conftest.err
>&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } &&
31264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265 { (case "(($ac_try" in
31266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_try") 2>&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest.$ac_objext'
31275 { (case "(($ac_try" in
31276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31277 *) ac_try_echo
=$ac_try;;
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_try") 2>&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
31284 ac_cv_type_signal
=int
31286 echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.
$ac_ext >&5
31289 ac_cv_type_signal
=void
31292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31294 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31295 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31297 cat >>confdefs.h
<<_ACEOF
31298 #define RETSIGTYPE $ac_cv_type_signal
31302 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31303 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31304 if test "${ac_cv_struct_tm+set}" = set; then
31305 echo $ECHO_N "(cached) $ECHO_C" >&6
31307 cat >conftest.
$ac_ext <<_ACEOF
31310 cat confdefs.h
>>conftest.
$ac_ext
31311 cat >>conftest.
$ac_ext <<_ACEOF
31312 /* end confdefs.h. */
31313 #include <sys/types.h>
31319 struct tm *tp; tp->tm_sec;
31324 rm -f conftest.
$ac_objext
31325 if { (ac_try
="$ac_compile"
31326 case "(($ac_try" in
31327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_compile") 2>conftest.er1
31333 grep -v '^ *+' conftest.er1 >conftest.err
31335 cat conftest.err >&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); } &&
31338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31339 { (case "(($ac_try" in
31340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31341 *) ac_try_echo
=$ac_try;;
31343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31344 (eval "$ac_try") 2>&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; } &&
31348 { ac_try
='test -s conftest.$ac_objext'
31349 { (case "(($ac_try" in
31350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_try") 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }; then
31358 ac_cv_struct_tm=time.h
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31363 ac_cv_struct_tm=sys/time.h
31366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31368 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31369 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31370 if test $ac_cv_struct_tm = sys/time.h; then
31372 cat >>confdefs.h <<\_ACEOF
31373 #define TM_IN_SYS_TIME 1
31378 { echo "$as_me:$LINENO: checking for int64_t" >&5
31379 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31380 if test "${ac_cv_type_int64_t+set}" = set; then
31381 echo $ECHO_N "(cached) $ECHO_C" >&6
31383 cat >conftest.$ac_ext <<_ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h. */
31389 $ac_includes_default
31390 typedef int64_t ac__type_new_;
31394 if ((ac__type_new_ *) 0)
31396 if (sizeof (ac__type_new_))
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31406 *) ac_try_echo
=$ac_try;;
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
31411 grep -v '^ *+' conftest.er1
>conftest.err
31413 cat conftest.err
>&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
31416 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31417 { (case "(($ac_try" in
31418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_try") 2>&5
31424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425 (exit $ac_status); }; } &&
31426 { ac_try='test -s conftest.$ac_objext'
31427 { (case "(($ac_try" in
31428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31429 *) ac_try_echo
=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_try") 2>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 ac_cv_type_int64_t
=yes
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.
$ac_ext >&5
31441 ac_cv_type_int64_t
=no
31444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31446 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31447 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31448 if test $ac_cv_type_int64_t = yes; then
31450 cat >>confdefs.h
<<_ACEOF
31451 #define HAVE_INT64_T 1
31456 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31457 echo "$as_me: error: Type int64_t required but not found" >&2;}
31458 { (exit 1); exit 1; }; }
31461 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31462 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31463 if test "${ac_cv_type_uint64_t+set}" = set; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 cat >conftest.
$ac_ext <<_ACEOF
31469 cat confdefs.h
>>conftest.
$ac_ext
31470 cat >>conftest.
$ac_ext <<_ACEOF
31471 /* end confdefs.h. */
31472 $ac_includes_default
31473 typedef uint64_t ac__type_new_;
31477 if ((ac__type_new_ *) 0)
31479 if (sizeof (ac__type_new_))
31485 rm -f conftest.
$ac_objext
31486 if { (ac_try
="$ac_compile"
31487 case "(($ac_try" in
31488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_compile") 2>conftest.er1
31494 grep -v '^ *+' conftest.er1 >conftest.err
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31502 *) ac_try_echo
=$ac_try;;
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try
='test -s conftest.$ac_objext'
31510 { (case "(($ac_try" in
31511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 ac_cv_type_uint64_t=yes
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31524 ac_cv_type_uint64_t=no
31527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31529 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31530 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31531 if test $ac_cv_type_uint64_t = yes; then
31533 cat >>confdefs.h <<_ACEOF
31534 #define HAVE_UINT64_T 1
31539 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31540 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31541 if test "${ac_cv_type_u_int64_t+set}" = set; then
31542 echo $ECHO_N "(cached) $ECHO_C" >&6
31544 cat >conftest.$ac_ext <<_ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h. */
31550 $ac_includes_default
31551 typedef u_int64_t ac__type_new_;
31555 if ((ac__type_new_ *) 0)
31557 if (sizeof (ac__type_new_))
31563 rm -f conftest.$ac_objext
31564 if { (ac_try="$ac_compile"
31565 case "(($ac_try" in
31566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31567 *) ac_try_echo
=$ac_try;;
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_compile") 2>conftest.er1
31572 grep -v '^ *+' conftest.er1
>conftest.err
31574 cat conftest.err
>&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576 (exit $ac_status); } &&
31577 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578 { (case "(($ac_try" in
31579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_try") 2>&5
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest.$ac_objext'
31588 { (case "(($ac_try" in
31589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31590 *) ac_try_echo
=$ac_try;;
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_try") 2>&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
31597 ac_cv_type_u_int64_t
=yes
31599 echo "$as_me: failed program was:" >&5
31600 sed 's/^/| /' conftest.
$ac_ext >&5
31602 ac_cv_type_u_int64_t
=no
31605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31607 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31608 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31609 if test $ac_cv_type_u_int64_t = yes; then
31611 cat >>confdefs.h
<<_ACEOF
31612 #define HAVE_U_INT64_T 1
31617 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31618 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31619 { (exit 1); exit 1; }; }
31633 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31635 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31638 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31639 echo $ECHO_N "(cached) $ECHO_C" >&6
31641 cat >conftest.
$ac_ext <<_ACEOF
31644 cat confdefs.h
>>conftest.
$ac_ext
31645 cat >>conftest.
$ac_ext <<_ACEOF
31646 /* end confdefs.h. */
31647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31649 #define $ac_func innocuous_$ac_func
31651 /* System header to define __stub macros and hopefully few prototypes,
31652 which can conflict with char $ac_func (); below.
31653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31654 <limits.h> exists even on freestanding compilers. */
31657 # include <limits.h>
31659 # include <assert.h>
31664 /* Override any GCC internal prototype to avoid an error.
31665 Use char because int might match the return type of a GCC
31666 builtin and then its argument prototype would still apply. */
31671 /* The GNU C library defines this for functions which it implements
31672 to always fail with ENOSYS. Some functions are actually named
31673 something starting with __ and the normal name is an alias. */
31674 #if defined __stub_$ac_func || defined __stub___$ac_func
31681 return $ac_func ();
31686 rm -f conftest.
$ac_objext conftest
$ac_exeext
31687 if { (ac_try
="$ac_link"
31688 case "(($ac_try" in
31689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31690 *) ac_try_echo=$ac_try;;
31692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693 (eval "$ac_link") 2>conftest.er1
31695 grep -v '^ *+' conftest.er1 >conftest.err
31697 cat conftest.err >&5
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } &&
31700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31701 { (case "(($ac_try" in
31702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31703 *) ac_try_echo
=$ac_try;;
31705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706 (eval "$ac_try") 2>&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try
='test -s conftest$ac_exeext'
31711 { (case "(($ac_try" in
31712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_try") 2>&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; }; then
31720 eval "$as_ac_var=yes"
31722 echo "$as_me: failed program was:" >&5
31723 sed 's/^/| /' conftest.$ac_ext >&5
31725 eval "$as_ac_var=no"
31728 rm -f core conftest.err conftest.$ac_objext \
31729 conftest$ac_exeext conftest.$ac_ext
31731 ac_res=`eval echo '${'$as_ac_var'}'`
31732 { echo "$as_me:$LINENO: result: $ac_res" >&5
31733 echo "${ECHO_T}$ac_res" >&6; }
31734 if test `eval echo '${'$as_ac_var'}'` = yes; then
31735 cat >>confdefs.h <<_ACEOF
31736 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31746 for ac_func in powf fmodf strtof round
31748 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31752 echo $ECHO_N "(cached) $ECHO_C" >&6
31754 cat >conftest.$ac_ext <<_ACEOF
31757 cat confdefs.h >>conftest.$ac_ext
31758 cat >>conftest.$ac_ext <<_ACEOF
31759 /* end confdefs.h. */
31760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31762 #define $ac_func innocuous_$ac_func
31764 /* System header to define __stub macros and hopefully few prototypes,
31765 which can conflict with char $ac_func (); below.
31766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31767 <limits.h> exists even on freestanding compilers. */
31770 # include <limits.h>
31772 # include <assert.h>
31777 /* Override any GCC internal prototype to avoid an error.
31778 Use char because int might match the return type of a GCC
31779 builtin and then its argument prototype would still apply. */
31784 /* The GNU C library defines this for functions which it implements
31785 to always fail with ENOSYS. Some functions are actually named
31786 something starting with __ and the normal name is an alias. */
31787 #if defined __stub_$ac_func || defined __stub___$ac_func
31794 return $ac_func ();
31799 rm -f conftest.$ac_objext conftest$ac_exeext
31800 if { (ac_try="$ac_link"
31801 case "(($ac_try" in
31802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31803 *) ac_try_echo
=$ac_try;;
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_link") 2>conftest.er1
31808 grep -v '^ *+' conftest.er1
>conftest.err
31810 cat conftest.err
>&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } &&
31813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31814 { (case "(($ac_try" in
31815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest$ac_exeext'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31826 *) ac_try_echo
=$ac_try;;
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 eval "$as_ac_var=yes"
31835 echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.
$ac_ext >&5
31838 eval "$as_ac_var=no"
31841 rm -f core conftest.err conftest.
$ac_objext \
31842 conftest
$ac_exeext conftest.
$ac_ext
31844 ac_res
=`eval echo '${'$as_ac_var'}'`
31845 { echo "$as_me:$LINENO: result: $ac_res" >&5
31846 echo "${ECHO_T}$ac_res" >&6; }
31847 if test `eval echo '${'$as_ac_var'}'` = yes; then
31848 cat >>confdefs.h
<<_ACEOF
31849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31860 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
31862 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31865 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31868 cat >conftest.
$ac_ext <<_ACEOF
31871 cat confdefs.h
>>conftest.
$ac_ext
31872 cat >>conftest.
$ac_ext <<_ACEOF
31873 /* end confdefs.h. */
31874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31876 #define $ac_func innocuous_$ac_func
31878 /* System header to define __stub macros and hopefully few prototypes,
31879 which can conflict with char $ac_func (); below.
31880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31881 <limits.h> exists even on freestanding compilers. */
31884 # include <limits.h>
31886 # include <assert.h>
31891 /* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31898 /* The GNU C library defines this for functions which it implements
31899 to always fail with ENOSYS. Some functions are actually named
31900 something starting with __ and the normal name is an alias. */
31901 #if defined __stub_$ac_func || defined __stub___$ac_func
31908 return $ac_func ();
31913 rm -f conftest.
$ac_objext conftest
$ac_exeext
31914 if { (ac_try
="$ac_link"
31915 case "(($ac_try" in
31916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_link") 2>conftest.er1
31922 grep -v '^ *+' conftest.er1 >conftest.err
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928 { (case "(($ac_try" in
31929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31930 *) ac_try_echo
=$ac_try;;
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_try") 2>&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try
='test -s conftest$ac_exeext'
31938 { (case "(($ac_try" in
31939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
31947 eval "$as_ac_var=yes"
31949 echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31952 eval "$as_ac_var=no"
31955 rm -f core conftest.err conftest.$ac_objext \
31956 conftest$ac_exeext conftest.$ac_ext
31958 ac_res=`eval echo '${'$as_ac_var'}'`
31959 { echo "$as_me:$LINENO: result: $ac_res" >&5
31960 echo "${ECHO_T}$ac_res" >&6; }
31961 if test `eval echo '${'$as_ac_var'}'` = yes; then
31962 cat >>confdefs.h <<_ACEOF
31963 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31972 for ac_func in isatty mkdtemp mkstemp
31974 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31978 echo $ECHO_N "(cached) $ECHO_C" >&6
31980 cat >conftest.$ac_ext <<_ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h. */
31986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31988 #define $ac_func innocuous_$ac_func
31990 /* System header to define __stub macros and hopefully few prototypes,
31991 which can conflict with char $ac_func (); below.
31992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31993 <limits.h> exists even on freestanding compilers. */
31996 # include <limits.h>
31998 # include <assert.h>
32003 /* Override any GCC internal prototype to avoid an error.
32004 Use char because int might match the return type of a GCC
32005 builtin and then its argument prototype would still apply. */
32010 /* The GNU C library defines this for functions which it implements
32011 to always fail with ENOSYS. Some functions are actually named
32012 something starting with __ and the normal name is an alias. */
32013 #if defined __stub_$ac_func || defined __stub___$ac_func
32020 return $ac_func ();
32025 rm -f conftest.$ac_objext conftest$ac_exeext
32026 if { (ac_try="$ac_link"
32027 case "(($ac_try" in
32028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32029 *) ac_try_echo
=$ac_try;;
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_link") 2>conftest.er1
32034 grep -v '^ *+' conftest.er1
>conftest.err
32036 cat conftest.err
>&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); } &&
32039 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); }; } &&
32049 { ac_try='test -s conftest$ac_exeext'
32050 { (case "(($ac_try" in
32051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32052 *) ac_try_echo
=$ac_try;;
32054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_try") 2>&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 eval "$as_ac_var=yes"
32061 echo "$as_me: failed program was:" >&5
32062 sed 's/^/| /' conftest.
$ac_ext >&5
32064 eval "$as_ac_var=no"
32067 rm -f core conftest.err conftest.
$ac_objext \
32068 conftest
$ac_exeext conftest.
$ac_ext
32070 ac_res
=`eval echo '${'$as_ac_var'}'`
32071 { echo "$as_me:$LINENO: result: $ac_res" >&5
32072 echo "${ECHO_T}$ac_res" >&6; }
32073 if test `eval echo '${'$as_ac_var'}'` = yes; then
32074 cat >>confdefs.h
<<_ACEOF
32075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32086 for ac_func
in mktemp realpath sbrk setrlimit strdup
32088 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32091 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32092 echo $ECHO_N "(cached) $ECHO_C" >&6
32094 cat >conftest.
$ac_ext <<_ACEOF
32097 cat confdefs.h
>>conftest.
$ac_ext
32098 cat >>conftest.
$ac_ext <<_ACEOF
32099 /* end confdefs.h. */
32100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32102 #define $ac_func innocuous_$ac_func
32104 /* System header to define __stub macros and hopefully few prototypes,
32105 which can conflict with char $ac_func (); below.
32106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32107 <limits.h> exists even on freestanding compilers. */
32110 # include <limits.h>
32112 # include <assert.h>
32117 /* Override any GCC internal prototype to avoid an error.
32118 Use char because int might match the return type of a GCC
32119 builtin and then its argument prototype would still apply. */
32124 /* The GNU C library defines this for functions which it implements
32125 to always fail with ENOSYS. Some functions are actually named
32126 something starting with __ and the normal name is an alias. */
32127 #if defined __stub_$ac_func || defined __stub___$ac_func
32134 return $ac_func ();
32139 rm -f conftest.
$ac_objext conftest
$ac_exeext
32140 if { (ac_try
="$ac_link"
32141 case "(($ac_try" in
32142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_link") 2>conftest.er1
32148 grep -v '^ *+' conftest.er1 >conftest.err
32150 cat conftest.err >&5
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); } &&
32153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32156 *) ac_try_echo
=$ac_try;;
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try
='test -s conftest$ac_exeext'
32164 { (case "(($ac_try" in
32165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 eval "$as_ac_var=yes"
32175 echo "$as_me: failed program was:" >&5
32176 sed 's/^/| /' conftest.$ac_ext >&5
32178 eval "$as_ac_var=no"
32181 rm -f core conftest.err conftest.$ac_objext \
32182 conftest$ac_exeext conftest.$ac_ext
32184 ac_res=`eval echo '${'$as_ac_var'}'`
32185 { echo "$as_me:$LINENO: result: $ac_res" >&5
32186 echo "${ECHO_T}$ac_res" >&6; }
32187 if test `eval echo '${'$as_ac_var'}'` = yes; then
32188 cat >>confdefs.h <<_ACEOF
32189 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32199 for ac_func in strerror strerror_r strerror_s setenv
32201 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32205 echo $ECHO_N "(cached) $ECHO_C" >&6
32207 cat >conftest.$ac_ext <<_ACEOF
32210 cat confdefs.h >>conftest.$ac_ext
32211 cat >>conftest.$ac_ext <<_ACEOF
32212 /* end confdefs.h. */
32213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32215 #define $ac_func innocuous_$ac_func
32217 /* System header to define __stub macros and hopefully few prototypes,
32218 which can conflict with char $ac_func (); below.
32219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32220 <limits.h> exists even on freestanding compilers. */
32223 # include <limits.h>
32225 # include <assert.h>
32230 /* Override any GCC internal prototype to avoid an error.
32231 Use char because int might match the return type of a GCC
32232 builtin and then its argument prototype would still apply. */
32237 /* The GNU C library defines this for functions which it implements
32238 to always fail with ENOSYS. Some functions are actually named
32239 something starting with __ and the normal name is an alias. */
32240 #if defined __stub_$ac_func || defined __stub___$ac_func
32247 return $ac_func ();
32252 rm -f conftest.$ac_objext conftest$ac_exeext
32253 if { (ac_try="$ac_link"
32254 case "(($ac_try" in
32255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32256 *) ac_try_echo
=$ac_try;;
32258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259 (eval "$ac_link") 2>conftest.er1
32261 grep -v '^ *+' conftest.er1
>conftest.err
32263 cat conftest.err
>&5
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); } &&
32266 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32267 { (case "(($ac_try" in
32268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_try") 2>&5
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); }; } &&
32276 { ac_try='test -s conftest$ac_exeext'
32277 { (case "(($ac_try" in
32278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32279 *) ac_try_echo
=$ac_try;;
32281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282 (eval "$ac_try") 2>&5
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
32286 eval "$as_ac_var=yes"
32288 echo "$as_me: failed program was:" >&5
32289 sed 's/^/| /' conftest.
$ac_ext >&5
32291 eval "$as_ac_var=no"
32294 rm -f core conftest.err conftest.
$ac_objext \
32295 conftest
$ac_exeext conftest.
$ac_ext
32297 ac_res
=`eval echo '${'$as_ac_var'}'`
32298 { echo "$as_me:$LINENO: result: $ac_res" >&5
32299 echo "${ECHO_T}$ac_res" >&6; }
32300 if test `eval echo '${'$as_ac_var'}'` = yes; then
32301 cat >>confdefs.h
<<_ACEOF
32302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32312 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
32314 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32317 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32318 echo $ECHO_N "(cached) $ECHO_C" >&6
32320 cat >conftest.
$ac_ext <<_ACEOF
32323 cat confdefs.h
>>conftest.
$ac_ext
32324 cat >>conftest.
$ac_ext <<_ACEOF
32325 /* end confdefs.h. */
32326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32328 #define $ac_func innocuous_$ac_func
32330 /* System header to define __stub macros and hopefully few prototypes,
32331 which can conflict with char $ac_func (); below.
32332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32333 <limits.h> exists even on freestanding compilers. */
32336 # include <limits.h>
32338 # include <assert.h>
32343 /* Override any GCC internal prototype to avoid an error.
32344 Use char because int might match the return type of a GCC
32345 builtin and then its argument prototype would still apply. */
32350 /* The GNU C library defines this for functions which it implements
32351 to always fail with ENOSYS. Some functions are actually named
32352 something starting with __ and the normal name is an alias. */
32353 #if defined __stub_$ac_func || defined __stub___$ac_func
32360 return $ac_func ();
32365 rm -f conftest.
$ac_objext conftest
$ac_exeext
32366 if { (ac_try
="$ac_link"
32367 case "(($ac_try" in
32368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32369 *) ac_try_echo=$ac_try;;
32371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32372 (eval "$ac_link") 2>conftest.er1
32374 grep -v '^ *+' conftest.er1 >conftest.err
32376 cat conftest.err >&5
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); } &&
32379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32380 { (case "(($ac_try" in
32381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32382 *) ac_try_echo
=$ac_try;;
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385 (eval "$ac_try") 2>&5
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; } &&
32389 { ac_try
='test -s conftest$ac_exeext'
32390 { (case "(($ac_try" in
32391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32392 *) ac_try_echo=$ac_try;;
32394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32395 (eval "$ac_try") 2>&5
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); }; }; then
32399 eval "$as_ac_var=yes"
32401 echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32404 eval "$as_ac_var=no"
32407 rm -f core conftest.err conftest.$ac_objext \
32408 conftest$ac_exeext conftest.$ac_ext
32410 ac_res=`eval echo '${'$as_ac_var'}'`
32411 { echo "$as_me:$LINENO: result: $ac_res" >&5
32412 echo "${ECHO_T}$ac_res" >&6; }
32413 if test `eval echo '${'$as_ac_var'}'` = yes; then
32414 cat >>confdefs.h <<_ACEOF
32415 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32425 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32427 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32428 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32433 cat >conftest.$ac_ext <<_ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32441 #define $ac_func innocuous_$ac_func
32443 /* System header to define __stub macros and hopefully few prototypes,
32444 which can conflict with char $ac_func (); below.
32445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32446 <limits.h> exists even on freestanding compilers. */
32449 # include <limits.h>
32451 # include <assert.h>
32456 /* Override any GCC internal prototype to avoid an error.
32457 Use char because int might match the return type of a GCC
32458 builtin and then its argument prototype would still apply. */
32463 /* The GNU C library defines this for functions which it implements
32464 to always fail with ENOSYS. Some functions are actually named
32465 something starting with __ and the normal name is an alias. */
32466 #if defined __stub_$ac_func || defined __stub___$ac_func
32473 return $ac_func ();
32478 rm -f conftest.$ac_objext conftest$ac_exeext
32479 if { (ac_try="$ac_link"
32480 case "(($ac_try" in
32481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32482 *) ac_try_echo
=$ac_try;;
32484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485 (eval "$ac_link") 2>conftest.er1
32487 grep -v '^ *+' conftest.er1
>conftest.err
32489 cat conftest.err
>&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); } &&
32492 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32493 { (case "(($ac_try" in
32494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32495 *) ac_try_echo=$ac_try;;
32497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32498 (eval "$ac_try") 2>&5
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; } &&
32502 { ac_try='test -s conftest$ac_exeext'
32503 { (case "(($ac_try" in
32504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32505 *) ac_try_echo
=$ac_try;;
32507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508 (eval "$ac_try") 2>&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; }; then
32512 eval "$as_ac_var=yes"
32514 echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.
$ac_ext >&5
32517 eval "$as_ac_var=no"
32520 rm -f core conftest.err conftest.
$ac_objext \
32521 conftest
$ac_exeext conftest.
$ac_ext
32523 ac_res
=`eval echo '${'$as_ac_var'}'`
32524 { echo "$as_me:$LINENO: result: $ac_res" >&5
32525 echo "${ECHO_T}$ac_res" >&6; }
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527 cat >>confdefs.h
<<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32534 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32535 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32536 if test "${llvm_cv_c_printf_a+set}" = set; then
32537 echo $ECHO_N "(cached) $ECHO_C" >&6
32540 ac_cpp
='$CPP $CPPFLAGS'
32541 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32542 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32543 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32545 if test "$cross_compiling" = yes; then
32546 llvmac_cv_c_printf_a
=no
32548 cat >conftest.
$ac_ext <<_ACEOF
32552 cat confdefs.h
>>conftest.
$ac_ext
32553 cat >>conftest.
$ac_ext <<_ACEOF
32554 /* end confdefs.h. */
32557 #include <stdlib.h>
32563 volatile double A, B;
32567 sprintf(Buffer, "%a", A);
32571 if (A != 0x1.999999999999ap-4)
32578 rm -f conftest
$ac_exeext
32579 if { (ac_try
="$ac_link"
32580 case "(($ac_try" in
32581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_link") 2>&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32589 { (case "(($ac_try" in
32590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32591 *) ac_try_echo
=$ac_try;;
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594 (eval "$ac_try") 2>&5
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); }; }; then
32598 llvm_cv_c_printf_a
=yes
32600 echo "$as_me: program exited with status $ac_status" >&5
32601 echo "$as_me: failed program was:" >&5
32602 sed 's/^/| /' conftest.
$ac_ext >&5
32604 ( exit $ac_status )
32605 llvmac_cv_c_printf_a
=no
32607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32612 ac_cpp
='$CPP $CPPFLAGS'
32613 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32614 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32615 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32618 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32619 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32620 if test "$llvm_cv_c_printf_a" = "yes"; then
32622 cat >>confdefs.h
<<\_ACEOF
32623 #define HAVE_PRINTF_A 1
32628 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32629 # for constant arguments. Useless!
32630 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32631 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32632 if test "${ac_cv_working_alloca_h+set}" = set; then
32633 echo $ECHO_N "(cached) $ECHO_C" >&6
32635 cat >conftest.
$ac_ext <<_ACEOF
32638 cat confdefs.h
>>conftest.
$ac_ext
32639 cat >>conftest.
$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32641 #include <alloca.h>
32645 char *p = (char *) alloca (2 * sizeof (int));
32651 rm -f conftest.
$ac_objext conftest
$ac_exeext
32652 if { (ac_try
="$ac_link"
32653 case "(($ac_try" in
32654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32655 *) ac_try_echo=$ac_try;;
32657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32658 (eval "$ac_link") 2>conftest.er1
32660 grep -v '^ *+' conftest.er1 >conftest.err
32662 cat conftest.err >&5
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); } &&
32665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32666 { (case "(($ac_try" in
32667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32668 *) ac_try_echo
=$ac_try;;
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671 (eval "$ac_try") 2>&5
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; } &&
32675 { ac_try
='test -s conftest$ac_exeext'
32676 { (case "(($ac_try" in
32677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32678 *) ac_try_echo=$ac_try;;
32680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32681 (eval "$ac_try") 2>&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); }; }; then
32685 ac_cv_working_alloca_h=yes
32687 echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32690 ac_cv_working_alloca_h=no
32693 rm -f core conftest.err conftest.$ac_objext \
32694 conftest$ac_exeext conftest.$ac_ext
32696 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32697 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32698 if test $ac_cv_working_alloca_h = yes; then
32700 cat >>confdefs.h <<\_ACEOF
32701 #define HAVE_ALLOCA_H 1
32706 { echo "$as_me:$LINENO: checking for alloca" >&5
32707 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32708 if test "${ac_cv_func_alloca_works+set}" = set; then
32709 echo $ECHO_N "(cached) $ECHO_C" >&6
32711 cat >conftest.$ac_ext <<_ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h. */
32718 # define alloca __builtin_alloca
32721 # include <malloc.h>
32722 # define alloca _alloca
32725 # include <alloca.h>
32730 # ifndef alloca /* predefined by HP cc +Olibcalls */
32741 char *p = (char *) alloca (1);
32747 rm -f conftest.$ac_objext conftest$ac_exeext
32748 if { (ac_try="$ac_link"
32749 case "(($ac_try" in
32750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32751 *) ac_try_echo
=$ac_try;;
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754 (eval "$ac_link") 2>conftest.er1
32756 grep -v '^ *+' conftest.er1
>conftest.err
32758 cat conftest.err
>&5
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } &&
32761 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32762 { (case "(($ac_try" in
32763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32764 *) ac_try_echo=$ac_try;;
32766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767 (eval "$ac_try") 2>&5
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; } &&
32771 { ac_try='test -s conftest$ac_exeext'
32772 { (case "(($ac_try" in
32773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32774 *) ac_try_echo
=$ac_try;;
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_try") 2>&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 ac_cv_func_alloca_works
=yes
32783 echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.
$ac_ext >&5
32786 ac_cv_func_alloca_works
=no
32789 rm -f core conftest.err conftest.
$ac_objext \
32790 conftest
$ac_exeext conftest.
$ac_ext
32792 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32793 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32795 if test $ac_cv_func_alloca_works = yes; then
32797 cat >>confdefs.h
<<\_ACEOF
32798 #define HAVE_ALLOCA 1
32802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32803 # that cause trouble. Some versions do not even contain alloca or
32804 # contain a buggy version. If you still want to use their alloca,
32805 # use ar to extract alloca.o from them instead of compiling alloca.c.
32807 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
32809 cat >>confdefs.h
<<\_ACEOF
32814 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32815 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32816 if test "${ac_cv_os_cray+set}" = set; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32819 cat >conftest.
$ac_ext <<_ACEOF
32822 cat confdefs.h
>>conftest.
$ac_ext
32823 cat >>conftest.
$ac_ext <<_ACEOF
32824 /* end confdefs.h. */
32825 #if defined CRAY && ! defined CRAY2
32832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32833 $EGREP "webecray" >/dev
/null
2>&1; then
32841 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32842 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32843 if test $ac_cv_os_cray = yes; then
32844 for ac_func
in _getb67 GETB67 getb67
; do
32845 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32848 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32851 cat >conftest.
$ac_ext <<_ACEOF
32854 cat confdefs.h
>>conftest.
$ac_ext
32855 cat >>conftest.
$ac_ext <<_ACEOF
32856 /* end confdefs.h. */
32857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32859 #define $ac_func innocuous_$ac_func
32861 /* System header to define __stub macros and hopefully few prototypes,
32862 which can conflict with char $ac_func (); below.
32863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32864 <limits.h> exists even on freestanding compilers. */
32867 # include <limits.h>
32869 # include <assert.h>
32874 /* Override any GCC internal prototype to avoid an error.
32875 Use char because int might match the return type of a GCC
32876 builtin and then its argument prototype would still apply. */
32881 /* The GNU C library defines this for functions which it implements
32882 to always fail with ENOSYS. Some functions are actually named
32883 something starting with __ and the normal name is an alias. */
32884 #if defined __stub_$ac_func || defined __stub___$ac_func
32891 return $ac_func ();
32896 rm -f conftest.
$ac_objext conftest
$ac_exeext
32897 if { (ac_try
="$ac_link"
32898 case "(($ac_try" in
32899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_link") 2>conftest.er1
32905 grep -v '^ *+' conftest.er1 >conftest.err
32907 cat conftest.err >&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); } &&
32910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911 { (case "(($ac_try" in
32912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32913 *) ac_try_echo
=$ac_try;;
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_try") 2>&5
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; } &&
32920 { ac_try
='test -s conftest$ac_exeext'
32921 { (case "(($ac_try" in
32922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_try") 2>&5
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
32930 eval "$as_ac_var=yes"
32932 echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32935 eval "$as_ac_var=no"
32938 rm -f core conftest.err conftest.$ac_objext \
32939 conftest$ac_exeext conftest.$ac_ext
32941 ac_res=`eval echo '${'$as_ac_var'}'`
32942 { echo "$as_me:$LINENO: result: $ac_res" >&5
32943 echo "${ECHO_T}$ac_res" >&6; }
32944 if test `eval echo '${'$as_ac_var'}'` = yes; then
32946 cat >>confdefs.h <<_ACEOF
32947 #define CRAY_STACKSEG_END $ac_func
32956 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32957 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32958 if test "${ac_cv_c_stack_direction+set}" = set; then
32959 echo $ECHO_N "(cached) $ECHO_C" >&6
32961 if test "$cross_compiling" = yes; then
32962 ac_cv_c_stack_direction=0
32964 cat >conftest.$ac_ext <<_ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32970 $ac_includes_default
32972 find_stack_direction ()
32974 static char *addr = 0;
32979 return find_stack_direction ();
32982 return (&dummy > addr) ? 1 : -1;
32988 return find_stack_direction () < 0;
32991 rm -f conftest$ac_exeext
32992 if { (ac_try="$ac_link"
32993 case "(($ac_try" in
32994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32995 *) ac_try_echo
=$ac_try;;
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_link") 2>&5
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33002 { (case "(($ac_try" in
33003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33004 *) ac_try_echo=$ac_try;;
33006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007 (eval "$ac_try") 2>&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; }; then
33011 ac_cv_c_stack_direction=1
33013 echo "$as_me: program exited with status $ac_status" >&5
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33017 ( exit $ac_status )
33018 ac_cv_c_stack_direction=-1
33020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33025 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33026 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33028 cat >>confdefs.h <<_ACEOF
33029 #define STACK_DIRECTION $ac_cv_c_stack_direction
33036 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33037 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33038 if test "${ac_cv_func_rand48+set}" = set; then
33039 echo $ECHO_N "(cached) $ECHO_C" >&6
33042 ac_cpp='$CXXCPP $CPPFLAGS'
33043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33047 cat >conftest.$ac_ext <<_ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h. */
33053 #include <stdlib.h>
33057 srand48(0);lrand48();drand48();
33062 rm -f conftest.$ac_objext
33063 if { (ac_try="$ac_compile"
33064 case "(($ac_try" in
33065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33066 *) ac_try_echo
=$ac_try;;
33068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33069 (eval "$ac_compile") 2>conftest.er1
33071 grep -v '^ *+' conftest.er1
>conftest.err
33073 cat conftest.err
>&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
33076 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33077 { (case "(($ac_try" in
33078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33079 *) ac_try_echo=$ac_try;;
33081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33082 (eval "$ac_try") 2>&5
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; } &&
33086 { ac_try='test -s conftest.$ac_objext'
33087 { (case "(($ac_try" in
33088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33089 *) ac_try_echo
=$ac_try;;
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_try") 2>&5
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; }; then
33096 ac_cv_func_rand48
=yes
33098 echo "$as_me: failed program was:" >&5
33099 sed 's/^/| /' conftest.
$ac_ext >&5
33101 ac_cv_func_rand48
=no
33104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33106 ac_cpp
='$CPP $CPPFLAGS'
33107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33112 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33113 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33115 if test "$ac_cv_func_rand48" = "yes" ; then
33117 cat >>confdefs.h
<<\_ACEOF
33118 #define HAVE_RAND48 1
33124 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33125 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33126 if test "${ac_cv_cxx_namespaces+set}" = set; then
33127 echo $ECHO_N "(cached) $ECHO_C" >&6
33130 ac_cpp
='$CXXCPP $CPPFLAGS'
33131 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33132 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33133 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33135 cat >conftest.
$ac_ext <<_ACEOF
33138 cat confdefs.h
>>conftest.
$ac_ext
33139 cat >>conftest.
$ac_ext <<_ACEOF
33140 /* end confdefs.h. */
33141 namespace Outer { namespace Inner { int i = 0; }}
33145 using namespace Outer::Inner; return i;
33150 rm -f conftest.
$ac_objext
33151 if { (ac_try
="$ac_compile"
33152 case "(($ac_try" in
33153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_compile") 2>conftest.er1
33159 grep -v '^ *+' conftest.er1 >conftest.err
33161 cat conftest.err >&5
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); } &&
33164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33165 { (case "(($ac_try" in
33166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33167 *) ac_try_echo
=$ac_try;;
33169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170 (eval "$ac_try") 2>&5
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; } &&
33174 { ac_try
='test -s conftest.$ac_objext'
33175 { (case "(($ac_try" in
33176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33177 *) ac_try_echo=$ac_try;;
33179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33180 (eval "$ac_try") 2>&5
33182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183 (exit $ac_status); }; }; then
33184 ac_cv_cxx_namespaces=yes
33186 echo "$as_me: failed program was:" >&5
33187 sed 's/^/| /' conftest.$ac_ext >&5
33189 ac_cv_cxx_namespaces=no
33192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33194 ac_cpp='$CPP $CPPFLAGS'
33195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33201 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33202 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33203 if test "$ac_cv_cxx_namespaces" = yes; then
33205 cat >>confdefs.h <<\_ACEOF
33206 #define HAVE_NAMESPACES
33211 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33212 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33213 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33214 echo $ECHO_N "(cached) $ECHO_C" >&6
33218 ac_cpp='$CXXCPP $CPPFLAGS'
33219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33223 cat >conftest.$ac_ext <<_ACEOF
33226 cat confdefs.h >>conftest.$ac_ext
33227 cat >>conftest.$ac_ext <<_ACEOF
33228 /* end confdefs.h. */
33229 #include <iterator>
33230 #ifdef HAVE_NAMESPACES
33231 using namespace std;
33236 iterator<int,int,int> t; return 0;
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33245 *) ac_try_echo
=$ac_try;;
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
33250 grep -v '^ *+' conftest.er1
>conftest.err
33252 cat conftest.err
>&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } &&
33255 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33256 { (case "(($ac_try" in
33257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
33266 { (case "(($ac_try" in
33267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33268 *) ac_try_echo
=$ac_try;;
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_try") 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_cxx_have_std_iterator
=yes
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.
$ac_ext >&5
33280 ac_cv_cxx_have_std_iterator
=no
33283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33285 ac_cpp
='$CPP $CPPFLAGS'
33286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33292 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33293 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33294 if test "$ac_cv_cxx_have_std_iterator" = yes
33297 cat >>confdefs.h
<<\_ACEOF
33298 #define HAVE_STD_ITERATOR 1
33303 cat >>confdefs.h
<<\_ACEOF
33304 #define HAVE_STD_ITERATOR 0
33309 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33310 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33311 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33316 ac_cpp
='$CXXCPP $CPPFLAGS'
33317 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33318 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33319 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33321 cat >conftest.
$ac_ext <<_ACEOF
33324 cat confdefs.h
>>conftest.
$ac_ext
33325 cat >>conftest.
$ac_ext <<_ACEOF
33326 /* end confdefs.h. */
33327 #include <iterator>
33328 #ifdef HAVE_NAMESPACES
33329 using namespace std;
33334 bidirectional_iterator<int,int> t; return 0;
33339 rm -f conftest.
$ac_objext
33340 if { (ac_try
="$ac_compile"
33341 case "(($ac_try" in
33342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33343 *) ac_try_echo=$ac_try;;
33345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33346 (eval "$ac_compile") 2>conftest.er1
33348 grep -v '^ *+' conftest.er1 >conftest.err
33350 cat conftest.err >&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); } &&
33353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33354 { (case "(($ac_try" in
33355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33356 *) ac_try_echo
=$ac_try;;
33358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33359 (eval "$ac_try") 2>&5
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; } &&
33363 { ac_try
='test -s conftest.$ac_objext'
33364 { (case "(($ac_try" in
33365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_try") 2>&5
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; }; then
33373 ac_cv_cxx_have_bi_iterator=yes
33375 echo "$as_me: failed program was:" >&5
33376 sed 's/^/| /' conftest.$ac_ext >&5
33378 ac_cv_cxx_have_bi_iterator=no
33381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33383 ac_cpp='$CPP $CPPFLAGS'
33384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33390 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33391 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33392 if test "$ac_cv_cxx_have_bi_iterator" = yes
33395 cat >>confdefs.h <<\_ACEOF
33396 #define HAVE_BI_ITERATOR 1
33401 cat >>confdefs.h <<\_ACEOF
33402 #define HAVE_BI_ITERATOR 0
33407 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33408 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33409 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33414 ac_cpp='$CXXCPP $CPPFLAGS'
33415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33419 cat >conftest.$ac_ext <<_ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h. */
33425 #include <iterator>
33426 #ifdef HAVE_NAMESPACES
33427 using namespace std;
33432 forward_iterator<int,int> t; return 0;
33437 rm -f conftest.$ac_objext
33438 if { (ac_try="$ac_compile"
33439 case "(($ac_try" in
33440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33441 *) ac_try_echo
=$ac_try;;
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_compile") 2>conftest.er1
33446 grep -v '^ *+' conftest.er1
>conftest.err
33448 cat conftest.err
>&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } &&
33451 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33452 { (case "(($ac_try" in
33453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33454 *) ac_try_echo=$ac_try;;
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457 (eval "$ac_try") 2>&5
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; } &&
33461 { ac_try='test -s conftest.$ac_objext'
33462 { (case "(($ac_try" in
33463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33464 *) ac_try_echo
=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_try") 2>&5
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; }; then
33471 ac_cv_cxx_have_fwd_iterator
=yes
33473 echo "$as_me: failed program was:" >&5
33474 sed 's/^/| /' conftest.
$ac_ext >&5
33476 ac_cv_cxx_have_fwd_iterator
=no
33479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33481 ac_cpp
='$CPP $CPPFLAGS'
33482 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33488 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33489 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33490 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33493 cat >>confdefs.h
<<\_ACEOF
33494 #define HAVE_FWD_ITERATOR 1
33499 cat >>confdefs.h
<<\_ACEOF
33500 #define HAVE_FWD_ITERATOR 0
33506 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33507 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33508 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33509 echo $ECHO_N "(cached) $ECHO_C" >&6
33512 ac_cpp
='$CXXCPP $CPPFLAGS'
33513 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33517 cat >conftest.
$ac_ext <<_ACEOF
33520 cat confdefs.h
>>conftest.
$ac_ext
33521 cat >>conftest.
$ac_ext <<_ACEOF
33522 /* end confdefs.h. */
33532 rm -f conftest.
$ac_objext
33533 if { (ac_try
="$ac_compile"
33534 case "(($ac_try" in
33535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33549 *) ac_try_echo
=$ac_try;;
33551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try
='test -s conftest.$ac_objext'
33557 { (case "(($ac_try" in
33558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
33566 ac_cv_func_isnan_in_math_h=yes
33568 echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33571 ac_cv_func_isnan_in_math_h=no
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33576 ac_cpp='$CPP $CPPFLAGS'
33577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33582 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33583 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33586 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33588 cat >>confdefs.h <<\_ACEOF
33589 #define HAVE_ISNAN_IN_MATH_H 1
33594 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33595 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33596 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33597 echo $ECHO_N "(cached) $ECHO_C" >&6
33600 ac_cpp='$CXXCPP $CPPFLAGS'
33601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33605 cat >conftest.$ac_ext <<_ACEOF
33608 cat confdefs.h >>conftest.$ac_ext
33609 cat >>conftest.$ac_ext <<_ACEOF
33610 /* end confdefs.h. */
33620 rm -f conftest.$ac_objext
33621 if { (ac_try="$ac_compile"
33622 case "(($ac_try" in
33623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33624 *) ac_try_echo
=$ac_try;;
33626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627 (eval "$ac_compile") 2>conftest.er1
33629 grep -v '^ *+' conftest.er1
>conftest.err
33631 cat conftest.err
>&5
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); } &&
33634 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33635 { (case "(($ac_try" in
33636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_try") 2>&5
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); }; } &&
33644 { ac_try='test -s conftest.$ac_objext'
33645 { (case "(($ac_try" in
33646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33647 *) ac_try_echo
=$ac_try;;
33649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33650 (eval "$ac_try") 2>&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); }; }; then
33654 ac_cv_func_isnan_in_cmath
=yes
33656 echo "$as_me: failed program was:" >&5
33657 sed 's/^/| /' conftest.
$ac_ext >&5
33659 ac_cv_func_isnan_in_cmath
=no
33662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33664 ac_cpp
='$CPP $CPPFLAGS'
33665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33670 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33671 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33673 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33675 cat >>confdefs.h
<<\_ACEOF
33676 #define HAVE_ISNAN_IN_CMATH 1
33681 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33682 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33683 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33687 ac_cpp
='$CXXCPP $CPPFLAGS'
33688 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33689 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33690 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33692 cat >conftest.
$ac_ext <<_ACEOF
33695 cat confdefs.h
>>conftest.
$ac_ext
33696 cat >>conftest.
$ac_ext <<_ACEOF
33697 /* end confdefs.h. */
33702 float f; std::isnan(f);
33707 rm -f conftest.
$ac_objext
33708 if { (ac_try
="$ac_compile"
33709 case "(($ac_try" in
33710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33711 *) ac_try_echo=$ac_try;;
33713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714 (eval "$ac_compile") 2>conftest.er1
33716 grep -v '^ *+' conftest.er1 >conftest.err
33718 cat conftest.err >&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } &&
33721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33722 { (case "(($ac_try" in
33723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33724 *) ac_try_echo
=$ac_try;;
33726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727 (eval "$ac_try") 2>&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; } &&
33731 { ac_try
='test -s conftest.$ac_objext'
33732 { (case "(($ac_try" in
33733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33734 *) ac_try_echo=$ac_try;;
33736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33737 (eval "$ac_try") 2>&5
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); }; }; then
33741 ac_cv_func_std_isnan_in_cmath=yes
33743 echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33746 ac_cv_func_std_isnan_in_cmath=no
33749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33751 ac_cpp='$CPP $CPPFLAGS'
33752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33757 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33758 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33760 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33762 cat >>confdefs.h <<\_ACEOF
33763 #define HAVE_STD_ISNAN_IN_CMATH 1
33769 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33770 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33771 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33772 echo $ECHO_N "(cached) $ECHO_C" >&6
33775 ac_cpp='$CXXCPP $CPPFLAGS'
33776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33780 cat >conftest.$ac_ext <<_ACEOF
33783 cat confdefs.h >>conftest.$ac_ext
33784 cat >>conftest.$ac_ext <<_ACEOF
33785 /* end confdefs.h. */
33795 rm -f conftest.$ac_objext
33796 if { (ac_try="$ac_compile"
33797 case "(($ac_try" in
33798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33799 *) ac_try_echo
=$ac_try;;
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802 (eval "$ac_compile") 2>conftest.er1
33804 grep -v '^ *+' conftest.er1
>conftest.err
33806 cat conftest.err
>&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } &&
33809 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33810 { (case "(($ac_try" in
33811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_try") 2>&5
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; } &&
33819 { ac_try='test -s conftest.$ac_objext'
33820 { (case "(($ac_try" in
33821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33822 *) ac_try_echo
=$ac_try;;
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825 (eval "$ac_try") 2>&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); }; }; then
33829 ac_cv_func_isinf_in_math_h
=yes
33831 echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.
$ac_ext >&5
33834 ac_cv_func_isinf_in_math_h
=no
33837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33839 ac_cpp
='$CPP $CPPFLAGS'
33840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33845 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33846 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33848 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33850 cat >>confdefs.h
<<\_ACEOF
33851 #define HAVE_ISINF_IN_MATH_H 1
33856 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33857 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33858 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33862 ac_cpp
='$CXXCPP $CPPFLAGS'
33863 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33864 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33865 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33867 cat >conftest.
$ac_ext <<_ACEOF
33870 cat confdefs.h
>>conftest.
$ac_ext
33871 cat >>conftest.
$ac_ext <<_ACEOF
33872 /* end confdefs.h. */
33882 rm -f conftest.
$ac_objext
33883 if { (ac_try
="$ac_compile"
33884 case "(($ac_try" in
33885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_compile") 2>conftest.er1
33891 grep -v '^ *+' conftest.er1 >conftest.err
33893 cat conftest.err >&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } &&
33896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33897 { (case "(($ac_try" in
33898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33899 *) ac_try_echo
=$ac_try;;
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_try") 2>&5
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try
='test -s conftest.$ac_objext'
33907 { (case "(($ac_try" in
33908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33909 *) ac_try_echo=$ac_try;;
33911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912 (eval "$ac_try") 2>&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); }; }; then
33916 ac_cv_func_isinf_in_cmath=yes
33918 echo "$as_me: failed program was:" >&5
33919 sed 's/^/| /' conftest.$ac_ext >&5
33921 ac_cv_func_isinf_in_cmath=no
33924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33926 ac_cpp='$CPP $CPPFLAGS'
33927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33932 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33933 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33935 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33937 cat >>confdefs.h <<\_ACEOF
33938 #define HAVE_ISINF_IN_CMATH 1
33943 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33944 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33945 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33946 echo $ECHO_N "(cached) $ECHO_C" >&6
33949 ac_cpp='$CXXCPP $CPPFLAGS'
33950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33954 cat >conftest.$ac_ext <<_ACEOF
33957 cat confdefs.h >>conftest.$ac_ext
33958 cat >>conftest.$ac_ext <<_ACEOF
33959 /* end confdefs.h. */
33964 float f; std::isinf(f)}
33969 rm -f conftest.$ac_objext
33970 if { (ac_try="$ac_compile"
33971 case "(($ac_try" in
33972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33973 *) ac_try_echo
=$ac_try;;
33975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33976 (eval "$ac_compile") 2>conftest.er1
33978 grep -v '^ *+' conftest.er1
>conftest.err
33980 cat conftest.err
>&5
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } &&
33983 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33984 { (case "(($ac_try" in
33985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33986 *) ac_try_echo=$ac_try;;
33988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33989 (eval "$ac_try") 2>&5
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; } &&
33993 { ac_try='test -s conftest.$ac_objext'
33994 { (case "(($ac_try" in
33995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33996 *) ac_try_echo
=$ac_try;;
33998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33999 (eval "$ac_try") 2>&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; }; then
34003 ac_cv_func_std_isinf_in_cmath
=yes
34005 echo "$as_me: failed program was:" >&5
34006 sed 's/^/| /' conftest.
$ac_ext >&5
34008 ac_cv_func_std_isinf_in_cmath
=no
34011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34013 ac_cpp
='$CPP $CPPFLAGS'
34014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34019 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34020 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34022 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34024 cat >>confdefs.h
<<\_ACEOF
34025 #define HAVE_STD_ISINF_IN_CMATH 1
34030 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34031 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34032 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34033 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 ac_cpp
='$CXXCPP $CPPFLAGS'
34037 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34038 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34039 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
34041 cat >conftest.
$ac_ext <<_ACEOF
34044 cat confdefs.h
>>conftest.
$ac_ext
34045 cat >>conftest.
$ac_ext <<_ACEOF
34046 /* end confdefs.h. */
34047 #include <ieeefp.h>
34051 float f; finite(f);
34056 rm -f conftest.
$ac_objext
34057 if { (ac_try
="$ac_compile"
34058 case "(($ac_try" in
34059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34060 *) ac_try_echo=$ac_try;;
34062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063 (eval "$ac_compile") 2>conftest.er1
34065 grep -v '^ *+' conftest.er1 >conftest.err
34067 cat conftest.err >&5
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); } &&
34070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34071 { (case "(($ac_try" in
34072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34073 *) ac_try_echo
=$ac_try;;
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076 (eval "$ac_try") 2>&5
34078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079 (exit $ac_status); }; } &&
34080 { ac_try
='test -s conftest.$ac_objext'
34081 { (case "(($ac_try" in
34082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34083 *) ac_try_echo=$ac_try;;
34085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34086 (eval "$ac_try") 2>&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); }; }; then
34090 ac_cv_func_finite_in_ieeefp_h=yes
34092 echo "$as_me: failed program was:" >&5
34093 sed 's/^/| /' conftest.$ac_ext >&5
34095 ac_cv_func_finite_in_ieeefp_h=no
34098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100 ac_cpp='$CPP $CPPFLAGS'
34101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34106 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34107 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34109 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34111 cat >>confdefs.h <<\_ACEOF
34112 #define HAVE_FINITE_IN_IEEEFP_H 1
34119 if test "$llvm_cv_platform_type" = "Unix" ; then
34122 for ac_header in stdlib.h unistd.h
34124 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34129 echo $ECHO_N "(cached) $ECHO_C" >&6
34131 ac_res=`eval echo '${'$as_ac_Header'}'`
34132 { echo "$as_me:$LINENO: result: $ac_res" >&5
34133 echo "${ECHO_T}$ac_res" >&6; }
34135 # Is the header compilable?
34136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34138 cat >conftest.$ac_ext <<_ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h. */
34144 $ac_includes_default
34145 #include <$ac_header>
34147 rm -f conftest.$ac_objext
34148 if { (ac_try="$ac_compile"
34149 case "(($ac_try" in
34150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34151 *) ac_try_echo
=$ac_try;;
34153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34154 (eval "$ac_compile") 2>conftest.er1
34156 grep -v '^ *+' conftest.er1
>conftest.err
34158 cat conftest.err
>&5
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); } &&
34161 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34162 { (case "(($ac_try" in
34163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34164 *) ac_try_echo=$ac_try;;
34166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167 (eval "$ac_try") 2>&5
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; } &&
34171 { ac_try='test -s conftest.$ac_objext'
34172 { (case "(($ac_try" in
34173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34174 *) ac_try_echo
=$ac_try;;
34176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_try") 2>&5
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
34181 ac_header_compiler
=yes
34183 echo "$as_me: failed program was:" >&5
34184 sed 's/^/| /' conftest.
$ac_ext >&5
34186 ac_header_compiler
=no
34189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34191 echo "${ECHO_T}$ac_header_compiler" >&6; }
34193 # Is the header present?
34194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34196 cat >conftest.
$ac_ext <<_ACEOF
34199 cat confdefs.h
>>conftest.
$ac_ext
34200 cat >>conftest.
$ac_ext <<_ACEOF
34201 /* end confdefs.h. */
34202 #include <$ac_header>
34204 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34205 case "(($ac_try" in
34206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34207 *) ac_try_echo=$ac_try;;
34209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34212 grep -v '^ *+' conftest.er1 >conftest.err
34214 cat conftest.err >&5
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } >/dev/null; then
34217 if test -s conftest.err; then
34218 ac_cpp_err=$ac_c_preproc_warn_flag
34219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34226 if test -z "$ac_cpp_err"; then
34227 ac_header_preproc=yes
34229 echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34232 ac_header_preproc=no
34235 rm -f conftest.err conftest.$ac_ext
34236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34237 echo "${ECHO_T}$ac_header_preproc" >&6; }
34239 # So? What about this header?
34240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34246 ac_header_preproc=yes
34249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34262 ## ----------------------------------- ##
34263 ## Report this to llvmbugs@cs.uiuc.edu ##
34264 ## ----------------------------------- ##
34266 ) | sed "s/^/$as_me: WARNING: /" >&2
34269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34272 echo $ECHO_N "(cached) $ECHO_C" >&6
34274 eval "$as_ac_Header=\$ac_header_preproc"
34276 ac_res=`eval echo '${'$as_ac_Header'}'`
34277 { echo "$as_me:$LINENO: result: $ac_res" >&5
34278 echo "${ECHO_T}$ac_res" >&6; }
34281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34282 cat >>confdefs.h <<_ACEOF
34283 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
34291 for ac_func in getpagesize
34293 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34299 cat >conftest.$ac_ext <<_ACEOF
34302 cat confdefs.h >>conftest.$ac_ext
34303 cat >>conftest.$ac_ext <<_ACEOF
34304 /* end confdefs.h. */
34305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34307 #define $ac_func innocuous_$ac_func
34309 /* System header to define __stub macros and hopefully few prototypes,
34310 which can conflict with char $ac_func (); below.
34311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34312 <limits.h> exists even on freestanding compilers. */
34315 # include <limits.h>
34317 # include <assert.h>
34322 /* Override any GCC internal prototype to avoid an error.
34323 Use char because int might match the return type of a GCC
34324 builtin and then its argument prototype would still apply. */
34329 /* The GNU C library defines this for functions which it implements
34330 to always fail with ENOSYS. Some functions are actually named
34331 something starting with __ and the normal name is an alias. */
34332 #if defined __stub_$ac_func || defined __stub___$ac_func
34339 return $ac_func ();
34344 rm -f conftest.$ac_objext conftest$ac_exeext
34345 if { (ac_try="$ac_link"
34346 case "(($ac_try" in
34347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34348 *) ac_try_echo
=$ac_try;;
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351 (eval "$ac_link") 2>conftest.er1
34353 grep -v '^ *+' conftest.er1
>conftest.err
34355 cat conftest.err
>&5
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } &&
34358 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34359 { (case "(($ac_try" in
34360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34361 *) ac_try_echo=$ac_try;;
34363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364 (eval "$ac_try") 2>&5
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; } &&
34368 { ac_try='test -s conftest$ac_exeext'
34369 { (case "(($ac_try" in
34370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34371 *) ac_try_echo
=$ac_try;;
34373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34374 (eval "$ac_try") 2>&5
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; }; then
34378 eval "$as_ac_var=yes"
34380 echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.
$ac_ext >&5
34383 eval "$as_ac_var=no"
34386 rm -f core conftest.err conftest.
$ac_objext \
34387 conftest
$ac_exeext conftest.
$ac_ext
34389 ac_res
=`eval echo '${'$as_ac_var'}'`
34390 { echo "$as_me:$LINENO: result: $ac_res" >&5
34391 echo "${ECHO_T}$ac_res" >&6; }
34392 if test `eval echo '${'$as_ac_var'}'` = yes; then
34393 cat >>confdefs.h
<<_ACEOF
34394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34400 { echo "$as_me:$LINENO: checking for working mmap" >&5
34401 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34402 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34403 echo $ECHO_N "(cached) $ECHO_C" >&6
34405 if test "$cross_compiling" = yes; then
34406 ac_cv_func_mmap_fixed_mapped
=no
34408 cat >conftest.
$ac_ext <<_ACEOF
34411 cat confdefs.h
>>conftest.
$ac_ext
34412 cat >>conftest.
$ac_ext <<_ACEOF
34413 /* end confdefs.h. */
34414 $ac_includes_default
34415 /* malloc might have been renamed as rpl_malloc. */
34418 /* Thanks to Mike Haertel and Jim Avera for this test.
34419 Here is a matrix of mmap possibilities:
34420 mmap private not fixed
34421 mmap private fixed at somewhere currently unmapped
34422 mmap private fixed at somewhere already mapped
34423 mmap shared not fixed
34424 mmap shared fixed at somewhere currently unmapped
34425 mmap shared fixed at somewhere already mapped
34426 For private mappings, we should verify that changes cannot be read()
34427 back from the file, nor mmap's back from the file at a different
34428 address. (There have been systems where private was not correctly
34429 implemented like the infamous i386 svr4.0, and systems where the
34430 VM page cache was not coherent with the file system buffer cache
34431 like early versions of FreeBSD and possibly contemporary NetBSD.)
34432 For shared mappings, we should conversely verify that changes get
34433 propagated back to all the places they're supposed to be.
34435 Grep wants private fixed already mapped.
34436 The main things grep needs to know about mmap are:
34437 * does it exist and is it safe to write into the mmap'd area
34438 * how to use it (BSD variants) */
34441 #include <sys/mman.h>
34443 #if !STDC_HEADERS && !HAVE_STDLIB_H
34447 /* This mess was copied from the GNU getpagesize.h. */
34448 #if !HAVE_GETPAGESIZE
34449 /* Assume that all systems that can run configure have sys/param.h. */
34450 # if !HAVE_SYS_PARAM_H
34451 # define HAVE_SYS_PARAM_H 1
34454 # ifdef _SC_PAGESIZE
34455 # define getpagesize() sysconf(_SC_PAGESIZE)
34456 # else /* no _SC_PAGESIZE */
34457 # if HAVE_SYS_PARAM_H
34458 # include <sys/param.h>
34459 # ifdef EXEC_PAGESIZE
34460 # define getpagesize() EXEC_PAGESIZE
34461 # else /* no EXEC_PAGESIZE */
34463 # define getpagesize() NBPG * CLSIZE
34466 # endif /* no CLSIZE */
34467 # else /* no NBPG */
34469 # define getpagesize() NBPC
34470 # else /* no NBPC */
34472 # define getpagesize() PAGESIZE
34473 # endif /* PAGESIZE */
34474 # endif /* no NBPC */
34475 # endif /* no NBPG */
34476 # endif /* no EXEC_PAGESIZE */
34477 # else /* no HAVE_SYS_PARAM_H */
34478 # define getpagesize() 8192 /* punt totally */
34479 # endif /* no HAVE_SYS_PARAM_H */
34480 # endif /* no _SC_PAGESIZE */
34482 #endif /* no HAVE_GETPAGESIZE */
34487 char *data, *data2, *data3;
34491 pagesize = getpagesize ();
34493 /* First, make a file with some known garbage in it. */
34494 data = (char *) malloc (pagesize);
34497 for (i = 0; i < pagesize; ++i)
34498 *(data + i) = rand ();
34500 fd = creat ("conftest.mmap", 0600);
34503 if (write (fd, data, pagesize) != pagesize)
34507 /* Next, try to mmap the file at a fixed address which already has
34508 something else allocated at it. If we can, also make sure that
34509 we see the same garbage. */
34510 fd = open ("conftest.mmap", O_RDWR);
34513 data2 = (char *) malloc (2 * pagesize);
34516 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34517 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34518 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34520 for (i = 0; i < pagesize; ++i)
34521 if (*(data + i) != *(data2 + i))
34524 /* Finally, make sure that changes to the mapped area do not
34525 percolate back to the file as seen by read(). (This is a bug on
34526 some variants of i386 svr4.0.) */
34527 for (i = 0; i < pagesize; ++i)
34528 *(data2 + i) = *(data2 + i) + 1;
34529 data3 = (char *) malloc (pagesize);
34532 if (read (fd, data3, pagesize) != pagesize)
34534 for (i = 0; i < pagesize; ++i)
34535 if (*(data + i) != *(data3 + i))
34541 rm -f conftest
$ac_exeext
34542 if { (ac_try
="$ac_link"
34543 case "(($ac_try" in
34544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34545 *) ac_try_echo=$ac_try;;
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548 (eval "$ac_link") 2>&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34552 { (case "(($ac_try" in
34553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34554 *) ac_try_echo
=$ac_try;;
34556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34557 (eval "$ac_try") 2>&5
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); }; }; then
34561 ac_cv_func_mmap_fixed_mapped
=yes
34563 echo "$as_me: program exited with status $ac_status" >&5
34564 echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.
$ac_ext >&5
34567 ( exit $ac_status )
34568 ac_cv_func_mmap_fixed_mapped
=no
34570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34575 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34576 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34577 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34579 cat >>confdefs.h
<<\_ACEOF
34580 #define HAVE_MMAP 1
34584 rm -f conftest.mmap
34586 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34587 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34588 if test "${ac_cv_func_mmap_file+set}" = set; then
34589 echo $ECHO_N "(cached) $ECHO_C" >&6
34592 ac_cpp
='$CPP $CPPFLAGS'
34593 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34594 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34595 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34597 if test "$cross_compiling" = yes; then
34598 ac_cv_func_mmap_file
=no
34600 cat >conftest.
$ac_ext <<_ACEOF
34604 cat confdefs.h
>>conftest.
$ac_ext
34605 cat >>conftest.
$ac_ext <<_ACEOF
34606 /* end confdefs.h. */
34608 #include <sys/types.h>
34609 #include <sys/mman.h>
34617 fd = creat ("foo",0777);
34618 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34620 return (fd != (int) MAP_FAILED);
34625 rm -f conftest
$ac_exeext
34626 if { (ac_try
="$ac_link"
34627 case "(($ac_try" in
34628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34629 *) ac_try_echo=$ac_try;;
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632 (eval "$ac_link") 2>&5
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34636 { (case "(($ac_try" in
34637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34638 *) ac_try_echo
=$ac_try;;
34640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34641 (eval "$ac_try") 2>&5
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); }; }; then
34645 ac_cv_func_mmap_file
=yes
34647 echo "$as_me: program exited with status $ac_status" >&5
34648 echo "$as_me: failed program was:" >&5
34649 sed 's/^/| /' conftest.
$ac_ext >&5
34651 ( exit $ac_status )
34652 ac_cv_func_mmap_file
=no
34654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34659 ac_cpp
='$CPP $CPPFLAGS'
34660 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34661 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34662 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34666 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34667 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34668 if test "$ac_cv_func_mmap_file" = yes; then
34670 cat >>confdefs.h
<<\_ACEOF
34671 #define HAVE_MMAP_FILE
34678 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34679 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34680 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34681 echo $ECHO_N "(cached) $ECHO_C" >&6
34683 if test "$llvm_cv_os_type" = "Interix" ; then
34684 ac_cv_need_dev_zero_for_mmap
=yes
34686 ac_cv_need_dev_zero_for_mmap
=no
34690 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34691 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34692 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34694 cat >>confdefs.h
<<\_ACEOF
34695 #define NEED_DEV_ZERO_FOR_MMAP 1
34700 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34702 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34703 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34705 if test "$ac_cv_func_mmap_file" = "no"
34707 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34708 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34712 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34713 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34714 cat >conftest.
$ac_ext <<_ACEOF
34717 cat confdefs.h
>>conftest.
$ac_ext
34718 cat >>conftest.
$ac_ext <<_ACEOF
34719 /* end confdefs.h. */
34721 volatile unsigned long val = 1;
34722 __sync_synchronize();
34723 __sync_val_compare_and_swap(&val, 1, 0);
34724 __sync_add_and_fetch(&val, 1);
34725 __sync_sub_and_fetch(&val, 1);
34730 rm -f conftest.
$ac_objext conftest
$ac_exeext
34731 if { (ac_try
="$ac_link"
34732 case "(($ac_try" in
34733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34734 *) ac_try_echo=$ac_try;;
34736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34737 (eval "$ac_link") 2>conftest.er1
34739 grep -v '^ *+' conftest.er1 >conftest.err
34741 cat conftest.err >&5
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); } &&
34744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34745 { (case "(($ac_try" in
34746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34747 *) ac_try_echo
=$ac_try;;
34749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34750 (eval "$ac_try") 2>&5
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); }; } &&
34754 { ac_try
='test -s conftest$ac_exeext'
34755 { (case "(($ac_try" in
34756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34757 *) ac_try_echo=$ac_try;;
34759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34760 (eval "$ac_try") 2>&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 { echo "$as_me:$LINENO: result: yes" >&5
34765 echo "${ECHO_T}yes" >&6; }
34767 cat >>confdefs.h <<\_ACEOF
34768 #define LLVM_MULTITHREADED 1
34772 echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34775 { echo "$as_me:$LINENO: result: no" >&5
34776 echo "${ECHO_T}no" >&6; }
34778 cat >>confdefs.h <<\_ACEOF
34779 #define LLVM_MULTITHREADED 0
34782 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34783 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34786 rm -f core conftest.err conftest.$ac_objext \
34787 conftest$ac_exeext conftest.$ac_ext
34791 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34792 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34793 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34794 if test "${llvm_cv_linux_mixed+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34798 ac_cpp='$CPP $CPPFLAGS'
34799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34803 cat >conftest.$ac_ext <<_ACEOF
34806 cat confdefs.h >>conftest.$ac_ext
34807 cat >>conftest.$ac_ext <<_ACEOF
34808 /* end confdefs.h. */
34810 error: Not x86-64 even if uname says so!
34821 rm -f conftest.$ac_objext
34822 if { (ac_try="$ac_compile"
34823 case "(($ac_try" in
34824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34825 *) ac_try_echo
=$ac_try;;
34827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34828 (eval "$ac_compile") 2>conftest.er1
34830 grep -v '^ *+' conftest.er1
>conftest.err
34832 cat conftest.err
>&5
34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834 (exit $ac_status); } &&
34835 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34836 { (case "(($ac_try" in
34837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34838 *) ac_try_echo=$ac_try;;
34840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34841 (eval "$ac_try") 2>&5
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; } &&
34845 { ac_try='test -s conftest.$ac_objext'
34846 { (case "(($ac_try" in
34847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34848 *) ac_try_echo
=$ac_try;;
34850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_try") 2>&5
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 llvm_cv_linux_mixed
=no
34857 echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.
$ac_ext >&5
34860 llvm_cv_linux_mixed
=yes
34863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34865 ac_cpp
='$CPP $CPPFLAGS'
34866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34872 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34873 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34875 if test "$llvm_cv_linux_mixed" = "yes"; then
34876 llvm_cv_target_arch
="x86"
34882 for ac_func
in __dso_handle
34884 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34887 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34888 echo $ECHO_N "(cached) $ECHO_C" >&6
34890 cat >conftest.
$ac_ext <<_ACEOF
34893 cat confdefs.h
>>conftest.
$ac_ext
34894 cat >>conftest.
$ac_ext <<_ACEOF
34895 /* end confdefs.h. */
34896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34898 #define $ac_func innocuous_$ac_func
34900 /* System header to define __stub macros and hopefully few prototypes,
34901 which can conflict with char $ac_func (); below.
34902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34903 <limits.h> exists even on freestanding compilers. */
34906 # include <limits.h>
34908 # include <assert.h>
34913 /* Override any GCC internal prototype to avoid an error.
34914 Use char because int might match the return type of a GCC
34915 builtin and then its argument prototype would still apply. */
34920 /* The GNU C library defines this for functions which it implements
34921 to always fail with ENOSYS. Some functions are actually named
34922 something starting with __ and the normal name is an alias. */
34923 #if defined __stub_$ac_func || defined __stub___$ac_func
34930 return $ac_func ();
34935 rm -f conftest.
$ac_objext conftest
$ac_exeext
34936 if { (ac_try
="$ac_link"
34937 case "(($ac_try" in
34938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34939 *) ac_try_echo=$ac_try;;
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942 (eval "$ac_link") 2>conftest.er1
34944 grep -v '^ *+' conftest.er1 >conftest.err
34946 cat conftest.err >&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); } &&
34949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34950 { (case "(($ac_try" in
34951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34952 *) ac_try_echo
=$ac_try;;
34954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955 (eval "$ac_try") 2>&5
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try
='test -s conftest$ac_exeext'
34960 { (case "(($ac_try" in
34961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34962 *) ac_try_echo=$ac_try;;
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965 (eval "$ac_try") 2>&5
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
34969 eval "$as_ac_var=yes"
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 eval "$as_ac_var=no"
34977 rm -f core conftest.err conftest.$ac_objext \
34978 conftest$ac_exeext conftest.$ac_ext
34980 ac_res=`eval echo '${'$as_ac_var'}'`
34981 { echo "$as_me:$LINENO: result: $ac_res" >&5
34982 echo "${ECHO_T}$ac_res" >&6; }
34983 if test `eval echo '${'$as_ac_var'}'` = yes; then
34984 cat >>confdefs.h <<_ACEOF
34985 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
34992 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34993 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34994 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34995 echo $ECHO_N "(cached) $ECHO_C" >&6
34997 llvm_cv_llvmgcc_sanity="no"
34998 if test -x "$LLVMGCC" ; then
34999 cp /dev/null conftest.c
35000 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35001 grep 'target datalayout =' > /dev/null 2>&1
35002 if test $? -eq 0 ; then
35003 llvm_cv_llvmgcc_sanity="yes"
35008 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35009 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35011 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35012 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35013 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35014 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1
`
35015 LLVMCC1=$llvmcc1path
35017 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus
`
35018 LLVMCC1PLUS=$llvmcc1pluspath
35020 llvmgccdir=`echo "$llvmcc1path" |
sed 's,/libexec/.*,,'`
35021 LLVMGCCDIR=$llvmgccdir
35023 llvmgcclibexec=`echo "$llvmcc1path" |
sed 's,/cc1,,'`
35024 LLVMGCCLIBEXEC=$llvmgcclibexec
35026 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 |
sed 's/^\([0-9.]*\).*/\1/'`
35027 llvmgccmajvers=`echo $llvmgccversion |
sed 's/^\([0-9]\).*/\1/'`
35028 LLVMGCC_VERSION=$llvmgccversion
35030 LLVMGCC_MAJVERS=$llvmgccmajvers
35032 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 |
grep '^Configured with:' |
sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35033 LLVMGCC_LANGS=$llvmgcclangs
35035 { echo "$as_me:$LINENO: result: ok" >&5
35036 echo "${ECHO_T}ok" >&6; }
35039 SHLIBEXT=$libltdl_cv_shlibext
35042 # Translate the various configuration directories and other basic
35043 # information into substitutions that will end up in Makefile.config.in
35044 # that these configured values can be used by the makefiles
35045 if test "${prefix}" = "NONE" ; then
35046 prefix="/usr/local"
35048 eval LLVM_PREFIX="${prefix}";
35049 eval LLVM_BINDIR="${prefix}/bin";
35050 eval LLVM_LIBDIR="${prefix}/lib";
35051 eval LLVM_DATADIR="${prefix}/share/llvm";
35052 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35053 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35054 eval LLVM_INCLUDEDIR="${prefix}/include";
35055 eval LLVM_INFODIR="${prefix}/info";
35056 eval LLVM_MANDIR="${prefix}/man";
35057 LLVM_CONFIGTIME=`date`
35069 # Place the various directores into the config.h file as #defines so that we
35070 # can know about the installation paths within LLVM.
35072 cat >>confdefs.h <<_ACEOF
35073 #define LLVM_PREFIX "$LLVM_PREFIX"
35077 cat >>confdefs.h <<_ACEOF
35078 #define LLVM_BINDIR "$LLVM_BINDIR"
35082 cat >>confdefs.h <<_ACEOF
35083 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35087 cat >>confdefs.h <<_ACEOF
35088 #define LLVM_DATADIR "$LLVM_DATADIR"
35092 cat >>confdefs.h <<_ACEOF
35093 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35097 cat >>confdefs.h <<_ACEOF
35098 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35102 cat >>confdefs.h <<_ACEOF
35103 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35107 cat >>confdefs.h <<_ACEOF
35108 #define LLVM_INFODIR "$LLVM_INFODIR"
35112 cat >>confdefs.h <<_ACEOF
35113 #define LLVM_MANDIR "$LLVM_MANDIR"
35117 cat >>confdefs.h <<_ACEOF
35118 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35122 cat >>confdefs.h <<_ACEOF
35123 #define LLVM_HOSTTRIPLE "$host"
35127 # Determine which bindings to build.
35128 if test "$BINDINGS_TO_BUILD" = auto ; then
35129 BINDINGS_TO_BUILD=""
35130 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35131 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35134 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35137 # This isn't really configurey, but it avoids having to repeat the list in
35142 # Do any work necessary to ensure that bindings have what they need.
35143 binding_prereqs_failed=0
35144 for a_binding in $BINDINGS_TO_BUILD ; do
35145 case "$a_binding" in
35147 if test "x$OCAMLC" = x ; then
35148 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35149 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35150 binding_prereqs_failed=1
35152 if test "x$OCAMLDEP" = x ; then
35153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35154 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35155 binding_prereqs_failed=1
35157 if test "x$OCAMLOPT" = x ; then
35158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35159 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35161 if test "x$with_ocaml_libdir" != xauto ; then
35162 OCAML_LIBDIR=$with_ocaml_libdir
35165 ocaml_stdlib="`"$OCAMLC" -where`"
35166 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35168 # ocaml stdlib is beneath our prefix; use stdlib
35169 OCAML_LIBDIR=$ocaml_stdlib
35172 # ocaml stdlib is outside our prefix; use libdir/ocaml
35173 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35180 if test "$binding_prereqs_failed" = 1 ; then
35181 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35182 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35183 { (exit 1); exit 1; }; }
35186 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35187 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35188 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35189 echo $ECHO_N "(cached) $ECHO_C" >&6
35192 ac_cpp='$CXXCPP $CPPFLAGS'
35193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35197 oldcxxflags="$CXXFLAGS"
35198 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35199 cat >conftest.$ac_ext <<_ACEOF
35202 cat confdefs.h >>conftest.$ac_ext
35203 cat >>conftest.$ac_ext <<_ACEOF
35204 /* end confdefs.h. */
35214 rm -f conftest.$ac_objext
35215 if { (ac_try="$ac_compile"
35216 case "(($ac_try" in
35217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35218 *) ac_try_echo
=$ac_try;;
35220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35221 (eval "$ac_compile") 2>conftest.er1
35223 grep -v '^ *+' conftest.er1
>conftest.err
35225 cat conftest.err
>&5
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); } &&
35228 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35229 { (case "(($ac_try" in
35230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35231 *) ac_try_echo=$ac_try;;
35233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35234 (eval "$ac_try") 2>&5
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); }; } &&
35238 { ac_try='test -s conftest.$ac_objext'
35239 { (case "(($ac_try" in
35240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35241 *) ac_try_echo
=$ac_try;;
35243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244 (eval "$ac_try") 2>&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; }; then
35248 llvm_cv_cxx_visibility_inlines_hidden
=yes
35250 echo "$as_me: failed program was:" >&5
35251 sed 's/^/| /' conftest.
$ac_ext >&5
35253 llvm_cv_cxx_visibility_inlines_hidden
=no
35256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35257 CXXFLAGS
="$oldcxxflags"
35259 ac_cpp
='$CPP $CPPFLAGS'
35260 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35261 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35262 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
35266 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35267 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35268 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35269 ENABLE_VISIBILITY_INLINES_HIDDEN
=1
35272 ENABLE_VISIBILITY_INLINES_HIDDEN
=0
35277 if test "$llvm_cv_link_use_r" = "yes" ; then
35284 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35285 RDYNAMIC
="-Wl,-export-dynamic"
35292 ac_config_headers
="$ac_config_headers include/llvm/Config/config.h"
35294 ac_config_files
="$ac_config_files include/llvm/Config/Targets.def"
35296 ac_config_files
="$ac_config_files include/llvm/Config/AsmPrinters.def"
35298 ac_config_files
="$ac_config_files include/llvm/Config/AsmParsers.def"
35300 ac_config_headers
="$ac_config_headers include/llvm/System/DataTypes.h"
35303 ac_config_files
="$ac_config_files Makefile.config"
35306 ac_config_files
="$ac_config_files llvm.spec"
35309 ac_config_files
="$ac_config_files docs/doxygen.cfg"
35312 ac_config_files
="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35315 ac_config_files
="$ac_config_files tools/llvm-config/llvm-config.in"
35318 ac_config_commands
="$ac_config_commands setup"
35320 ac_config_commands
="$ac_config_commands Makefile"
35323 ac_config_commands
="$ac_config_commands Makefile.common"
35326 ac_config_commands
="$ac_config_commands examples/Makefile"
35329 ac_config_commands
="$ac_config_commands lib/Makefile"
35332 ac_config_commands
="$ac_config_commands runtime/Makefile"
35335 ac_config_commands
="$ac_config_commands test/Makefile"
35338 ac_config_commands
="$ac_config_commands test/Makefile.tests"
35341 ac_config_commands
="$ac_config_commands unittests/Makefile"
35344 ac_config_commands
="$ac_config_commands tools/Makefile"
35347 ac_config_commands
="$ac_config_commands utils/Makefile"
35350 ac_config_commands
="$ac_config_commands projects/Makefile"
35353 ac_config_commands
="$ac_config_commands bindings/Makefile"
35356 ac_config_commands
="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35360 cat >confcache
<<\_ACEOF
35361 # This file is a shell script that caches the results of configure
35362 # tests run on this system so they can be shared between configure
35363 # scripts and configure runs, see configure's option --config-cache.
35364 # It is not useful on other systems. If it contains results you don't
35365 # want to keep, you may remove or edit it.
35367 # config.status only pays attention to the cache file if you give it
35368 # the --recheck option to rerun configure.
35370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35372 # following values.
35376 # The following way of writing the cache mishandles newlines in values,
35377 # but we know of no workaround that is simple, portable, and efficient.
35378 # So, we kill variables containing newlines.
35379 # Ultrix sh set writes to stderr and can't be redirected directly,
35380 # and sets the high bit in the cache file unless we assign to the vars.
35382 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35383 eval ac_val
=\$
$ac_var
35387 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35388 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35391 _ | IFS | as_nl
) ;; #(
35392 *) $as_unset $ac_var ;;
35398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35399 *${as_nl}ac_space
=\
*)
35400 # `set' does not quote correctly, so add quotes (double-quote
35401 # substitution turns \\\\ into \\, and sed turns \\ into \).
35404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35407 # `set' quotes correctly as required by POSIX, so do not add quotes.
35408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35421 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35422 if test -w "$cache_file"; then
35423 test "x$cache_file" != "x/dev/null" &&
35424 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35425 echo "$as_me: updating cache $cache_file" >&6;}
35426 cat confcache
>$cache_file
35428 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35429 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35434 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35435 # Let make expand exec_prefix.
35436 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35438 DEFS
=-DHAVE_CONFIG_H
35442 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35443 # 1. Remove the extension, and $U if already installed.
35444 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35445 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35447 # will be set to the directory where LIBOBJS objects are built.
35448 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35449 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35451 LIBOBJS
=$ac_libobjs
35453 LTLIBOBJS
=$ac_ltlibobjs
35456 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35457 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35458 Usually this means the macro was only invoked conditionally." >&5
35459 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35460 Usually this means the macro was only invoked conditionally." >&2;}
35461 { (exit 1); exit 1; }; }
35463 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35464 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35465 Usually this means the macro was only invoked conditionally." >&5
35466 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35467 Usually this means the macro was only invoked conditionally." >&2;}
35468 { (exit 1); exit 1; }; }
35471 : ${CONFIG_STATUS=./config.status}
35472 ac_clean_files_save
=$ac_clean_files
35473 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35474 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35475 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35476 cat >$CONFIG_STATUS <<_ACEOF
35478 # Generated by $as_me.
35479 # Run this file to recreate the current configuration.
35480 # Compiler output produced by configure, useful for debugging
35481 # configure, is in config.log if it exists.
35484 ac_cs_recheck=false
35486 SHELL=\${CONFIG_SHELL-$SHELL}
35489 cat >>$CONFIG_STATUS <<\_ACEOF
35490 ## --------------------- ##
35491 ## M4sh Initialization. ##
35492 ## --------------------- ##
35494 # Be Bourne compatible
35495 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35498 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35499 # is contrary to our usage. Disable this feature.
35500 alias -g '${1+"$@"}'='"$@"'
35501 setopt NO_GLOB_SUBST
35503 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
35505 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
35506 DUALCASE
=1; export DUALCASE
# for MKS sh
35510 # Avoid depending upon Character Ranges.
35511 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35512 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35513 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35514 as_cr_digits
='0123456789'
35515 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35517 # The user is always right.
35518 if test "${PATH_SEPARATOR+set}" != set; then
35519 echo "#! /bin/sh" >conf$$.sh
35520 echo "exit 0" >>conf$$.sh
35522 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35530 # Support unset when possible.
35531 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35539 # We need space, tab and new line, in precisely that order. Quoting is
35540 # there to prevent editors from complaining about space-tab.
35541 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35542 # splitting by setting IFS to empty value.)
35547 # Find who we are. Look in the path if we contain no directory separator.
35549 *[\\/]* ) as_myself
=$0 ;;
35550 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35551 for as_dir
in $PATH
35554 test -z "$as_dir" && as_dir
=.
35555 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35561 # We did not find ourselves, most probably we were run as `sh COMMAND'
35562 # in which case we are not to be found in the path.
35563 if test "x$as_myself" = x
; then
35566 if test ! -f "$as_myself"; then
35567 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35568 { (exit 1); exit 1; }
35571 # Work around bugs in pre-3.0 UWIN ksh.
35572 for as_var
in ENV MAIL MAILPATH
35573 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35581 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35582 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35583 LC_TELEPHONE LC_TIME
35585 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35586 eval $as_var=C
; export $as_var
35588 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35592 # Required to use basename.
35593 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35594 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35600 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35601 as_basename
=basename
35607 # Name of the executable.
35608 as_me
=`$as_basename -- "$0" ||
35609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35610 X"$0" : 'X\(//\)$' \| \
35611 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35613 sed '/^.*\/\([^/][^/]*\)\/*$/{
35632 as_lineno_1
=$LINENO
35633 as_lineno_2
=$LINENO
35634 test "x$as_lineno_1" != "x$as_lineno_2" &&
35635 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35638 # uniformly replaced by the line number. The first 'sed' inserts a
35639 # line-number line after each line using $LINENO; the second 'sed'
35640 # does the real work. The second script uses 'N' to pair each
35641 # line-number line with the line containing $LINENO, and appends
35642 # trailing '-' during substitution so that $LINENO is not a special
35643 # case at line end.
35644 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35645 # scripts with optimization help from Paolo Bonzini. Blame Lee
35646 # E. McMahon (1931-1989) for sed's syntax. :-)
35658 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35661 ' >$as_me.lineno
&&
35662 chmod +x
"$as_me.lineno" ||
35663 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35664 { (exit 1); exit 1; }; }
35666 # Don't try to exec as it changes $[0], causing all sort of problems
35667 # (the dirname of $[0] is not the place where we might find the
35668 # original and so on. Autoconf is especially sensitive to this).
35669 .
"./$as_me.lineno"
35670 # Exit status is that of the last command.
35675 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35681 ECHO_C
= ECHO_N
= ECHO_T
=
35682 case `echo -n x` in
35684 case `echo 'x\c'` in
35685 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35692 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35693 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35699 rm -f conf$$ conf$$.exe conf$$.
file
35700 if test -d conf$$.dir
; then
35701 rm -f conf$$.dir
/conf$$.
file
35707 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35709 # ... but there are two gotchas:
35710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35712 # In both cases, we have to default to `cp -p'.
35713 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35715 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35720 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35721 rmdir conf$$.dir
2>/dev
/null
35723 if mkdir
-p .
2>/dev
/null
; then
35726 test -d .
/-p && rmdir .
/-p
35730 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35731 # systems may use methods other than mode bits to determine executability.
35732 cat >conf$$.
file <<_ASEOF
35736 chmod +x conf$$.
file
35737 if test -x conf$$.
file >/dev
/null
2>&1; then
35738 as_executable_p
="test -x"
35744 # Sed expression to map a string onto a valid CPP name.
35745 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35747 # Sed expression to map a string onto a valid variable name.
35748 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35753 # Save the log message, to keep $[0] and so on meaningful, and to
35754 # report actual input values of CONFIG_FILES etc. instead of their
35755 # values after options handling.
35757 This file was extended by llvm $as_me 2.7svn, which was
35758 generated by GNU Autoconf 2.60. Invocation command line was
35760 CONFIG_FILES = $CONFIG_FILES
35761 CONFIG_HEADERS = $CONFIG_HEADERS
35762 CONFIG_LINKS = $CONFIG_LINKS
35763 CONFIG_COMMANDS = $CONFIG_COMMANDS
35766 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35771 cat >>$CONFIG_STATUS <<_ACEOF
35772 # Files that config.status was made for.
35773 config_files="$ac_config_files"
35774 config_headers="$ac_config_headers"
35775 config_commands="$ac_config_commands"
35779 cat >>$CONFIG_STATUS <<\_ACEOF
35781 \`$as_me' instantiates files from templates according to the
35782 current configuration.
35784 Usage: $0 [OPTIONS] [FILE]...
35786 -h, --help print this help, then exit
35787 -V, --version print version number, then exit
35788 -q, --quiet do not print progress messages
35789 -d, --debug don't remove temporary files
35790 --recheck update $as_me by reconfiguring in the same conditions
35791 --file=FILE[:TEMPLATE]
35792 instantiate the configuration file FILE
35793 --header=FILE[:TEMPLATE]
35794 instantiate the configuration header FILE
35796 Configuration files:
35799 Configuration headers:
35802 Configuration commands:
35805 Report bugs to <bug-autoconf@gnu.org>."
35808 cat >>$CONFIG_STATUS <<_ACEOF
35810 llvm config.status 2.7svn
35811 configured by $0, generated by GNU Autoconf 2.60,
35812 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35814 Copyright (C) 2006 Free Software Foundation, Inc.
35815 This config.status script is free software; the Free Software Foundation
35816 gives unlimited permission to copy, distribute and modify it."
35823 cat >>$CONFIG_STATUS <<\_ACEOF
35824 # If no file are specified by the user, then we need to provide default
35825 # value. By we need to know if files were specified by the user.
35831 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35832 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35843 # Handling of the options.
35844 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35846 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35847 echo "$ac_cs_version"; exit ;;
35848 --debug |
--debu |
--deb |
--de |
--d |
-d )
35850 --file |
--fil |
--fi |
--f )
35852 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35853 ac_need_defaults
=false
;;
35854 --header |
--heade |
--head |
--hea )
35856 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35857 ac_need_defaults
=false
;;
35859 # Conflict between --help and --header
35860 { echo "$as_me: error: ambiguous option: $1
35861 Try \`$0 --help' for more information." >&2
35862 { (exit 1); exit 1; }; };;
35863 --help |
--hel |
-h )
35864 echo "$ac_cs_usage"; exit ;;
35865 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35866 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35869 # This is an error.
35870 -*) { echo "$as_me: error: unrecognized option: $1
35871 Try \`$0 --help' for more information." >&2
35872 { (exit 1); exit 1; }; } ;;
35874 *) ac_config_targets
="$ac_config_targets $1"
35875 ac_need_defaults
=false
;;
35881 ac_configure_extra_args
=
35883 if $ac_cs_silent; then
35885 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35889 cat >>$CONFIG_STATUS <<_ACEOF
35890 if \$ac_cs_recheck; then
35891 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35892 CONFIG_SHELL=$SHELL
35893 export CONFIG_SHELL
35894 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35898 cat >>$CONFIG_STATUS <<\_ACEOF
35902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35903 ## Running $as_me. ##
35909 cat >>$CONFIG_STATUS <<_ACEOF
35913 llvm_src="${srcdir}"
35917 cat >>$CONFIG_STATUS <<\_ACEOF
35919 # Handling of arguments.
35920 for ac_config_target
in $ac_config_targets
35922 case $ac_config_target in
35923 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35924 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35925 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35926 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35927 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
35928 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35929 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35930 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35931 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35932 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35933 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35934 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35935 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35936 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35937 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35938 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35939 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35940 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35941 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35942 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35943 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35944 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35945 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35946 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35948 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35949 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35950 { (exit 1); exit 1; }; };;
35955 # If the user did not use the arguments to specify the items to instantiate,
35956 # then the envvar interface is used. Set only those that are not.
35957 # We use the long form for the default assignment because of an extremely
35958 # bizarre bug on SunOS 4.1.3.
35959 if $ac_need_defaults; then
35960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35965 # Have a temporary directory for convenience. Make it in the build tree
35966 # simply because there is no reason against having it here, and in addition,
35967 # creating and moving files from /tmp can sometimes cause problems.
35968 # Hook for its removal unless debugging.
35969 # Note that there is a small window in which the directory will not be cleaned:
35970 # after its creation but before its name has been assigned to `$tmp'.
35974 trap 'exit_status=$?
35975 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35977 trap '{ (exit 1); exit 1; }' 1 2 13 15
35979 # Create a (secure) tmp directory for tmp files.
35982 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35983 test -n "$tmp" && test -d "$tmp"
35986 tmp
=.
/conf$$
-$RANDOM
35987 (umask 077 && mkdir
"$tmp")
35990 echo "$me: cannot create a temporary directory in ." >&2
35991 { (exit 1); exit 1; }
35995 # Set up the sed scripts for CONFIG_FILES section.
35998 # No need to generate the scripts if there are no CONFIG_FILES.
35999 # This happens for instance when ./config.status config.h
36000 if test -n "$CONFIG_FILES"; then
36007 for ac_last_try
in false false false false false
:; do
36008 cat >conf$
$subs.
sed <<_ACEOF
36009 SHELL!$SHELL$ac_delim
36010 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36011 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36012 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36013 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36014 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36015 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36016 exec_prefix!$exec_prefix$ac_delim
36017 prefix!$prefix$ac_delim
36018 program_transform_name!$program_transform_name$ac_delim
36019 bindir!$bindir$ac_delim
36020 sbindir!$sbindir$ac_delim
36021 libexecdir!$libexecdir$ac_delim
36022 datarootdir!$datarootdir$ac_delim
36023 datadir!$datadir$ac_delim
36024 sysconfdir!$sysconfdir$ac_delim
36025 sharedstatedir!$sharedstatedir$ac_delim
36026 localstatedir!$localstatedir$ac_delim
36027 includedir!$includedir$ac_delim
36028 oldincludedir!$oldincludedir$ac_delim
36029 docdir!$docdir$ac_delim
36030 infodir!$infodir$ac_delim
36031 htmldir!$htmldir$ac_delim
36032 dvidir!$dvidir$ac_delim
36033 pdfdir!$pdfdir$ac_delim
36034 psdir!$psdir$ac_delim
36035 libdir!$libdir$ac_delim
36036 localedir!$localedir$ac_delim
36037 mandir!$mandir$ac_delim
36038 DEFS!$DEFS$ac_delim
36039 ECHO_C!$ECHO_C$ac_delim
36040 ECHO_N!$ECHO_N$ac_delim
36041 ECHO_T!$ECHO_T$ac_delim
36042 LIBS!$LIBS$ac_delim
36043 build_alias!$build_alias$ac_delim
36044 host_alias!$host_alias$ac_delim
36045 target_alias!$target_alias$ac_delim
36046 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36047 subdirs!$subdirs$ac_delim
36048 build!$build$ac_delim
36049 build_cpu!$build_cpu$ac_delim
36050 build_vendor!$build_vendor$ac_delim
36051 build_os!$build_os$ac_delim
36052 host!$host$ac_delim
36053 host_cpu!$host_cpu$ac_delim
36054 host_vendor!$host_vendor$ac_delim
36055 host_os!$host_os$ac_delim
36056 target!$target$ac_delim
36057 target_cpu!$target_cpu$ac_delim
36058 target_vendor!$target_vendor$ac_delim
36059 target_os!$target_os$ac_delim
36061 HOST_OS!$HOST_OS$ac_delim
36062 TARGET_OS!$TARGET_OS$ac_delim
36063 LINKALL!$LINKALL$ac_delim
36064 NOLINKALL!$NOLINKALL$ac_delim
36065 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36066 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36067 ARCH!$ARCH$ac_delim
36068 ENDIAN!$ENDIAN$ac_delim
36070 CFLAGS!$CFLAGS$ac_delim
36071 LDFLAGS!$LDFLAGS$ac_delim
36072 CPPFLAGS!$CPPFLAGS$ac_delim
36073 ac_ct_CC!$ac_ct_CC$ac_delim
36074 EXEEXT!$EXEEXT$ac_delim
36075 OBJEXT!$OBJEXT$ac_delim
36077 GREP!$GREP$ac_delim
36078 EGREP!$EGREP$ac_delim
36079 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36080 BUILD_CC!$BUILD_CC$ac_delim
36081 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36082 BUILD_CXX!$BUILD_CXX$ac_delim
36083 CVSBUILD!$CVSBUILD$ac_delim
36084 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36085 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36086 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36087 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36088 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36089 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36090 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36092 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36093 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36094 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36095 ENABLE_PIC!$ENABLE_PIC$ac_delim
36096 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36097 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36098 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36099 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36100 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36101 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36102 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36103 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36104 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36105 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36108 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36110 elif $ac_last_try; then
36111 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36112 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36113 { (exit 1); exit 1; }; }
36115 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36119 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36120 if test -n "$ac_eof"; then
36121 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36122 ac_eof
=`expr $ac_eof + 1`
36125 cat >>$CONFIG_STATUS <<_ACEOF
36126 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36130 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36131 s/^/s,@/; s/!/@,|#_!!_#|/
36134 s/'"$ac_delim"'$/,g/; t
36136 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36137 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36138 rm -f conf$
$subs.
sed
36139 cat >>$CONFIG_STATUS <<_ACEOF
36145 for ac_last_try
in false false false false false
:; do
36146 cat >conf$
$subs.
sed <<_ACEOF
36148 CXXFLAGS!$CXXFLAGS$ac_delim
36149 ac_ct_CXX!$ac_ct_CXX$ac_delim
36151 ifGNUmake!$ifGNUmake$ac_delim
36152 LN_S!$LN_S$ac_delim
36155 DATE!$DATE$ac_delim
36156 FIND!$FIND$ac_delim
36157 MKDIR!$MKDIR$ac_delim
36159 RANLIB!$RANLIB$ac_delim
36163 BINPWD!$BINPWD$ac_delim
36164 GRAPHVIZ!$GRAPHVIZ$ac_delim
36167 NEATO!$NEATO$ac_delim
36168 TWOPI!$TWOPI$ac_delim
36169 CIRCO!$CIRCO$ac_delim
36171 DOTTY!$DOTTY$ac_delim
36172 PERL!$PERL$ac_delim
36173 HAVE_PERL!$HAVE_PERL$ac_delim
36174 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36175 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36176 INSTALL_DATA!$INSTALL_DATA$ac_delim
36177 BZIP2!$BZIP2$ac_delim
36178 DOXYGEN!$DOXYGEN$ac_delim
36179 GROFF!$GROFF$ac_delim
36180 GZIP!$GZIP$ac_delim
36181 POD2HTML!$POD2HTML$ac_delim
36182 POD2MAN!$POD2MAN$ac_delim
36183 RUNTEST!$RUNTEST$ac_delim
36184 TCLSH!$TCLSH$ac_delim
36186 OCAMLC!$OCAMLC$ac_delim
36187 OCAMLOPT!$OCAMLOPT$ac_delim
36188 OCAMLDEP!$OCAMLDEP$ac_delim
36189 OCAMLDOC!$OCAMLDOC$ac_delim
36191 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36192 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36193 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36194 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36195 LIBADD_DL!$LIBADD_DL$ac_delim
36196 ECHO!$ECHO$ac_delim
36198 STRIP!$STRIP$ac_delim
36199 CXXCPP!$CXXCPP$ac_delim
36201 FFLAGS!$FFLAGS$ac_delim
36202 ac_ct_F77!$ac_ct_F77$ac_delim
36203 LIBTOOL!$LIBTOOL$ac_delim
36204 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36205 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36206 LLVMGCC!$LLVMGCC$ac_delim
36207 LLVMGXX!$LLVMGXX$ac_delim
36208 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36209 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36210 USE_UDIS86!$USE_UDIS86$ac_delim
36211 USE_OPROFILE!$USE_OPROFILE$ac_delim
36212 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36213 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36214 ALLOCA!$ALLOCA$ac_delim
36215 MMAP_FILE!$MMAP_FILE$ac_delim
36216 LLVMCC1!$LLVMCC1$ac_delim
36217 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36218 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36219 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36220 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36221 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36222 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36223 SHLIBEXT!$SHLIBEXT$ac_delim
36224 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36225 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36226 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36227 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36228 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36229 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36230 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36231 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36232 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36233 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36234 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36235 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36236 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36237 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36238 RPATH!$RPATH$ac_delim
36239 RDYNAMIC!$RDYNAMIC$ac_delim
36240 LIBOBJS!$LIBOBJS$ac_delim
36241 LTLIBOBJS!$LTLIBOBJS$ac_delim
36244 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
36246 elif $ac_last_try; then
36247 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36248 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36249 { (exit 1); exit 1; }; }
36251 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36255 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36256 if test -n "$ac_eof"; then
36257 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36258 ac_eof
=`expr $ac_eof + 1`
36261 cat >>$CONFIG_STATUS <<_ACEOF
36262 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36266 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36267 s/^/s,@/; s/!/@,|#_!!_#|/
36270 s/'"$ac_delim"'$/,g/; t
36272 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36273 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36274 rm -f conf$
$subs.
sed
36275 cat >>$CONFIG_STATUS <<_ACEOF
36282 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36283 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36284 # trailing colons and then remove the whole line if VPATH becomes empty
36285 # (actually we leave an empty line to preserve line numbers).
36286 if test "x$srcdir" = x.
; then
36287 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36288 s/:*\$(srcdir):*/:/
36289 s/:*\${srcdir}:*/:/
36291 s/^\([^=]*=[ ]*\):*/\1/
36297 cat >>$CONFIG_STATUS <<\_ACEOF
36298 fi # test -n "$CONFIG_FILES"
36301 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
36304 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36306 case $ac_mode$ac_tag in
36308 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36309 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36310 { (exit 1); exit 1; }; };;
36311 :[FH
]-) ac_tag
=-:-;;
36312 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36329 -) ac_f
="$tmp/stdin";;
36330 *) # Look for the file first in the build tree, then in the source tree
36331 # (if the path is not absolute). The absolute path cannot be DOS-style,
36332 # because $ac_f cannot contain `:'.
36336 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36338 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36339 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36340 { (exit 1); exit 1; }; };;
36342 ac_file_inputs
="$ac_file_inputs $ac_f"
36345 # Let's still pretend it is `configure' which instantiates (i.e., don't
36346 # use $as_me), people would be surprised to read:
36347 # /* config.h. Generated by config.status. */
36348 configure_input
="Generated from "`IFS=:
36349 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36350 if test x
"$ac_file" != x-
; then
36351 configure_input
="$ac_file. $configure_input"
36352 { echo "$as_me:$LINENO: creating $ac_file" >&5
36353 echo "$as_me: creating $ac_file" >&6;}
36357 *:-:* |
*:-) cat >"$tmp/stdin";;
36362 ac_dir
=`$as_dirname -- "$ac_file" ||
36363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36364 X"$ac_file" : 'X\(//\)[^/]' \| \
36365 X"$ac_file" : 'X\(//\)$' \| \
36366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36372 /^X\(\/\/\)[^/].*/{
36387 -*) as_dir
=.
/$as_dir;;
36389 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36393 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36394 *) as_qdir
=$as_dir;;
36396 as_dirs
="'$as_qdir' $as_dirs"
36397 as_dir
=`$as_dirname -- "$as_dir" ||
36398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36399 X"$as_dir" : 'X\(//\)[^/]' \| \
36400 X"$as_dir" : 'X\(//\)$' \| \
36401 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36407 /^X\(\/\/\)[^/].*/{
36420 test -d "$as_dir" && break
36422 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36423 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36424 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36425 { (exit 1); exit 1; }; }; }
36429 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36431 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36432 # A ".." for each directory in $ac_dir_suffix.
36433 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36434 case $ac_top_builddir_sub in
36435 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36436 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36439 ac_abs_top_builddir
=$ac_pwd
36440 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36441 # for backward compatibility:
36442 ac_top_builddir
=$ac_top_build_prefix
36445 .
) # We are building in place.
36447 ac_top_srcdir
=$ac_top_builddir_sub
36448 ac_abs_top_srcdir
=$ac_pwd ;;
36449 [\\/]* | ?
:[\\/]* ) # Absolute name.
36450 ac_srcdir
=$srcdir$ac_dir_suffix;
36451 ac_top_srcdir
=$srcdir
36452 ac_abs_top_srcdir
=$srcdir ;;
36453 *) # Relative name.
36454 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36455 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36456 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36458 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36468 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36469 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36473 cat >>$CONFIG_STATUS <<\_ACEOF
36474 # If the template does not know about datarootdir, expand it.
36475 # FIXME: This hack should be removed a few years after 2.60.
36476 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36478 case `sed -n '/datarootdir/ {
36487 ' $ac_file_inputs` in
36488 *datarootdir
*) ac_datarootdir_seen
=yes;;
36489 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36490 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36491 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36493 cat >>$CONFIG_STATUS <<_ACEOF
36494 ac_datarootdir_hack='
36495 s&@datadir@&$datadir&g
36496 s&@docdir@&$docdir&g
36497 s&@infodir@&$infodir&g
36498 s&@localedir@&$localedir&g
36499 s&@mandir@&$mandir&g
36500 s&\\\${datarootdir}&$datarootdir&g' ;;
36504 # Neutralize VPATH when `$srcdir' = `.'.
36505 # Shell code in configure.ac might set extrasub.
36506 # FIXME: do we really want to maintain this feature?
36507 cat >>$CONFIG_STATUS <<_ACEOF
36511 cat >>$CONFIG_STATUS <<\_ACEOF
36513 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36514 s
&@configure_input@
&$configure_input&;t t
36515 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36516 s
&@srcdir@
&$ac_srcdir&;t t
36517 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36518 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36519 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36520 s
&@builddir@
&$ac_builddir&;t t
36521 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36522 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36523 s
&@INSTALL@
&$ac_INSTALL&;t t
36524 $ac_datarootdir_hack
36525 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
36527 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36528 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36529 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36530 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36531 which seems to be undefined. Please make sure it is defined." >&5
36532 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36533 which seems to be undefined. Please make sure it is defined." >&2;}
36537 -) cat "$tmp/out"; rm -f "$tmp/out";;
36538 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36547 # Transform confdefs.h into a sed script `conftest.defines', that
36548 # substitutes the proper values into config.h.in to produce config.h.
36549 rm -f conftest.defines conftest.
tail
36550 # First, append a space to every undef/define line, to ease matching.
36551 echo 's/$/ /' >conftest.defines
36552 # Then, protect against being on the right side of a sed subst, or in
36553 # an unquoted here document, in config.status. If some macros were
36554 # called several times there might be several #defines for the same
36555 # symbol, which is useless. But do not sort them, since the last
36556 # AC_DEFINE must be honored.
36557 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36558 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36559 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36560 # PARAMS is the parameter list in the macro definition--in most cases, it's
36561 # just an empty string.
36562 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36563 ac_dB
='\\)[ (].*,\\1define\\2'
36571 s/^[ ]*#[ ]*define[ ][ ]*//
36576 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36577 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36578 ' >>conftest.defines
36580 # Remove the space that was appended to ease matching.
36581 # Then replace #undef with comments. This is necessary, for
36582 # example, in the case of _POSIX_SOURCE, which is predefined and required
36583 # on some systems where configure will not decide to define it.
36584 # (The regexp can be short, since the line contains either #define or #undef.)
36586 s,^[ #]*u.*,/* & */,' >>conftest.defines
36588 # Break up conftest.defines:
36589 ac_max_sed_lines
=50
36591 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36592 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36593 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36595 ac_in
='$ac_file_inputs'
36596 ac_out
='"$tmp/out1"'
36597 ac_nxt
='"$tmp/out2"'
36601 # Write a here document:
36602 cat >>$CONFIG_STATUS <<_ACEOF
36603 # First, check the format of the line:
36604 cat >"\$tmp/defines.sed" <<\\CEOF
36605 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36606 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36610 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36612 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36613 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36614 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36615 grep . conftest.
tail >/dev
/null ||
break
36616 rm -f conftest.defines
36617 mv conftest.
tail conftest.defines
36619 rm -f conftest.defines conftest.
tail
36621 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36622 cat >>$CONFIG_STATUS <<\_ACEOF
36623 if test x
"$ac_file" != x-
; then
36624 echo "/* $configure_input */" >"$tmp/config.h"
36625 cat "$ac_result" >>"$tmp/config.h"
36626 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36627 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36628 echo "$as_me: $ac_file is unchanged" >&6;}
36631 mv "$tmp/config.h" $ac_file
36634 echo "/* $configure_input */"
36640 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36641 echo "$as_me: executing $ac_file commands" >&6;}
36646 case $ac_file$ac_mode in
36647 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
36648 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
36649 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
36650 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
36651 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
36652 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
36653 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
36654 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
36655 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
36656 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
36657 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
36658 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
36659 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
36660 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
36661 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
36662 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
36663 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
36664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
36665 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
36666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
36667 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
36668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
36669 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
36670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
36671 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
36672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
36678 { (exit 0); exit 0; }
36680 chmod +x
$CONFIG_STATUS
36681 ac_clean_files
=$ac_clean_files_save
36684 # configure is writing to config.log, and then calls config.status.
36685 # config.status does its own redirection, appending to config.log.
36686 # Unfortunately, on DOS this fails, as config.log is still kept open
36687 # by configure, so config.status won't be able to write to it; its
36688 # output is simply discarded. So we exec the FD to /dev/null,
36689 # effectively closing config.log, so it can be properly (re)opened and
36690 # appended to by config.status. When coming back to configure, we
36691 # need to make the FD available again.
36692 if test "$no_create" != yes; then
36694 ac_config_status_args
=
36695 test "$silent" = yes &&
36696 ac_config_status_args
="$ac_config_status_args --quiet"
36698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36701 # would make configure fail if this is the last instruction.
36702 $ac_cs_success ||
{ (exit 1); exit 1; }
36706 # CONFIG_SUBDIRS section.
36708 if test "$no_recursion" != yes; then
36710 # Remove --cache-file and --srcdir arguments so they do not pile up.
36711 ac_sub_configure_args
=
36713 eval "set x $ac_configure_args"
36717 if test -n "$ac_prev"; then
36722 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36723 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36724 ac_prev
=cache_file
;;
36725 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36726 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36729 --config-cache |
-C)
36731 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36733 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36735 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36737 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36741 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36743 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36747 # Always prepend --prefix to ensure using the same prefix
36748 # in subdir configurations.
36749 ac_arg
="--prefix=$prefix"
36751 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36753 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36756 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36758 # Do not complain, so a configure script can configure whichever
36759 # parts of a large source tree are present.
36760 test -d "$srcdir/$ac_dir" ||
continue
36762 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36763 echo "$as_me:$LINENO: $ac_msg" >&5
36767 -*) as_dir
=.
/$as_dir;;
36769 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36773 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36774 *) as_qdir
=$as_dir;;
36776 as_dirs
="'$as_qdir' $as_dirs"
36777 as_dir
=`$as_dirname -- "$as_dir" ||
36778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36779 X"$as_dir" : 'X\(//\)[^/]' \| \
36780 X"$as_dir" : 'X\(//\)$' \| \
36781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36787 /^X\(\/\/\)[^/].*/{
36800 test -d "$as_dir" && break
36802 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36803 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36804 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36805 { (exit 1); exit 1; }; }; }
36809 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36811 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36812 # A ".." for each directory in $ac_dir_suffix.
36813 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36814 case $ac_top_builddir_sub in
36815 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36816 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36819 ac_abs_top_builddir
=$ac_pwd
36820 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36821 # for backward compatibility:
36822 ac_top_builddir
=$ac_top_build_prefix
36825 .
) # We are building in place.
36827 ac_top_srcdir
=$ac_top_builddir_sub
36828 ac_abs_top_srcdir
=$ac_pwd ;;
36829 [\\/]* | ?
:[\\/]* ) # Absolute name.
36830 ac_srcdir
=$srcdir$ac_dir_suffix;
36831 ac_top_srcdir
=$srcdir
36832 ac_abs_top_srcdir
=$srcdir ;;
36833 *) # Relative name.
36834 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36835 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36836 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36838 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36843 # Check for guested configure; otherwise get Cygnus style configure.
36844 if test -f "$ac_srcdir/configure.gnu"; then
36845 ac_sub_configure
=$ac_srcdir/configure.gnu
36846 elif test -f "$ac_srcdir/configure"; then
36847 ac_sub_configure
=$ac_srcdir/configure
36848 elif test -f "$ac_srcdir/configure.in"; then
36849 # This should be Cygnus configure.
36850 ac_sub_configure
=$ac_aux_dir/configure
36852 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36853 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36857 # The recursion is here.
36858 if test -n "$ac_sub_configure"; then
36859 # Make the cache file name correct relative to the subdirectory.
36860 case $cache_file in
36861 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36862 *) # Relative name.
36863 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36866 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36867 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36868 # The eval makes quoting arguments work.
36869 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36870 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36871 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36872 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36873 { (exit 1); exit 1; }; }