2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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-2008 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.6svn'
719 PACKAGE_STRING
='llvm 2.6svn'
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
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
846 LLVM_ENUM_ASM_PARSERS
851 ENABLE_LLVMC_DYNAMIC_PLUGINS
898 CONVENIENCE_LTDL_TRUE
899 CONVENIENCE_LTDL_FALSE
940 ENABLE_VISIBILITY_INLINES_HIDDEN
946 ac_precious_vars
='build_alias
960 ac_subdirs_all
='projects/sample
962 projects/llvm-stacker
969 projects/llvm-poolalloc
971 projects/llvm-kernel'
973 # Initialize some variables set by options.
975 ac_init_version
=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name
=s
,x
,x
,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir
='${exec_prefix}/bin'
1000 sbindir
='${exec_prefix}/sbin'
1001 libexecdir
='${exec_prefix}/libexec'
1002 datarootdir
='${prefix}/share'
1003 datadir
='${datarootdir}'
1004 sysconfdir
='${prefix}/etc'
1005 sharedstatedir
='${prefix}/com'
1006 localstatedir
='${prefix}/var'
1007 includedir
='${prefix}/include'
1008 oldincludedir
='/usr/include'
1009 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010 infodir
='${datarootdir}/info'
1015 libdir
='${exec_prefix}/lib'
1016 localedir
='${datarootdir}/locale'
1017 mandir
='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\
$ac_option
1031 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1043 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1044 bindir
=$ac_optarg ;;
1046 -build |
--build |
--buil |
--bui |
--bu)
1047 ac_prev
=build_alias
;;
1048 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1049 build_alias
=$ac_optarg ;;
1051 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1052 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1053 ac_prev
=cache_file
;;
1054 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1055 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1056 cache_file
=$ac_optarg ;;
1058 --config-cache |
-C)
1059 cache_file
=config.cache
;;
1061 -datadir |
--datadir |
--datadi |
--datad)
1063 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1064 datadir
=$ac_optarg ;;
1066 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1067 |
--dataroo |
--dataro |
--datar)
1068 ac_prev
=datarootdir
;;
1069 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1070 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1071 datarootdir
=$ac_optarg ;;
1073 -disable-* |
--disable-*)
1074 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1080 eval enable_
$ac_feature=no
;;
1082 -docdir |
--docdir |
--docdi |
--doc |
--do)
1084 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1085 docdir
=$ac_optarg ;;
1087 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1089 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1090 dvidir
=$ac_optarg ;;
1092 -enable-* |
--enable-*)
1093 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1099 eval enable_
$ac_feature=\
$ac_optarg ;;
1101 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1102 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1103 |
--exec |
--exe |
--ex)
1104 ac_prev
=exec_prefix
;;
1105 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1106 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1107 |
--exec=* |
--exe=* |
--ex=*)
1108 exec_prefix
=$ac_optarg ;;
1110 -gas |
--gas |
--ga |
--g)
1111 # Obsolete; use --with-gas.
1114 -help |
--help |
--hel |
--he |
-h)
1115 ac_init_help
=long
;;
1116 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1117 ac_init_help
=recursive
;;
1118 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1119 ac_init_help
=short
;;
1121 -host |
--host |
--hos |
--ho)
1122 ac_prev
=host_alias
;;
1123 -host=* |
--host=* |
--hos=* |
--ho=*)
1124 host_alias
=$ac_optarg ;;
1126 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1128 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1130 htmldir
=$ac_optarg ;;
1132 -includedir |
--includedir |
--includedi |
--included |
--include \
1133 |
--includ |
--inclu |
--incl |
--inc)
1134 ac_prev
=includedir
;;
1135 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1136 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1137 includedir
=$ac_optarg ;;
1139 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1141 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1142 infodir
=$ac_optarg ;;
1144 -libdir |
--libdir |
--libdi |
--libd)
1146 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1147 libdir
=$ac_optarg ;;
1149 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1150 |
--libexe |
--libex |
--libe)
1151 ac_prev
=libexecdir
;;
1152 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1153 |
--libexe=* |
--libex=* |
--libe=*)
1154 libexecdir
=$ac_optarg ;;
1156 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1157 ac_prev
=localedir
;;
1158 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1159 localedir
=$ac_optarg ;;
1161 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1162 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1163 ac_prev
=localstatedir
;;
1164 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1165 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1166 localstatedir
=$ac_optarg ;;
1168 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1170 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1171 mandir
=$ac_optarg ;;
1173 -nfp |
--nfp |
--nf)
1174 # Obsolete; use --without-fp.
1177 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1178 |
--no-cr |
--no-c |
-n)
1181 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1182 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1185 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1186 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1187 |
--oldin |
--oldi |
--old |
--ol |
--o)
1188 ac_prev
=oldincludedir
;;
1189 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1190 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1191 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1192 oldincludedir
=$ac_optarg ;;
1194 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1196 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1197 prefix
=$ac_optarg ;;
1199 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1200 |
--program-pre |
--program-pr |
--program-p)
1201 ac_prev
=program_prefix
;;
1202 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1203 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1204 program_prefix
=$ac_optarg ;;
1206 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1207 |
--program-suf |
--program-su |
--program-s)
1208 ac_prev
=program_suffix
;;
1209 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1210 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1211 program_suffix
=$ac_optarg ;;
1213 -program-transform-name |
--program-transform-name \
1214 |
--program-transform-nam |
--program-transform-na \
1215 |
--program-transform-n |
--program-transform- \
1216 |
--program-transform |
--program-transfor \
1217 |
--program-transfo |
--program-transf \
1218 |
--program-trans |
--program-tran \
1219 |
--progr-tra |
--program-tr |
--program-t)
1220 ac_prev
=program_transform_name
;;
1221 -program-transform-name=* |
--program-transform-name=* \
1222 |
--program-transform-nam=* |
--program-transform-na=* \
1223 |
--program-transform-n=* |
--program-transform-=* \
1224 |
--program-transform=* |
--program-transfor=* \
1225 |
--program-transfo=* |
--program-transf=* \
1226 |
--program-trans=* |
--program-tran=* \
1227 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1228 program_transform_name
=$ac_optarg ;;
1230 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1232 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1233 pdfdir
=$ac_optarg ;;
1235 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1237 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1240 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1241 |
-silent |
--silent |
--silen |
--sile |
--sil)
1244 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1246 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1248 sbindir
=$ac_optarg ;;
1250 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1251 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1252 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1254 ac_prev
=sharedstatedir
;;
1255 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1256 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1257 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1259 sharedstatedir
=$ac_optarg ;;
1261 -site |
--site |
--sit)
1263 -site=* |
--site=* |
--sit=*)
1266 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1268 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1269 srcdir
=$ac_optarg ;;
1271 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1272 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1273 ac_prev
=sysconfdir
;;
1274 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1275 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1276 sysconfdir
=$ac_optarg ;;
1278 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1279 ac_prev
=target_alias
;;
1280 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1281 target_alias
=$ac_optarg ;;
1283 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1286 -version |
--version |
--versio |
--versi |
--vers |
-V)
1287 ac_init_version
=: ;;
1290 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1296 eval with_
$ac_package=\
$ac_optarg ;;
1298 -without-* |
--without-*)
1299 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1305 eval with_
$ac_package=no
;;
1308 # Obsolete; use --with-x.
1311 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1312 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1313 ac_prev
=x_includes
;;
1314 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1315 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1316 x_includes
=$ac_optarg ;;
1318 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1319 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1320 ac_prev
=x_libraries
;;
1321 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1322 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1323 x_libraries
=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\
$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val
=\$
$ac_var
1364 [\\/$
]* | ?
:[\\/]* ) continue;;
1365 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target
=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x
; then
1380 if test "x$build_alias" = x
; then
1381 cross_compiling
=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1392 test "$silent" = yes && exec 6>/dev
/null
1395 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di
=`ls -di .` &&
1397 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted
=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir
=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted
=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var
in $ac_precious_vars; do
1460 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1462 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --build=BUILD configure
for building on BUILD
[guessed
]
1532 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1533 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive
) echo "Configuration of llvm 2.6svn:";;
1544 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1545 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1546 --enable-optimized Compile with optimizations enabled
(default is NO
)
1547 --enable-profiling Compile with profiling enabled
(default is NO
)
1548 --enable-assertions Compile with assertion checks enabled
(default is
1550 --enable-expensive-checks
1551 Compile with expensive debug checks enabled
(default
1553 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1555 --enable-jit Enable Just In Time Compiling
(default is YES
)
1556 --enable-doxygen Build doxygen documentation
(default is NO
)
1557 --enable-threads Use threads
if available
(default is YES
)
1558 --enable-pic Build LLVM with Position Independent Code
(default
1560 --enable-targets Build specific
host targets
:
1561 all
,host-only
,{target-name
} (default
=all
)
1562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1564 --enable-bindings Build specific language bindings
:
1565 all
,auto
,none
,{binding-name
} (default
=auto
)
1566 --enable-libffi Check
for the presence of libffi
(default is YES
)
1567 --enable-llvmc-dynamic Link LLVMC dynamically
(default is NO
, unless on
1569 --enable-llvmc-dynamic-plugins
1570 Enable dynamic LLVMC plugins
(default is YES
)
1571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS
] build shared libraries
1574 --enable-static[=PKGS
] build static libraries
1576 --enable-fast-install[=PKGS
]
1577 optimize
for fast installation
1579 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1582 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1583 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1584 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1586 --with-llvmgcc Specify location of llvm-gcc driver
(default
1588 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1590 --with-extra-options Specify additional options to compile LLVM with
1591 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1593 --with-binutils-include Specify path to binutils
/include
/ containing
1594 plugin-api.h
file for gold plugin.
1595 --with-tclinclude directory where tcl headers are
1596 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1597 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1599 --with-tags[=TAGS
] include additional configurations
[automatic
]
1600 --with-udis86=<path
> Use udis86 external x86 disassembler library
1601 --with-oprofile=<prefix
>
1602 Tell OProfile
>= 0.9.4 how to symbolize JIT output
1604 Some influential environment variables
:
1605 CC C compiler
command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1608 nonstandard directory
<lib dir
>
1609 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1610 you have headers
in a nonstandard directory
<include dir
>
1612 CXX C
++ compiler
command
1613 CXXFLAGS C
++ compiler flags
1614 CXXCPP C
++ preprocessor
1615 F77 Fortran
77 compiler
command
1616 FFLAGS Fortran
77 compiler flags
1618 Use these variables to override the choices made by
`configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1621 Report bugs to <llvmbugs@cs.uiuc.edu>.
1626 if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" || continue
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1649 .) # We are building in place.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1673 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1682 llvm configure 2.6svn
1683 generated by GNU Autoconf 2.60
1685 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1686 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1690 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1694 cat >config.log <<_ACEOF
1695 This file contains any messages produced by compilers while
1696 running configure, to aid debugging if configure makes a mistake.
1698 It was created by llvm $as_me 2.6svn, which was
1699 generated by GNU Autoconf 2.60. Invocation command line was
1711 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1712 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1713 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1714 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1715 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1717 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1718 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1720 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1721 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1722 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1723 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1724 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1725 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1726 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 echo "PATH: $as_dir"
1751 # Keep a trace of the command line.
1752 # Strip out --no-create and --no-recursion so they do not pile up.
1753 # Strip out --silent because we don't want to record it for future runs.
1754 # Also quote any args containing shell meta-characters.
1755 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_must_keep_next=false
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1770 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1773 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
1777 ac_must_keep_next=false # Got value, back to normal.
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 -* ) ac_must_keep_next=true ;;
1791 ac_configure_args="$ac_configure_args '$ac_arg'"
1796 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1797 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799 # When interrupted or exit'd, cleanup temporary files, and complete
1800 # config.log. We remove comments because anyway the quotes in there
1801 # would cause problems or look ugly.
1802 # WARNING: Use '\'' to represent an apostrophe within the trap.
1803 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1804 trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1810 ## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##
1815 # The following way of writing the cache mishandles newlines in values,
1817 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1818 eval ac_val=\$$ac_var
1822 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1823 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 _ | IFS | as_nl) ;; #(
1827 *) $as_unset $ac_var ;;
1832 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
1835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1847 ## ----------------- ##
1848 ## Output variables. ##
1849 ## ----------------- ##
1852 for ac_var in $ac_subst_vars
1854 eval ac_val=\$$ac_var
1856 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 echo "$ac_var='\''$ac_val'\''"
1862 if test -n "$ac_subst_files"; then
1864 ## ------------------- ##
1865 ## File substitutions. ##
1866 ## ------------------- ##
1869 for ac_var in $ac_subst_files
1871 eval ac_val=\$$ac_var
1873 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 echo "$ac_var='\''$ac_val'\''"
1880 if test -s confdefs.h; then
1890 test "$ac_signal" != 0 &&
1891 echo "$as_me: caught signal $ac_signal"
1892 echo "$as_me: exit $exit_status"
1894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1904 rm -f -r conftest* confdefs.h
1906 # Predefined preprocessor variables.
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 # Let the site file select an alternate cache file if it wants to.
1934 # Prefer explicitly selected file to automatically selected ones.
1935 if test -n "$CONFIG_SITE"; then
1936 set x "$CONFIG_SITE"
1937 elif test "x$prefix" != xNONE; then
1938 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1940 set x "$ac_default_prefix/share/config.site" \
1941 "$ac_default_prefix/etc/config.site"
1946 if test -r "$ac_site_file"; then
1947 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948 echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959 echo "$as_me: loading cache $cache_file" >&6;}
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1966 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967 echo "$as_me: creating cache $cache_file" >&6;}
1971 # Check that the precious variables saved in the cache have kept the same
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1982 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1985 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1986 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1992 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1993 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1994 echo "$as_me: former value
: $ac_old_val" >&2;}
1995 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1996 echo "$as_me: current value
: $ac_new_val" >&2;}
1997 ac_cache_corrupted=:
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2003 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2004 *) ac_arg=$ac_var=$ac_new_val ;;
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012 if $ac_cache_corrupted; then
2013 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2014 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2015 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2016 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2017 { (exit 1); exit 1; }; }
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2061 for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if test -f "$ac_dir/install-sh"; then
2064 ac_install_sh="$ac_aux_dir/install-sh -c"
2066 elif test -f "$ac_dir/install.sh"; then
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2070 elif test -f "$ac_dir/shtool"; then
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 if test -z "$ac_aux_dir"; then
2077 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2079 { (exit 1); exit 1; }; }
2082 # These three variables are undocumented and unsupported,
2083 # and are intended to be withdrawn in a future Autoconf release.
2084 # They can cause serious problems if a builder's source tree is in a directory
2085 # whose full name contains unusual characters.
2086 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2092 if test ${srcdir} != "." ; then
2093 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2094 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2095 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2096 { (exit 1); exit 1; }; }
2100 for i in `ls ${srcdir}/projects
`
2102 if test -d ${srcdir}/projects/${i} ; then
2105 sample) subdirs="$subdirs projects/sample"
2107 privbracket) subdirs="$subdirs projects/privbracket"
2109 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2111 # llvm-test is the old name of the test-suite, kept here for backwards
2113 llvm-test) subdirs="$subdirs projects/llvm-test"
2115 test-suite) subdirs="$subdirs projects/test-suite"
2117 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2119 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2121 llvm-java) subdirs="$subdirs projects/llvm-java"
2123 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2125 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2127 poolalloc) subdirs="$subdirs projects/poolalloc"
2129 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2132 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2133 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: checking build system type" >&5
2147 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 ac_build_alias=$build_alias
2152 test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154 test "x$ac_build_alias" = x &&
2155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
2158 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165 echo "${ECHO_T}$ac_cv_build" >&6; }
2166 case $ac_cv_build in
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169 echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2173 ac_save_IFS=$IFS; IFS='-'
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2183 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2186 { echo "$as_me:$LINENO: checking host system type" >&5
2187 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 if test "x$host_alias" = x; then
2192 ac_cv_host=$ac_cv_build
2194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2201 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206 echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2210 ac_save_IFS=$IFS; IFS='-'
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2220 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2223 { echo "$as_me:$LINENO: checking target system type" >&5
2224 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2225 if test "${ac_cv_target+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test "x$target_alias" = x; then
2229 ac_cv_target=$ac_cv_host
2231 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2234 { (exit 1); exit 1; }; }
2238 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239 echo "${ECHO_T}$ac_cv_target" >&6; }
2240 case $ac_cv_target in
2242 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243 echo "$as_me: error: invalid value of canonical target" >&2;}
2244 { (exit 1); exit 1; }; };;
2246 target=$ac_cv_target
2247 ac_save_IFS=$IFS; IFS='-'
2253 # Remember, the first character of IFS is used to create $*,
2254 # except with old shells:
2257 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2260 # The aliases save the names the user supplied, while $host etc.
2261 # will get canonicalized.
2262 test -n "$target_alias" &&
2263 test "$program_prefix$program_suffix$program_transform_name" = \
2265 program_prefix=${target_alias}-
2267 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2268 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2269 if test "${llvm_cv_os_type+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="AIX"
2277 llvm_cv_platform_type="Unix" ;;
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="IRIX"
2282 llvm_cv_platform_type="Unix" ;;
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Cygwin"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option="-Wl,-all_load"
2290 llvm_cv_no_link_all_option="-Wl,-noall_load"
2291 llvm_cv_os_type="Darwin"
2292 llvm_cv_platform_type="Unix" ;;
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="FreeBSD"
2297 llvm_cv_platform_type="Unix" ;;
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="OpenBSD"
2302 llvm_cv_platform_type="Unix" ;;
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="NetBSD"
2307 llvm_cv_platform_type="Unix" ;;
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="DragonFly"
2312 llvm_cv_platform_type="Unix" ;;
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="HP-UX"
2317 llvm_cv_platform_type="Unix" ;;
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="Interix"
2322 llvm_cv_platform_type="Unix" ;;
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="Linux"
2327 llvm_cv_platform_type="Unix" ;;
2329 llvm_cv_link_all_option="-Wl,-z,allextract"
2330 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2331 llvm_cv_os_type="SunOS"
2332 llvm_cv_platform_type="Unix" ;;
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="Win32"
2337 llvm_cv_platform_type="Win32" ;;
2339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341 llvm_cv_os_type="MingW"
2342 llvm_cv_platform_type="Win32" ;;
2344 llvm_cv_link_all_option=""
2345 llvm_cv_no_link_all_option=""
2346 llvm_cv_os_type="Unknown"
2347 llvm_cv_platform_type="Unknown" ;;
2350 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
2362 LINKALL=$llvm_cv_link_all_option
2364 NOLINKALL=$llvm_cv_no_link_all_option
2367 case $llvm_cv_platform_type in
2370 cat >>confdefs.h <<\_ACEOF
2371 #define LLVM_ON_UNIX 1
2381 cat >>confdefs.h <<\_ACEOF
2382 #define LLVM_ON_WIN32 1
2392 { echo "$as_me:$LINENO: checking target architecture" >&5
2393 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2394 if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 i?86-*) llvm_cv_target_arch="x86" ;;
2399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2403 arm*-*) llvm_cv_target_arch="ARM" ;;
2404 mips-*) llvm_cv_target_arch="Mips" ;;
2405 pic16-*) llvm_cv_target_arch="PIC16" ;;
2406 xcore-*) llvm_cv_target_arch="XCore" ;;
2407 msp430-*) llvm_cv_target_arch="MSP430" ;;
2408 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427 ARCH=$llvm_cv_target_arch
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log
' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details.
" >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2796 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2797 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2809 for ac_file in $ac_files
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 if { (ac_try="$ac_link_default"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file in $ac_files
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2861 echo "$as_me: failed program was
:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2865 See \
`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log
' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try='.
/$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2894 if test "$cross_compiling" = maybe; then
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \
`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details.
" >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result
: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2915 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2920 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2946 See \
`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log
' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2999 echo "$as_me: failed program was:" >&5
3000 sed 's
/^
/|
/' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details.
" >&5
3004 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3005 See \
`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3042 *) ac_try_echo
=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1
>conftest.err
3049 cat conftest.err
>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3065 *) ac_try_echo
=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.
$ac_ext >&5
3080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3081 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS
=${CFLAGS+set}
3088 ac_save_CFLAGS
=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 ac_save_c_werror_flag
=$ac_c_werror_flag
3095 ac_c_werror_flag
=yes
3098 cat >conftest.
$ac_ext <<_ACEOF
3101 cat confdefs.h
>>conftest.
$ac_ext
3102 cat >>conftest.
$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.
$ac_objext
3114 if { (ac_try
="$ac_compile"
3116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3130 *) ac_try_echo
=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3172 *) ac_try_echo
=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1
>conftest.err
3179 cat conftest.err
>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3195 *) ac_try_echo
=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.
$ac_ext >&5
3207 ac_c_werror_flag
=$ac_save_c_werror_flag
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.
$ac_objext
3225 if { (ac_try
="$ac_compile"
3227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3241 *) ac_try_echo
=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3286 if test "$GCC" = yes; then
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_cv_prog_cc_c89=no
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3323 s = g (p, va_arg (v,int));
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3364 *) ac_try_echo
=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1
>conftest.err
3371 cat conftest.err
>&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3387 *) ac_try_echo
=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89
=$ac_arg
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3402 rm -f core conftest.err conftest.
$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3405 rm -f conftest.
$ac_ext
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC
="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 ac_cpp
='$CPP $CPPFLAGS'
3426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3432 ac_cpp
='$CPP $CPPFLAGS'
3433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 # Double quotes because CPP needs to be expanded
3447 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 for ac_c_preproc_warn_flag
in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.
$ac_ext <<_ACEOF
3461 cat confdefs.h
>>conftest.
$ac_ext
3462 cat >>conftest.
$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3465 # include <limits.h>
3467 # include <assert.h>
3471 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3518 *) ac_try_echo
=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1
>conftest.err
3525 cat conftest.err
>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev
/null
; then
3528 if test -s conftest.err
; then
3529 ac_cpp_err
=$ac_c_preproc_warn_flag
3530 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.
$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.
$ac_ext
3554 if $ac_preproc_ok; then
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3569 for ac_c_preproc_warn_flag
in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.
$ac_ext <<_ACEOF
3580 cat confdefs.h
>>conftest.
$ac_ext
3581 cat >>conftest.
$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3637 *) ac_try_echo
=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1
>conftest.err
3644 cat conftest.err
>&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev
/null
; then
3647 if test -s conftest.err
; then
3648 ac_cpp_err
=$ac_c_preproc_warn_flag
3649 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.
$ac_ext >&5
3663 # Passes both tests.
3668 rm -f conftest.err conftest.
$ac_ext
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.
$ac_ext
3673 if $ac_preproc_ok; then
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cpp
='$CPP $CPPFLAGS'
3685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy
grep ggrep
; ac_prog_name
=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_path_GREP_found
=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3707 test -z "$as_dir" && as_dir
=.
3708 for ac_prog
in grep ggrep
; do
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3716 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3727 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3728 ac_count
=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP
="$ac_path_GREP"
3732 ac_path_GREP_max
=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3741 $ac_path_GREP_found && break 3
3751 GREP
="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3759 ac_cv_path_GREP
=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP
="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3775 then ac_cv_path_EGREP
="$GREP -E"
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy
egrep; ac_prog_name
=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_path_EGREP_found
=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3789 test -z "$as_dir" && as_dir
=.
3790 for ac_prog
in egrep; do
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3809 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3810 ac_count
=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP
="$ac_path_EGREP"
3814 ac_path_EGREP_max
=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3823 $ac_path_EGREP_found && break 3
3833 EGREP
="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3841 ac_cv_path_EGREP
=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP
="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.
$ac_ext <<_ACEOF
3860 cat confdefs.h
>>conftest.
$ac_ext
3861 cat >>conftest.
$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3876 rm -f conftest.
$ac_objext
3877 if { (ac_try
="$ac_compile"
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try
='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3935 ac_cv_header_stdc=no
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3956 ac_cv_header_stdc=no
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4002 *) ac_try_echo
=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4076 *) ac_try_echo
=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1
>conftest.err
4083 cat conftest.err
>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4099 *) ac_try_echo
=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.
$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 ac_res
=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h
<<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4155 rm -f conftest.
$ac_objext
4156 if { (ac_try
="$ac_compile"
4158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4172 *) ac_try_echo
=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try
='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4202 #if BYTE_ORDER != BIG_ENDIAN
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4214 *) ac_try_echo
=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4219 grep -v '^ *+' conftest.er1
>conftest.err
4221 cat conftest.err
>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4237 *) ac_try_echo
=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian
=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4249 ac_cv_c_bigendian
=no
4252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.
$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian
=unknown
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4276 _ascii (); _ebcdic ();
4281 rm -f conftest.
$ac_objext
4282 if { (ac_try
="$ac_compile"
4284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4298 *) ac_try_echo
=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4346 /* Are we little or big endian? From Harbison&Steele. */
4350 char c[sizeof (long int)];
4353 return u.c[sizeof (long int) - 1] == 1;
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4363 *) ac_try_echo
=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4728 LLVM_CROSS_COMPILING=0
4732 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4750 if test ${enableval} = "no" ; then
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4765 if test ${enableval} = "no" ; then
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4780 if test ${enableval} = "yes" ; then
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4801 ENABLE_EXPENSIVE_CHECKS=
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4814 if test ${enableval} = "no" ; then
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-jit was given.
4823 if test "${enable_jit+set}" = set; then
4824 enableval=$enable_jit;
4829 if test ${enableval} = "no"
4834 case "$llvm_cv_target_arch" in
4835 x86) TARGET_HAS_JIT=1
4837 Sparc) TARGET_HAS_JIT=0
4839 PowerPC) TARGET_HAS_JIT=1
4841 x86_64) TARGET_HAS_JIT=1
4843 Alpha) TARGET_HAS_JIT=1
4845 ARM) TARGET_HAS_JIT=0
4847 Mips) TARGET_HAS_JIT=0
4849 PIC16) TARGET_HAS_JIT=0
4851 XCore) TARGET_HAS_JIT=0
4853 MSP430) TARGET_HAS_JIT=0
4855 SystemZ) TARGET_HAS_JIT=0
4862 # Check whether --enable-doxygen was given.
4863 if test "${enable_doxygen+set}" = set; then
4864 enableval=$enable_doxygen;
4869 case "$enableval" in
4870 yes) ENABLE_DOXYGEN=1
4872 no) ENABLE_DOXYGEN=0
4874 default) ENABLE_DOXYGEN=0
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4881 # Check whether --enable-threads was given.
4882 if test "${enable_threads+set}" = set; then
4883 enableval=$enable_threads;
4888 case "$enableval" in
4889 yes) ENABLE_THREADS=1
4891 no) ENABLE_THREADS=0
4893 default) ENABLE_THREADS=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 cat >>confdefs.h <<_ACEOF
4901 #define ENABLE_THREADS $ENABLE_THREADS
4905 # Check whether --enable-pic was given.
4906 if test "${enable_pic+set}" = set; then
4907 enableval=$enable_pic;
4912 case "$enableval" in
4917 default) ENABLE_PIC=1
4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4921 { (exit 1); exit 1; }; } ;;
4924 cat >>confdefs.h <<_ACEOF
4925 #define ENABLE_PIC $ENABLE_PIC
4930 # Check whether --enable-targets was given.
4931 if test "${enable_targets+set}" = set; then
4932 enableval=$enable_targets;
4937 case "$enableval" in
4938 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4940 case "$llvm_cv_target_arch" in
4941 x86) TARGETS_TO_BUILD="X86" ;;
4942 x86_64) TARGETS_TO_BUILD="X86" ;;
4943 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4944 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4945 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4946 ARM) TARGETS_TO_BUILD="ARM" ;;
4947 Mips) TARGETS_TO_BUILD="Mips" ;;
4948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4950 XCore) TARGETS_TO_BUILD="XCore" ;;
4951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4952 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
4953 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4954 echo "$as_me: error: Can not set target to build" >&2;}
4955 { (exit 1); exit 1; }; } ;;
4958 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4960 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4963 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4964 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4972 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4973 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4974 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4975 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4976 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4982 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985 # Determine whether we are building LLVM support for the native architecture.
4986 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4987 for a_target in $TARGETS_TO_BUILD; do
4988 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4989 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4991 cat >>confdefs.h <<_ACEOF
4992 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4998 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4999 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5000 LLVM_ENUM_TARGETS=""
5001 LLVM_ENUM_ASM_PRINTERS=""
5002 LLVM_ENUM_ASM_PARSERS=""
5003 for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5016 # Check whether --enable-cbe-printf-a was given.
5017 if test "${enable_cbe_printf_a+set}" = set; then
5018 enableval=$enable_cbe_printf_a;
5023 case "$enableval" in
5024 yes) ENABLE_CBE_PRINTF_A=1
5026 no) ENABLE_CBE_PRINTF_A=0
5028 default) ENABLE_CBE_PRINTF_A=1
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5031 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5035 cat >>confdefs.h <<_ACEOF
5036 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5041 # Check whether --with-llvmgccdir was given.
5042 if test "${with_llvmgccdir+set}" = set; then
5043 withval=$with_llvmgccdir;
5049 default) WITH_LLVMGCCDIR=default ;;
5050 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5052 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5057 # Check whether --with-llvmgcc was given.
5058 if test "${with_llvmgcc+set}" = set; then
5059 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5065 # Check whether --with-llvmgxx was given.
5066 if test "${with_llvmgxx+set}" = set; then
5067 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5072 if test -n "$LLVMGCC"; then
5073 LLVMGCCCOMMAND="$LLVMGCC"
5076 if test -n "$LLVMGXX"; then
5077 LLVMGXXCOMMAND="$LLVMGXX"
5080 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083 { (exit 1); exit 1; }; };
5086 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089 { (exit 1); exit 1; }; };
5093 # Check whether --with-extra-options was given.
5094 if test "${with_extra_options+set}" = set; then
5095 withval=$with_extra_options;
5101 default) EXTRA_OPTIONS= ;;
5102 *) EXTRA_OPTIONS=$withval ;;
5104 EXTRA_OPTIONS=$EXTRA_OPTIONS
5107 # Check whether --enable-bindings was given.
5108 if test "${enable_bindings+set}" = set; then
5109 enableval=$enable_bindings;
5114 BINDINGS_TO_BUILD=""
5115 case "$enableval" in
5116 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5117 all ) BINDINGS_TO_BUILD="ocaml" ;;
5118 none | no) BINDINGS_TO_BUILD="" ;;
5119 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5120 case "$a_binding" in
5121 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5131 # Check whether --with-ocaml-libdir was given.
5132 if test "${with_ocaml_libdir+set}" = set; then
5133 withval=$with_ocaml_libdir;
5139 auto) with_ocaml_libdir="$withval" ;;
5140 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5147 # Check whether --with-binutils-include was given.
5148 if test "${with_binutils_include+set}" = set; then
5149 withval=$with_binutils_include;
5155 default) WITH_BINUTILS_INCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5161 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5164 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168 { (exit 1); exit 1; }; };
5172 # Check whether --enable-libffi was given.
5173 if test "${enable_libffi+set}" = set; then
5174 enableval=$enable_libffi;
5179 case "$enableval" in
5180 yes) llvm_cv_enable_libffi="yes" ;;
5181 no) llvm_cv_enable_libffi="no" ;;
5182 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5187 if test "$llvm_cv_os_type" = "Win32" ; then
5193 # Check whether --enable-llvmc-dynamic was given.
5194 if test "${enable_llvmc_dynamic+set}" = set; then
5195 enableval=$enable_llvmc_dynamic;
5197 enableval=$llvmc_dynamic
5200 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5201 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5204 ENABLE_LLVMC_DYNAMIC=
5208 # Check whether --enable-llvmc-dynamic-plugins was given.
5209 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5210 enableval=$enable_llvmc_dynamic_plugins;
5215 if test ${enableval} = "yes" ; then
5216 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5219 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5243 for ac_c_preproc_warn_flag in '' yes
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5258 # include <limits.h>
5260 # include <assert.h>
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5267 *) ac_try_echo
=$ac_try;;
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1
>conftest.err
5274 cat conftest.err
>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev
/null
; then
5277 if test -s conftest.err
; then
5278 ac_cpp_err
=$ac_c_preproc_warn_flag
5279 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5286 if test -z "$ac_cpp_err"; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.
$ac_ext >&5
5292 # Broken: fails on valid input.
5296 rm -f conftest.err conftest.
$ac_ext
5298 # OK, works on sane cases. Now check whether nonexistent headers
5299 # can be detected and how.
5300 cat >conftest.
$ac_ext <<_ACEOF
5303 cat confdefs.h
>>conftest.
$ac_ext
5304 cat >>conftest.
$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5308 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5316 grep -v '^ *+' conftest.er1 >conftest.err
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } >/dev/null; then
5321 if test -s conftest.err; then
5322 ac_cpp_err=$ac_c_preproc_warn_flag
5323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5330 if test -z "$ac_cpp_err"; then
5331 # Broken: success on invalid input.
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 # Passes both tests.
5342 rm -f conftest.err conftest.$ac_ext
5345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5346 rm -f conftest.err conftest.
$ac_ext
5347 if $ac_preproc_ok; then
5359 { echo "$as_me:$LINENO: result: $CPP" >&5
5360 echo "${ECHO_T}$CPP" >&6; }
5362 for ac_c_preproc_warn_flag
in '' yes
5364 # Use a header file that comes with gcc, so configuring glibc
5365 # with a fresh cross-compiler works.
5366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5367 # <limits.h> exists even on freestanding compilers.
5368 # On the NeXT, cc -E runs the code through the compiler's parser,
5369 # not just through cpp. "Syntax error" is here to catch this case.
5370 cat >conftest.
$ac_ext <<_ACEOF
5373 cat confdefs.h
>>conftest.
$ac_ext
5374 cat >>conftest.
$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5377 # include <limits.h>
5379 # include <assert.h>
5383 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null; then
5396 if test -s conftest.err; then
5397 ac_cpp_err=$ac_c_preproc_warn_flag
5398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5405 if test -z "$ac_cpp_err"; then
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 # Broken: fails on valid input.
5415 rm -f conftest.err conftest.$ac_ext
5417 # OK, works on sane cases. Now check whether nonexistent headers
5418 # can be detected and how.
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 #include <ac_nonexistent.h>
5427 if { (ac_try="$ac_cpp conftest.$ac_ext"
5429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5430 *) ac_try_echo
=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1
>conftest.err
5437 cat conftest.err
>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev
/null
; then
5440 if test -s conftest.err
; then
5441 ac_cpp_err
=$ac_c_preproc_warn_flag
5442 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5449 if test -z "$ac_cpp_err"; then
5450 # Broken: success on invalid input.
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.
$ac_ext >&5
5456 # Passes both tests.
5461 rm -f conftest.err conftest.
$ac_ext
5464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5465 rm -f conftest.err conftest.
$ac_ext
5466 if $ac_preproc_ok; then
5469 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5470 See \`config.log' for more details." >&5
5471 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5472 See \`config.log' for more details." >&2;}
5473 { (exit 1); exit 1; }; }
5477 ac_cpp
='$CPP $CPPFLAGS'
5478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5483 ac_cpp
='$CPP $CPPFLAGS'
5484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5487 if test -n "$ac_tool_prefix"; then
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_CC+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 if test -n "$CC"; then
5498 ac_cv_prog_CC
="$CC" # Let the user override the test.
5500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir
=.
5505 for ac_exec_ext
in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 if test -n "$CC"; then
5519 { echo "$as_me:$LINENO: result: $CC" >&5
5520 echo "${ECHO_T}$CC" >&6; }
5522 { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5527 test -n "$CC" && break
5530 if test -z "$CC"; then
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy
$ac_prog; ac_word
=$2
5536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 if test -n "$ac_ct_CC"; then
5542 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir
=.
5549 for ac_exec_ext
in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_CC
="$ac_prog"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5562 if test -n "$ac_ct_CC"; then
5563 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5564 echo "${ECHO_T}$ac_ct_CC" >&6; }
5566 { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5571 test -n "$ac_ct_CC" && break
5574 if test "x$ac_ct_CC" = x
; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5580 whose name does not start with the host triplet. If you think this
5581 configuration is useful to you, please write to autoconf@gnu.org." >&5
5582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5583 whose name does not start with the host triplet. If you think this
5584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5585 ac_tool_warned
=yes ;;
5592 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5593 See \`config.log' for more details." >&5
5594 echo "$as_me: error: no acceptable C compiler found in \$PATH
5595 See \`config.log' for more details." >&2;}
5596 { (exit 1); exit 1; }; }
5598 # Provide some information about the compiler.
5599 echo "$as_me:$LINENO: checking for C compiler version" >&5
5600 ac_compiler
=`set X $ac_compile; echo $2`
5601 { (ac_try
="$ac_compiler --version >&5"
5603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compiler --version >&5") 2>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611 { (ac_try="$ac_compiler -v >&5"
5613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5614 *) ac_try_echo
=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compiler -v >&5") 2>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }
5621 { (ac_try
="$ac_compiler -V >&5"
5623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler -V >&5") 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5632 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5659 *) ac_try_echo
=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1
>conftest.err
5666 cat conftest.err
>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (case "(($ac_try" in
5671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5682 *) ac_try_echo
=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.
$ac_ext >&5
5697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5698 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5701 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5702 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5703 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5704 ac_test_CFLAGS
=${CFLAGS+set}
5705 ac_save_CFLAGS
=$CFLAGS
5706 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5707 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5708 if test "${ac_cv_prog_cc_g+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 ac_save_c_werror_flag
=$ac_c_werror_flag
5712 ac_c_werror_flag
=yes
5715 cat >conftest.
$ac_ext <<_ACEOF
5718 cat confdefs.h
>>conftest.
$ac_ext
5719 cat >>conftest.
$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5730 rm -f conftest.
$ac_objext
5731 if { (ac_try
="$ac_compile"
5733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5747 *) ac_try_echo
=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try
='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5770 cat >conftest.$ac_ext <<_ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5789 *) ac_try_echo
=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1
>conftest.err
5796 cat conftest.err
>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (case "(($ac_try" in
5801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5812 *) ac_try_echo
=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.
$ac_ext >&5
5824 ac_c_werror_flag
=$ac_save_c_werror_flag
5826 cat >conftest.
$ac_ext <<_ACEOF
5829 cat confdefs.h
>>conftest.
$ac_ext
5830 cat >>conftest.
$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5841 rm -f conftest.
$ac_objext
5842 if { (ac_try
="$ac_compile"
5844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_compile") 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5858 *) ac_try_echo
=$ac_try;;
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; } &&
5865 { ac_try
='test -s conftest.$ac_objext'
5866 { (case "(($ac_try" in
5867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_try") 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 ac_c_werror_flag=$ac_save_c_werror_flag
5892 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5893 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5894 if test "$ac_test_CFLAGS" = set; then
5895 CFLAGS=$ac_save_CFLAGS
5896 elif test $ac_cv_prog_cc_g = yes; then
5897 if test "$GCC" = yes; then
5903 if test "$GCC" = yes; then
5909 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5910 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_cc_c89+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_cv_prog_cc_c89=no
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5924 #include <sys/types.h>
5925 #include <sys/stat.h>
5926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5927 struct buf { int x; };
5928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5929 static char *e (p, i)
5935 static char *f (char * (*g) (char **, int), char **p, ...)
5940 s = g (p, va_arg (v,int));
5945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5946 function prototypes and stuff, but not '\xHH' hex character constants.
5947 These don't provoke an error unfortunately, instead are silently treated
5948 as 'x'. The following induces an error, until -std is added to get
5949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5950 array size at least. It's necessary to write '\x00'==0 to get something
5951 that's true only with -std. */
5952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5955 inside strings and character constants. */
5957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5959 int test (int i, double x);
5960 struct s1 {int (*f) (int a);};
5961 struct s2 {int (*f) (double a);};
5962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5976 CC="$ac_save_CC $ac_arg"
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5981 *) ac_try_echo
=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5992 { (case "(($ac_try" in
5993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6004 *) ac_try_echo
=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_prog_cc_c89
=$ac_arg
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.
$ac_ext >&5
6019 rm -f core conftest.err conftest.
$ac_objext
6020 test "x$ac_cv_prog_cc_c89" != "xno" && break
6022 rm -f conftest.
$ac_ext
6027 case "x$ac_cv_prog_cc_c89" in
6029 { echo "$as_me:$LINENO: result: none needed" >&5
6030 echo "${ECHO_T}none needed" >&6; } ;;
6032 { echo "$as_me:$LINENO: result: unsupported" >&5
6033 echo "${ECHO_T}unsupported" >&6; } ;;
6035 CC
="$CC $ac_cv_prog_cc_c89"
6036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6037 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6042 ac_cpp
='$CPP $CPPFLAGS'
6043 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6048 ac_cpp
='$CXXCPP $CPPFLAGS'
6049 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6052 if test -z "$CXX"; then
6053 if test -n "$CCC"; then
6056 if test -n "$ac_tool_prefix"; then
6059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6060 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_CXX+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 if test -n "$CXX"; then
6067 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6073 test -z "$as_dir" && as_dir
=.
6074 for ac_exec_ext
in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 if test -n "$CXX"; then
6088 { echo "$as_me:$LINENO: result: $CXX" >&5
6089 echo "${ECHO_T}$CXX" >&6; }
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6096 test -n "$CXX" && break
6099 if test -z "$CXX"; then
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy
$ac_prog; ac_word
=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$ac_ct_CXX"; then
6111 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir
=.
6118 for ac_exec_ext
in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6131 if test -n "$ac_ct_CXX"; then
6132 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6133 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6140 test -n "$ac_ct_CXX" && break
6143 if test "x$ac_ct_CXX" = x
; then
6146 case $cross_compiling:$ac_tool_warned in
6148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149 whose name does not start with the host triplet. If you think this
6150 configuration is useful to you, please write to autoconf@gnu.org." >&5
6151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152 whose name does not start with the host triplet. If you think this
6153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6154 ac_tool_warned
=yes ;;
6162 # Provide some information about the compiler.
6163 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6164 ac_compiler
=`set X $ac_compile; echo $2`
6165 { (ac_try
="$ac_compiler --version >&5"
6167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compiler --version >&5") 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }
6175 { (ac_try="$ac_compiler -v >&5"
6177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6178 *) ac_try_echo
=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_compiler -v >&5") 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }
6185 { (ac_try
="$ac_compiler -V >&5"
6187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compiler -V >&5") 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }
6196 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6197 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6198 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6223 *) ac_try_echo
=$ac_try;;
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1
>conftest.err
6230 cat conftest.err
>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6234 { (case "(($ac_try" in
6235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (case "(($ac_try" in
6245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6246 *) ac_try_echo
=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_try") 2>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6265 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6266 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6267 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6268 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6269 ac_save_CXXFLAGS
=$CXXFLAGS
6270 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6271 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6272 if test "${ac_cv_prog_cxx_g+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6276 ac_cxx_werror_flag
=yes
6279 cat >conftest.
$ac_ext <<_ACEOF
6282 cat confdefs.h
>>conftest.
$ac_ext
6283 cat >>conftest.
$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6294 rm -f conftest.
$ac_objext
6295 if { (ac_try
="$ac_compile"
6297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6311 *) ac_try_echo
=$ac_try;;
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try
='test -s conftest.$ac_objext'
6319 { (case "(($ac_try" in
6320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_prog_cxx_g=yes
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6353 *) ac_try_echo
=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1
>conftest.err
6360 cat conftest.err
>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6376 *) ac_try_echo
=$ac_try;;
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.
$ac_ext >&5
6388 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6405 rm -f conftest.
$ac_objext
6406 if { (ac_try
="$ac_compile"
6408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6422 *) ac_try_echo
=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try
='test -s conftest.$ac_objext'
6430 { (case "(($ac_try" in
6431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_try") 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_prog_cxx_g=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6456 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6457 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6458 if test "$ac_test_CXXFLAGS" = set; then
6459 CXXFLAGS=$ac_save_CXXFLAGS
6460 elif test $ac_cv_prog_cxx_g = yes; then
6461 if test "$GXX" = yes; then
6467 if test "$GXX" = yes; then
6474 ac_cpp='$CPP $CPPFLAGS'
6475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6481 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6482 if test "${lt_cv_path_NM+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test -n "$NM"; then
6486 # Let the user override the test.
6489 lt_nm_to_check="${ac_tool_prefix}nm"
6490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6491 lt_nm_to_check="$lt_nm_to_check nm"
6493 for lt_tmp_nm in $lt_nm_to_check; do
6494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497 test -z "$ac_dir" && ac_dir=.
6498 tmp_nm="$ac_dir/$lt_tmp_nm"
6499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6500 # Check to see if the nm accepts a BSD-compat flag.
6501 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6502 # nm: unknown option "B" ignored
6503 # Tru64's nm complains that
/dev
/null is an invalid object
file
6504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6505 */dev
/null
* |
*'Invalid file or object type'*)
6506 lt_cv_path_NM
="$tmp_nm -B"
6510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512 lt_cv_path_NM
="$tmp_nm -p"
6516 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6517 continue # so that we can try to find one that supports BSD flags
6526 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6529 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6530 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6535 { echo "$as_me:$LINENO: checking for GNU make" >&5
6536 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6537 if test "${llvm_cv_gnu_make_command+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 llvm_cv_gnu_make_command
=''
6541 for a
in "$MAKE" make gmake gnumake
; do
6542 if test -z "$a" ; then continue ; fi ;
6543 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6545 llvm_cv_gnu_make_command
=$a ;
6550 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6551 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6552 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6556 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6557 echo "${ECHO_T}\"Not found\"" >&6; };
6561 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6564 if test "$LN_S" = "ln -s"; then
6565 { echo "$as_me:$LINENO: result: yes" >&5
6566 echo "${ECHO_T}yes" >&6; }
6568 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6569 echo "${ECHO_T}no, using $LN_S" >&6; }
6572 # Extract the first word of "cmp", so it can be a program name with args.
6573 set dummy
cmp; ac_word
=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_CMP+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir
=.
6589 for ac_exec_ext
in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6604 if test -n "$CMP"; then
6605 { echo "$as_me:$LINENO: result: $CMP" >&5
6606 echo "${ECHO_T}$CMP" >&6; }
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6613 # Extract the first word of "cp", so it can be a program name with args.
6614 set dummy
cp; ac_word
=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_CP+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir
=.
6630 for ac_exec_ext
in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6645 if test -n "$CP"; then
6646 { echo "$as_me:$LINENO: result: $CP" >&5
6647 echo "${ECHO_T}$CP" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 # Extract the first word of "date", so it can be a program name with args.
6655 set dummy
date; ac_word
=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_DATE+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir
=.
6671 for ac_exec_ext
in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6685 DATE
=$ac_cv_path_DATE
6686 if test -n "$DATE"; then
6687 { echo "$as_me:$LINENO: result: $DATE" >&5
6688 echo "${ECHO_T}$DATE" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 # Extract the first word of "find", so it can be a program name with args.
6696 set dummy
find; ac_word
=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_FIND+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir
=.
6712 for ac_exec_ext
in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6726 FIND
=$ac_cv_path_FIND
6727 if test -n "$FIND"; then
6728 { echo "$as_me:$LINENO: result: $FIND" >&5
6729 echo "${ECHO_T}$FIND" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 # Extract the first word of "grep", so it can be a program name with args.
6737 set dummy
grep; ac_word
=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_GREP+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir
=.
6753 for ac_exec_ext
in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6767 GREP
=$ac_cv_path_GREP
6768 if test -n "$GREP"; then
6769 { echo "$as_me:$LINENO: result: $GREP" >&5
6770 echo "${ECHO_T}$GREP" >&6; }
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6777 # Extract the first word of "mkdir", so it can be a program name with args.
6778 set dummy mkdir
; ac_word
=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_MKDIR+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir
=.
6794 for ac_exec_ext
in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6808 MKDIR
=$ac_cv_path_MKDIR
6809 if test -n "$MKDIR"; then
6810 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6811 echo "${ECHO_T}$MKDIR" >&6; }
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6818 # Extract the first word of "mv", so it can be a program name with args.
6819 set dummy
mv; ac_word
=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_MV+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir
=.
6835 for ac_exec_ext
in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6850 if test -n "$MV"; then
6851 { echo "$as_me:$LINENO: result: $MV" >&5
6852 echo "${ECHO_T}$MV" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6861 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_RANLIB+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 if test -n "$RANLIB"; then
6868 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir
=.
6875 for ac_exec_ext
in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 RANLIB
=$ac_cv_prog_RANLIB
6888 if test -n "$RANLIB"; then
6889 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6890 echo "${ECHO_T}$RANLIB" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6898 if test -z "$ac_cv_prog_RANLIB"; then
6899 ac_ct_RANLIB
=$RANLIB
6900 # Extract the first word of "ranlib", so it can be a program name with args.
6901 set dummy ranlib
; ac_word
=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 if test -n "$ac_ct_RANLIB"; then
6908 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir
=.
6915 for ac_exec_ext
in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6928 if test -n "$ac_ct_RANLIB"; then
6929 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6930 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6936 if test "x$ac_ct_RANLIB" = x
; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned
=yes ;;
6949 RANLIB
=$ac_ct_RANLIB
6952 RANLIB
="$ac_cv_prog_RANLIB"
6955 # Extract the first word of "rm", so it can be a program name with args.
6956 set dummy
rm; ac_word
=$2
6957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959 if test "${ac_cv_path_RM+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir
=.
6972 for ac_exec_ext
in '' $ac_executable_extensions; do
6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6974 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6987 if test -n "$RM"; then
6988 { echo "$as_me:$LINENO: result: $RM" >&5
6989 echo "${ECHO_T}$RM" >&6; }
6991 { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6996 # Extract the first word of "sed", so it can be a program name with args.
6997 set dummy
sed; ac_word
=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_SED+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir
=.
7013 for ac_exec_ext
in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7028 if test -n "$SED"; then
7029 { echo "$as_me:$LINENO: result: $SED" >&5
7030 echo "${ECHO_T}$SED" >&6; }
7032 { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7037 # Extract the first word of "tar", so it can be a program name with args.
7038 set dummy
tar; ac_word
=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_TAR+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir
=.
7054 for ac_exec_ext
in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7069 if test -n "$TAR"; then
7070 { echo "$as_me:$LINENO: result: $TAR" >&5
7071 echo "${ECHO_T}$TAR" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "pwd", so it can be a program name with args.
7079 set dummy
pwd; ac_word
=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_BINPWD+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir
=.
7095 for ac_exec_ext
in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7109 BINPWD
=$ac_cv_path_BINPWD
7110 if test -n "$BINPWD"; then
7111 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7112 echo "${ECHO_T}$BINPWD" >&6; }
7114 { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "Graphviz", so it can be a program name with args.
7121 set dummy Graphviz
; ac_word
=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir
=.
7137 for ac_exec_ext
in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7151 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7152 if test -n "$GRAPHVIZ"; then
7153 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7154 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7163 cat >>confdefs.h
<<\_ACEOF
7164 #define HAVE_GRAPHVIZ 1
7167 if test "$llvm_cv_os_type" = "MingW" ; then
7168 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7171 cat >>confdefs.h
<<_ACEOF
7172 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7176 # Extract the first word of "dot", so it can be a program name with args.
7177 set dummy dot
; ac_word
=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_DOT+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir
=.
7193 for ac_exec_ext
in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7208 if test -n "$DOT"; then
7209 { echo "$as_me:$LINENO: result: $DOT" >&5
7210 echo "${ECHO_T}$DOT" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7217 if test "$DOT" != "echo dot" ; then
7219 cat >>confdefs.h
<<\_ACEOF
7223 if test "$llvm_cv_os_type" = "MingW" ; then
7224 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7227 cat >>confdefs.h
<<_ACEOF
7228 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7232 # Extract the first word of "fdp", so it can be a program name with args.
7233 set dummy fdp
; ac_word
=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_FDP+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir
=.
7249 for ac_exec_ext
in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7264 if test -n "$FDP"; then
7265 { echo "$as_me:$LINENO: result: $FDP" >&5
7266 echo "${ECHO_T}$FDP" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7273 if test "$FDP" != "echo fdp" ; then
7275 cat >>confdefs.h
<<\_ACEOF
7279 if test "$llvm_cv_os_type" = "MingW" ; then
7280 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7283 cat >>confdefs.h
<<_ACEOF
7284 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7288 # Extract the first word of "neato", so it can be a program name with args.
7289 set dummy neato
; ac_word
=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_path_NEATO+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir
=.
7305 for ac_exec_ext
in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7319 NEATO
=$ac_cv_path_NEATO
7320 if test -n "$NEATO"; then
7321 { echo "$as_me:$LINENO: result: $NEATO" >&5
7322 echo "${ECHO_T}$NEATO" >&6; }
7324 { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7329 if test "$NEATO" != "echo neato" ; then
7331 cat >>confdefs.h
<<\_ACEOF
7332 #define HAVE_NEATO 1
7335 if test "$llvm_cv_os_type" = "MingW" ; then
7336 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7339 cat >>confdefs.h
<<_ACEOF
7340 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7344 # Extract the first word of "twopi", so it can be a program name with args.
7345 set dummy twopi
; ac_word
=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_TWOPI+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_exec_ext
in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7375 TWOPI
=$ac_cv_path_TWOPI
7376 if test -n "$TWOPI"; then
7377 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7378 echo "${ECHO_T}$TWOPI" >&6; }
7380 { echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6; }
7385 if test "$TWOPI" != "echo twopi" ; then
7387 cat >>confdefs.h
<<\_ACEOF
7388 #define HAVE_TWOPI 1
7391 if test "$llvm_cv_os_type" = "MingW" ; then
7392 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7395 cat >>confdefs.h
<<_ACEOF
7396 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7400 # Extract the first word of "circo", so it can be a program name with args.
7401 set dummy circo
; ac_word
=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_CIRCO+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir
=.
7417 for ac_exec_ext
in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7431 CIRCO
=$ac_cv_path_CIRCO
7432 if test -n "$CIRCO"; then
7433 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7434 echo "${ECHO_T}$CIRCO" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 if test "$CIRCO" != "echo circo" ; then
7443 cat >>confdefs.h
<<\_ACEOF
7444 #define HAVE_CIRCO 1
7447 if test "$llvm_cv_os_type" = "MingW" ; then
7448 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7451 cat >>confdefs.h
<<_ACEOF
7452 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7456 for ac_prog
in gv gsview32
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy
$ac_prog; ac_word
=$2
7460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462 if test "${ac_cv_path_GV+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir
=.
7475 for ac_exec_ext
in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 if test -n "$GV"; then
7490 { echo "$as_me:$LINENO: result: $GV" >&5
7491 echo "${ECHO_T}$GV" >&6; }
7493 { echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6; }
7498 test -n "$GV" && break
7500 test -n "$GV" || GV
="echo gv"
7502 if test "$GV" != "echo gv" ; then
7504 cat >>confdefs.h
<<\_ACEOF
7508 if test "$llvm_cv_os_type" = "MingW" ; then
7509 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7512 cat >>confdefs.h
<<_ACEOF
7513 #define LLVM_PATH_GV "$GV${EXEEXT}"
7517 # Extract the first word of "dotty", so it can be a program name with args.
7518 set dummy dotty
; ac_word
=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_DOTTY+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7533 test -z "$as_dir" && as_dir
=.
7534 for ac_exec_ext
in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7548 DOTTY
=$ac_cv_path_DOTTY
7549 if test -n "$DOTTY"; then
7550 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7551 echo "${ECHO_T}$DOTTY" >&6; }
7553 { echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6; }
7558 if test "$DOTTY" != "echo dotty" ; then
7560 cat >>confdefs.h
<<\_ACEOF
7561 #define HAVE_DOTTY 1
7564 if test "$llvm_cv_os_type" = "MingW" ; then
7565 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7568 cat >>confdefs.h
<<_ACEOF
7569 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7575 # Extract the first word of "perl", so it can be a program name with args.
7576 set dummy perl
; ac_word
=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_PERL+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir
=.
7592 for ac_exec_ext
in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7606 PERL
=$ac_cv_path_PERL
7607 if test -n "$PERL"; then
7608 { echo "$as_me:$LINENO: result: $PERL" >&5
7609 echo "${ECHO_T}$PERL" >&6; }
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 if test "$PERL" != "none"; then
7617 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7618 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7619 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7620 { echo "$as_me:$LINENO: result: yes" >&5
7621 echo "${ECHO_T}yes" >&6; }
7624 { echo "$as_me:$LINENO: result: not found" >&5
7625 echo "${ECHO_T}not found" >&6; }
7630 if test x
"$PERL" = xnone
; then
7633 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7634 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7635 { (exit 1); exit 1; }; }
7641 # Find a good install program. We prefer a C program (faster),
7642 # so one script is as good as another. But avoid the broken or
7643 # incompatible versions:
7644 # SysV /etc/install, /usr/sbin/install
7645 # SunOS /usr/etc/install
7646 # IRIX /sbin/install
7648 # AmigaOS /C/install, which installs bootblocks on floppy discs
7649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7652 # OS/2's system install, which has a completely different semantic
7653 # ./install, which can be erroneously created by make from ./install.sh.
7654 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7656 if test -z "$INSTALL"; then
7657 if test "${ac_cv_path_install+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir
=.
7665 # Account for people who put trailing slashes in PATH elements.
7667 .
/ | .
// |
/cC
/* | \
7668 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7669 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7672 # OSF1 and SCO ODT 3.0 have their own names for install.
7673 # Don't use installbsd from OSF since it installs stuff as root
7675 for ac_prog
in ginstall scoinst
install; do
7676 for ac_exec_ext
in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7678 if test $ac_prog = install &&
7679 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7680 # AIX install. It has an incompatible calling convention.
7682 elif test $ac_prog = install &&
7683 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7684 # program-specific install script used by HP pwplus--don't use.
7687 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7700 if test "${ac_cv_path_install+set}" = set; then
7701 INSTALL
=$ac_cv_path_install
7703 # As a last resort, use the slow shell script. Don't cache a
7704 # value for INSTALL within a source directory, because that will
7705 # break other packages using the cache if that directory is
7706 # removed, or if the value is a relative name.
7707 INSTALL
=$ac_install_sh
7710 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7711 echo "${ECHO_T}$INSTALL" >&6; }
7713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7714 # It thinks the first close brace ends the variable substitution.
7715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7719 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7722 # Extract the first word of "bzip2", so it can be a program name with args.
7723 set dummy
bzip2; ac_word
=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_BZIP2+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir
=.
7739 for ac_exec_ext
in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 BZIP2
=$ac_cv_path_BZIP2
7753 if test -n "$BZIP2"; then
7754 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7755 echo "${ECHO_T}$BZIP2" >&6; }
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7762 # Extract the first word of "doxygen", so it can be a program name with args.
7763 set dummy doxygen
; ac_word
=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir
=.
7779 for ac_exec_ext
in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 DOXYGEN
=$ac_cv_path_DOXYGEN
7793 if test -n "$DOXYGEN"; then
7794 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7795 echo "${ECHO_T}$DOXYGEN" >&6; }
7797 { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7802 # Extract the first word of "groff", so it can be a program name with args.
7803 set dummy
groff; ac_word
=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_path_GROFF+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 GROFF
=$ac_cv_path_GROFF
7833 if test -n "$GROFF"; then
7834 { echo "$as_me:$LINENO: result: $GROFF" >&5
7835 echo "${ECHO_T}$GROFF" >&6; }
7837 { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7842 # Extract the first word of "gzip", so it can be a program name with args.
7843 set dummy
gzip; ac_word
=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_GZIP+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir
=.
7859 for ac_exec_ext
in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 GZIP
=$ac_cv_path_GZIP
7873 if test -n "$GZIP"; then
7874 { echo "$as_me:$LINENO: result: $GZIP" >&5
7875 echo "${ECHO_T}$GZIP" >&6; }
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7882 # Extract the first word of "pod2html", so it can be a program name with args.
7883 set dummy pod2html
; ac_word
=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_path_POD2HTML+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7898 test -z "$as_dir" && as_dir
=.
7899 for ac_exec_ext
in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 POD2HTML
=$ac_cv_path_POD2HTML
7913 if test -n "$POD2HTML"; then
7914 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7915 echo "${ECHO_T}$POD2HTML" >&6; }
7917 { echo "$as_me:$LINENO: result: no" >&5
7918 echo "${ECHO_T}no" >&6; }
7922 # Extract the first word of "pod2man", so it can be a program name with args.
7923 set dummy pod2man
; ac_word
=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_path_POD2MAN+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir
=.
7939 for ac_exec_ext
in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 POD2MAN
=$ac_cv_path_POD2MAN
7953 if test -n "$POD2MAN"; then
7954 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7955 echo "${ECHO_T}$POD2MAN" >&6; }
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 # Extract the first word of "runtest", so it can be a program name with args.
7963 set dummy runtest
; ac_word
=$2
7964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966 if test "${ac_cv_path_RUNTEST+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir
=.
7979 for ac_exec_ext
in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 RUNTEST
=$ac_cv_path_RUNTEST
7993 if test -n "$RUNTEST"; then
7994 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7995 echo "${ECHO_T}$RUNTEST" >&6; }
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
8004 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8005 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8007 # Check whether --with-tclinclude was given.
8008 if test "${with_tclinclude+set}" = set; then
8009 withval
=$with_tclinclude; with_tclinclude
=${withval}
8014 if test "${ac_cv_path_tclsh+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 if test x
"${with_tclinclude}" != x
; then
8019 if test -f ${with_tclinclude}/tclsh
; then
8020 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8021 elif test -f ${with_tclinclude}/src
/tclsh
; then
8022 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8024 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8025 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8026 { (exit 1); exit 1; }; }
8030 if test x
"${ac_cv_path_tclsh}" = x
; then
8031 { echo "$as_me:$LINENO: result: none" >&5
8032 echo "${ECHO_T}none" >&6; }
8033 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
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036 set dummy
$ac_prog; ac_word
=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_path_TCLSH+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir
=.
8052 for ac_exec_ext
in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 TCLSH
=$ac_cv_path_TCLSH
8066 if test -n "$TCLSH"; then
8067 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8068 echo "${ECHO_T}$TCLSH" >&6; }
8070 { echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6; }
8075 test -n "$TCLSH" && break
8078 if test x
"${TCLSH}" = x
; then
8079 ac_cv_path_tclsh
='';
8081 ac_cv_path_tclsh
="${TCLSH}";
8084 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8085 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8086 TCLSH="${ac_cv_path_tclsh}"
8092 # Extract the first word of "zip", so it can be a program name with args.
8093 set dummy zip; ac_word=$2
8094 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8095 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8096 if test "${ac_cv_path_ZIP+set}" = set; then
8097 echo $ECHO_N "(cached
) $ECHO_C" >&6
8101 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8123 if test -n "$ZIP"; then
8124 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8125 echo "${ECHO_T}$ZIP" >&6; }
8127 { echo "$as_me:$LINENO: result
: no
" >&5
8128 echo "${ECHO_T}no
" >&6; }
8132 for ac_prog in ocamlc
8134 # Extract the first word of "$ac_prog", so it can be a program name with args.
8135 set dummy $ac_prog; ac_word=$2
8136 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8137 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8138 if test "${ac_cv_path_OCAMLC+set}" = set; then
8139 echo $ECHO_N "(cached
) $ECHO_C" >&6
8143 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8164 OCAMLC=$ac_cv_path_OCAMLC
8165 if test -n "$OCAMLC"; then
8166 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8167 echo "${ECHO_T}$OCAMLC" >&6; }
8169 { echo "$as_me:$LINENO: result
: no
" >&5
8170 echo "${ECHO_T}no
" >&6; }
8174 test -n "$OCAMLC" && break
8177 for ac_prog in ocamlopt
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8182 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8183 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8184 echo $ECHO_N "(cached
) $ECHO_C" >&6
8188 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8209 OCAMLOPT=$ac_cv_path_OCAMLOPT
8210 if test -n "$OCAMLOPT"; then
8211 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8212 echo "${ECHO_T}$OCAMLOPT" >&6; }
8214 { echo "$as_me:$LINENO: result
: no
" >&5
8215 echo "${ECHO_T}no
" >&6; }
8219 test -n "$OCAMLOPT" && break
8222 for ac_prog in ocamldep
8224 # Extract the first word of "$ac_prog", so it can be a program name with args.
8225 set dummy $ac_prog; ac_word=$2
8226 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8227 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8228 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8229 echo $ECHO_N "(cached
) $ECHO_C" >&6
8233 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8254 OCAMLDEP=$ac_cv_path_OCAMLDEP
8255 if test -n "$OCAMLDEP"; then
8256 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8257 echo "${ECHO_T}$OCAMLDEP" >&6; }
8259 { echo "$as_me:$LINENO: result
: no
" >&5
8260 echo "${ECHO_T}no
" >&6; }
8264 test -n "$OCAMLDEP" && break
8267 for ac_prog in ocamldoc
8269 # Extract the first word of "$ac_prog", so it can be a program name with args.
8270 set dummy $ac_prog; ac_word=$2
8271 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8272 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8273 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8274 echo $ECHO_N "(cached
) $ECHO_C" >&6
8278 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8289 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8299 OCAMLDOC=$ac_cv_path_OCAMLDOC
8300 if test -n "$OCAMLDOC"; then
8301 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8302 echo "${ECHO_T}$OCAMLDOC" >&6; }
8304 { echo "$as_me:$LINENO: result
: no
" >&5
8305 echo "${ECHO_T}no
" >&6; }
8309 test -n "$OCAMLDOC" && break
8312 for ac_prog in gas as
8314 # Extract the first word of "$ac_prog", so it can be a program name with args.
8315 set dummy $ac_prog; ac_word=$2
8316 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8317 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8318 if test "${ac_cv_path_GAS+set}" = set; then
8319 echo $ECHO_N "(cached
) $ECHO_C" >&6
8323 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8334 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8345 if test -n "$GAS"; then
8346 { echo "$as_me:$LINENO: result
: $GAS" >&5
8347 echo "${ECHO_T}$GAS" >&6; }
8349 { echo "$as_me:$LINENO: result
: no
" >&5
8350 echo "${ECHO_T}no
" >&6; }
8354 test -n "$GAS" && break
8358 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8359 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8360 if test "${llvm_cv_link_use_r+set}" = set; then
8361 echo $ECHO_N "(cached
) $ECHO_C" >&6
8364 ac_cpp='$CPP $CPPFLAGS'
8365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8370 CFLAGS="$CFLAGS -Wl,-R.
"
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8381 int main() { return 0; }
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_link") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 llvm_cv_link_use_r=yes
8422 echo "$as_me: failed program was
:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 llvm_cv_link_use_r=no
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8432 ac_cpp='$CPP $CPPFLAGS'
8433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8439 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8440 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8441 if test "$llvm_cv_link_use_r" = yes ; then
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_LINK_R 1
8450 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8451 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8452 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8453 echo $ECHO_N "(cached
) $ECHO_C" >&6
8456 ac_cpp='$CPP $CPPFLAGS'
8457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8462 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8473 int main() { return 0; }
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 llvm_cv_link_use_export_dynamic=yes
8514 echo "$as_me: failed program was
:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 llvm_cv_link_use_export_dynamic=no
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8532 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8533 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8535 cat >>confdefs.h <<\_ACEOF
8536 #define HAVE_LINK_EXPORT_DYNAMIC 1
8544 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8545 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8546 if test "${ac_cv_c_const+set}" = set; then
8547 echo $ECHO_N "(cached
) $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8559 /* FIXME: Include the comments suggested by Paul. */
8561 /* Ultrix mips cc rejects this. */
8562 typedef int charset[2];
8564 /* SunOS 4.1.1 cc rejects this. */
8565 char const *const *ccp;
8567 /* NEC SVR4.0.2 mips cc rejects this. */
8568 struct point {int x, y;};
8569 static struct point const zero = {0,0};
8570 /* AIX XL C 1.02.0.0 rejects this.
8571 It does not let you subtract one const X* pointer from another in
8572 an arm of an if-expression whose if-part is not a constant
8574 const char *g = "string
";
8575 ccp = &g + (g ? g-g : 0);
8576 /* HPUX 7.0 cc rejects these. */
8579 ccp = (char const *const *) p;
8580 { /* SCO 3.2v4 cc rejects this. */
8582 char const *s = 0 ? (char *) 0 : (char const *) 0;
8587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8589 const int *foo = &x[0];
8592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8593 typedef const int *iptr;
8597 { /* AIX XL C 1.02.0.0 rejects this saying
8598 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8599 struct s { int j; const int *ap[3]; };
8600 struct s *b; b->j = 5;
8602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8606 return !x[0] && !zero.x;
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8646 (exit $ac_status); }; }; then
8649 echo "$as_me: failed program was
:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8658 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8659 if test $ac_cv_c_const = no; then
8661 cat >>confdefs.h <<\_ACEOF
8673 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8674 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8675 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8676 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8677 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8678 echo $ECHO_N "(cached
) $ECHO_C" >&6
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 #include <sys/types.h>
8698 rm -f conftest.$ac_objext
8699 if { (ac_try="$ac_compile"
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_compile") 2>conftest.er1
8707 grep -v '^ *+' conftest.er1 >conftest.err
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713 { (case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_try") 2>&5
8720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 eval "$as_ac_Header=yes"
8734 echo "$as_me: failed program was
:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 eval "$as_ac_Header=no
"
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 ac_res=`eval echo '${'$as_ac_Header'}'`
8743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8744 echo "${ECHO_T}$ac_res" >&6; }
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8750 ac_header_dirent=$ac_hdr; break
8754 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8755 if test $ac_header_dirent = dirent.h; then
8756 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8757 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8758 if test "${ac_cv_search_opendir+set}" = set; then
8759 echo $ECHO_N "(cached
) $ECHO_C" >&6
8761 ac_func_search_save_LIBS=$LIBS
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8769 /* Override any GCC internal prototype to avoid an error.
8770 Use char because int might match the return type of a GCC
8771 builtin and then its argument prototype would still apply. */
8784 for ac_lib in '' dir; do
8785 if test -z "$ac_lib"; then
8786 ac_res="none required
"
8789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_link") 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_try") 2>&5
8813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
8823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_search_opendir=$ac_res
8827 echo "$as_me: failed program was
:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8833 rm -f core conftest.err conftest.$ac_objext \
8835 if test "${ac_cv_search_opendir+set}" = set; then
8839 if test "${ac_cv_search_opendir+set}" = set; then
8842 ac_cv_search_opendir=no
8845 LIBS=$ac_func_search_save_LIBS
8847 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8848 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8849 ac_res=$ac_cv_search_opendir
8850 if test "$ac_res" != no; then
8851 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8856 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8857 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8858 if test "${ac_cv_search_opendir+set}" = set; then
8859 echo $ECHO_N "(cached
) $ECHO_C" >&6
8861 ac_func_search_save_LIBS=$LIBS
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8884 for ac_lib in '' x; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required
"
8889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
8900 grep -v '^ *+' conftest.er1 >conftest.err
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8906 { (case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_try") 2>&5
8913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_try") 2>&5
8923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 ac_cv_search_opendir=$ac_res
8927 echo "$as_me: failed program was
:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8933 rm -f core conftest.err conftest.$ac_objext \
8935 if test "${ac_cv_search_opendir+set}" = set; then
8939 if test "${ac_cv_search_opendir+set}" = set; then
8942 ac_cv_search_opendir=no
8945 LIBS=$ac_func_search_save_LIBS
8947 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8948 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8949 ac_res=$ac_cv_search_opendir
8950 if test "$ac_res" != no; then
8951 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8958 for ac_header in dlfcn.h
8960 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8961 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8962 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8963 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8964 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8965 echo $ECHO_N "(cached
) $ECHO_C" >&6
8967 ac_res=`eval echo '${'$as_ac_Header'}'`
8968 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8969 echo "${ECHO_T}$ac_res" >&6; }
8971 # Is the header compilable?
8972 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8973 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 $ac_includes_default
8981 #include <$ac_header>
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8996 (exit $ac_status); } &&
8997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8998 { (case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_try") 2>&5
9005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_header_compiler=yes
9019 echo "$as_me: failed program was
:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_header_compiler=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9027 echo "${ECHO_T}$ac_header_compiler" >&6; }
9029 # Is the header present?
9030 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9031 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9032 cat >conftest.$ac_ext <<_ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038 #include <$ac_header>
9040 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9052 (exit $ac_status); } >/dev/null; then
9053 if test -s conftest.err; then
9054 ac_cpp_err=$ac_c_preproc_warn_flag
9055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9062 if test -z "$ac_cpp_err"; then
9063 ac_header_preproc=yes
9065 echo "$as_me: failed program was
:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_preproc=no
9071 rm -f conftest.err conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9073 echo "${ECHO_T}$ac_header_preproc" >&6; }
9075 # So? What about this header?
9076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9078 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9079 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9080 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9082 ac_header_preproc=yes
9085 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9086 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9087 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9088 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9089 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9090 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9091 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9092 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9093 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9095 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9096 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9098 ## ----------------------------------- ##
9099 ## Report this to llvmbugs@cs.uiuc.edu ##
9100 ## ----------------------------------- ##
9102 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9105 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9106 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9108 echo $ECHO_N "(cached
) $ECHO_C" >&6
9110 eval "$as_ac_Header=\
$ac_header_preproc"
9112 ac_res=`eval echo '${'$as_ac_Header'}'`
9113 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9114 echo "${ECHO_T}$ac_res" >&6; }
9117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9126 # Check whether --enable-ltdl-install was given.
9127 if test "${enable_ltdl_install+set}" = set; then
9128 enableval=$enable_ltdl_install;
9134 if test x"${enable_ltdl_install-no}" != xno; then
9136 INSTALL_LTDL_FALSE='#'
9138 INSTALL_LTDL_TRUE='#'
9144 if test x"${enable_ltdl_convenience-no}" != xno; then
9145 CONVENIENCE_LTDL_TRUE=
9146 CONVENIENCE_LTDL_FALSE='#'
9148 CONVENIENCE_LTDL_TRUE='#'
9149 CONVENIENCE_LTDL_FALSE=
9153 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9154 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9156 libname_spec='lib$name'
9164 shlibpath_overrides_runpath=unknown
9166 dynamic_linker="$host_os ld.so
"
9167 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9168 if test "$GCC" = yes; then
9169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9171 # if the path contains ";" then we assume it to be the separator
9172 # otherwise default to the standard path separator (i.e. ":") - it is
9173 # assumed that no part of a normal pathname contains ";" but that should
9174 # okay in the real world where ";" in dirpaths is itself problematic.
9175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9180 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9182 need_lib_prefix=unknown
9183 hardcode_into_libs=no
9185 # when you set need_version to no, make sure it does not cause -set_version
9186 # flags to be left without arguments
9187 need_version=unknown
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9193 shlibpath_var=LIBPATH
9195 # AIX 3 has no versioning support, so we append a major version to the name.
9196 soname_spec='${libname}${release}${shared_ext}$major'
9203 hardcode_into_libs=yes
9204 if test "$host_cpu" = ia64; then
9205 # AIX 5 supports IA64
9206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9209 # With GCC up to 2.95.x, collect2 would create an import file
9210 # for dependence libraries. The import file would start with
9211 # the line `#! .'. This would cause the generated library to
9212 # depend on `.', always an invalid library. This was fixed in
9213 # development snapshots of GCC prior to 3.0.
9215 aix4 | aix4.[01] | aix4.[01].*)
9216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9226 # soname into executable. Probably we can add versioning support to
9227 # collect2, so additional links can be useful in future.
9228 if test "$aix_use_runtimelinking" = yes; then
9229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9230 # instead of lib<name>.a to let people know that these are not
9231 # typical AIX shared libraries.
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 # We preserve .a as extension for shared libraries through AIX4.2
9235 # and later when we are not doing run time linking.
9236 library_names_spec='${libname}${release}.a $libname.a'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LIBPATH
9244 library_names_spec='$libname.ixlibrary $libname.a'
9245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9246 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'
9250 library_names_spec='${libname}${shared_ext}'
9251 dynamic_linker="$host_os ld.so
"
9252 shlibpath_var=LIBRARY_PATH
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9263 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9264 # the default ld.so.conf also contains /usr/contrib/lib and
9265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9266 # libtool to hard-code these into programs
9269 cygwin* | mingw* | pw32*)
9270 version_type=windows
9275 case $GCC,$host_os in
9276 yes,cygwin* | yes,mingw* | yes,pw32*)
9277 library_names_spec='$libname.dll.a'
9278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9279 postinstall_cmds='base_file=`basename \${file}`~
9280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9281 dldir=$destdir/`dirname \$dlpath`~
9282 test -d \$dldir || mkdir -p \$dldir~
9283 $install_prog $dir/$dlname \$dldir/$dlname~
9284 chmod a+x \$dldir/$dlname'
9285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9286 dlpath=$dir/\$dldll~
9288 shlibpath_overrides_runpath=yes
9292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9294 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9297 # MinGW DLLs use traditional 'lib' prefix
9298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9300 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9301 # It is most probably a Windows format PATH printed by
9302 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9303 # path with ; separators, and with drive letters. We can handle the
9304 # drive letters (cygwin fileutils understands them), so leave them,
9305 # especially as we might pass files found there to a mingw objdump,
9306 # which wouldn't understand a cygwinified path. Ahh.
9307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9313 # pw32 DLLs use 'pw' prefix rather than 'lib'
9314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9323 dynamic_linker='Win32 ld.exe'
9324 # FIXME: first we should search . and the directory the executable is in
9328 darwin* | rhapsody*)
9329 dynamic_linker="$host_os dyld
"
9333 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9334 soname_spec='${libname}${release}${major}$shared_ext'
9335 shlibpath_overrides_runpath=yes
9336 shlibpath_var=DYLD_LIBRARY_PATH
9337 shrext_cmds='.dylib'
9338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9339 if test "$GCC" = yes; then
9340 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
"`
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=no
9368 hardcode_into_libs=yes
9369 dynamic_linker='GNU ld.so'
9372 freebsd* | dragonfly*)
9373 # DragonFly does not have aout. When/if they implement a new
9374 # versioning mechanism, adjust this.
9375 if test -x /usr/bin/objformat; then
9376 objformat=`/usr/bin/objformat`
9379 freebsd[123]*) objformat=aout ;;
9383 version_type=freebsd-$objformat
9384 case $version_type in
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9395 shlibpath_var=LD_LIBRARY_PATH
9398 shlibpath_overrides_runpath=yes
9400 freebsd3.[01]* | freebsdelf3.[01]*)
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9406 shlibpath_overrides_runpath=no
9407 hardcode_into_libs=yes
9409 freebsd*) # from 4.6 on
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 hardcode_into_libs=yes
9426 hpux9* | hpux10* | hpux11*)
9427 # Give a soname corresponding to the major version so that dld.sl refuses to
9428 # link against other versions.
9435 hardcode_into_libs=yes
9436 dynamic_linker="$host_os dld.so
"
9437 shlibpath_var=LD_LIBRARY_PATH
9438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 if test "X
$HPUX_IA64_MODE" = X32; then
9442 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9444 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9450 hardcode_into_libs=yes
9451 dynamic_linker="$host_os dld.sl
"
9452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9461 dynamic_linker="$host_os dld.sl
"
9462 shlibpath_var=SHLIB_PATH
9463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9468 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9469 postinstall_cmds='chmod 555 $lib'
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=no
9481 hardcode_into_libs=yes
9484 irix5* | irix6* | nonstopux*)
9486 nonstopux*) version_type=nonstopux ;;
9488 if test "$lt_cv_prog_gnu_ld" = yes; then
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9499 irix5* | nonstopux*)
9503 case $LD in # libtool.m4 will add one of these switches to LD
9504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9505 libsuff= shlibsuff= libmagic=32-bit;;
9506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9507 libsuff=32 shlibsuff=N32 libmagic=N32;;
9508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9510 *) libsuff= shlibsuff= libmagic=never-match;;
9514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9515 shlibpath_overrides_runpath=no
9516 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9517 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9518 hardcode_into_libs=yes
9521 # No shared lib support for Linux oldld, aout, or coff.
9522 linux*oldld* | linux*aout* | linux*coff*)
9526 # This must be Linux ELF.
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=no
9536 # This implies no fast_install, which is unacceptable.
9537 # Some rework will be needed to allow for fast_install
9538 # before this can be enabled.
9539 hardcode_into_libs=yes
9541 # Append ld.so.conf contents to the search path
9542 if test -f /etc/ld.so.conf; then
9543 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' ' '`
9544 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9547 # We used to test for /lib/ld.so.1 and disable shared libraries on
9548 # powerpc, because MkLinux only supported shared libraries with the
9549 # GNU dynamic linker. Since this was broken with cross compilers,
9550 # most powerpc-linux boxes support dynamic linking these days and
9551 # people can always --disable-shared, the test was removed, and we
9552 # assume the GNU/Linux dynamic linker is in use.
9553 dynamic_linker='GNU/Linux ld.so'
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=no
9564 hardcode_into_libs=yes
9565 dynamic_linker='GNU ld.so'
9572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9574 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9575 dynamic_linker='NetBSD (a.out) ld.so'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 dynamic_linker='NetBSD ld.elf_so'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes
9583 hardcode_into_libs=yes
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=yes
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 shlibpath_overrides_runpath=yes
9605 sys_lib_dlsearch_path_spec="/usr
/lib
"
9607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9609 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9610 *) need_version=no ;;
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9613 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9617 openbsd2.[89] | openbsd2.[89].*)
9618 shlibpath_overrides_runpath=no
9621 shlibpath_overrides_runpath=yes
9625 shlibpath_overrides_runpath=yes
9630 libname_spec='$name'
9633 library_names_spec='$libname${shared_ext} $libname.a'
9634 dynamic_linker='OS/2 ld.exe'
9635 shlibpath_var=LIBPATH
9638 osf3* | osf4* | osf5*)
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9658 # ldd complains unless libraries are executable
9659 postinstall_cmds='chmod +x $lib'
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9665 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes
9668 if test "$with_gnu_ld" = yes; then
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 case $host_vendor in
9681 shlibpath_overrides_runpath=no
9683 export_dynamic_flag_spec='${wl}-Blargedynsym'
9684 runpath_var=LD_RUN_PATH
9692 shlibpath_overrides_runpath=no
9693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9699 if test -d /usr/nec ;then
9701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9702 soname_spec='$libname${shared_ext}.$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9708 version_type=freebsd-elf
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9712 soname_spec='${libname}${release}${shared_ext}$major'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 hardcode_into_libs=yes
9715 if test "$with_gnu_ld" = yes; then
9716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9717 shlibpath_overrides_runpath=no
9719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9720 shlibpath_overrides_runpath=yes
9723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9727 sys_lib_dlsearch_path_spec='/usr/lib'
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9741 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9742 echo "${ECHO_T}$dynamic_linker" >&6; }
9743 test "$dynamic_linker" = no && can_build_shared=no
9745 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9746 if test "$GCC" = yes; then
9747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9751 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9752 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9753 if test "${libltdl_cv_shlibext+set}" = set; then
9754 echo $ECHO_N "(cached
) $ECHO_C" >&6
9758 eval libltdl_cv_shlibext=$shrext_cmds
9761 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9762 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9763 if test -n "$libltdl_cv_shlibext"; then
9765 cat >>confdefs.h <<_ACEOF
9766 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9772 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9773 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9774 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9775 echo $ECHO_N "(cached
) $ECHO_C" >&6
9777 libltdl_cv_shlibpath_var="$shlibpath_var"
9779 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9780 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9781 if test -n "$libltdl_cv_shlibpath_var"; then
9783 cat >>confdefs.h <<_ACEOF
9784 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9790 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9791 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9792 if test "${libltdl_cv_sys_search_path+set}" = set; then
9793 echo $ECHO_N "(cached
) $ECHO_C" >&6
9795 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9797 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9798 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9799 if test -n "$libltdl_cv_sys_search_path"; then
9801 for dir in $libltdl_cv_sys_search_path; do
9802 if test -z "$sys_search_path"; then
9803 sys_search_path="$dir"
9805 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9809 cat >>confdefs.h <<_ACEOF
9810 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9815 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9816 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9817 if test "${libltdl_cv_objdir+set}" = set; then
9818 echo $ECHO_N "(cached
) $ECHO_C" >&6
9820 libltdl_cv_objdir="$objdir"
9821 if test -n "$objdir"; then
9824 rm -f .libs 2>/dev/null
9825 mkdir .libs 2>/dev/null
9826 if test -d .libs; then
9827 libltdl_cv_objdir=.libs
9829 # MS-DOS does not allow filenames that begin with a dot.
9830 libltdl_cv_objdir=_libs
9832 rmdir .libs 2>/dev/null
9836 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9837 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9839 cat >>confdefs.h <<_ACEOF
9840 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9848 # Check for command to grab the raw symbol name followed by C symbol from nm.
9849 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9850 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9852 echo $ECHO_N "(cached
) $ECHO_C" >&6
9855 # These are sane defaults that work on at least a few old systems.
9856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9858 # Character class describing NM global symbol codes.
9859 symcode='[BCDEGRST]'
9861 # Regexp to match symbols that can be accessed directly from C.
9862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9864 # Transform an extracted symbol line into a proper C declaration
9865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9867 # Transform an extracted symbol line into symbol name and symbol address
9868 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'"
9870 # Define system-specific variables.
9875 cygwin* | mingw* | pw32*)
9876 symcode='[ABCDGISTW]'
9878 hpux*) # Its linker distinguishes data from code symbols
9879 if test "$host_cpu" = ia64; then
9880 symcode='[ABCDEGRST]'
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 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'"
9886 if test "$host_cpu" = ia64; then
9887 symcode='[ABCDGIRSTW]'
9888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9889 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'"
9893 symcode='[BCDEGRST]'
9896 symcode='[BCDEGQRST]'
9907 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9915 # Handle CRLF in mingw tool chain
9919 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9923 # If we're using GNU nm, then use its standard symbol codes.
9924 case `$NM -V 2>&1` in
9925 *GNU* | *'with BFD'*)
9926 symcode='[ABCDGIRSTW]' ;;
9929 # Try without a prefix undercore, then with it.
9930 for ac_symprfx in "" "_
"; do
9932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9933 symxfrm="\\1 $ac_symprfx\\2 \\2"
9935 # Write the raw and C identifiers.
9936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9938 # Check to see that the pipe works correctly.
9942 cat > conftest.$ac_ext <<EOF
9947 void nm_test_func(){}
9951 int main(){nm_test_var='a';nm_test_func();return(0);}
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9958 (exit $ac_status); }; then
9959 # Now try to grab the symbols.
9961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9965 (exit $ac_status); } && test -s "$nlist"; then
9966 # Try sorting and uniquifying the output.
9967 if sort "$nlist" | uniq > "$nlist"T; then
9968 mv -f "$nlist"T "$nlist"
9973 # Make sure that we snagged all the symbols we need.
9974 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9975 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9976 cat <<EOF > conftest.$ac_ext
9982 # Now generate the symbol file.
9983 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9985 cat <<EOF >> conftest.$ac_ext
9986 #if defined (__STDC__) && __STDC__
9987 # define lt_ptr_t void *
9989 # define lt_ptr_t char *
9993 /* The mapping between symbol names and symbols. */
9998 lt_preloaded_symbols[] =
10001 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10002 cat <<\EOF >> conftest.$ac_ext
10010 # Now try linking the two files.
10011 mv conftest.$ac_objext conftstm.$ac_objext
10012 lt_save_LIBS="$LIBS"
10013 lt_save_CFLAGS="$CFLAGS"
10014 LIBS="conftstm.
$ac_objext"
10015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>&5
10019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10020 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10023 LIBS="$lt_save_LIBS"
10024 CFLAGS="$lt_save_CFLAGS"
10026 echo "cannot
find nm_test_func
in $nlist" >&5
10029 echo "cannot
find nm_test_var
in $nlist" >&5
10032 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10035 echo "$progname: failed program was
:" >&5
10036 cat conftest.$ac_ext >&5
10038 rm -f conftest* conftst*
10040 # Do not use the global_symbol_pipe unless it works.
10041 if test "$pipe_works" = yes; then
10044 lt_cv_sys_global_symbol_pipe=
10050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10051 lt_cv_sys_global_symbol_to_cdecl=
10053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10054 { echo "$as_me:$LINENO: result
: failed
" >&5
10055 echo "${ECHO_T}failed
" >&6; }
10057 { echo "$as_me:$LINENO: result
: ok
" >&5
10058 echo "${ECHO_T}ok
" >&6; }
10062 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10063 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10064 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10065 echo $ECHO_N "(cached
) $ECHO_C" >&6
10067 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10068 libltdl_cv_preloaded_symbols=yes
10070 libltdl_cv_preloaded_symbols=no
10074 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10075 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10076 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_PRELOADED_SYMBOLS 1
10087 ac_cpp='$CPP $CPPFLAGS'
10088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10093 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10094 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10095 if test "${ac_cv_func_shl_load+set}" = set; then
10096 echo $ECHO_N "(cached
) $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106 #define shl_load innocuous_shl_load
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char shl_load (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10114 # include <limits.h>
10116 # include <assert.h>
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined __stub_shl_load || defined __stub___shl_load
10138 return shl_load ();
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_cv_func_shl_load=yes
10179 echo "$as_me: failed program was
:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_func_shl_load=no
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10188 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10189 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10190 if test $ac_cv_func_shl_load = yes; then
10192 cat >>confdefs.h <<\_ACEOF
10193 #define HAVE_SHL_LOAD 1
10197 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10198 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10200 echo $ECHO_N "(cached
) $ECHO_C" >&6
10202 ac_check_lib_save_LIBS=$LIBS
10204 cat >conftest.$ac_ext <<_ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10221 return shl_load ();
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
10235 grep -v '^ *+' conftest.er1 >conftest.err
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try='test -s conftest$ac_exeext'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_dld_shl_load=yes
10262 echo "$as_me: failed program was
:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_lib_dld_shl_load=no
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10273 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10274 if test $ac_cv_lib_dld_shl_load = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_SHL_LOAD 1
10280 LIBADD_DL="$LIBADD_DL -ldld"
10282 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10283 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10285 echo $ECHO_N "(cached
) $ECHO_C" >&6
10287 ac_check_lib_save_LIBS=$LIBS
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (ac_try="$ac_link"
10313 case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
10320 grep -v '^ *+' conftest.er1 >conftest.err
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10326 { (case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_try") 2>&5
10333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest$ac_exeext'
10336 { (case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_try") 2>&5
10343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_cv_lib_dl_dlopen=yes
10347 echo "$as_me: failed program was
:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_lib_dl_dlopen=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10358 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10359 if test $ac_cv_lib_dl_dlopen = yes; then
10361 cat >>confdefs.h <<\_ACEOF
10362 #define HAVE_LIBDL 1
10365 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10374 # include <dlfcn.h>
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10400 { (case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_try") 2>&5
10407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10418 (exit $ac_status); }; }; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_LIBDL 1
10423 libltdl_cv_func_dlopen="yes"
10425 echo "$as_me: failed program was
:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10429 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10430 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10431 echo $ECHO_N "(cached
) $ECHO_C" >&6
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lsvld $LIBS"
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10442 /* Override any GCC internal prototype to avoid an error.
10443 Use char because int might match the return type of a GCC
10444 builtin and then its argument prototype would still apply. */
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (ac_try="$ac_link"
10459 case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_link") 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10472 { (case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_try") 2>&5
10479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_try") 2>&5
10489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_cv_lib_svld_dlopen=yes
10493 echo "$as_me: failed program was
:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ac_cv_lib_svld_dlopen=no
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LIBS=$ac_check_lib_save_LIBS
10503 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10504 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10505 if test $ac_cv_lib_svld_dlopen = yes; then
10507 cat >>confdefs.h <<\_ACEOF
10508 #define HAVE_LIBDL 1
10511 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10513 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10514 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10515 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10516 echo $ECHO_N "(cached
) $ECHO_C" >&6
10518 ac_check_lib_save_LIBS=$LIBS
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10537 return dld_link ();
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_try") 2>&5
10564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_try") 2>&5
10574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_cv_lib_dld_dld_link=yes
10578 echo "$as_me: failed program was
:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_cv_lib_dld_dld_link=no
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10588 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10589 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10590 if test $ac_cv_lib_dld_dld_link = yes; then
10592 cat >>confdefs.h <<\_ACEOF
10596 LIBADD_DL="$LIBADD_DL -ldld"
10598 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10599 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10600 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10601 echo $ECHO_N "(cached
) $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611 #define _dyld_func_lookup innocuous__dyld_func_lookup
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char _dyld_func_lookup (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10619 # include <limits.h>
10621 # include <assert.h>
10624 #undef _dyld_func_lookup
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10632 char _dyld_func_lookup ();
10633 /* The GNU C library defines this for functions which it implements
10634 to always fail with ENOSYS. Some functions are actually named
10635 something starting with __ and the normal name is an alias. */
10636 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10643 return _dyld_func_lookup ();
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_try") 2>&5
10670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest$ac_exeext'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_func__dyld_func_lookup=yes
10684 echo "$as_me: failed program was
:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_cv_func__dyld_func_lookup=no
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10693 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10694 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10695 if test $ac_cv_func__dyld_func_lookup = yes; then
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_DYLD 1
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10724 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10726 lt_save_LIBS="$LIBS"
10727 LIBS="$LIBS $LIBADD_DL"
10729 for ac_func in dlerror
10731 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10732 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10733 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10734 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10735 echo $ECHO_N "(cached
) $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745 #define $ac_func innocuous_$ac_func
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10753 # include <limits.h>
10755 # include <assert.h>
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined __stub_$ac_func || defined __stub___$ac_func
10777 return $ac_func ();
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_link") 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 eval "$as_ac_var=yes"
10818 echo "$as_me: failed program was
:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 eval "$as_ac_var=no
"
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10838 LIBS="$lt_save_LIBS"
10841 ac_cpp='$CPP $CPPFLAGS'
10842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10849 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10850 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10851 echo $ECHO_N "(cached
) $ECHO_C" >&6
10853 ac_cv_sys_symbol_underscore=no
10854 cat > conftest.$ac_ext <<EOF
10855 void nm_test_func(){}
10856 int main(){nm_test_func;return 0;}
10858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>&5
10861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10862 (exit $ac_status); }; then
10863 # Now try to grab the symbols.
10864 ac_nlist=conftest.nm
10865 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10866 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10869 (exit $ac_status); } && test -s "$ac_nlist"; then
10870 # See whether the symbols have a leading underscore.
10871 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10872 ac_cv_sys_symbol_underscore=yes
10874 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10877 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10881 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10884 echo "configure
: failed program was
:" >&5
10890 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10891 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10894 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10895 if test x"$libltdl_cv_func_dlopen" = xyes ||
10896 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10897 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10898 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10899 if test "${libltdl_cv_need_uscore+set}" = set; then
10900 echo $ECHO_N "(cached
) $ECHO_C" >&6
10902 libltdl_cv_need_uscore=unknown
10904 LIBS="$LIBS $LIBADD_DL"
10905 if test "$cross_compiling" = yes; then :
10906 libltdl_cv_need_uscore=cross
10908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10909 lt_status=$lt_dlunknown
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10916 "configure
"
10912 #include "confdefs.h
"
10921 # define LT_DLGLOBAL RTLD_GLOBAL
10924 # define LT_DLGLOBAL DL_GLOBAL
10926 # define LT_DLGLOBAL 0
10930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10931 find out it does not work in some platform. */
10932 #ifndef LT_DLLAZY_OR_NOW
10934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10937 # define LT_DLLAZY_OR_NOW DL_LAZY
10940 # define LT_DLLAZY_OR_NOW RTLD_NOW
10943 # define LT_DLLAZY_OR_NOW DL_NOW
10945 # define LT_DLLAZY_OR_NOW 0
10953 extern "C
" void exit (int);
10956 void fnord() { int i=42;}
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10964 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10965 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10966 /* dlclose (self); */
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10979 (./conftest; exit; ) >&5 2>/dev/null
10981 case x$lt_status in
10982 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10983 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10984 x$lt_dlunknown|x*) ;;
10987 # compilation failed
10996 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10997 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11001 if test x"$libltdl_cv_need_uscore" = xyes; then
11003 cat >>confdefs.h <<\_ACEOF
11004 #define NEED_USCORE 1
11010 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11011 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11012 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11013 echo $ECHO_N "(cached
) $ECHO_C" >&6
11015 # PORTME does your system automatically load deplibs for dlopen?
11016 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11017 # For now, we just catch OSes we know something about -- in the
11018 # future, we'll try test this programmatically.
11019 libltdl_cv_sys_dlopen_deplibs=unknown
11021 aix3*|aix4.1.*|aix4.2.*)
11022 # Unknown whether this is true for these versions of AIX, but
11023 # we want this `case' here to explicitly catch those versions.
11024 libltdl_cv_sys_dlopen_deplibs=unknown
11027 libltdl_cv_sys_dlopen_deplibs=yes
11030 # Assuming the user has installed a libdl from somewhere, this is true
11031 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11032 libltdl_cv_sys_dlopen_deplibs=yes
11034 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11035 # GNU and its variants, using gnu ld.so (Glibc)
11036 libltdl_cv_sys_dlopen_deplibs=yes
11039 libltdl_cv_sys_dlopen_deplibs=yes
11042 libltdl_cv_sys_dlopen_deplibs=yes
11044 irix[12345]*|irix6.[01]*)
11045 # Catch all versions of IRIX before 6.2, and indicate that we don't
11046 # know how it worked for any of those versions.
11047 libltdl_cv_sys_dlopen_deplibs=unknown
11050 # The case above catches anything before 6.2, and it's known that
11051 # at 6.2 and later dlopen does load deplibs.
11052 libltdl_cv_sys_dlopen_deplibs=yes
11055 libltdl_cv_sys_dlopen_deplibs=yes
11058 libltdl_cv_sys_dlopen_deplibs=yes
11061 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11062 # it did *not* use an RPATH in a shared library to find objects the
11063 # library depends on, so we explictly say `no'.
11064 libltdl_cv_sys_dlopen_deplibs=no
11066 osf5.0|osf5.0a|osf5.1)
11067 # dlopen *does* load deplibs and with the right loader patch applied
11068 # it even uses RPATH in a shared library to search for shared objects
11069 # that the library depends on, but there's no easy way to know if that
11070 # patch is installed. Since this is the case, all we can really
11071 # say is unknown -- it depends on the patch being installed. If
11072 # it is, this changes to `yes'. Without it, it would be `no'.
11073 libltdl_cv_sys_dlopen_deplibs=unknown
11076 # the two cases above should catch all versions of osf <= 5.1. Read
11077 # the comments above for what we know about them.
11078 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11079 # is used to find them so we can finally say `yes'.
11080 libltdl_cv_sys_dlopen_deplibs=yes
11083 libltdl_cv_sys_dlopen_deplibs=yes
11085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11086 libltdl_cv_sys_dlopen_deplibs=yes
11091 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11092 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11093 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11095 cat >>confdefs.h <<\_ACEOF
11096 #define LTDL_DLOPEN_DEPLIBS 1
11102 for ac_header in argz.h
11104 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11106 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11107 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached
) $ECHO_C" >&6
11111 ac_res=`eval echo '${'$as_ac_Header'}'`
11112 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11113 echo "${ECHO_T}$ac_res" >&6; }
11115 # Is the header compilable?
11116 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11117 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 $ac_includes_default
11125 #include <$ac_header>
11127 rm -f conftest.$ac_objext
11128 if { (ac_try="$ac_compile"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_compile") 2>conftest.er1
11136 grep -v '^ *+' conftest.er1 >conftest.err
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_header_compiler=yes
11163 echo "$as_me: failed program was
:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_header_compiler=no
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11171 echo "${ECHO_T}$ac_header_compiler" >&6; }
11173 # Is the header present?
11174 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11175 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <$ac_header>
11184 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11185 case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11192 grep -v '^ *+' conftest.er1 >conftest.err
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11196 (exit $ac_status); } >/dev/null; then
11197 if test -s conftest.err; then
11198 ac_cpp_err=$ac_c_preproc_warn_flag
11199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11206 if test -z "$ac_cpp_err"; then
11207 ac_header_preproc=yes
11209 echo "$as_me: failed program was
:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_header_preproc=no
11215 rm -f conftest.err conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11217 echo "${ECHO_T}$ac_header_preproc" >&6; }
11219 # So? What about this header?
11220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11222 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11223 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11224 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11226 ac_header_preproc=yes
11229 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11230 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11231 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11232 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11233 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11234 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11235 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11236 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11237 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11239 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11240 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11242 ## ----------------------------------- ##
11243 ## Report this to llvmbugs@cs.uiuc.edu ##
11244 ## ----------------------------------- ##
11246 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11249 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11250 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11251 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11252 echo $ECHO_N "(cached
) $ECHO_C" >&6
11254 eval "$as_ac_Header=\
$ac_header_preproc"
11256 ac_res=`eval echo '${'$as_ac_Header'}'`
11257 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11258 echo "${ECHO_T}$ac_res" >&6; }
11261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11271 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11272 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11273 if test "${ac_cv_type_error_t+set}" = set; then
11274 echo $ECHO_N "(cached
) $ECHO_C" >&6
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11286 typedef error_t ac__type_new_;
11290 if ((ac__type_new_ *) 0)
11292 if (sizeof (ac__type_new_))
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest.$ac_objext'
11323 { (case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_try") 2>&5
11330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_type_error_t=yes
11334 echo "$as_me: failed program was
:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_cv_type_error_t=no
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11343 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11344 if test $ac_cv_type_error_t = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define HAVE_ERROR_T 1
11353 cat >>confdefs.h <<\_ACEOF
11354 #define error_t int
11365 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11367 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11368 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11369 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11370 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11371 echo $ECHO_N "(cached
) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11381 #define $ac_func innocuous_$ac_func
11383 /* System header to define __stub macros and hopefully few prototypes,
11384 which can conflict with char $ac_func (); below.
11385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11386 <limits.h> exists even on freestanding compilers. */
11389 # include <limits.h>
11391 # include <assert.h>
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11403 /* The GNU C library defines this for functions which it implements
11404 to always fail with ENOSYS. Some functions are actually named
11405 something starting with __ and the normal name is an alias. */
11406 #if defined __stub_$ac_func || defined __stub___$ac_func
11413 return $ac_func ();
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (ac_try="$ac_link"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_link") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_try") 2>&5
11440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 eval "$as_ac_var=yes"
11454 echo "$as_me: failed program was
:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 eval "$as_ac_var=no
"
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11463 ac_res=`eval echo '${'$as_ac_var'}'`
11464 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11465 echo "${ECHO_T}$ac_res" >&6; }
11466 if test `eval echo '${'$as_ac_var'}'` = yes; then
11467 cat >>confdefs.h <<_ACEOF
11468 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11501 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11504 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11505 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11506 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11507 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached
) $ECHO_C" >&6
11511 ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11513 echo "${ECHO_T}$ac_res" >&6; }
11515 # Is the header compilable?
11516 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11517 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 $ac_includes_default
11525 #include <$ac_header>
11527 rm -f conftest.$ac_objext
11528 if { (ac_try="$ac_compile"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_compile") 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_header_compiler=yes
11563 echo "$as_me: failed program was
:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_compiler=no
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6; }
11573 # Is the header present?
11574 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11575 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11576 cat >conftest.$ac_ext <<_ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <$ac_header>
11584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11592 grep -v '^ *+' conftest.er1 >conftest.err
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11596 (exit $ac_status); } >/dev/null; then
11597 if test -s conftest.err; then
11598 ac_cpp_err=$ac_c_preproc_warn_flag
11599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11606 if test -z "$ac_cpp_err"; then
11607 ac_header_preproc=yes
11609 echo "$as_me: failed program was
:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 ac_header_preproc=no
11615 rm -f conftest.err conftest.$ac_ext
11616 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11617 echo "${ECHO_T}$ac_header_preproc" >&6; }
11619 # So? What about this header?
11620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11622 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11623 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11624 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11626 ac_header_preproc=yes
11629 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11630 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11631 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11632 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11633 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11634 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11635 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11636 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11637 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11639 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11640 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11642 ## ----------------------------------- ##
11643 ## Report this to llvmbugs@cs.uiuc.edu ##
11644 ## ----------------------------------- ##
11646 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11649 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11650 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached
) $ECHO_C" >&6
11654 eval "$as_ac_Header=\
$ac_header_preproc"
11656 ac_res=`eval echo '${'$as_ac_Header'}'`
11657 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11674 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11676 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11677 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11678 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11679 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11681 echo $ECHO_N "(cached
) $ECHO_C" >&6
11683 ac_res=`eval echo '${'$as_ac_Header'}'`
11684 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11685 echo "${ECHO_T}$ac_res" >&6; }
11687 # Is the header compilable?
11688 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11689 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11697 #include <$ac_header>
11699 rm -f conftest.$ac_objext
11700 if { (ac_try="$ac_compile"
11701 case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_header_compiler=yes
11735 echo "$as_me: failed program was
:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_header_compiler=no
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11743 echo "${ECHO_T}$ac_header_compiler" >&6; }
11745 # Is the header present?
11746 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11747 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <$ac_header>
11756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11768 (exit $ac_status); } >/dev/null; then
11769 if test -s conftest.err; then
11770 ac_cpp_err=$ac_c_preproc_warn_flag
11771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11778 if test -z "$ac_cpp_err"; then
11779 ac_header_preproc=yes
11781 echo "$as_me: failed program was
:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_header_preproc=no
11787 rm -f conftest.err conftest.$ac_ext
11788 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11789 echo "${ECHO_T}$ac_header_preproc" >&6; }
11791 # So? What about this header?
11792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11794 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11795 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11796 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11798 ac_header_preproc=yes
11801 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11802 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11803 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11804 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11805 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11806 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11807 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11808 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11809 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11811 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11812 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11814 ## ----------------------------------- ##
11815 ## Report this to llvmbugs@cs.uiuc.edu ##
11816 ## ----------------------------------- ##
11818 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11821 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11822 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11824 echo $ECHO_N "(cached
) $ECHO_C" >&6
11826 eval "$as_ac_Header=\
$ac_header_preproc"
11828 ac_res=`eval echo '${'$as_ac_Header'}'`
11829 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11830 echo "${ECHO_T}$ac_res" >&6; }
11833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11844 for ac_header in string.h strings.h
11846 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11847 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11848 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11849 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11850 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11851 echo $ECHO_N "(cached
) $ECHO_C" >&6
11853 ac_res=`eval echo '${'$as_ac_Header'}'`
11854 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11857 # Is the header compilable?
11858 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11859 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 $ac_includes_default
11867 #include <$ac_header>
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_header_compiler=yes
11905 echo "$as_me: failed program was
:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 ac_header_compiler=no
11911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11913 echo "${ECHO_T}$ac_header_compiler" >&6; }
11915 # Is the header present?
11916 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11917 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 #include <$ac_header>
11926 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11927 case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11938 (exit $ac_status); } >/dev/null; then
11939 if test -s conftest.err; then
11940 ac_cpp_err=$ac_c_preproc_warn_flag
11941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11948 if test -z "$ac_cpp_err"; then
11949 ac_header_preproc=yes
11951 echo "$as_me: failed program was
:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_header_preproc=no
11957 rm -f conftest.err conftest.$ac_ext
11958 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11959 echo "${ECHO_T}$ac_header_preproc" >&6; }
11961 # So? What about this header?
11962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11964 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11965 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11966 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11968 ac_header_preproc=yes
11971 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11972 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11973 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11974 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11975 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11976 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11977 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11978 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11979 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11981 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11982 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11984 ## ----------------------------------- ##
11985 ## Report this to llvmbugs@cs.uiuc.edu ##
11986 ## ----------------------------------- ##
11988 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11991 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11992 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11994 echo $ECHO_N "(cached
) $ECHO_C" >&6
11996 eval "$as_ac_Header=\
$ac_header_preproc"
11998 ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12015 for ac_func in strchr index
12017 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12018 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12019 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12020 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached
) $ECHO_C" >&6
12023 cat >conftest.$ac_ext <<_ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12031 #define $ac_func innocuous_$ac_func
12033 /* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12039 # include <limits.h>
12041 # include <assert.h>
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined __stub_$ac_func || defined __stub___$ac_func
12063 return $ac_func ();
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 eval "$as_ac_var=yes"
12104 echo "$as_me: failed program was
:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 eval "$as_ac_var=no
"
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12113 ac_res=`eval echo '${'$as_ac_var'}'`
12114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12115 echo "${ECHO_T}$ac_res" >&6; }
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12126 for ac_func in strrchr rindex
12128 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12129 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12130 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12131 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12132 echo $ECHO_N "(cached
) $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12142 #define $ac_func innocuous_$ac_func
12144 /* System header to define __stub macros and hopefully few prototypes,
12145 which can conflict with char $ac_func (); below.
12146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147 <limits.h> exists even on freestanding compilers. */
12150 # include <limits.h>
12152 # include <assert.h>
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12164 /* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
12167 #if defined __stub_$ac_func || defined __stub___$ac_func
12174 return $ac_func ();
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 eval "$as_ac_var=yes"
12215 echo "$as_me: failed program was
:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 eval "$as_ac_var=no
"
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12224 ac_res=`eval echo '${'$as_ac_var'}'`
12225 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12226 echo "${ECHO_T}$ac_res" >&6; }
12227 if test `eval echo '${'$as_ac_var'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12237 for ac_func in memcpy bcopy
12239 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12240 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12241 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12242 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12243 echo $ECHO_N "(cached
) $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12253 #define $ac_func innocuous_$ac_func
12255 /* System header to define __stub macros and hopefully few prototypes,
12256 which can conflict with char $ac_func (); below.
12257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12258 <limits.h> exists even on freestanding compilers. */
12261 # include <limits.h>
12263 # include <assert.h>
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12275 /* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
12278 #if defined __stub_$ac_func || defined __stub___$ac_func
12285 return $ac_func ();
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (ac_try="$ac_link"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_link") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1 >conftest.err
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_try") 2>&5
12322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 eval "$as_ac_var=yes"
12326 echo "$as_me: failed program was
:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 eval "$as_ac_var=no
"
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12335 ac_res=`eval echo '${'$as_ac_var'}'`
12336 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12337 echo "${ECHO_T}$ac_res" >&6; }
12338 if test `eval echo '${'$as_ac_var'}'` = yes; then
12339 cat >>confdefs.h <<_ACEOF
12340 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12348 for ac_func in memmove strcmp
12350 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12351 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12352 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12353 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12354 echo $ECHO_N "(cached
) $ECHO_C" >&6
12356 cat >conftest.$ac_ext <<_ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12364 #define $ac_func innocuous_$ac_func
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func (); below.
12368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369 <limits.h> exists even on freestanding compilers. */
12372 # include <limits.h>
12374 # include <assert.h>
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12386 /* The GNU C library defines this for functions which it implements
12387 to always fail with ENOSYS. Some functions are actually named
12388 something starting with __ and the normal name is an alias. */
12389 #if defined __stub_$ac_func || defined __stub___$ac_func
12396 return $ac_func ();
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (ac_try="$ac_link"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 eval "$as_ac_var=yes"
12437 echo "$as_me: failed program was
:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 eval "$as_ac_var=no
"
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12446 ac_res=`eval echo '${'$as_ac_var'}'`
12447 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12448 echo "${ECHO_T}$ac_res" >&6; }
12449 if test `eval echo '${'$as_ac_var'}'` = yes; then
12450 cat >>confdefs.h <<_ACEOF
12451 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12460 for ac_func in closedir opendir readdir
12462 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12463 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12464 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12465 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12466 echo $ECHO_N "(cached
) $ECHO_C" >&6
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12476 #define $ac_func innocuous_$ac_func
12478 /* System header to define __stub macros and hopefully few prototypes,
12479 which can conflict with char $ac_func (); below.
12480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 <limits.h> exists even on freestanding compilers. */
12484 # include <limits.h>
12486 # include <assert.h>
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12498 /* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
12501 #if defined __stub_$ac_func || defined __stub___$ac_func
12508 return $ac_func ();
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (ac_try="$ac_link"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 eval "$as_ac_var=yes"
12549 echo "$as_me: failed program was
:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 eval "$as_ac_var=no
"
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12558 ac_res=`eval echo '${'$as_ac_var'}'`
12559 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12560 echo "${ECHO_T}$ac_res" >&6; }
12561 if test `eval echo '${'$as_ac_var'}'` = yes; then
12562 cat >>confdefs.h <<_ACEOF
12563 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12570 # Check whether --enable-shared was given.
12571 if test "${enable_shared+set}" = set; then
12572 enableval=$enable_shared; p=${PACKAGE-default}
12574 yes) enable_shared=yes ;;
12575 no) enable_shared=no ;;
12578 # Look at the argument we got. We use all the common list separators.
12579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12580 for pkg in $enableval; do
12582 if test "X
$pkg" = "X
$p"; then
12594 # Check whether --enable-static was given.
12595 if test "${enable_static+set}" = set; then
12596 enableval=$enable_static; p=${PACKAGE-default}
12598 yes) enable_static=yes ;;
12599 no) enable_static=no ;;
12602 # Look at the argument we got. We use all the common list separators.
12603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12604 for pkg in $enableval; do
12606 if test "X
$pkg" = "X
$p"; then
12618 # Check whether --enable-fast-install was given.
12619 if test "${enable_fast_install+set}" = set; then
12620 enableval=$enable_fast_install; p=${PACKAGE-default}
12622 yes) enable_fast_install=yes ;;
12623 no) enable_fast_install=no ;;
12625 enable_fast_install=no
12626 # Look at the argument we got. We use all the common list separators.
12627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12628 for pkg in $enableval; do
12630 if test "X
$pkg" = "X
$p"; then
12631 enable_fast_install=yes
12638 enable_fast_install=yes
12642 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12643 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12644 if test "${lt_cv_path_SED+set}" = set; then
12645 echo $ECHO_N "(cached
) $ECHO_C" >&6
12647 # Loop through the user's path and test for sed and gsed.
12648 # Then use that list of sed's as ones to test for truncation.
12649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650 for as_dir in $PATH
12653 test -z "$as_dir" && as_dir=.
12654 for lt_ac_prog in sed gsed; do
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12657 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12664 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12665 # along with /bin/sed that truncates output.
12666 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12667 test ! -f $lt_ac_sed && continue
12668 cat /dev/null > conftest.in
12670 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12671 # Check for GNU sed and select it if it is found.
12672 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12673 lt_cv_path_SED=$lt_ac_sed
12677 cat conftest.in conftest.in >conftest.tmp
12678 mv conftest.tmp conftest.in
12679 cp conftest.in conftest.nl
12681 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12682 cmp -s conftest.out conftest.nl || break
12683 # 10000 chars as input seems more than enough
12684 test $lt_ac_count -gt 10 && break
12685 lt_ac_count=`expr $lt_ac_count + 1`
12686 if test $lt_ac_count -gt $lt_ac_max; then
12687 lt_ac_max=$lt_ac_count
12688 lt_cv_path_SED=$lt_ac_sed
12695 SED=$lt_cv_path_SED
12696 { echo "$as_me:$LINENO: result
: $SED" >&5
12697 echo "${ECHO_T}$SED" >&6; }
12700 # Check whether --with-gnu-ld was given.
12701 if test "${with_gnu_ld+set}" = set; then
12702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12708 if test "$GCC" = yes; then
12709 # Check if gcc -print-prog-name=ld gives a path.
12710 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12711 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12714 # gcc leaves a trailing carriage return which upsets mingw
12715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12720 # Accept absolute paths.
12722 re_direlt='/[^/][^/]*/\.\./'
12723 # Canonicalize the pathname of ld
12724 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12725 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12726 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12728 test -z "$LD" && LD="$ac_prog"
12731 # If it fails, then pretend we aren't using GCC.
12735 # If it is relative, then search for the first ld in PATH.
12736 with_gnu_ld=unknown
12739 elif test "$with_gnu_ld" = yes; then
12740 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12741 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12743 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12744 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12746 if test "${lt_cv_path_LD+set}" = set; then
12747 echo $ECHO_N "(cached
) $ECHO_C" >&6
12749 if test -z "$LD"; then
12750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12751 for ac_dir in $PATH; do
12753 test -z "$ac_dir" && ac_dir=.
12754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12755 lt_cv_path_LD="$ac_dir/$ac_prog"
12756 # Check to see if the program is GNU ld. I'd rather use --version,
12757 # but apparently some variants of GNU ld only accept -v.
12758 # Break only if it was the GNU/non-GNU ld that we prefer.
12759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761 test "$with_gnu_ld" != no && break
12764 test "$with_gnu_ld" != yes && break
12771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12775 LD="$lt_cv_path_LD"
12776 if test -n "$LD"; then
12777 { echo "$as_me:$LINENO: result
: $LD" >&5
12778 echo "${ECHO_T}$LD" >&6; }
12780 { echo "$as_me:$LINENO: result
: no
" >&5
12781 echo "${ECHO_T}no
" >&6; }
12783 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12784 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12785 { (exit 1); exit 1; }; }
12786 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12787 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12789 echo $ECHO_N "(cached
) $ECHO_C" >&6
12791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12792 case `$LD -v 2>&1 </dev/null` in
12793 *GNU* | *'with BFD'*)
12794 lt_cv_prog_gnu_ld=yes
12797 lt_cv_prog_gnu_ld=no
12801 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12803 with_gnu_ld=$lt_cv_prog_gnu_ld
12806 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12807 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12808 if test "${lt_cv_ld_reload_flag+set}" = set; then
12809 echo $ECHO_N "(cached
) $ECHO_C" >&6
12811 lt_cv_ld_reload_flag='-r'
12813 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12814 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12815 reload_flag=$lt_cv_ld_reload_flag
12816 case $reload_flag in
12818 *) reload_flag=" $reload_flag" ;;
12820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12823 if test "$GCC" = yes; then
12824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12831 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12832 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12833 if test "${lt_cv_deplibs_check_method+set}" = set; then
12834 echo $ECHO_N "(cached
) $ECHO_C" >&6
12836 lt_cv_file_magic_cmd='$MAGIC_CMD'
12837 lt_cv_file_magic_test_file=
12838 lt_cv_deplibs_check_method='unknown'
12839 # Need to set the preceding variable on all platforms that support
12840 # interlibrary dependencies.
12841 # 'none' -- dependencies not supported.
12842 # `unknown' -- same as none, but documents that we really don't know.
12843 # 'pass_all' -- all dependencies passed with no checks.
12844 # 'test_compile' -- check by making test program.
12845 # 'file_magic [[regex]]' -- check by looking for files in library path
12846 # which responds to the $file_magic_cmd with a given extended regex.
12847 # If you have `file' or equivalent on your system and you're not sure
12848 # whether `pass_all' will *always* work, you probably want this one.
12852 lt_cv_deplibs_check_method=pass_all
12856 lt_cv_deplibs_check_method=pass_all
12860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12861 lt_cv_file_magic_cmd='/usr/bin/file -L'
12862 lt_cv_file_magic_test_file=/shlib/libc.so
12866 # func_win32_libid is a shell function defined in ltmain.sh
12867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12868 lt_cv_file_magic_cmd='func_win32_libid'
12872 # Base MSYS/MinGW do not provide the 'file' command needed by
12873 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12875 lt_cv_file_magic_cmd='$OBJDUMP -f'
12878 darwin* | rhapsody*)
12879 lt_cv_deplibs_check_method=pass_all
12882 freebsd* | kfreebsd*-gnu | dragonfly*)
12883 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12886 # Not sure whether the presence of OpenBSD here was a mistake.
12887 # Let's accept both of them until this is cleared up.
12888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12889 lt_cv_file_magic_cmd=/usr/bin/file
12890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12894 lt_cv_deplibs_check_method=pass_all
12899 lt_cv_deplibs_check_method=pass_all
12902 hpux10.20* | hpux11*)
12903 lt_cv_file_magic_cmd=/usr/bin/file
12906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12907 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12910 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]'
12911 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12915 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12921 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12925 irix5* | irix6* | nonstopux*)
12927 *-32|*"-32 ") libmagic=32-bit;;
12928 *-n32|*"-n32 ") libmagic=N32;;
12929 *-64|*"-64 ") libmagic=64-bit;;
12930 *) libmagic=never-match;;
12932 lt_cv_deplibs_check_method=pass_all
12935 # This must be Linux ELF.
12937 lt_cv_deplibs_check_method=pass_all
12941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12950 lt_cv_file_magic_cmd=/usr/bin/file
12951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12955 lt_cv_deplibs_check_method=unknown
12959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12966 osf3* | osf4* | osf5*)
12967 lt_cv_deplibs_check_method=pass_all
12971 lt_cv_deplibs_check_method=pass_all
12975 case $host_vendor in
12977 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]'
12978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12981 lt_cv_deplibs_check_method=pass_all
12984 lt_cv_file_magic_cmd='/bin/file'
12985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12988 lt_cv_file_magic_cmd='/bin/file'
12989 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12990 lt_cv_file_magic_test_file=/lib/libc.so
12993 lt_cv_deplibs_check_method=pass_all
12996 lt_cv_deplibs_check_method=pass_all
13001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13002 lt_cv_deplibs_check_method=pass_all
13007 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
13008 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13009 file_magic_cmd=$lt_cv_file_magic_cmd
13010 deplibs_check_method=$lt_cv_deplibs_check_method
13011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13015 # If no C compiler was specified, use CC.
13018 # If no C compiler flags were specified, use CFLAGS.
13019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13021 # Allow CC to be a program name with arguments.
13024 # Check whether --enable-libtool-lock was given.
13025 if test "${enable_libtool_lock+set}" = set; then
13026 enableval=$enable_libtool_lock;
13029 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13031 # Some flags need to be propagated to the compiler or linker for good
13035 # Find out which ABI we are using.
13036 echo 'int i;' > conftest.$ac_ext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>&5
13040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13041 (exit $ac_status); }; then
13042 case `/usr/bin/file conftest.$ac_objext` in
13044 HPUX_IA64_MODE="32"
13047 HPUX_IA64_MODE="64"
13054 # Find out which ABI we are using.
13055 echo '#line 13060 "configure
"' > conftest.$ac_ext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>&5
13059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13060 (exit $ac_status); }; then
13061 if test "$lt_cv_prog_gnu_ld" = yes; then
13062 case `/usr/bin/file conftest.$ac_objext` in
13064 LD="${LD-ld} -melf32bsmip"
13067 LD="${LD-ld} -melf32bmipn32"
13070 LD="${LD-ld} -melf64bmip"
13074 case `/usr/bin/file conftest.$ac_objext` in
13090 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13091 # Find out which ABI we are using.
13092 echo 'int i;' > conftest.$ac_ext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13097 (exit $ac_status); }; then
13098 case `/usr/bin/file conftest.o` in
13102 LD="${LD-ld} -m elf_i386
"
13104 ppc64-*linux*|powerpc64-*linux*)
13105 LD="${LD-ld} -m elf32ppclinux
"
13108 LD="${LD-ld} -m elf_s390
"
13111 LD="${LD-ld} -m elf32_sparc
"
13118 LD="${LD-ld} -m elf_x86_64
"
13120 ppc*-*linux*|powerpc*-*linux*)
13121 LD="${LD-ld} -m elf64ppc
"
13124 LD="${LD-ld} -m elf64_s390
"
13127 LD="${LD-ld} -m elf64_sparc
"
13137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13138 SAVE_CFLAGS="$CFLAGS"
13139 CFLAGS="$CFLAGS -belf"
13140 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13141 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13142 if test "${lt_cv_cc_needs_belf+set}" = set; then
13143 echo $ECHO_N "(cached
) $ECHO_C" >&6
13146 ac_cpp='$CPP $CPPFLAGS'
13147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13166 rm -f conftest.$ac_objext conftest$ac_exeext
13167 if { (ac_try="$ac_link"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13175 grep -v '^ *+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 lt_cv_cc_needs_belf=yes
13202 echo "$as_me: failed program was
:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 lt_cv_cc_needs_belf=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13211 ac_cpp='$CPP $CPPFLAGS'
13212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13217 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13218 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13219 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13220 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13221 CFLAGS="$SAVE_CFLAGS"
13225 # Find out which ABI we are using.
13226 echo 'int i;' > conftest.$ac_ext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228 (eval $ac_compile) 2>&5
13230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13231 (exit $ac_status); }; then
13232 case `/usr/bin/file conftest.o` in
13234 case $lt_cv_prog_gnu_ld in
13235 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13236 *) LD="${LD-ld} -64" ;;
13247 need_locks="$enable_libtool_lock"
13252 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13253 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13254 (test "X
$CXX" != "Xg
++"))) ; then
13256 ac_cpp='$CXXCPP $CPPFLAGS'
13257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13260 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13261 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13262 if test -z "$CXXCPP"; then
13263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13264 echo $ECHO_N "(cached
) $ECHO_C" >&6
13266 # Double quotes because CXXCPP needs to be expanded
13267 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13269 ac_preproc_ok=false
13270 for ac_cxx_preproc_warn_flag in '' yes
13272 # Use a header file that comes with gcc, so configuring glibc
13273 # with a fresh cross-compiler works.
13274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13275 # <limits.h> exists even on freestanding compilers.
13276 # On the NeXT, cc -E runs the code through the compiler's parser,
13277 # not just through cpp. "Syntax error
" is here to catch this case.
13278 cat >conftest.$ac_ext <<_ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13285 # include <limits.h>
13287 # include <assert.h>
13291 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13303 (exit $ac_status); } >/dev/null; then
13304 if test -s conftest.err; then
13305 ac_cpp_err=$ac_cxx_preproc_warn_flag
13306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13313 if test -z "$ac_cpp_err"; then
13316 echo "$as_me: failed program was
:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 # Broken: fails on valid input.
13323 rm -f conftest.err conftest.$ac_ext
13325 # OK, works on sane cases. Now check whether nonexistent headers
13326 # can be detected and how.
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 #include <ac_nonexistent.h>
13335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13347 (exit $ac_status); } >/dev/null; then
13348 if test -s conftest.err; then
13349 ac_cpp_err=$ac_cxx_preproc_warn_flag
13350 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13357 if test -z "$ac_cpp_err"; then
13358 # Broken: success on invalid input.
13361 echo "$as_me: failed program was
:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 # Passes both tests.
13369 rm -f conftest.err conftest.$ac_ext
13372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13373 rm -f conftest.err conftest.$ac_ext
13374 if $ac_preproc_ok; then
13379 ac_cv_prog_CXXCPP=$CXXCPP
13382 CXXCPP=$ac_cv_prog_CXXCPP
13384 ac_cv_prog_CXXCPP=$CXXCPP
13386 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13387 echo "${ECHO_T}$CXXCPP" >&6; }
13388 ac_preproc_ok=false
13389 for ac_cxx_preproc_warn_flag in '' yes
13391 # Use a header file that comes with gcc, so configuring glibc
13392 # with a fresh cross-compiler works.
13393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13394 # <limits.h> exists even on freestanding compilers.
13395 # On the NeXT, cc -E runs the code through the compiler's parser,
13396 # not just through cpp. "Syntax error
" is here to catch this case.
13397 cat >conftest.$ac_ext <<_ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13404 # include <limits.h>
13406 # include <assert.h>
13410 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13422 (exit $ac_status); } >/dev/null; then
13423 if test -s conftest.err; then
13424 ac_cpp_err=$ac_cxx_preproc_warn_flag
13425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13432 if test -z "$ac_cpp_err"; then
13435 echo "$as_me: failed program was
:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 # Broken: fails on valid input.
13442 rm -f conftest.err conftest.$ac_ext
13444 # OK, works on sane cases. Now check whether nonexistent headers
13445 # can be detected and how.
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 #include <ac_nonexistent.h>
13454 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13466 (exit $ac_status); } >/dev/null; then
13467 if test -s conftest.err; then
13468 ac_cpp_err=$ac_cxx_preproc_warn_flag
13469 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13476 if test -z "$ac_cpp_err"; then
13477 # Broken: success on invalid input.
13480 echo "$as_me: failed program was
:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 # Passes both tests.
13488 rm -f conftest.err conftest.$ac_ext
13491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13492 rm -f conftest.err conftest.$ac_ext
13493 if $ac_preproc_ok; then
13496 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13497 See \
`config.log' for more details." >&5
13498 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13499 See \`config.log
' for more details." >&2;}
13500 { (exit 1); exit 1; }; }
13504 ac_cpp='$CXXCPP $CPPFLAGS'
13505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13506 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13513 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13514 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13515 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13516 if test -n "$ac_tool_prefix"; then
13517 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
13519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13523 if test "${ac_cv_prog_F77+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 if test -n "$F77"; then
13527 ac_cv_prog_F77="$F77" # Let the user override the test.
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13536 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13546 F77=$ac_cv_prog_F77
13547 if test -n "$F77"; then
13548 { echo "$as_me:$LINENO: result: $F77" >&5
13549 echo "${ECHO_T}$F77" >&6; }
13551 { echo "$as_me:$LINENO: result: no" >&5
13552 echo "${ECHO_T}no" >&6; }
13556 test -n "$F77" && break
13559 if test -z "$F77"; then
13561 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
13563 # Extract the first word of "$ac_prog", so it can be a program name with args.
13564 set dummy $ac_prog; ac_word=$2
13565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13567 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 if test -n "$ac_ct_F77"; then
13571 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13580 ac_cv_prog_ac_ct_F77="$ac_prog"
13581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13591 if test -n "$ac_ct_F77"; then
13592 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13593 echo "${ECHO_T}$ac_ct_F77" >&6; }
13595 { echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6; }
13600 test -n "$ac_ct_F77" && break
13603 if test "x$ac_ct_F77" = x; then
13606 case $cross_compiling:$ac_tool_warned in
13608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13609 whose name does not start with the host triplet. If you think this
13610 configuration is useful to you, please write to autoconf@gnu.org." >&5
13611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13612 whose name does not start with the host triplet. If you think this
13613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13614 ac_tool_warned=yes ;;
13621 # Provide some information about the compiler.
13622 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13623 ac_compiler=`set X $ac_compile; echo $2`
13624 { (ac_try="$ac_compiler --version >&5"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compiler --version >&5") 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }
13634 { (ac_try="$ac_compiler -v >&5"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_compiler -v >&5") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }
13644 { (ac_try="$ac_compiler -V >&5"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compiler -V >&5") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }
13656 # If we don't use
`.F' as extension, the preprocessor is not run on the
13657 # input file. (Note that this only needs to work for GNU compilers.)
13658 ac_save_ext=$ac_ext
13660 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13661 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13662 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 cat >conftest.$ac_ext <<_ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13677 *) ac_try_echo
=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1
>conftest.err
13684 cat conftest.err
>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13700 *) ac_try_echo
=$ac_try;;
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_compiler_gnu
=yes
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.
$ac_ext >&5
13715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13716 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13719 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13720 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13721 ac_ext
=$ac_save_ext
13722 ac_test_FFLAGS
=${FFLAGS+set}
13723 ac_save_FFLAGS
=$FFLAGS
13725 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13726 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13727 if test "${ac_cv_prog_f77_g+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 cat >conftest.
$ac_ext <<_ACEOF
13736 rm -f conftest.
$ac_objext
13737 if { (ac_try
="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13745 grep -v '^ *+' conftest.er1 >conftest.err
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13753 *) ac_try_echo
=$ac_try;;
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try
='test -s conftest.$ac_objext'
13761 { (case "(($ac_try" in
13762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_prog_f77_g=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_cv_prog_f77_g=no
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13782 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13783 if test "$ac_test_FFLAGS" = set; then
13784 FFLAGS=$ac_save_FFLAGS
13785 elif test $ac_cv_prog_f77_g = yes; then
13786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13792 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13799 G77=`test $ac_compiler_gnu = yes && echo yes`
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13808 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13810 # find the maximum length of command line arguments
13811 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13812 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13813 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 # On DJGPP, this test can blow up pretty badly due to problems in libc
13822 # (any single argument exceeding 2000 bytes causes a buffer overrun
13823 # during glob expansion). Even if it were fixed, the result of this
13824 # check would be larger than it should be.
13825 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13829 # Under GNU Hurd, this test is not required because there is
13830 # no limit to the length of command line arguments.
13831 # Libtool will interpret -1 as no limit whatsoever
13832 lt_cv_sys_max_cmd_len=-1;
13836 # On Win9x/ME, this test blows up -- it succeeds, but takes
13837 # about 5 minutes as the teststring grows exponentially.
13838 # Worse, since 9x/ME are not pre-emptively multitasking,
13839 # you end up with a "frozen" computer, even though with patience
13840 # the test eventually succeeds (with a max line length of 256k).
13841 # Instead, let's just punt: use the minimum linelength reported by
13842 # all of the supported platforms: 8192 (on NT/2K/XP).
13843 lt_cv_sys_max_cmd_len=8192;
13847 # On AmigaOS with pdksh, this test takes hours, literally.
13848 # So we just punt and use a minimum line length of 8192.
13849 lt_cv_sys_max_cmd_len=8192;
13852 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13853 # This has been around since 386BSD, at least. Likely further.
13854 if test -x /sbin/sysctl; then
13855 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13856 elif test -x /usr/sbin/sysctl; then
13857 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13859 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13861 # And add a safety zone
13862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13867 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13868 lt_cv_sys_max_cmd_len=196608
13872 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13873 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13874 # nice to cause kernel panics so lets avoid the loop below.
13875 # First set a reasonable default.
13876 lt_cv_sys_max_cmd_len=16384
13878 if test -x /sbin/sysconfig; then
13879 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13880 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13885 lt_cv_sys_max_cmd_len=102400
13887 sysv5* | sco5v6* | sysv4.2uw2*)
13888 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13889 if test -n "$kargmax"; then
13890 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13892 lt_cv_sys_max_cmd_len=32768
13896 # If test is not a shell built-in, we'll probably end up computing a
13897 # maximum length that is only half of the actual maximum length, but
13899 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13900 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13901 = "XX$teststring") >/dev/null 2>&1 &&
13902 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13903 lt_cv_sys_max_cmd_len=$new_result &&
13904 test $i != 17 # 1/2 MB should be enough
13907 teststring=$teststring$teststring
13910 # Add a significant safety factor because C++ compilers can tack on massive
13911 # amounts of additional arguments before passing them to the linker.
13912 # It appears as though 1/2 is a usable value.
13913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13919 if test -n $lt_cv_sys_max_cmd_len ; then
13920 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13921 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13923 { echo "$as_me:$LINENO: result: none" >&5
13924 echo "${ECHO_T}none" >&6; }
13930 # Check for command to grab the raw symbol name followed by C symbol from nm.
13931 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 # These are sane defaults that work on at least a few old systems.
13938 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13940 # Character class describing NM global symbol codes.
13941 symcode='[BCDEGRST]'
13943 # Regexp to match symbols that can be accessed directly from C.
13944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13946 # Transform an extracted symbol line into a proper C declaration
13947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13949 # Transform an extracted symbol line into symbol name and symbol address
13950 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'"
13952 # Define system-specific variables.
13957 cygwin* | mingw* | pw32*)
13958 symcode='[ABCDGISTW]'
13960 hpux*) # Its linker distinguishes data from code symbols
13961 if test "$host_cpu" = ia64; then
13962 symcode='[ABCDEGRST]'
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 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'"
13968 if test "$host_cpu" = ia64; then
13969 symcode='[ABCDGIRSTW]'
13970 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13971 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'"
13974 irix* | nonstopux*)
13975 symcode='[BCDEGRST]'
13978 symcode='[BCDEGQRST]'
13989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13997 # Handle CRLF in mingw tool chain
14001 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
14005 # If we're using GNU nm, then use its standard symbol codes.
14006 case `$NM -V 2>&1` in
14007 *GNU* | *'with BFD'*)
14008 symcode='[ABCDGIRSTW]' ;;
14011 # Try without a prefix undercore, then with it.
14012 for ac_symprfx in "" "_"; do
14014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14015 symxfrm="\\1 $ac_symprfx\\2 \\2"
14017 # Write the raw and C identifiers.
14018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14020 # Check to see that the pipe works correctly.
14024 cat > conftest.$ac_ext <<EOF
14029 void nm_test_func(){}
14033 int main(){nm_test_var='a';nm_test_func();return(0);}
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; then
14041 # Now try to grab the symbols.
14043 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14044 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && test -s "$nlist"; then
14048 # Try sorting and uniquifying the output.
14049 if sort "$nlist" | uniq > "$nlist"T; then
14050 mv -f "$nlist"T "$nlist"
14055 # Make sure that we snagged all the symbols we need.
14056 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14057 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14058 cat <<EOF > conftest.$ac_ext
14064 # Now generate the symbol file.
14065 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14067 cat <<EOF >> conftest.$ac_ext
14068 #if defined (__STDC__) && __STDC__
14069 # define lt_ptr_t void *
14071 # define lt_ptr_t char *
14075 /* The mapping between symbol names and symbols. */
14080 lt_preloaded_symbols[] =
14083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14084 cat <<\EOF >> conftest.$ac_ext
14092 # Now try linking the two files.
14093 mv conftest.$ac_objext conftstm.$ac_objext
14094 lt_save_LIBS="$LIBS"
14095 lt_save_CFLAGS="$CFLAGS"
14096 LIBS="conftstm.$ac_objext"
14097 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14105 LIBS="$lt_save_LIBS"
14106 CFLAGS="$lt_save_CFLAGS"
14108 echo "cannot find nm_test_func in $nlist" >&5
14111 echo "cannot find nm_test_var in $nlist" >&5
14114 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14117 echo "$progname: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14120 rm -f conftest* conftst*
14122 # Do not use the global_symbol_pipe unless it works.
14123 if test "$pipe_works" = yes; then
14126 lt_cv_sys_global_symbol_pipe=
14132 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14133 lt_cv_sys_global_symbol_to_cdecl=
14135 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14136 { echo "$as_me:$LINENO: result: failed" >&5
14137 echo "${ECHO_T}failed" >&6; }
14139 { echo "$as_me:$LINENO: result: ok" >&5
14140 echo "${ECHO_T}ok" >&6; }
14143 { echo "$as_me:$LINENO: checking for objdir" >&5
14144 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14145 if test "${lt_cv_objdir+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 rm -f .libs 2>/dev/null
14149 mkdir .libs 2>/dev/null
14150 if test -d .libs; then
14153 # MS-DOS does not allow filenames that begin with a dot.
14156 rmdir .libs 2>/dev/null
14158 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14159 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14160 objdir=$lt_cv_objdir
14168 # AIX sometimes has problems with the GCC collect2 program. For some
14169 # reason, if we set the COLLECT_NAMES environment variable, the problems
14170 # vanish in a puff of smoke.
14171 if test "X${COLLECT_NAMES+set}" != Xset; then
14173 export COLLECT_NAMES
14178 # Sed substitution that helps us do robust quoting. It backslashifies
14179 # metacharacters that are still active within double-quoted strings.
14180 Xsed='sed -e 1s/^X//'
14181 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14183 # Same as above, but do not quote variable references.
14184 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14186 # Sed substitution to delay expansion of an escaped shell variable in a
14187 # double_quote_subst'ed string.
14188 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14190 # Sed substitution to avoid accidental globbing in evaled expressions
14191 no_glob_subst='s/\*/\\\*/g'
14196 # Global variables:
14197 default_ofile=mklib
14198 can_build_shared=yes
14200 # All known linkers require a `.a' archive for static linking (except MSVC,
14201 # which needs '.lib').
14203 ltmain="$ac_aux_dir/ltmain.sh
"
14204 ofile="$default_ofile"
14205 with_gnu_ld="$lt_cv_prog_gnu_ld"
14207 if test -n "$ac_tool_prefix"; then
14208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14209 set dummy ${ac_tool_prefix}ar; ac_word=$2
14210 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14211 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14212 if test "${ac_cv_prog_AR+set}" = set; then
14213 echo $ECHO_N "(cached
) $ECHO_C" >&6
14215 if test -n "$AR"; then
14216 ac_cv_prog_AR="$AR" # Let the user override the test.
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_prog_AR="${ac_tool_prefix}ar"
14226 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14236 if test -n "$AR"; then
14237 { echo "$as_me:$LINENO: result
: $AR" >&5
14238 echo "${ECHO_T}$AR" >&6; }
14240 { echo "$as_me:$LINENO: result
: no
" >&5
14241 echo "${ECHO_T}no
" >&6; }
14246 if test -z "$ac_cv_prog_AR"; then
14248 # Extract the first word of "ar", so it can be a program name with args.
14249 set dummy ar; ac_word=$2
14250 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14251 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14253 echo $ECHO_N "(cached
) $ECHO_C" >&6
14255 if test -n "$ac_ct_AR"; then
14256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14265 ac_cv_prog_ac_ct_AR="ar"
14266 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14276 if test -n "$ac_ct_AR"; then
14277 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14278 echo "${ECHO_T}$ac_ct_AR" >&6; }
14280 { echo "$as_me:$LINENO: result
: no
" >&5
14281 echo "${ECHO_T}no
" >&6; }
14284 if test "x
$ac_ct_AR" = x; then
14287 case $cross_compiling:$ac_tool_warned in
14289 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14290 whose name does not start with the
host triplet. If you think this
14291 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14292 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14293 whose name does not start with the
host triplet. If you think this
14294 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14295 ac_tool_warned=yes ;;
14300 AR="$ac_cv_prog_AR"
14303 if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14306 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14307 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14308 if test "${ac_cv_prog_RANLIB+set}" = set; then
14309 echo $ECHO_N "(cached
) $ECHO_C" >&6
14311 if test -n "$RANLIB"; then
14312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14318 test -z "$as_dir" && as_dir=.
14319 for ac_exec_ext in '' $ac_executable_extensions; do
14320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14322 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14331 RANLIB=$ac_cv_prog_RANLIB
14332 if test -n "$RANLIB"; then
14333 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14334 echo "${ECHO_T}$RANLIB" >&6; }
14336 { echo "$as_me:$LINENO: result
: no
" >&5
14337 echo "${ECHO_T}no
" >&6; }
14342 if test -z "$ac_cv_prog_RANLIB"; then
14343 ac_ct_RANLIB=$RANLIB
14344 # Extract the first word of "ranlib
", so it can be a program name with args.
14345 set dummy ranlib; ac_word=$2
14346 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14347 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14349 echo $ECHO_N "(cached
) $ECHO_C" >&6
14351 if test -n "$ac_ct_RANLIB"; then
14352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14362 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14371 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14372 if test -n "$ac_ct_RANLIB"; then
14373 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14374 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14376 { echo "$as_me:$LINENO: result
: no
" >&5
14377 echo "${ECHO_T}no
" >&6; }
14380 if test "x
$ac_ct_RANLIB" = x; then
14383 case $cross_compiling:$ac_tool_warned in
14385 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14386 whose name does not start with the
host triplet. If you think this
14387 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14388 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14389 whose name does not start with the
host triplet. If you think this
14390 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14391 ac_tool_warned=yes ;;
14393 RANLIB=$ac_ct_RANLIB
14396 RANLIB="$ac_cv_prog_RANLIB"
14399 if test -n "$ac_tool_prefix"; then
14400 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14401 set dummy ${ac_tool_prefix}strip; ac_word=$2
14402 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14403 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14404 if test "${ac_cv_prog_STRIP+set}" = set; then
14405 echo $ECHO_N "(cached
) $ECHO_C" >&6
14407 if test -n "$STRIP"; then
14408 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14417 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14418 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14427 STRIP=$ac_cv_prog_STRIP
14428 if test -n "$STRIP"; then
14429 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14430 echo "${ECHO_T}$STRIP" >&6; }
14432 { echo "$as_me:$LINENO: result
: no
" >&5
14433 echo "${ECHO_T}no
" >&6; }
14438 if test -z "$ac_cv_prog_STRIP"; then
14440 # Extract the first word of "strip
", so it can be a program name with args.
14441 set dummy strip; ac_word=$2
14442 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14443 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14444 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14445 echo $ECHO_N "(cached
) $ECHO_C" >&6
14447 if test -n "$ac_ct_STRIP"; then
14448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14457 ac_cv_prog_ac_ct_STRIP="strip
"
14458 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14468 if test -n "$ac_ct_STRIP"; then
14469 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14470 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14472 { echo "$as_me:$LINENO: result
: no
" >&5
14473 echo "${ECHO_T}no
" >&6; }
14476 if test "x
$ac_ct_STRIP" = x; then
14479 case $cross_compiling:$ac_tool_warned in
14481 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14482 whose name does not start with the
host triplet. If you think this
14483 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14484 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14485 whose name does not start with the
host triplet. If you think this
14486 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14487 ac_tool_warned=yes ;;
14492 STRIP="$ac_cv_prog_STRIP"
14497 old_CFLAGS="$CFLAGS"
14499 # Set sane defaults for various variables
14500 test -z "$AR" && AR=ar
14501 test -z "$AR_FLAGS" && AR_FLAGS=cru
14502 test -z "$AS" && AS=as
14503 test -z "$CC" && CC=cc
14504 test -z "$LTCC" && LTCC=$CC
14505 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14506 test -z "$DLLTOOL" && DLLTOOL=dlltool
14507 test -z "$LD" && LD=ld
14508 test -z "$LN_S" && LN_S="ln -s"
14509 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14510 test -z "$NM" && NM=nm
14511 test -z "$SED" && SED=sed
14512 test -z "$OBJDUMP" && OBJDUMP=objdump
14513 test -z "$RANLIB" && RANLIB=:
14514 test -z "$STRIP" && STRIP=:
14515 test -z "$ac_objext" && ac_objext=o
14517 # Determine commands to create old-style static archives.
14518 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14519 old_postinstall_cmds='chmod 644 $oldlib'
14520 old_postuninstall_cmds=
14522 if test -n "$RANLIB"; then
14525 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14528 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14531 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14534 for cc_temp in $compiler""; do
14536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14542 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14545 # Only perform the check for file, if the check method requires it
14546 case $deplibs_check_method in
14548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14549 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14550 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14551 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14552 echo $ECHO_N "(cached
) $ECHO_C" >&6
14556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14559 lt_save_MAGIC_CMD="$MAGIC_CMD"
14560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14561 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14562 for ac_dir in $ac_dummy; do
14564 test -z "$ac_dir" && ac_dir=.
14565 if test -f $ac_dir/${ac_tool_prefix}file; then
14566 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14567 if test -n "$file_magic_test_file"; then
14568 case $deplibs_check_method in
14570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14573 $EGREP "$file_magic_regex" > /dev/null; then
14578 *** Warning: the command libtool uses to detect shared libraries,
14579 *** $file_magic_cmd, produces output that libtool cannot recognize.
14580 *** The result is that libtool may fail to recognize shared libraries
14581 *** as such. This will affect the creation of libtool libraries that
14582 *** depend on shared libraries, but programs linked with such libtool
14583 *** libraries will work regardless of this problem. Nevertheless, you
14584 *** may want to report the problem to your system manager and/or to
14585 *** bug-libtool@gnu.org
14595 MAGIC_CMD="$lt_save_MAGIC_CMD"
14600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14601 if test -n "$MAGIC_CMD"; then
14602 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14603 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14605 { echo "$as_me:$LINENO: result
: no
" >&5
14606 echo "${ECHO_T}no
" >&6; }
14609 if test -z "$lt_cv_path_MAGIC_CMD"; then
14610 if test -n "$ac_tool_prefix"; then
14611 { echo "$as_me:$LINENO: checking
for file" >&5
14612 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14613 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14614 echo $ECHO_N "(cached
) $ECHO_C" >&6
14618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14621 lt_save_MAGIC_CMD="$MAGIC_CMD"
14622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14623 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14624 for ac_dir in $ac_dummy; do
14626 test -z "$ac_dir" && ac_dir=.
14627 if test -f $ac_dir/file; then
14628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14629 if test -n "$file_magic_test_file"; then
14630 case $deplibs_check_method in
14632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14635 $EGREP "$file_magic_regex" > /dev/null; then
14640 *** Warning: the command libtool uses to detect shared libraries,
14641 *** $file_magic_cmd, produces output that libtool cannot recognize.
14642 *** The result is that libtool may fail to recognize shared libraries
14643 *** as such. This will affect the creation of libtool libraries that
14644 *** depend on shared libraries, but programs linked with such libtool
14645 *** libraries will work regardless of this problem. Nevertheless, you
14646 *** may want to report the problem to your system manager and/or to
14647 *** bug-libtool@gnu.org
14657 MAGIC_CMD="$lt_save_MAGIC_CMD"
14662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14663 if test -n "$MAGIC_CMD"; then
14664 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14665 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14667 { echo "$as_me:$LINENO: result
: no
" >&5
14668 echo "${ECHO_T}no
" >&6; }
14681 enable_win32_dll=no
14683 # Check whether --enable-libtool-lock was given.
14684 if test "${enable_libtool_lock+set}" = set; then
14685 enableval=$enable_libtool_lock;
14688 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14691 # Check whether --with-pic was given.
14692 if test "${with_pic+set}" = set; then
14693 withval=$with_pic; pic_mode="$withval"
14698 test -z "$pic_mode" && pic_mode=default
14700 # Use C for the default configuration in the libtool script
14704 ac_cpp='$CPP $CPPFLAGS'
14705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14710 # Source file extension for C test sources.
14713 # Object file extension for compiled C test sources.
14717 # Code to be used in simple compile tests
14718 lt_simple_compile_test_code="int some_variable
= 0;\n"
14720 # Code to be used in simple link tests
14721 lt_simple_link_test_code='int main(){return(0);}\n'
14724 # If no C compiler was specified, use CC.
14727 # If no C compiler flags were specified, use CFLAGS.
14728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14730 # Allow CC to be a program name with arguments.
14734 # save warnings/boilerplate of simple test code
14735 ac_outfile=conftest.$ac_objext
14736 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738 _lt_compiler_boilerplate=`cat conftest.err`
14741 ac_outfile=conftest.$ac_objext
14742 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14744 _lt_linker_boilerplate=`cat conftest.err`
14749 lt_prog_compiler_no_builtin_flag=
14751 if test "$GCC" = yes; then
14752 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14755 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14756 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14758 echo $ECHO_N "(cached
) $ECHO_C" >&6
14760 lt_cv_prog_compiler_rtti_exceptions=no
14761 ac_outfile=conftest.$ac_objext
14762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14763 lt_compiler_flag="-fno-rtti -fno-exceptions"
14764 # Insert the option either (1) after the last *FLAGS variable, or
14765 # (2) before a word containing "conftest.
", or (3) at the end.
14766 # Note that $ac_compile itself does not contain backslashes and begins
14767 # with a dollar sign (not a hyphen), so the echo should work correctly.
14768 # The option is referenced via a variable to avoid confusing sed.
14769 lt_compile=`echo "$ac_compile" | $SED \
14770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14772 -e 's:$: $lt_compiler_flag:'`
14773 (eval echo "\"\
$as_me:14778: $lt_compile\"" >&5)
14774 (eval "$lt_compile" 2>conftest.err)
14776 cat conftest.err >&5
14777 echo "$as_me:14782: \$?
= $ac_status" >&5
14778 if (exit $ac_status) && test -s "$ac_outfile"; then
14779 # The compiler can only warn and ignore the option if not recognized
14780 # So say no if there are warnings other than the usual output.
14781 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14784 lt_cv_prog_compiler_rtti_exceptions=yes
14790 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14791 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14793 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14794 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14801 lt_prog_compiler_wl=
14802 lt_prog_compiler_pic=
14803 lt_prog_compiler_static=
14805 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14806 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14808 if test "$GCC" = yes; then
14809 lt_prog_compiler_wl='-Wl,'
14810 lt_prog_compiler_static='-static'
14814 # All AIX code is PIC.
14815 if test "$host_cpu" = ia64; then
14816 # AIX 5 now supports IA64 processor
14817 lt_prog_compiler_static='-Bstatic'
14822 # FIXME: we need at least 68020 code to build shared libraries, but
14823 # adding the `-m68020' flag to GCC prevents building anything better,
14825 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14828 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14829 # PIC is the default for these OSes.
14832 mingw* | pw32* | os2*)
14833 # This hack is so that the source file can tell whether it is being
14834 # built for inclusion in a dll (and should export symbols for example).
14835 lt_prog_compiler_pic='-DDLL_EXPORT'
14838 darwin* | rhapsody*)
14839 # PIC is the default on this platform
14840 # Common symbols not allowed in MH_DYLIB files
14841 lt_prog_compiler_pic='-fno-common'
14845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14846 # Instead, we relocate shared libraries at runtime.
14850 # Just because we use GCC doesn't mean we suddenly get shared libraries
14851 # on systems that don't support them.
14852 lt_prog_compiler_can_build_shared=no
14857 if test -d /usr/nec; then
14858 lt_prog_compiler_pic=-Kconform_pic
14863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14864 # not for PA HP-UX.
14870 lt_prog_compiler_pic='-fPIC'
14876 lt_prog_compiler_pic='-fPIC'
14880 # PORTME Check for flag to pass linker flags through the system compiler.
14883 lt_prog_compiler_wl='-Wl,'
14884 if test "$host_cpu" = ia64; then
14885 # AIX 5 now supports IA64 processor
14886 lt_prog_compiler_static='-Bstatic'
14888 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14892 # PIC is the default on this platform
14893 # Common symbols not allowed in MH_DYLIB files
14894 case $cc_basename in
14896 lt_prog_compiler_pic='-qnocommon'
14897 lt_prog_compiler_wl='-Wl,'
14902 mingw* | pw32* | os2*)
14903 # This hack is so that the source file can tell whether it is being
14904 # built for inclusion in a dll (and should export symbols for example).
14905 lt_prog_compiler_pic='-DDLL_EXPORT'
14908 hpux9* | hpux10* | hpux11*)
14909 lt_prog_compiler_wl='-Wl,'
14910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14911 # not for PA HP-UX.
14917 lt_prog_compiler_pic='+Z'
14920 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14921 lt_prog_compiler_static='${wl}-a ${wl}archive'
14924 irix5* | irix6* | nonstopux*)
14925 lt_prog_compiler_wl='-Wl,'
14926 # PIC (with -KPIC) is the default.
14927 lt_prog_compiler_static='-non_shared'
14931 lt_prog_compiler_pic='-KPIC'
14932 lt_prog_compiler_static='-Bstatic'
14936 case $cc_basename in
14938 lt_prog_compiler_wl='-Wl,'
14939 lt_prog_compiler_pic='-KPIC'
14940 lt_prog_compiler_static='-static'
14942 pgcc* | pgf77* | pgf90* | pgf95*)
14943 # Portland Group compilers (*not* the Pentium gcc compiler,
14944 # which looks to be a dead project)
14945 lt_prog_compiler_wl='-Wl,'
14946 lt_prog_compiler_pic='-fpic'
14947 lt_prog_compiler_static='-Bstatic'
14950 lt_prog_compiler_wl='-Wl,'
14951 # All Alpha code is PIC.
14952 lt_prog_compiler_static='-non_shared'
14957 osf3* | osf4* | osf5*)
14958 lt_prog_compiler_wl='-Wl,'
14959 # All OSF/1 code is PIC.
14960 lt_prog_compiler_static='-non_shared'
14964 lt_prog_compiler_pic='-KPIC'
14965 lt_prog_compiler_static='-Bstatic'
14966 case $cc_basename in
14967 f77* | f90* | f95*)
14968 lt_prog_compiler_wl='-Qoption ld ';;
14970 lt_prog_compiler_wl='-Wl,';;
14975 lt_prog_compiler_wl='-Qoption ld '
14976 lt_prog_compiler_pic='-PIC'
14977 lt_prog_compiler_static='-Bstatic'
14980 sysv4 | sysv4.2uw2* | sysv4.3*)
14981 lt_prog_compiler_wl='-Wl,'
14982 lt_prog_compiler_pic='-KPIC'
14983 lt_prog_compiler_static='-Bstatic'
14987 if test -d /usr/nec ;then
14988 lt_prog_compiler_pic='-Kconform_pic'
14989 lt_prog_compiler_static='-Bstatic'
14993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_pic='-KPIC'
14996 lt_prog_compiler_static='-Bstatic'
15000 lt_prog_compiler_wl='-Wl,'
15001 lt_prog_compiler_can_build_shared=no
15005 lt_prog_compiler_pic='-pic'
15006 lt_prog_compiler_static='-Bstatic'
15010 lt_prog_compiler_can_build_shared=no
15015 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
15016 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15019 # Check to make sure the PIC flag actually works.
15021 if test -n "$lt_prog_compiler_pic"; then
15023 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15024 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
15025 if test "${lt_prog_compiler_pic_works+set}" = set; then
15026 echo $ECHO_N "(cached
) $ECHO_C" >&6
15028 lt_prog_compiler_pic_works=no
15029 ac_outfile=conftest.$ac_objext
15030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15031 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15032 # Insert the option either (1) after the last *FLAGS variable, or
15033 # (2) before a word containing "conftest.
", or (3) at the end.
15034 # Note that $ac_compile itself does not contain backslashes and begins
15035 # with a dollar sign (not a hyphen), so the echo should work correctly.
15036 # The option is referenced via a variable to avoid confusing sed.
15037 lt_compile=`echo "$ac_compile" | $SED \
15038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15040 -e 's:$: $lt_compiler_flag:'`
15041 (eval echo "\"\
$as_me:15046: $lt_compile\"" >&5)
15042 (eval "$lt_compile" 2>conftest.err)
15044 cat conftest.err >&5
15045 echo "$as_me:15050: \$?
= $ac_status" >&5
15046 if (exit $ac_status) && test -s "$ac_outfile"; then
15047 # The compiler can only warn and ignore the option if not recognized
15048 # So say no if there are warnings other than the usual output.
15049 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15052 lt_prog_compiler_pic_works=yes
15058 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15059 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15061 if test x"$lt_prog_compiler_pic_works" = xyes; then
15062 case $lt_prog_compiler_pic in
15064 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15067 lt_prog_compiler_pic=
15068 lt_prog_compiler_can_build_shared=no
15073 # For platforms which do not support PIC, -DPIC is meaningless:
15075 lt_prog_compiler_pic=
15078 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15083 # Check to make sure the static flag actually works.
15085 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15086 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15087 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15088 if test "${lt_prog_compiler_static_works+set}" = set; then
15089 echo $ECHO_N "(cached
) $ECHO_C" >&6
15091 lt_prog_compiler_static_works=no
15092 save_LDFLAGS="$LDFLAGS"
15093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15094 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15096 # The linker can only warn and ignore the option if not recognized
15097 # So say no if there are warnings
15098 if test -s conftest.err; then
15099 # Append any errors to the config.log.
15100 cat conftest.err 1>&5
15101 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_prog_compiler_static_works=yes
15107 lt_prog_compiler_static_works=yes
15111 LDFLAGS="$save_LDFLAGS"
15114 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15115 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15117 if test x"$lt_prog_compiler_static_works" = xyes; then
15120 lt_prog_compiler_static=
15124 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15125 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15127 echo $ECHO_N "(cached
) $ECHO_C" >&6
15129 lt_cv_prog_compiler_c_o=no
15130 $rm -r conftest 2>/dev/null
15134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15136 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15137 # Insert the option either (1) after the last *FLAGS variable, or
15138 # (2) before a word containing "conftest.
", or (3) at the end.
15139 # Note that $ac_compile itself does not contain backslashes and begins
15140 # with a dollar sign (not a hyphen), so the echo should work correctly.
15141 lt_compile=`echo "$ac_compile" | $SED \
15142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15144 -e 's:$: $lt_compiler_flag:'`
15145 (eval echo "\"\
$as_me:15150: $lt_compile\"" >&5)
15146 (eval "$lt_compile" 2>out/conftest.err)
15148 cat out/conftest.err >&5
15149 echo "$as_me:15154: \$?
= $ac_status" >&5
15150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15152 # The compiler can only warn and ignore the option if not recognized
15153 # So say no if there are warnings
15154 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15157 lt_cv_prog_compiler_c_o=yes
15162 # SGI C++ compiler will create directory out/ii_files/ for
15163 # template instantiation
15164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15165 $rm out/* && rmdir out
15171 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15175 hard_links="nottested
"
15176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15177 # do not overwrite the value of need_locks provided by the user
15178 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15179 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15184 ln conftest.a conftest.b 2>&5 || hard_links=no
15185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15186 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15187 echo "${ECHO_T}$hard_links" >&6; }
15188 if test "$hard_links" = no; then
15189 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15190 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15197 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15198 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15201 allow_undefined_flag=
15202 enable_shared_with_static_runtimes=no
15204 archive_expsym_cmds=
15205 old_archive_From_new_cmds=
15206 old_archive_from_expsyms_cmds=
15207 export_dynamic_flag_spec=
15208 whole_archive_flag_spec=
15209 thread_safe_flag_spec=
15210 hardcode_libdir_flag_spec=
15211 hardcode_libdir_flag_spec_ld=
15212 hardcode_libdir_separator=
15214 hardcode_minus_L=no
15215 hardcode_shlibpath_var=unsupported
15216 link_all_deplibs=unknown
15217 hardcode_automatic=no
15219 module_expsym_cmds=
15220 always_export_symbols=no
15221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15222 # include_expsyms should be a list of space-separated symbols to be *always*
15223 # included in the symbol list
15225 # exclude_expsyms can be an extended regexp of symbols to exclude
15226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15228 # as well as any symbol that contains `d'.
15229 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15231 # platforms (ab)use it in PIC code, but their linkers get confused if
15232 # the symbol is explicitly referenced. Since portable code cannot
15233 # rely on this symbol name, it's probably fine to never include it in
15234 # preloaded symbol tables.
15235 extract_expsyms_cmds=
15236 # Just being paranoid about ensuring that cc_basename is set.
15237 for cc_temp in $compiler""; do
15239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15245 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15248 cygwin* | mingw* | pw32*)
15249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15250 # When not using gcc, we currently assume that we are using
15251 # Microsoft Visual C++.
15252 if test "$GCC" != yes; then
15257 # we just hope/assume this is gcc and not c89 (= MSVC++)
15266 if test "$with_gnu_ld" = yes; then
15267 # If archive_cmds runs LD, not CC, wlarc should be empty
15270 # Set some defaults for GNU ld with shared library support. These
15271 # are reset later if shared libraries are not supported. Putting them
15272 # here allows them to be overridden if necessary.
15273 runpath_var=LD_RUN_PATH
15274 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15275 export_dynamic_flag_spec='${wl}--export-dynamic'
15276 # ancient GNU ld didn't support --whole-archive et. al.
15277 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15278 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15280 whole_archive_flag_spec=
15282 supports_anon_versioning=no
15283 case `$LD -v 2>/dev/null` in
15284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15287 *\ 2.11.*) ;; # other 2.11 versions
15288 *) supports_anon_versioning=yes ;;
15291 # See if GNU ld supports shared libraries.
15293 aix3* | aix4* | aix5*)
15294 # On AIX/PPC, the GNU linker is very broken
15295 if test "$host_cpu" != ia64; then
15299 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15300 *** to be unable to reliably create shared libraries on AIX.
15301 *** Therefore, libtool is disabling shared libraries support. If you
15302 *** really care for shared libraries, you may want to modify your PATH
15303 *** so that a non-GNU linker is found, and then restart.
15310 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)'
15311 hardcode_libdir_flag_spec
='-L$libdir'
15312 hardcode_minus_L
=yes
15314 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15315 # that the semantics of dynamic libraries on AmigaOS, at least up
15316 # to version 4, is to share data among multiple programs linked
15317 # with the same dynamic library. Since this doesn't match the
15318 # behavior of shared libraries on other platforms, we can't use
15324 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15325 allow_undefined_flag
=unsupported
15326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15327 # support --undefined. This deserves some investigation. FIXME
15328 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15334 cygwin
* | mingw
* | pw32
*)
15335 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15336 # as there is no search path for DLLs.
15337 hardcode_libdir_flag_spec
='-L$libdir'
15338 allow_undefined_flag
=unsupported
15339 always_export_symbols
=no
15340 enable_shared_with_static_runtimes
=yes
15341 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15343 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15344 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15345 # If the export-symbols file already is a .def file (1st line
15346 # is EXPORTS), use it as is; otherwise, prepend...
15347 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15348 cp $export_symbols $output_objdir/$soname.def;
15350 echo EXPORTS > $output_objdir/$soname.def;
15351 cat $export_symbols >> $output_objdir/$soname.def;
15353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15361 hardcode_shlibpath_var
=no
15362 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15363 export_dynamic_flag_spec
='${wl}-E'
15364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15365 # Instead, shared libraries are loaded at an image base (0x10000000 by
15366 # default) and relocated if they conflict, which is a slow very memory
15367 # consuming and fragmenting process. To avoid this, we pick a random,
15368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15370 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15371 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'
15375 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15377 case $cc_basename,$host_cpu in
15378 pgcc
*) # Portland Group C compiler
15379 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'
15380 tmp_addflag
=' $pic_flag'
15382 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15383 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'
15384 tmp_addflag
=' $pic_flag -Mnomain' ;;
15385 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15386 tmp_addflag
=' -i_dynamic' ;;
15387 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15388 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15389 ifc
* | ifort
*) # Intel Fortran compiler
15390 tmp_addflag
=' -nofor_main' ;;
15392 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15394 if test $supports_anon_versioning = yes; then
15395 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15397 $echo "local: *; };" >> $output_objdir/$libname.ver~
15398 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15406 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15407 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15410 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15411 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15416 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15420 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15421 *** create shared libraries on Solaris systems. Therefore, libtool
15422 *** is disabling shared libraries support. We urge you to upgrade GNU
15423 *** binutils to release 2.9.1 or newer. Another option is to modify
15424 *** your PATH or compiler configuration so that the native linker is
15425 *** used, and then restart.
15428 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15429 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15436 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15437 case `$LD -v 2>&1` in
15438 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15442 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15443 *** reliably create shared libraries on SCO systems. Therefore, libtool
15444 *** is disabling shared libraries support. We urge you to upgrade GNU
15445 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15446 *** your PATH or compiler configuration so that the native linker is
15447 *** used, and then restart.
15452 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15453 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15454 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15455 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15464 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15466 hardcode_direct
=yes
15467 hardcode_shlibpath_var
=no
15471 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15472 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15480 if test "$ld_shlibs" = no
; then
15482 hardcode_libdir_flag_spec
=
15483 export_dynamic_flag_spec
=
15484 whole_archive_flag_spec
=
15487 # PORTME fill in a description of your system's linker (not GNU ld)
15490 allow_undefined_flag
=unsupported
15491 always_export_symbols
=yes
15492 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'
15493 # Note: this linker hardcodes the directories in LIBPATH if there
15494 # are no directories specified by -L.
15495 hardcode_minus_L
=yes
15496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15497 # Neither direct hardcoding nor static linking is supported with a
15499 hardcode_direct
=unsupported
15504 if test "$host_cpu" = ia64
; then
15505 # On IA64, the linker does run time linking by default, so we don't
15506 # have to do anything special.
15507 aix_use_runtimelinking
=no
15508 exp_sym_flag
='-Bexport'
15511 # If we're using GNU nm, then we don't want the "-C" option.
15512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15513 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15514 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'
15516 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'
15518 aix_use_runtimelinking
=no
15520 # Test if we are trying to use run time linking or normal
15521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15522 # need to do runtime linking.
15523 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15524 for ld_flag
in $LDFLAGS; do
15525 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15526 aix_use_runtimelinking
=yes
15533 exp_sym_flag
='-bexport'
15534 no_entry_flag
='-bnoentry'
15537 # When large executables or shared objects are built, AIX ld can
15538 # have problems creating the table of contents. If linking a library
15539 # or program results in "error TOC overflow" add -mminimal-toc to
15540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15544 hardcode_direct
=yes
15545 hardcode_libdir_separator
=':'
15546 link_all_deplibs
=yes
15548 if test "$GCC" = yes; then
15549 case $host_os in aix4.
[012]|aix4.
[012].
*)
15550 # We only want to do this on AIX 4.2 and lower, the check
15551 # below for broken collect2 doesn't work under 4.3+
15552 collect2name
=`${CC} -print-prog-name=collect2`
15553 if test -f "$collect2name" && \
15554 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15556 # We have reworked collect2
15557 hardcode_direct
=yes
15559 # We have old collect2
15560 hardcode_direct
=unsupported
15561 # It fails to find uninstalled libraries when the uninstalled
15562 # path is not listed in the libpath. Setting hardcode_minus_L
15563 # to unsupported forces relinking
15564 hardcode_minus_L
=yes
15565 hardcode_libdir_flag_spec
='-L$libdir'
15566 hardcode_libdir_separator
=
15570 shared_flag
='-shared'
15571 if test "$aix_use_runtimelinking" = yes; then
15572 shared_flag
="$shared_flag "'${wl}-G'
15576 if test "$host_cpu" = ia64
; then
15577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15578 # chokes on -Wl,-G. The following line is correct:
15581 if test "$aix_use_runtimelinking" = yes; then
15582 shared_flag
='${wl}-G'
15584 shared_flag
='${wl}-bM:SRE'
15589 # It seems that -bexpall does not export symbols beginning with
15590 # underscore (_), so it is better to generate a list of symbols to export.
15591 always_export_symbols
=yes
15592 if test "$aix_use_runtimelinking" = yes; then
15593 # Warning - without using the other runtime loading flags (-brtl),
15594 # -berok will link without error, but may produce a broken library.
15595 allow_undefined_flag
='-berok'
15596 # Determine the default libpath from the value encoded in an empty executable.
15597 cat >conftest.
$ac_ext <<_ACEOF
15600 cat confdefs.h
>>conftest.
$ac_ext
15601 cat >>conftest.
$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15612 rm -f conftest.
$ac_objext conftest
$ac_exeext
15613 if { (ac_try
="$ac_link"
15614 case "(($ac_try" in
15615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_link") 2>conftest.er1
15621 grep -v '^ *+' conftest.er1 >conftest.err
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15629 *) ac_try_echo
=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try
='test -s conftest$ac_exeext'
15637 { (case "(($ac_try" in
15638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_try") 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15647 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15649 # Check for a 64-bit object if we didn't find anything.
15650 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; }
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15659 rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15664 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"
15666 if test "$host_cpu" = ia64; then
15667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15668 allow_undefined_flag="-z nodefs"
15669 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"
15671 # Determine the default libpath from the value encoded in an empty executable.
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15691 *) ac_try_echo
=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_link") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1
>conftest.err
15698 cat conftest.err
>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15702 { (case "(($ac_try" in
15703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707 (eval "$ac_try") 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest$ac_exeext'
15712 { (case "(($ac_try" in
15713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15714 *) ac_try_echo
=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_try") 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15722 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15724 # Check for a 64-bit object if we didn't find anything.
15725 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; }
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.
$ac_ext >&5
15734 rm -f core conftest.err conftest.
$ac_objext \
15735 conftest
$ac_exeext conftest.
$ac_ext
15736 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15738 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15739 # Warning - without using the other run time loading flags,
15740 # -berok will link without error, but may produce a broken library.
15741 no_undefined_flag
=' ${wl}-bernotok'
15742 allow_undefined_flag
=' ${wl}-berok'
15743 # Exported symbols can be pulled into shared objects from archives
15744 whole_archive_flag_spec
='$convenience'
15745 archive_cmds_need_lc
=yes
15746 # This is similar to how AIX traditionally builds its shared libraries.
15747 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'
15753 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)'
15754 hardcode_libdir_flag_spec
='-L$libdir'
15755 hardcode_minus_L
=yes
15756 # see comment about different semantics on the GNU ld section
15761 export_dynamic_flag_spec
=-rdynamic
15764 cygwin
* | mingw
* | pw32
*)
15765 # When not using gcc, we currently assume that we are using
15766 # Microsoft Visual C++.
15767 # hardcode_libdir_flag_spec is actually meaningless, as there is
15768 # no search path for DLLs.
15769 hardcode_libdir_flag_spec
=' '
15770 allow_undefined_flag
=unsupported
15771 # Tell ltmain to make .lib files, not .a files.
15773 # Tell ltmain to make .dll files, not .so files.
15775 # FIXME: Setting linknames here is a bad hack.
15776 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15777 # The linker will automatically build a .lib file if we build a DLL.
15778 old_archive_From_new_cmds
='true'
15779 # FIXME: Should let the user specify the lib program.
15780 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15781 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15782 enable_shared_with_static_runtimes
=yes
15785 darwin
* | rhapsody
*)
15787 rhapsody
* | darwin1.
[012])
15788 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15791 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15792 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15794 case ${MACOSX_DEPLOYMENT_TARGET} in
15796 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15799 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15805 archive_cmds_need_lc
=no
15807 hardcode_automatic
=yes
15808 hardcode_shlibpath_var
=unsupported
15809 whole_archive_flag_spec
=''
15810 link_all_deplibs
=yes
15811 if test "$GCC" = yes ; then
15812 output_verbose_link_cmd
='echo'
15813 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15814 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15816 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}'
15817 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}'
15819 case $cc_basename in
15821 output_verbose_link_cmd
='echo'
15822 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15823 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15825 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}'
15826 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}'
15836 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837 hardcode_libdir_flag_spec
='-L$libdir'
15838 hardcode_shlibpath_var
=no
15845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15846 # support. Future versions do this automatically, but an explicit c++rt0.o
15847 # does not break anything, and helps significantly (at the cost of a little
15850 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15851 hardcode_libdir_flag_spec
='-R$libdir'
15852 hardcode_direct
=yes
15853 hardcode_shlibpath_var
=no
15856 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15858 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_direct
=yes
15860 hardcode_minus_L
=yes
15861 hardcode_shlibpath_var
=no
15864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15865 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15866 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15867 hardcode_libdir_flag_spec
='-R$libdir'
15868 hardcode_direct
=yes
15869 hardcode_shlibpath_var
=no
15873 if test "$GCC" = yes; then
15874 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'
15876 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'
15878 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator
=:
15880 hardcode_direct
=yes
15882 # hardcode_minus_L: Not really in the search PATH,
15883 # but as the default location of the library.
15884 hardcode_minus_L
=yes
15885 export_dynamic_flag_spec
='${wl}-E'
15889 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15890 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15894 if test "$with_gnu_ld" = no
; then
15895 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15896 hardcode_libdir_separator
=:
15898 hardcode_direct
=yes
15899 export_dynamic_flag_spec
='${wl}-E'
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L
=yes
15908 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15911 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15914 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15923 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15929 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15933 if test "$with_gnu_ld" = no
; then
15934 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15935 hardcode_libdir_separator
=:
15939 hardcode_libdir_flag_spec_ld
='+b $libdir'
15941 hardcode_shlibpath_var
=no
15944 hardcode_direct
=yes
15945 export_dynamic_flag_spec
='${wl}-E'
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L
=yes
15955 irix5
* | irix6
* | nonstopux
*)
15956 if test "$GCC" = yes; then
15957 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'
15959 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'
15960 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15962 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15963 hardcode_libdir_separator
=:
15964 link_all_deplibs
=yes
15968 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15969 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15971 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15973 hardcode_libdir_flag_spec
='-R$libdir'
15974 hardcode_direct
=yes
15975 hardcode_shlibpath_var
=no
15979 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct
=yes
15981 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15982 hardcode_libdir_separator
=:
15983 hardcode_shlibpath_var
=no
15987 hardcode_direct
=yes
15988 hardcode_shlibpath_var
=no
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15992 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15993 export_dynamic_flag_spec
='${wl}-E'
15996 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15997 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec
='-R$libdir'
16001 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16009 hardcode_libdir_flag_spec
='-L$libdir'
16010 hardcode_minus_L
=yes
16011 allow_undefined_flag
=unsupported
16012 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'
16013 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16017 if test "$GCC" = yes; then
16018 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16019 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'
16021 allow_undefined_flag
=' -expect_unresolved \*'
16022 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'
16024 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator
=:
16028 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16029 if test "$GCC" = yes; then
16030 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16032 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16034 allow_undefined_flag
=' -expect_unresolved \*'
16035 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'
16036 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16037 $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'
16039 # Both c and cxx compiler support -rpath directly
16040 hardcode_libdir_flag_spec
='-rpath $libdir'
16042 hardcode_libdir_separator
=:
16046 no_undefined_flag
=' -z text'
16047 if test "$GCC" = yes; then
16049 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16050 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16054 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16058 hardcode_libdir_flag_spec
='-R$libdir'
16059 hardcode_shlibpath_var
=no
16061 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16063 # The compiler driver will combine linker options so we
16064 # cannot just pass the convience library names through
16065 # without $wl, iff we do not link with $LD.
16066 # Luckily, gcc supports the same syntax we need for Sun Studio.
16067 # Supported since Solaris 2.6 (maybe 2.5.1?)
16070 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16072 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' ;;
16075 link_all_deplibs
=yes
16079 if test "x$host_vendor" = xsequent
; then
16080 # Use $CC to link under sequent, because it throws in some extra .o
16081 # files that make .init and .fini sections work.
16082 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16084 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_libdir_flag_spec
='-L$libdir'
16087 hardcode_direct
=yes
16088 hardcode_minus_L
=yes
16089 hardcode_shlibpath_var
=no
16093 case $host_vendor in
16095 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 hardcode_direct
=yes # is this really true???
16099 ## LD is ld it makes a PLAMLIB
16100 ## CC just makes a GrossModule.
16101 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16102 reload_cmds
='$CC -r -o $output$reload_objs'
16106 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16107 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16110 runpath_var
='LD_RUN_PATH'
16111 hardcode_shlibpath_var
=no
16115 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_shlibpath_var
=no
16117 export_dynamic_flag_spec
='-Bexport'
16121 if test -d /usr
/nec
; then
16122 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_shlibpath_var
=no
16124 runpath_var
=LD_RUN_PATH
16125 hardcode_runpath_var
=yes
16130 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16131 no_undefined_flag
='${wl}-z,text'
16132 archive_cmds_need_lc
=no
16133 hardcode_shlibpath_var
=no
16134 runpath_var
='LD_RUN_PATH'
16136 if test "$GCC" = yes; then
16137 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 sysv5
* | sco3.2v5
* | sco5v6
*)
16146 # Note: We can NOT use -z defs as we might desire, because we do not
16147 # link with -lc, and that would cause any symbols used from libc to
16148 # always be unresolved, which means just about no library would
16149 # ever link correctly. If we're not using GNU ld we use -z text
16150 # though, which does catch some bad symbols but isn't as heavy-handed
16152 no_undefined_flag
='${wl}-z,text'
16153 allow_undefined_flag
='${wl}-z,nodefs'
16154 archive_cmds_need_lc
=no
16155 hardcode_shlibpath_var
=no
16156 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16157 hardcode_libdir_separator
=':'
16158 link_all_deplibs
=yes
16159 export_dynamic_flag_spec
='${wl}-Bexport'
16160 runpath_var
='LD_RUN_PATH'
16162 if test "$GCC" = yes; then
16163 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec
='-L$libdir'
16174 hardcode_shlibpath_var
=no
16183 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16184 echo "${ECHO_T}$ld_shlibs" >&6; }
16185 test "$ld_shlibs" = no
&& can_build_shared
=no
16188 # Do we need to explicitly link libc?
16190 case "x$archive_cmds_need_lc" in
16192 # Assume -lc should be added
16193 archive_cmds_need_lc
=yes
16195 if test "$enable_shared" = yes && test "$GCC" = yes; then
16196 case $archive_cmds in
16198 # FIXME: we may have to deal with multi-command sequences.
16201 # Test whether the compiler implicitly links with -lc since on some
16202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203 # to ld, don't add -lc before -lgcc.
16204 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16207 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } 2>conftest.err
; then
16216 libobjs
=conftest.
$ac_objext
16218 wl
=$lt_prog_compiler_wl
16219 pic_flag
=$lt_prog_compiler_pic
16225 lt_save_allow_undefined_flag
=$allow_undefined_flag
16226 allow_undefined_flag
=
16227 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16228 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }
16233 archive_cmds_need_lc
=no
16235 archive_cmds_need_lc
=yes
16237 allow_undefined_flag
=$lt_save_allow_undefined_flag
16239 cat conftest.err
1>&5
16242 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16243 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16250 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16252 library_names_spec
=
16253 libname_spec
='lib$name'
16257 postuninstall_cmds
=
16261 shlibpath_overrides_runpath
=unknown
16263 dynamic_linker
="$host_os ld.so"
16264 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16265 if test "$GCC" = yes; then
16266 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16267 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16268 # if the path contains ";" then we assume it to be the separator
16269 # otherwise default to the standard path separator (i.e. ":") - it is
16270 # assumed that no part of a normal pathname contains ";" but that should
16271 # okay in the real world where ";" in dirpaths is itself problematic.
16272 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16274 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16277 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16279 need_lib_prefix
=unknown
16280 hardcode_into_libs
=no
16282 # when you set need_version to no, make sure it does not cause -set_version
16283 # flags to be left without arguments
16284 need_version
=unknown
16289 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16290 shlibpath_var
=LIBPATH
16292 # AIX 3 has no versioning support, so we append a major version to the name.
16293 soname_spec
='${libname}${release}${shared_ext}$major'
16300 hardcode_into_libs
=yes
16301 if test "$host_cpu" = ia64
; then
16302 # AIX 5 supports IA64
16303 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16304 shlibpath_var
=LD_LIBRARY_PATH
16306 # With GCC up to 2.95.x, collect2 would create an import file
16307 # for dependence libraries. The import file would start with
16308 # the line `#! .'. This would cause the generated library to
16309 # depend on `.', always an invalid library. This was fixed in
16310 # development snapshots of GCC prior to 3.0.
16312 aix4 | aix4.
[01] | aix4.
[01].
*)
16313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16315 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16318 can_build_shared
=no
16322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16323 # soname into executable. Probably we can add versioning support to
16324 # collect2, so additional links can be useful in future.
16325 if test "$aix_use_runtimelinking" = yes; then
16326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16327 # instead of lib<name>.a to let people know that these are not
16328 # typical AIX shared libraries.
16329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 # We preserve .a as extension for shared libraries through AIX4.2
16332 # and later when we are not doing run time linking.
16333 library_names_spec
='${libname}${release}.a $libname.a'
16334 soname_spec
='${libname}${release}${shared_ext}$major'
16336 shlibpath_var
=LIBPATH
16341 library_names_spec
='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16343 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'
16347 library_names_spec
='${libname}${shared_ext}'
16348 dynamic_linker
="$host_os ld.so"
16349 shlibpath_var
=LIBRARY_PATH
16355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec
='${libname}${release}${shared_ext}$major'
16357 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16358 shlibpath_var
=LD_LIBRARY_PATH
16359 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16360 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16361 # the default ld.so.conf also contains /usr/contrib/lib and
16362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16363 # libtool to hard-code these into programs
16366 cygwin
* | mingw
* | pw32
*)
16367 version_type
=windows
16372 case $GCC,$host_os in
16373 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16374 library_names_spec
='$libname.dll.a'
16375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16376 postinstall_cmds
='base_file=`basename \${file}`~
16377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16378 dldir=$destdir/`dirname \$dlpath`~
16379 test -d \$dldir || mkdir -p \$dldir~
16380 $install_prog $dir/$dlname \$dldir/$dlname~
16381 chmod a+x \$dldir/$dlname'
16382 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16383 dlpath=$dir/\$dldll~
16385 shlibpath_overrides_runpath
=yes
16389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16390 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16391 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16394 # MinGW DLLs use traditional 'lib' prefix
16395 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16396 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16397 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16398 # It is most probably a Windows format PATH printed by
16399 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16400 # path with ; separators, and with drive letters. We can handle the
16401 # drive letters (cygwin fileutils understands them), so leave them,
16402 # especially as we might pass files found there to a mingw objdump,
16403 # which wouldn't understand a cygwinified path. Ahh.
16404 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16406 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16410 # pw32 DLLs use 'pw' prefix rather than 'lib'
16411 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16417 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16420 dynamic_linker
='Win32 ld.exe'
16421 # FIXME: first we should search . and the directory the executable is in
16425 darwin
* | rhapsody
*)
16426 dynamic_linker
="$host_os dyld"
16427 version_type
=darwin
16430 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16431 soname_spec
='${libname}${release}${major}$shared_ext'
16432 shlibpath_overrides_runpath
=yes
16433 shlibpath_var
=DYLD_LIBRARY_PATH
16434 shrext_cmds
='.dylib'
16435 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16436 if test "$GCC" = yes; then
16437 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"`
16439 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16441 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16449 soname_spec
='${libname}${release}${shared_ext}$major'
16450 shlibpath_var
=LD_LIBRARY_PATH
16461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462 soname_spec
='${libname}${release}${shared_ext}$major'
16463 shlibpath_var
=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath
=no
16465 hardcode_into_libs
=yes
16466 dynamic_linker
='GNU ld.so'
16469 freebsd
* | dragonfly
*)
16470 # DragonFly does not have aout. When/if they implement a new
16471 # versioning mechanism, adjust this.
16472 if test -x /usr
/bin
/objformat
; then
16473 objformat
=`/usr/bin/objformat`
16476 freebsd
[123]*) objformat
=aout
;;
16477 *) objformat
=elf
;;
16480 version_type
=freebsd-
$objformat
16481 case $version_type in
16483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16488 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16492 shlibpath_var
=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath
=yes
16497 freebsd3.
[01]* | freebsdelf3.
[01]*)
16498 shlibpath_overrides_runpath
=yes
16499 hardcode_into_libs
=yes
16501 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16502 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16503 shlibpath_overrides_runpath
=no
16504 hardcode_into_libs
=yes
16506 freebsd
*) # from 4.6 on
16507 shlibpath_overrides_runpath
=yes
16508 hardcode_into_libs
=yes
16517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16518 soname_spec
='${libname}${release}${shared_ext}$major'
16519 shlibpath_var
=LD_LIBRARY_PATH
16520 hardcode_into_libs
=yes
16523 hpux9
* | hpux10
* | hpux11
*)
16524 # Give a soname corresponding to the major version so that dld.sl refuses to
16525 # link against other versions.
16532 hardcode_into_libs
=yes
16533 dynamic_linker
="$host_os dld.so"
16534 shlibpath_var
=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16537 soname_spec
='${libname}${release}${shared_ext}$major'
16538 if test "X$HPUX_IA64_MODE" = X32
; then
16539 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16541 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16543 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16547 hardcode_into_libs
=yes
16548 dynamic_linker
="$host_os dld.sl"
16549 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16550 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec
='${libname}${release}${shared_ext}$major'
16553 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16554 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16558 dynamic_linker
="$host_os dld.sl"
16559 shlibpath_var
=SHLIB_PATH
16560 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16562 soname_spec
='${libname}${release}${shared_ext}$major'
16565 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16566 postinstall_cmds
='chmod 555 $lib'
16573 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574 soname_spec
='${libname}${release}${shared_ext}$major'
16575 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16576 shlibpath_var
=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath
=no
16578 hardcode_into_libs
=yes
16581 irix5
* | irix6
* | nonstopux
*)
16583 nonstopux
*) version_type
=nonstopux
;;
16585 if test "$lt_cv_prog_gnu_ld" = yes; then
16593 soname_spec
='${libname}${release}${shared_ext}$major'
16594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16596 irix5
* | nonstopux
*)
16597 libsuff
= shlibsuff
=
16600 case $LD in # libtool.m4 will add one of these switches to LD
16601 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16602 libsuff
= shlibsuff
= libmagic
=32-bit;;
16603 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16604 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16605 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16606 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16607 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16611 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16612 shlibpath_overrides_runpath
=no
16613 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16614 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16615 hardcode_into_libs
=yes
16618 # No shared lib support for Linux oldld, aout, or coff.
16619 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16623 # This must be Linux ELF.
16628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec
='${libname}${release}${shared_ext}$major'
16630 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16631 shlibpath_var
=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath
=no
16633 # This implies no fast_install, which is unacceptable.
16634 # Some rework will be needed to allow for fast_install
16635 # before this can be enabled.
16636 hardcode_into_libs
=yes
16638 # Append ld.so.conf contents to the search path
16639 if test -f /etc
/ld.so.conf
; then
16640 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' ' '`
16641 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16644 # We used to test for /lib/ld.so.1 and disable shared libraries on
16645 # powerpc, because MkLinux only supported shared libraries with the
16646 # GNU dynamic linker. Since this was broken with cross compilers,
16647 # most powerpc-linux boxes support dynamic linking these days and
16648 # people can always --disable-shared, the test was removed, and we
16649 # assume the GNU/Linux dynamic linker is in use.
16650 dynamic_linker
='GNU/Linux ld.so'
16657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16658 soname_spec
='${libname}${release}${shared_ext}$major'
16659 shlibpath_var
=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath
=no
16661 hardcode_into_libs
=yes
16662 dynamic_linker
='GNU ld.so'
16669 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16671 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672 dynamic_linker
='NetBSD (a.out) ld.so'
16674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16675 soname_spec
='${libname}${release}${shared_ext}$major'
16676 dynamic_linker
='NetBSD ld.elf_so'
16678 shlibpath_var
=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath
=yes
16680 hardcode_into_libs
=yes
16685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 shlibpath_var
=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath
=yes
16694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec
='${libname}${release}${shared_ext}$major'
16696 shlibpath_var
=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath
=yes
16702 sys_lib_dlsearch_path_spec
="/usr/lib"
16704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16706 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16707 *) need_version
=no
;;
16709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16710 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16711 shlibpath_var
=LD_LIBRARY_PATH
16712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16714 openbsd2.
[89] | openbsd2.
[89].
*)
16715 shlibpath_overrides_runpath
=no
16718 shlibpath_overrides_runpath
=yes
16722 shlibpath_overrides_runpath
=yes
16727 libname_spec
='$name'
16730 library_names_spec
='$libname${shared_ext} $libname.a'
16731 dynamic_linker
='OS/2 ld.exe'
16732 shlibpath_var
=LIBPATH
16735 osf3
* | osf4
* | osf5
*)
16739 soname_spec
='${libname}${release}${shared_ext}$major'
16740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 shlibpath_var
=LD_LIBRARY_PATH
16742 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16743 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16751 soname_spec
='${libname}${release}${shared_ext}$major'
16752 shlibpath_var
=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath
=yes
16754 hardcode_into_libs
=yes
16755 # ldd complains unless libraries are executable
16756 postinstall_cmds
='chmod +x $lib'
16761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16762 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16763 shlibpath_var
=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath
=yes
16765 if test "$with_gnu_ld" = yes; then
16773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec
='${libname}${release}${shared_ext}$major'
16775 shlibpath_var
=LD_LIBRARY_PATH
16776 case $host_vendor in
16778 shlibpath_overrides_runpath
=no
16780 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16781 runpath_var
=LD_RUN_PATH
16789 shlibpath_overrides_runpath
=no
16790 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16796 if test -d /usr
/nec
;then
16798 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16799 soname_spec
='$libname${shared_ext}.$major'
16800 shlibpath_var
=LD_LIBRARY_PATH
16804 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16805 version_type
=freebsd-elf
16808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16809 soname_spec
='${libname}${release}${shared_ext}$major'
16810 shlibpath_var
=LD_LIBRARY_PATH
16811 hardcode_into_libs
=yes
16812 if test "$with_gnu_ld" = yes; then
16813 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16814 shlibpath_overrides_runpath
=no
16816 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16817 shlibpath_overrides_runpath
=yes
16820 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16824 sys_lib_dlsearch_path_spec
='/usr/lib'
16829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 soname_spec
='${libname}${release}${shared_ext}$major'
16831 shlibpath_var
=LD_LIBRARY_PATH
16838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16839 echo "${ECHO_T}$dynamic_linker" >&6; }
16840 test "$dynamic_linker" = no
&& can_build_shared
=no
16842 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16843 if test "$GCC" = yes; then
16844 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16850 if test -n "$hardcode_libdir_flag_spec" || \
16851 test -n "$runpath_var" || \
16852 test "X$hardcode_automatic" = "Xyes" ; then
16854 # We can hardcode non-existant directories.
16855 if test "$hardcode_direct" != no
&&
16856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16857 # have to relink, otherwise we might link with an installed library
16858 # when we should be linking with a yet-to-be-installed one
16859 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16860 test "$hardcode_minus_L" != no
; then
16861 # Linking always hardcodes the temporary library directory.
16862 hardcode_action
=relink
16864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16865 hardcode_action
=immediate
16868 # We cannot hardcode anything, or else we can only hardcode existing
16870 hardcode_action
=unsupported
16872 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16873 echo "${ECHO_T}$hardcode_action" >&6; }
16875 if test "$hardcode_action" = relink
; then
16876 # Fast installation is not supported
16877 enable_fast_install
=no
16878 elif test "$shlibpath_overrides_runpath" = yes ||
16879 test "$enable_shared" = no
; then
16880 # Fast installation is not necessary
16881 enable_fast_install
=needless
16886 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16888 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16889 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16890 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16891 { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16894 # FIXME - insert some real tests, host_os isn't really good enough
16897 if test -n "$STRIP" ; then
16898 striplib
="$STRIP -x"
16899 { echo "$as_me:$LINENO: result: yes" >&5
16900 echo "${ECHO_T}yes" >&6; }
16902 { echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6; }
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16913 if test "x$enable_dlopen" != xyes
; then
16914 enable_dlopen
=unknown
16915 enable_dlopen_self
=unknown
16916 enable_dlopen_self_static
=unknown
16923 lt_cv_dlopen
="load_add_on"
16925 lt_cv_dlopen_self
=yes
16929 lt_cv_dlopen
="LoadLibrary"
16934 lt_cv_dlopen
="dlopen"
16939 # if libdl is installed we need to link against it
16940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16945 ac_check_lib_save_LIBS
=$LIBS
16947 cat >conftest.
$ac_ext <<_ACEOF
16950 cat confdefs.h
>>conftest.
$ac_ext
16951 cat >>conftest.
$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16969 rm -f conftest.
$ac_objext conftest
$ac_exeext
16970 if { (ac_try
="$ac_link"
16971 case "(($ac_try" in
16972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16986 *) ac_try_echo
=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try
='test -s conftest$ac_exeext'
16994 { (case "(($ac_try" in
16995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_cv_lib_dl_dlopen=yes
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_cv_lib_dl_dlopen=no
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 LIBS=$ac_check_lib_save_LIBS
17015 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17017 if test $ac_cv_lib_dl_dlopen = yes; then
17018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17021 lt_cv_dlopen="dyld"
17023 lt_cv_dlopen_self=yes
17030 { echo "$as_me:$LINENO: checking for shl_load" >&5
17031 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17032 if test "${ac_cv_func_shl_load+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 cat >conftest.$ac_ext <<_ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17043 #define shl_load innocuous_shl_load
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char shl_load (); below.
17047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17048 <limits.h> exists even on freestanding compilers. */
17051 # include <limits.h>
17053 # include <assert.h>
17058 /* Override any GCC internal prototype to avoid an error.
17059 Use char because int might match the return type of a GCC
17060 builtin and then its argument prototype would still apply. */
17065 /* The GNU C library defines this for functions which it implements
17066 to always fail with ENOSYS. Some functions are actually named
17067 something starting with __ and the normal name is an alias. */
17068 #if defined __stub_shl_load || defined __stub___shl_load
17075 return shl_load ();
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (ac_try="$ac_link"
17082 case "(($ac_try" in
17083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17084 *) ac_try_echo
=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_link") 2>conftest.er1
17089 grep -v '^ *+' conftest.er1
>conftest.err
17091 cat conftest.err
>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17107 *) ac_try_echo
=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_func_shl_load
=yes
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.
$ac_ext >&5
17119 ac_cv_func_shl_load
=no
17122 rm -f core conftest.err conftest.
$ac_objext \
17123 conftest
$ac_exeext conftest.
$ac_ext
17125 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17126 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17127 if test $ac_cv_func_shl_load = yes; then
17128 lt_cv_dlopen
="shl_load"
17130 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17131 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 ac_check_lib_save_LIBS
=$LIBS
17137 cat >conftest.
$ac_ext <<_ACEOF
17140 cat confdefs.h
>>conftest.
$ac_ext
17141 cat >>conftest.
$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17154 return shl_load ();
17159 rm -f conftest.
$ac_objext conftest
$ac_exeext
17160 if { (ac_try
="$ac_link"
17161 case "(($ac_try" in
17162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17176 *) ac_try_echo
=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } &&
17183 { ac_try
='test -s conftest$ac_exeext'
17184 { (case "(($ac_try" in
17185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_try") 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 ac_cv_lib_dld_shl_load=yes
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_lib_dld_shl_load=no
17201 rm -f core conftest.err conftest.$ac_objext \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17206 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17207 if test $ac_cv_lib_dld_shl_load = yes; then
17208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17210 { echo "$as_me:$LINENO: checking for dlopen" >&5
17211 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17212 if test "${ac_cv_func_dlopen+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17223 #define dlopen innocuous_dlopen
17225 /* System header to define __stub macros and hopefully few prototypes,
17226 which can conflict with char dlopen (); below.
17227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17228 <limits.h> exists even on freestanding compilers. */
17231 # include <limits.h>
17233 # include <assert.h>
17238 /* Override any GCC internal prototype to avoid an error.
17239 Use char because int might match the return type of a GCC
17240 builtin and then its argument prototype would still apply. */
17245 /* The GNU C library defines this for functions which it implements
17246 to always fail with ENOSYS. Some functions are actually named
17247 something starting with __ and the normal name is an alias. */
17248 #if defined __stub_dlopen || defined __stub___dlopen
17260 rm -f conftest.$ac_objext conftest$ac_exeext
17261 if { (ac_try="$ac_link"
17262 case "(($ac_try" in
17263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17264 *) ac_try_echo
=$ac_try;;
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_link") 2>conftest.er1
17269 grep -v '^ *+' conftest.er1
>conftest.err
17271 cat conftest.err
>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (case "(($ac_try" in
17276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17287 *) ac_try_echo
=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_cv_func_dlopen
=yes
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.
$ac_ext >&5
17299 ac_cv_func_dlopen
=no
17302 rm -f core conftest.err conftest.
$ac_objext \
17303 conftest
$ac_exeext conftest.
$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17306 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17307 if test $ac_cv_func_dlopen = yes; then
17308 lt_cv_dlopen
="dlopen"
17310 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17311 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 ac_check_lib_save_LIBS
=$LIBS
17317 cat >conftest.
$ac_ext <<_ACEOF
17320 cat confdefs.h
>>conftest.
$ac_ext
17321 cat >>conftest.
$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17339 rm -f conftest.
$ac_objext conftest
$ac_exeext
17340 if { (ac_try
="$ac_link"
17341 case "(($ac_try" in
17342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17356 *) ac_try_echo
=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try
='test -s conftest$ac_exeext'
17364 { (case "(($ac_try" in
17365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_cv_lib_dl_dlopen=yes
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_cv_lib_dl_dlopen=no
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17386 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17387 if test $ac_cv_lib_dl_dlopen = yes; then
17388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17390 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17391 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17392 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 ac_check_lib_save_LIBS=$LIBS
17396 LIBS="-lsvld $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 /* Override any GCC internal prototype to avoid an error.
17405 Use char because int might match the return type of a GCC
17406 builtin and then its argument prototype would still apply. */
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17423 *) ac_try_echo
=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1
>conftest.err
17430 cat conftest.err
>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17446 *) ac_try_echo
=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_lib_svld_dlopen
=yes
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.
$ac_ext >&5
17458 ac_cv_lib_svld_dlopen
=no
17461 rm -f core conftest.err conftest.
$ac_objext \
17462 conftest
$ac_exeext conftest.
$ac_ext
17463 LIBS
=$ac_check_lib_save_LIBS
17465 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17466 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17467 if test $ac_cv_lib_svld_dlopen = yes; then
17468 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17470 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17471 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17472 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 ac_check_lib_save_LIBS
=$LIBS
17477 cat >conftest.
$ac_ext <<_ACEOF
17480 cat confdefs.h
>>conftest.
$ac_ext
17481 cat >>conftest.
$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17494 return dld_link ();
17499 rm -f conftest.
$ac_objext conftest
$ac_exeext
17500 if { (ac_try
="$ac_link"
17501 case "(($ac_try" in
17502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17508 grep -v '^ *+' conftest.er1 >conftest.err
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17516 *) ac_try_echo
=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try
='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_lib_dld_dld_link=yes
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_lib_dld_dld_link=no
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543 LIBS=$ac_check_lib_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17546 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17547 if test $ac_cv_lib_dld_dld_link = yes; then
17548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17569 if test "x$lt_cv_dlopen" != xno; then
17575 case $lt_cv_dlopen in
17577 save_CPPFLAGS="$CPPFLAGS"
17578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17580 save_LDFLAGS="$LDFLAGS"
17581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17584 LIBS="$lt_cv_dlopen_libs $LIBS"
17586 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17587 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17588 if test "${lt_cv_dlopen_self+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 if test "$cross_compiling" = yes; then :
17592 lt_cv_dlopen_self=cross
17594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17595 lt_status=$lt_dlunknown
17596 cat > conftest.$ac_ext <<EOF
17597 #line 17602 "configure"
17598 #include "confdefs.h"
17607 # define LT_DLGLOBAL RTLD_GLOBAL
17610 # define LT_DLGLOBAL DL_GLOBAL
17612 # define LT_DLGLOBAL 0
17616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17617 find out it does not work in some platform. */
17618 #ifndef LT_DLLAZY_OR_NOW
17620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17623 # define LT_DLLAZY_OR_NOW DL_LAZY
17626 # define LT_DLLAZY_OR_NOW RTLD_NOW
17629 # define LT_DLLAZY_OR_NOW DL_NOW
17631 # define LT_DLLAZY_OR_NOW 0
17639 extern "C" void exit (int);
17642 void fnord() { int i=42;}
17645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17646 int status = $lt_dlunknown;
17650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17652 /* dlclose (self); */
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17665 (./conftest; exit; ) >&5 2>/dev/null
17667 case x$lt_status in
17668 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17669 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17670 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17673 # compilation failed
17674 lt_cv_dlopen_self=no
17681 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17682 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17684 if test "x$lt_cv_dlopen_self" = xyes; then
17685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17686 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17687 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17688 if test "${lt_cv_dlopen_self_static+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 if test "$cross_compiling" = yes; then :
17692 lt_cv_dlopen_self_static=cross
17694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17695 lt_status=$lt_dlunknown
17696 cat > conftest.$ac_ext <<EOF
17697 #line 17702 "configure"
17698 #include "confdefs.h"
17707 # define LT_DLGLOBAL RTLD_GLOBAL
17710 # define LT_DLGLOBAL DL_GLOBAL
17712 # define LT_DLGLOBAL 0
17716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17717 find out it does not work in some platform. */
17718 #ifndef LT_DLLAZY_OR_NOW
17720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17723 # define LT_DLLAZY_OR_NOW DL_LAZY
17726 # define LT_DLLAZY_OR_NOW RTLD_NOW
17729 # define LT_DLLAZY_OR_NOW DL_NOW
17731 # define LT_DLLAZY_OR_NOW 0
17739 extern "C" void exit (int);
17742 void fnord() { int i=42;}
17745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17746 int status = $lt_dlunknown;
17750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17752 /* dlclose (self); */
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17765 (./conftest; exit; ) >&5 2>/dev/null
17767 case x$lt_status in
17768 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17769 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17770 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17773 # compilation failed
17774 lt_cv_dlopen_self_static=no
17781 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17782 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17785 CPPFLAGS="$save_CPPFLAGS"
17786 LDFLAGS="$save_LDFLAGS"
17791 case $lt_cv_dlopen_self in
17792 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17793 *) enable_dlopen_self=unknown ;;
17796 case $lt_cv_dlopen_self_static in
17797 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17798 *) enable_dlopen_self_static=unknown ;;
17803 # Report which library types will actually be built
17804 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17805 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17806 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17807 echo "${ECHO_T}$can_build_shared" >&6; }
17809 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17810 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17811 test "$can_build_shared" = "no" && enable_shared=no
17813 # On AIX, shared libraries and static libraries use the same namespace, and
17814 # are all built from PIC.
17817 test "$enable_shared" = yes && enable_static=no
17818 if test -n "$RANLIB"; then
17819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17820 postinstall_cmds='$RANLIB $lib'
17825 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17826 test "$enable_shared" = yes && enable_static=no
17830 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17831 echo "${ECHO_T}$enable_shared" >&6; }
17833 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17835 # Make sure either enable_shared or enable_static is yes.
17836 test "$enable_shared" = yes || enable_static=yes
17837 { echo "$as_me:$LINENO: result: $enable_static" >&5
17838 echo "${ECHO_T}$enable_static" >&6; }
17840 # The else clause should only fire when bootstrapping the
17841 # libtool distribution, otherwise you forgot to ship ltmain.sh
17842 # with your package, and you will get complaints that there are
17843 # no rules to generate ltmain.sh.
17844 if test -f "$ltmain"; then
17845 # See if we are running on zsh, and set the options which allow our commands through
17846 # without removal of \ escapes.
17847 if test -n "${ZSH_VERSION+set}" ; then
17848 setopt NO_GLOB_SUBST
17850 # Now quote all the things that may contain metacharacters while being
17851 # careful not to overquote the AC_SUBSTed values. We take copies of the
17852 # variables and quote the copies for generation of the libtool script.
17853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17857 deplibs_check_method reload_flag reload_cmds need_locks \
17858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17859 lt_cv_sys_global_symbol_to_c_name_address \
17860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17861 old_postinstall_cmds old_postuninstall_cmds \
17865 lt_prog_compiler_wl \
17866 lt_prog_compiler_pic \
17867 lt_prog_compiler_static \
17868 lt_prog_compiler_no_builtin_flag \
17869 export_dynamic_flag_spec \
17870 thread_safe_flag_spec \
17871 whole_archive_flag_spec \
17872 enable_shared_with_static_runtimes \
17874 old_archive_from_new_cmds \
17879 compiler_lib_search_path \
17881 archive_expsym_cmds \
17883 postuninstall_cmds \
17884 old_archive_from_expsyms_cmds \
17885 allow_undefined_flag \
17886 no_undefined_flag \
17887 export_symbols_cmds \
17888 hardcode_libdir_flag_spec \
17889 hardcode_libdir_flag_spec_ld \
17890 hardcode_libdir_separator \
17891 hardcode_automatic \
17893 module_expsym_cmds \
17894 lt_cv_prog_compiler_c_o \
17896 include_expsyms; do
17899 old_archive_cmds | \
17900 old_archive_from_new_cmds | \
17902 archive_expsym_cmds | \
17904 module_expsym_cmds | \
17905 old_archive_from_expsyms_cmds | \
17906 export_symbols_cmds | \
17907 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17908 postinstall_cmds | postuninstall_cmds | \
17909 old_postinstall_cmds | old_postuninstall_cmds | \
17910 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17911 # Double-quote double-evaled strings.
17912 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17915 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17921 *'\$0 --fallback-echo"')
17922 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17926 cfgfile="${ofile}T"
17927 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17929 { echo "$as_me:$LINENO: creating $ofile" >&5
17930 echo "$as_me: creating $ofile" >&6;}
17932 cat <<__EOF__ >> "$cfgfile"
17935 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17936 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17940 # Free Software Foundation, Inc.
17942 # This file is part of GNU Libtool:
17943 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17945 # This program is free software; you can redistribute it and/or modify
17946 # it under the terms of the GNU General Public License as published by
17947 # the Free Software Foundation; either version 2 of the License, or
17948 # (at your option) any later version.
17950 # This program is distributed in the hope that it will be useful, but
17951 # WITHOUT ANY WARRANTY; without even the implied warranty of
17952 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17953 # General Public License for more details.
17955 # You should have received a copy of the GNU General Public License
17956 # along with this program; if not, write to the Free Software
17957 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17959 # As a special exception to the GNU General Public License, if you
17960 # distribute this file as part of a program that contains a
17961 # configuration script generated by Autoconf, you may include it under
17962 # the same distribution terms that you use for the rest of that program.
17964 # A sed program that does not truncate output.
17967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17968 Xsed="$SED -e 1s/^X//"
17970 # The HP-UX ksh and POSIX shell print the target directory to stdout
17971 # if CDPATH is set.
17972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17974 # The names of the tagged configurations supported by this script.
17977 # ### BEGIN LIBTOOL CONFIG
17979 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17981 # Shell to use when invoking shell scripts.
17984 # Whether or not to build shared libraries.
17985 build_libtool_libs=$enable_shared
17987 # Whether or not to build static libraries.
17988 build_old_libs=$enable_static
17990 # Whether or not to add -lc for building shared libraries.
17991 build_libtool_need_lc=$archive_cmds_need_lc
17993 # Whether or not to disallow shared libs when runtime libs are static
17994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17996 # Whether or not to optimize for fast installation.
17997 fast_install=$enable_fast_install
18000 host_alias=$host_alias
18004 # The build system.
18005 build_alias=$build_alias
18009 # An echo program that does not interpret backslashes.
18014 AR_FLAGS=$lt_AR_FLAGS
18019 # LTCC compiler flags.
18020 LTCFLAGS=$lt_LTCFLAGS
18022 # A language-specific compiler.
18025 # Is the compiler the GNU C compiler?
18031 # The linker used to build libraries.
18034 # Whether we need hard or soft links.
18037 # A BSD-compatible nm program.
18040 # A symbol stripping program
18043 # Used to examine libraries when file_magic_cmd begins "file"
18044 MAGIC_CMD=$MAGIC_CMD
18046 # Used on cygwin: DLL creation program.
18049 # Used on cygwin: object dumper.
18052 # Used on cygwin: assembler.
18055 # The name of the directory that contains temporary libtool files.
18058 # How to create reloadable object files.
18059 reload_flag=$lt_reload_flag
18060 reload_cmds=$lt_reload_cmds
18062 # How to pass a linker flag through the compiler.
18063 wl=$lt_lt_prog_compiler_wl
18065 # Object file suffix (normally "o").
18066 objext="$ac_objext"
18068 # Old archive suffix (normally "a").
18071 # Shared library suffix (normally ".so").
18072 shrext_cmds='$shrext_cmds'
18074 # Executable file suffix (normally "").
18077 # Additional compiler flags for building library objects.
18078 pic_flag=$lt_lt_prog_compiler_pic
18081 # What is the maximum length of a command?
18082 max_cmd_len=$lt_cv_sys_max_cmd_len
18084 # Does compiler simultaneously support -c and -o options?
18085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18087 # Must we lock files when doing compilation?
18088 need_locks=$lt_need_locks
18090 # Do we need the lib prefix for modules?
18091 need_lib_prefix=$need_lib_prefix
18093 # Do we need a version for libraries?
18094 need_version=$need_version
18096 # Whether dlopen is supported.
18097 dlopen_support=$enable_dlopen
18099 # Whether dlopen of programs is supported.
18100 dlopen_self=$enable_dlopen_self
18102 # Whether dlopen of statically linked programs is supported.
18103 dlopen_self_static=$enable_dlopen_self_static
18105 # Compiler flag to prevent dynamic linking.
18106 link_static_flag=$lt_lt_prog_compiler_static
18108 # Compiler flag to turn off builtin functions.
18109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18111 # Compiler flag to allow reflexive dlopens.
18112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18114 # Compiler flag to generate shared objects directly from archives.
18115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18117 # Compiler flag to generate thread-safe objects.
18118 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18120 # Library versioning type.
18121 version_type=$version_type
18123 # Format of library name prefix.
18124 libname_spec=$lt_libname_spec
18126 # List of archive names. First name is the real one, the rest are links.
18127 # The last name is the one that the linker finds with -lNAME.
18128 library_names_spec=$lt_library_names_spec
18130 # The coded name of the library, if different from the real name.
18131 soname_spec=$lt_soname_spec
18133 # Commands used to build and install an old-style archive.
18135 old_archive_cmds=$lt_old_archive_cmds
18136 old_postinstall_cmds=$lt_old_postinstall_cmds
18137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18139 # Create an old-style archive from a shared archive.
18140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18142 # Create a temporary old-style archive to link instead of a shared archive.
18143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18145 # Commands used to build and install a shared archive.
18146 archive_cmds=$lt_archive_cmds
18147 archive_expsym_cmds=$lt_archive_expsym_cmds
18148 postinstall_cmds=$lt_postinstall_cmds
18149 postuninstall_cmds=$lt_postuninstall_cmds
18151 # Commands used to build a loadable module (assumed same as above if empty)
18152 module_cmds=$lt_module_cmds
18153 module_expsym_cmds=$lt_module_expsym_cmds
18155 # Commands to strip libraries.
18156 old_striplib=$lt_old_striplib
18157 striplib=$lt_striplib
18159 # Dependencies to place before the objects being linked to create a
18161 predep_objects=$lt_predep_objects
18163 # Dependencies to place after the objects being linked to create a
18165 postdep_objects=$lt_postdep_objects
18167 # Dependencies to place before the objects being linked to create a
18169 predeps=$lt_predeps
18171 # Dependencies to place after the objects being linked to create a
18173 postdeps=$lt_postdeps
18175 # The library search path used internally by the compiler when linking
18176 # a shared library.
18177 compiler_lib_search_path=$lt_compiler_lib_search_path
18179 # Method to check whether dependent libraries are shared objects.
18180 deplibs_check_method=$lt_deplibs_check_method
18182 # Command to use when deplibs_check_method == file_magic.
18183 file_magic_cmd=$lt_file_magic_cmd
18185 # Flag that allows shared libraries with undefined symbols to be built.
18186 allow_undefined_flag=$lt_allow_undefined_flag
18188 # Flag that forces no undefined symbols.
18189 no_undefined_flag=$lt_no_undefined_flag
18191 # Commands used to finish a libtool library installation in a directory.
18192 finish_cmds=$lt_finish_cmds
18194 # Same as above, but a single script fragment to be evaled but not shown.
18195 finish_eval=$lt_finish_eval
18197 # Take the output of nm and produce a listing of raw symbols and C names.
18198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18200 # Transform the output of nm in a proper C declaration
18201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18203 # Transform the output of nm in a C name address pair
18204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18206 # This is the shared library runtime path variable.
18207 runpath_var=$runpath_var
18209 # This is the shared library path variable.
18210 shlibpath_var=$shlibpath_var
18212 # Is shlibpath searched before the hard-coded library search path?
18213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18215 # How to hardcode a shared library path into an executable.
18216 hardcode_action=$hardcode_action
18218 # Whether we should hardcode library paths into libraries.
18219 hardcode_into_libs=$hardcode_into_libs
18221 # Flag to hardcode \$libdir into a binary during linking.
18222 # This must work even if \$libdir does not exist.
18223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18225 # If ld is used when linking, flag to hardcode \$libdir into
18226 # a binary during linking. This must work even if \$libdir does
18228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18230 # Whether we need a single -rpath flag with a separated argument.
18231 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18234 # resulting binary.
18235 hardcode_direct=$hardcode_direct
18237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18238 # resulting binary.
18239 hardcode_minus_L=$hardcode_minus_L
18241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18242 # the resulting binary.
18243 hardcode_shlibpath_var=$hardcode_shlibpath_var
18245 # Set to yes if building a shared library automatically hardcodes DIR into the library
18246 # and all subsequent libraries and executables linked against it.
18247 hardcode_automatic=$hardcode_automatic
18249 # Variables whose values should be saved in libtool wrapper scripts and
18250 # restored at relink time.
18251 variables_saved_for_relink="$variables_saved_for_relink"
18253 # Whether libtool must link a program against all its dependency libraries.
18254 link_all_deplibs=$link_all_deplibs
18256 # Compile-time system search path for libraries
18257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18259 # Run-time system search path for libraries
18260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18262 # Fix the shell variable \$srcfile for the compiler.
18263 fix_srcfile_path="$fix_srcfile_path"
18265 # Set to yes if exported symbols are required.
18266 always_export_symbols=$always_export_symbols
18268 # The commands to list exported symbols.
18269 export_symbols_cmds=$lt_export_symbols_cmds
18271 # The commands to extract the exported symbol list from a shared archive.
18272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18274 # Symbols that should not be listed in the preloaded symbols.
18275 exclude_expsyms=$lt_exclude_expsyms
18277 # Symbols that must always be exported.
18278 include_expsyms=$lt_include_expsyms
18280 # ### END LIBTOOL CONFIG
18287 cat <<\EOF >> "$cfgfile"
18289 # AIX sometimes has problems with the GCC collect2 program. For some
18290 # reason, if we set the COLLECT_NAMES environment variable, the problems
18291 # vanish in a puff of smoke.
18292 if test "X${COLLECT_NAMES+set}" != Xset; then
18294 export COLLECT_NAMES
18300 # We use sed instead of cat because bash on DJGPP gets confused if
18301 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18302 # text mode, it properly converts lines to CR/LF. This bash problem
18303 # is reportedly fixed, but why not run on old versions too?
18304 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18306 mv -f "$cfgfile" "$ofile" || \
18307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18311 # If there is no Makefile yet, we rely on a make rule to execute
18312 # `config.status
--recheck' to rerun these tests and create the
18313 # libtool script then.
18314 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18315 if test -f "$ltmain_in"; then
18316 test -f Makefile && make "$ltmain"
18322 ac_cpp='$CPP $CPPFLAGS'
18323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18324 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330 # Check whether --with-tags was given.
18331 if test "${with_tags+set}" = set; then
18332 withval=$with_tags; tagnames="$withval"
18336 if test -f "$ltmain" && test -n "$tagnames"; then
18337 if test ! -f "${ofile}"; then
18338 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18339 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18342 if test -z "$LTCC"; then
18343 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18344 if test -z "$LTCC"; then
18345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18346 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18348 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18349 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18352 if test -z "$LTCFLAGS"; then
18353 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18356 # Extract list of available tagged configurations in $ofile.
18357 # Note that this assumes the entire list is on one line.
18358 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18361 for tagname in $tagnames; do
18363 # Check whether tagname contains only valid characters
18364 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18366 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18367 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18368 { (exit 1); exit 1; }; }
18372 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18374 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18375 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18376 { (exit 1); exit 1; }; }
18379 # Update the list of available tags.
18380 if test -n "$tagname"; then
18381 echo appending configuration tag \"$tagname\" to $ofile
18385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18386 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18387 (test "X$CXX" != "Xg++"))) ; then
18389 ac_cpp='$CXXCPP $CPPFLAGS'
18390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18397 archive_cmds_need_lc_CXX=no
18398 allow_undefined_flag_CXX=
18399 always_export_symbols_CXX=no
18400 archive_expsym_cmds_CXX=
18401 export_dynamic_flag_spec_CXX=
18402 hardcode_direct_CXX=no
18403 hardcode_libdir_flag_spec_CXX=
18404 hardcode_libdir_flag_spec_ld_CXX=
18405 hardcode_libdir_separator_CXX=
18406 hardcode_minus_L_CXX=no
18407 hardcode_shlibpath_var_CXX=unsupported
18408 hardcode_automatic_CXX=no
18410 module_expsym_cmds_CXX=
18411 link_all_deplibs_CXX=unknown
18412 old_archive_cmds_CXX=$old_archive_cmds
18413 no_undefined_flag_CXX=
18414 whole_archive_flag_spec_CXX=
18415 enable_shared_with_static_runtimes_CXX=no
18417 # Dependencies to place before and after the object being linked:
18418 predep_objects_CXX=
18419 postdep_objects_CXX=
18422 compiler_lib_search_path_CXX=
18424 # Source file extension for C++ test sources.
18427 # Object file extension for compiled C++ test sources.
18431 # Code to be used in simple compile tests
18432 lt_simple_compile_test_code="int some_variable = 0;\n"
18434 # Code to be used in simple link tests
18435 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18439 # If no C compiler was specified, use CC.
18442 # If no C compiler flags were specified, use CFLAGS.
18443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18445 # Allow CC to be a program name with arguments.
18449 # save warnings/boilerplate of simple test code
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_compiler_boilerplate=`cat conftest.err
`
18456 ac_outfile=conftest.$ac_objext
18457 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18459 _lt_linker_boilerplate=`cat conftest.err
`
18463 # Allow CC to be a program name with arguments.
18468 lt_save_with_gnu_ld=$with_gnu_ld
18469 lt_save_path_LD=$lt_cv_path_LD
18470 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18473 $as_unset lt_cv_prog_gnu_ld
18475 if test -n "${lt_cv_path_LDCXX+set}"; then
18476 lt_cv_path_LD=$lt_cv_path_LDCXX
18478 $as_unset lt_cv_path_LD
18480 test -z "${LDCXX+set}" || LD=$LDCXX
18484 for cc_temp in $compiler""; do
18486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18492 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18495 # We don't want -fno-exception wen compiling C++ code, so set the
18496 # no_builtin_flag separately
18497 if test "$GXX" = yes; then
18498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18500 lt_prog_compiler_no_builtin_flag_CXX=
18503 if test "$GXX" = yes; then
18504 # Set up default GNU C++ configuration
18507 # Check whether --with-gnu-ld was given.
18508 if test "${with_gnu_ld+set}" = set; then
18509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18515 if test "$GCC" = yes; then
18516 # Check if gcc -print-prog-name=ld gives a path.
18517 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18518 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18521 # gcc leaves a trailing carriage return which upsets mingw
18522 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18524 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18527 # Accept absolute paths.
18529 re_direlt='/[^/][^/]*/\.\./'
18530 # Canonicalize the pathname of ld
18531 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18533 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18535 test -z "$LD" && LD="$ac_prog"
18538 # If it fails, then pretend we aren't using GCC.
18542 # If it is relative, then search for the first ld in PATH.
18543 with_gnu_ld=unknown
18546 elif test "$with_gnu_ld" = yes; then
18547 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18548 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18550 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18551 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18553 if test "${lt_cv_path_LD+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 if test -z "$LD"; then
18557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18558 for ac_dir in $PATH; do
18560 test -z "$ac_dir" && ac_dir=.
18561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18562 lt_cv_path_LD="$ac_dir/$ac_prog"
18563 # Check to see if the program is GNU ld. I'd rather use --version,
18564 # but apparently some variants of GNU ld only accept -v.
18565 # Break only if it was the GNU/non-GNU ld that we prefer.
18566 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18567 *GNU* | *'with BFD'*)
18568 test "$with_gnu_ld" != no && break
18571 test "$with_gnu_ld" != yes && break
18578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18582 LD="$lt_cv_path_LD"
18583 if test -n "$LD"; then
18584 { echo "$as_me:$LINENO: result: $LD" >&5
18585 echo "${ECHO_T}$LD" >&6; }
18587 { echo "$as_me:$LINENO: result: no" >&5
18588 echo "${ECHO_T}no" >&6; }
18590 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18591 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18592 { (exit 1); exit 1; }; }
18593 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18594 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18595 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18599 case `$LD -v 2>&1 </dev
/null
` in
18600 *GNU* | *'with BFD'*)
18601 lt_cv_prog_gnu_ld=yes
18604 lt_cv_prog_gnu_ld=no
18608 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18609 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18610 with_gnu_ld=$lt_cv_prog_gnu_ld
18614 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18615 # archiving commands below assume that GNU ld is being used.
18616 if test "$with_gnu_ld" = yes; then
18617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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'
18620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18623 # If archive_cmds runs LD, not CC, wlarc should be empty
18624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18625 # investigate it a little bit more. (MM)
18628 # ancient GNU ld didn't support --whole-archive et. al.
18629 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18630 grep 'no-whole-archive' > /dev/null; then
18631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18633 whole_archive_flag_spec_CXX=
18639 # A generic and very simple default shared library creation
18640 # command for GNU C++ for the case where it uses the native
18641 # linker, instead of GNU ld. If possible, this setting should
18642 # overridden to take advantage of the native linker features on
18643 # the platform it is being used on.
18644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647 # Commands to make compiler produce verbose output that lists
18648 # what "hidden" libraries, object files and flags are used when
18649 # linking a shared library.
18650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18658 # PORTME: fill in a description of your system's C++ link characteristics
18659 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18664 # FIXME: insert proper C++ library support
18668 if test "$host_cpu" = ia64; then
18669 # On IA64, the linker does run time linking by default, so we don't
18670 # have to do anything special.
18671 aix_use_runtimelinking=no
18672 exp_sym_flag='-Bexport'
18675 aix_use_runtimelinking=no
18677 # Test if we are trying to use run time linking or normal
18678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18679 # need to do runtime linking.
18680 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18681 for ld_flag in $LDFLAGS; do
18684 aix_use_runtimelinking=yes
18692 exp_sym_flag='-bexport'
18693 no_entry_flag='-bnoentry'
18696 # When large executables or shared objects are built, AIX ld can
18697 # have problems creating the table of contents. If linking a library
18698 # or program results in "error TOC overflow" add -mminimal-toc to
18699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18702 archive_cmds_CXX=''
18703 hardcode_direct_CXX=yes
18704 hardcode_libdir_separator_CXX=':'
18705 link_all_deplibs_CXX=yes
18707 if test "$GXX" = yes; then
18708 case $host_os in aix4.[012]|aix4.[012].*)
18709 # We only want to do this on AIX 4.2 and lower, the check
18710 # below for broken collect2 doesn't work under 4.3+
18711 collect2name=`${CC} -print-prog-name=collect2
`
18712 if test -f "$collect2name" && \
18713 strings "$collect2name" | grep resolve_lib_name >/dev/null
18715 # We have reworked collect2
18716 hardcode_direct_CXX=yes
18718 # We have old collect2
18719 hardcode_direct_CXX=unsupported
18720 # It fails to find uninstalled libraries when the uninstalled
18721 # path is not listed in the libpath. Setting hardcode_minus_L
18722 # to unsupported forces relinking
18723 hardcode_minus_L_CXX=yes
18724 hardcode_libdir_flag_spec_CXX='-L$libdir'
18725 hardcode_libdir_separator_CXX=
18729 shared_flag='-shared'
18730 if test "$aix_use_runtimelinking" = yes; then
18731 shared_flag="$shared_flag "'${wl}-G'
18735 if test "$host_cpu" = ia64; then
18736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18737 # chokes on -Wl,-G. The following line is correct:
18740 if test "$aix_use_runtimelinking" = yes; then
18741 shared_flag='${wl}-G'
18743 shared_flag='${wl}-bM:SRE'
18748 # It seems that -bexpall does not export symbols beginning with
18749 # underscore (_), so it is better to generate a list of symbols to export.
18750 always_export_symbols_CXX=yes
18751 if test "$aix_use_runtimelinking" = yes; then
18752 # Warning - without using the other runtime loading flags (-brtl),
18753 # -berok will link without error, but may produce a broken library.
18754 allow_undefined_flag_CXX='-berok'
18755 # Determine the default libpath from the value encoded in an empty executable.
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18775 *) ac_try_echo
=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1
>conftest.err
18782 cat conftest.err
>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18798 *) ac_try_echo
=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18806 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18808 # Check for a 64-bit object if we didn't find anything.
18809 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; }
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.
$ac_ext >&5
18818 rm -f core conftest.err conftest.
$ac_objext \
18819 conftest
$ac_exeext conftest.
$ac_ext
18820 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18822 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18824 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"
18826 if test "$host_cpu" = ia64
; then
18827 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18828 allow_undefined_flag_CXX
="-z nodefs"
18829 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"
18831 # Determine the default libpath from the value encoded in an empty executable.
18832 cat >conftest.
$ac_ext <<_ACEOF
18835 cat confdefs.h
>>conftest.
$ac_ext
18836 cat >>conftest.
$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18847 rm -f conftest.
$ac_objext conftest
$ac_exeext
18848 if { (ac_try
="$ac_link"
18849 case "(($ac_try" in
18850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18864 *) ac_try_echo
=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try
='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18882 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18884 # Check for a 64-bit object if we didn't find anything.
18885 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; }
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18894 rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18898 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18899 # Warning - without using the other run time loading flags,
18900 # -berok will link without error, but may produce a broken library.
18901 no_undefined_flag_CXX=' ${wl}-bernotok'
18902 allow_undefined_flag_CXX=' ${wl}-berok'
18903 # Exported symbols can be pulled into shared objects from archives
18904 whole_archive_flag_spec_CXX='$convenience'
18905 archive_cmds_need_lc_CXX=yes
18906 # This is similar to how AIX traditionally builds its shared libraries.
18907 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'
18913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18914 allow_undefined_flag_CXX=unsupported
18915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18916 # support --undefined. This deserves some investigation. FIXME
18917 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18924 case $cc_basename in
18926 # FIXME: insert proper C++ library support
18932 cygwin* | mingw* | pw32*)
18933 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18934 # as there is no search path for DLLs.
18935 hardcode_libdir_flag_spec_CXX='-L$libdir'
18936 allow_undefined_flag_CXX=unsupported
18937 always_export_symbols_CXX=no
18938 enable_shared_with_static_runtimes_CXX=yes
18940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18941 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'
18942 # If the export-symbols file already is a .def file (1st line
18943 # is EXPORTS), use it as is; otherwise, prepend...
18944 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18945 cp $export_symbols $output_objdir/$soname.def;
18947 echo EXPORTS > $output_objdir/$soname.def;
18948 cat $export_symbols >> $output_objdir/$soname.def;
18950 $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'
18955 darwin* | rhapsody*)
18957 rhapsody* | darwin1.[012])
18958 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18961 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18962 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18964 case ${MACOSX_DEPLOYMENT_TARGET} in
18966 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18969 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18975 archive_cmds_need_lc_CXX=no
18976 hardcode_direct_CXX=no
18977 hardcode_automatic_CXX=yes
18978 hardcode_shlibpath_var_CXX=unsupported
18979 whole_archive_flag_spec_CXX=''
18980 link_all_deplibs_CXX=yes
18982 if test "$GXX" = yes ; then
18983 lt_int_apple_cc_single_mod=no
18984 output_verbose_link_cmd='echo'
18985 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18986 lt_int_apple_cc_single_mod=yes
18988 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18989 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18991 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'
18993 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18996 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}'
18998 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}'
19000 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}'
19002 case $cc_basename in
19004 output_verbose_link_cmd='echo'
19005 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'
19006 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19008 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}'
19009 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}'
19019 case $cc_basename in
19021 # FIXME: insert proper C++ library support
19025 # Green Hills C++ Compiler
19026 # FIXME: insert proper C++ library support
19030 # FIXME: insert proper C++ library support
19036 # C++ shared libraries reported to be fairly broken before switch to ELF
19040 archive_cmds_need_lc_CXX=no
19042 freebsd* | kfreebsd*-gnu | dragonfly*)
19043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19051 hardcode_libdir_separator_CXX=:
19052 export_dynamic_flag_spec_CXX='${wl}-E'
19053 hardcode_direct_CXX=yes
19054 hardcode_minus_L_CXX=yes # Not in the search PATH,
19055 # but as the default
19056 # location of the library.
19058 case $cc_basename in
19060 # FIXME: insert proper C++ library support
19064 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'
19065 # Commands to make compiler produce verbose output that lists
19066 # what "hidden" libraries, object files and flags are used when
19067 # linking a shared library.
19069 # There doesn't appear to be a way to prevent this compiler from
19070 # explicitly linking system object files so we need to strip them
19071 # from the output so that they don't get included in the library
19073 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'
19076 if test "$GXX" = yes; then
19077 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'
19079 # FIXME: insert proper C++ library support
19086 if test $with_gnu_ld = no; then
19087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19088 hardcode_libdir_separator_CXX=:
19092 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19095 export_dynamic_flag_spec_CXX='${wl}-E'
19101 hardcode_direct_CXX=no
19102 hardcode_shlibpath_var_CXX=no
19105 hardcode_direct_CXX=yes
19106 hardcode_minus_L_CXX=yes # Not in the search PATH,
19107 # but as the default
19108 # location of the library.
19112 case $cc_basename in
19114 # FIXME: insert proper C++ library support
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19123 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19129 # Commands to make compiler produce verbose output that lists
19130 # what "hidden" libraries, object files and flags are used when
19131 # linking a shared library.
19133 # There doesn't appear to be a way to prevent this compiler from
19134 # explicitly linking system object files so we need to strip them
19135 # from the output so that they don't get included in the library
19137 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'
19140 if test "$GXX" = yes; then
19141 if test $with_gnu_ld = no; then
19144 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19147 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 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'
19155 # FIXME: insert proper C++ library support
19162 hardcode_direct_CXX=no
19163 hardcode_shlibpath_var_CXX=no
19164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19165 export_dynamic_flag_spec_CXX='${wl}-E'
19166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19167 # Instead, shared libraries are loaded at an image base (0x10000000 by
19168 # default) and relocated if they conflict, which is a slow very memory
19169 # consuming and fragmenting process. To avoid this, we pick a random,
19170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19172 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'
19173 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'
19176 case $cc_basename in
19179 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'
19181 # Archives containing C++ object files must be created using
19182 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19183 # necessary to make sure instantiated templates are included
19185 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19188 if test "$GXX" = yes; then
19189 if test "$with_gnu_ld" = no; then
19190 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'
19192 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'
19195 link_all_deplibs_CXX=yes
19198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19199 hardcode_libdir_separator_CXX=:
19202 case $cc_basename in
19204 # Kuck and Associates, Inc. (KAI) C++ Compiler
19206 # KCC will only create a shared library if the output file
19207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19208 # to its proper name (with version) after linking.
19209 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'
19210 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'
19211 # Commands to make compiler produce verbose output that lists
19212 # what "hidden" libraries, object files and flags are used when
19213 # linking a shared library.
19215 # There doesn't appear to be a way to prevent this compiler from
19216 # explicitly linking system object files so we need to strip them
19217 # from the output so that they don't get included in the library
19219 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'
19221 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19222 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19224 # Archives containing C++ object files must be created using
19225 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19226 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19231 # version 8.0 and above of icpc choke on multiply defined symbols
19232 # if we add $predep_objects and $postdep_objects, however 7.1 and
19233 # earlier do not add the objects themselves.
19234 case `$CC -V 2>&1` in
19236 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19237 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'
19239 *) # Version 8.0 or newer
19242 ia64
*) tmp_idyn
=' -i_dynamic';;
19244 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245 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'
19248 archive_cmds_need_lc_CXX
=no
19249 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19250 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19251 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19254 # Portland Group C++ compiler
19255 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19256 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'
19258 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19259 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19260 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'
19264 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19265 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'
19267 runpath_var
=LD_RUN_PATH
19268 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19269 hardcode_libdir_separator_CXX
=:
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19275 # There doesn't appear to be a way to prevent this compiler from
19276 # explicitly linking system object files so we need to strip them
19277 # from the output so that they don't get included in the library
19279 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'
19284 # FIXME: insert proper C++ library support
19288 # FIXME: insert proper C++ library support
19292 case $cc_basename in
19294 # FIXME: insert proper C++ library support
19298 # FIXME: insert proper C++ library support
19304 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19305 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19307 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19308 hardcode_direct_CXX
=yes
19309 hardcode_shlibpath_var_CXX
=no
19311 # Workaround some broken pre-1.5 toolchains
19312 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19315 # C++ shared libraries are fairly broken
19319 hardcode_direct_CXX
=yes
19320 hardcode_shlibpath_var_CXX
=no
19321 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19322 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19324 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19325 export_dynamic_flag_spec_CXX
='${wl}-E'
19326 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19328 output_verbose_link_cmd
='echo'
19331 case $cc_basename in
19333 # Kuck and Associates, Inc. (KAI) C++ Compiler
19335 # KCC will only create a shared library if the output file
19336 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19337 # to its proper name (with version) after linking.
19338 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'
19340 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19341 hardcode_libdir_separator_CXX
=:
19343 # Archives containing C++ object files must be created using
19344 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19345 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19349 # Rational C++ 2.4.1
19350 # FIXME: insert proper C++ library support
19354 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19355 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'
19357 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX
=:
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19364 # There doesn't appear to be a way to prevent this compiler from
19365 # explicitly linking system object files so we need to strip them
19366 # from the output so that they don't get included in the library
19368 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'
19371 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19372 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19373 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'
19375 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19376 hardcode_libdir_separator_CXX
=:
19378 # Commands to make compiler produce verbose output that lists
19379 # what "hidden" libraries, object files and flags are used when
19380 # linking a shared library.
19381 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19384 # FIXME: insert proper C++ library support
19391 case $cc_basename in
19393 # Kuck and Associates, Inc. (KAI) C++ Compiler
19395 # KCC will only create a shared library if the output file
19396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19397 # to its proper name (with version) after linking.
19398 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'
19400 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19401 hardcode_libdir_separator_CXX
=:
19403 # Archives containing C++ object files must be created using
19404 # the KAI C++ compiler.
19405 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19408 # Rational C++ 2.4.1
19409 # FIXME: insert proper C++ library support
19413 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19414 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'
19415 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19416 echo "-hidden">> $lib.exp~
19417 $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~
19420 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19421 hardcode_libdir_separator_CXX
=:
19423 # Commands to make compiler produce verbose output that lists
19424 # what "hidden" libraries, object files and flags are used when
19425 # linking a shared library.
19427 # There doesn't appear to be a way to prevent this compiler from
19428 # explicitly linking system object files so we need to strip them
19429 # from the output so that they don't get included in the library
19431 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'
19434 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19435 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19436 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'
19438 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19439 hardcode_libdir_separator_CXX
=:
19441 # Commands to make compiler produce verbose output that lists
19442 # what "hidden" libraries, object files and flags are used when
19443 # linking a shared library.
19444 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19447 # FIXME: insert proper C++ library support
19454 # FIXME: insert proper C++ library support
19458 case $cc_basename in
19461 # FIXME: insert proper C++ library support
19466 # FIXME: insert proper C++ library support
19470 # FIXME: insert proper C++ library support
19476 case $cc_basename in
19478 # Sun C++ 4.2, 5.x and Centerline C++
19479 archive_cmds_need_lc_CXX
=yes
19480 no_undefined_flag_CXX
=' -zdefs'
19481 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19482 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19483 $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'
19485 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19486 hardcode_shlibpath_var_CXX
=no
19488 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19490 # The C++ compiler is used as linker so we must use $wl
19491 # flag to pass the commands to the underlying system
19492 # linker. We must also pass each convience library through
19493 # to the system linker between allextract/defaultextract.
19494 # The C++ compiler will combine linker options so we
19495 # cannot just pass the convience library names through
19497 # Supported since Solaris 2.6 (maybe 2.5.1?)
19498 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'
19501 link_all_deplibs_CXX
=yes
19503 output_verbose_link_cmd
='echo'
19505 # Archives containing C++ object files must be created using
19506 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19507 # necessary to make sure instantiated templates are included
19509 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19512 # Green Hills C++ Compiler
19513 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19515 # The C++ compiler must be used to create the archive.
19516 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19519 # GNU C++ compiler with Solaris linker
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19521 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19522 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19523 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19524 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19525 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
19530 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19532 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19534 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19535 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19536 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19541 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19544 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19549 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19550 no_undefined_flag_CXX
='${wl}-z,text'
19551 archive_cmds_need_lc_CXX
=no
19552 hardcode_shlibpath_var_CXX
=no
19553 runpath_var
='LD_RUN_PATH'
19555 case $cc_basename in
19557 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19558 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19566 sysv5
* | sco3.2v5
* | sco5v6
*)
19567 # Note: We can NOT use -z defs as we might desire, because we do not
19568 # link with -lc, and that would cause any symbols used from libc to
19569 # always be unresolved, which means just about no library would
19570 # ever link correctly. If we're not using GNU ld we use -z text
19571 # though, which does catch some bad symbols but isn't as heavy-handed
19573 # For security reasons, it is highly recommended that you always
19574 # use absolute paths for naming shared libraries, and exclude the
19575 # DT_RUNPATH tag from executables and libraries. But doing so
19576 # requires that you compile everything twice, which is a pain.
19577 # So that behaviour is only enabled if SCOABSPATH is set to a
19578 # non-empty value in the environment. Most likely only useful for
19579 # creating official distributions of packages.
19580 # This is a hack until libtool officially supports absolute path
19581 # names for shared libraries.
19582 no_undefined_flag_CXX
='${wl}-z,text'
19583 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19584 archive_cmds_need_lc_CXX
=no
19585 hardcode_shlibpath_var_CXX
=no
19586 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19587 hardcode_libdir_separator_CXX
=':'
19588 link_all_deplibs_CXX
=yes
19589 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19590 runpath_var
='LD_RUN_PATH'
19592 case $cc_basename in
19594 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19595 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19599 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19604 case $cc_basename in
19606 # NonStop-UX NCC 3.20
19607 # FIXME: insert proper C++ library support
19611 # FIXME: insert proper C++ library support
19617 # FIXME: insert proper C++ library support
19621 # FIXME: insert proper C++ library support
19625 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19626 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19627 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19633 cat > conftest.
$ac_ext <<EOF
19637 Foo (void) { a = 0; }
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644 (eval $ac_compile) 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; then
19648 # Parse the compiler output and extract the necessary
19649 # objects, libraries and library flags.
19651 # Sentinel used to keep track of whether or not we are before
19652 # the conftest object file.
19653 pre_test_object_deps_done
=no
19655 # The `*' in the case matches for architectures that use `case' in
19656 # $output_verbose_cmd can trigger glob expansion during the loop
19657 # eval without this substitution.
19658 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19660 for p
in `eval $output_verbose_link_cmd`; do
19664 # Some compilers place space between "-{L,R}" and the path.
19665 # Remove the space.
19666 if test $p = "-L" \
19667 ||
test $p = "-R"; then
19674 if test "$pre_test_object_deps_done" = no
; then
19677 # Internal compiler library paths should come after those
19678 # provided the user. The postdeps already come after the
19679 # user supplied libs so there is no need to process them.
19680 if test -z "$compiler_lib_search_path_CXX"; then
19681 compiler_lib_search_path_CXX
="${prev}${p}"
19683 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19686 # The "-l" case would never come before the object being
19687 # linked, so don't bother handling this case.
19690 if test -z "$postdeps_CXX"; then
19691 postdeps_CXX
="${prev}${p}"
19693 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19699 # This assumes that the test object file only shows up
19700 # once in the compiler output.
19701 if test "$p" = "conftest.$objext"; then
19702 pre_test_object_deps_done
=yes
19706 if test "$pre_test_object_deps_done" = no
; then
19707 if test -z "$predep_objects_CXX"; then
19708 predep_objects_CXX
="$p"
19710 predep_objects_CXX
="$predep_objects_CXX $p"
19713 if test -z "$postdep_objects_CXX"; then
19714 postdep_objects_CXX
="$p"
19716 postdep_objects_CXX
="$postdep_objects_CXX $p"
19721 *) ;; # Ignore the rest.
19729 echo "libtool.m4: error: problem compiling CXX test program"
19732 $rm -f confest.
$objext
19734 # PORTME: override above test on systems where it is broken
19737 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19738 # hack all around it, let's just trust "g++" to DTRT.
19739 predep_objects_CXX
=
19740 postdep_objects_CXX
=
19745 case $cc_basename in
19747 # Adding this requires a known-good setup of shared libraries for
19748 # Sun compiler versions before 5.6, else PIC objects from an old
19749 # archive will be linked into the output, leading to subtle bugs.
19750 postdeps_CXX
='-lCstd -lCrun'
19757 case " $postdeps_CXX " in
19758 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19761 lt_prog_compiler_wl_CXX
=
19762 lt_prog_compiler_pic_CXX
=
19763 lt_prog_compiler_static_CXX
=
19765 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19768 # C++ specific cases for pic, static, wl, etc.
19769 if test "$GXX" = yes; then
19770 lt_prog_compiler_wl_CXX
='-Wl,'
19771 lt_prog_compiler_static_CXX
='-static'
19775 # All AIX code is PIC.
19776 if test "$host_cpu" = ia64
; then
19777 # AIX 5 now supports IA64 processor
19778 lt_prog_compiler_static_CXX
='-Bstatic'
19782 # FIXME: we need at least 68020 code to build shared libraries, but
19783 # adding the `-m68020' flag to GCC prevents building anything better,
19785 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19787 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19788 # PIC is the default for these OSes.
19790 mingw
* | os2
* | pw32
*)
19791 # This hack is so that the source file can tell whether it is being
19792 # built for inclusion in a dll (and should export symbols for example).
19793 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19795 darwin
* | rhapsody
*)
19796 # PIC is the default on this platform
19797 # Common symbols not allowed in MH_DYLIB files
19798 lt_prog_compiler_pic_CXX
='-fno-common'
19801 # DJGPP does not support shared libraries at all
19802 lt_prog_compiler_pic_CXX
=
19805 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19806 # Instead, we relocate shared libraries at runtime.
19809 if test -d /usr
/nec
; then
19810 lt_prog_compiler_pic_CXX
=-Kconform_pic
19814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19815 # not for PA HP-UX.
19820 lt_prog_compiler_pic_CXX
='-fPIC'
19825 lt_prog_compiler_pic_CXX
='-fPIC'
19831 # All AIX code is PIC.
19832 if test "$host_cpu" = ia64
; then
19833 # AIX 5 now supports IA64 processor
19834 lt_prog_compiler_static_CXX
='-Bstatic'
19836 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19840 case $cc_basename in
19842 # Green Hills C++ Compiler
19843 # _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"
19848 # PIC is the default on this platform
19849 # Common symbols not allowed in MH_DYLIB files
19850 case $cc_basename in
19852 lt_prog_compiler_pic_CXX
='-qnocommon'
19853 lt_prog_compiler_wl_CXX
='-Wl,'
19858 case $cc_basename in
19860 lt_prog_compiler_pic_CXX
='-KPIC'
19863 # Green Hills C++ Compiler
19864 lt_prog_compiler_pic_CXX
='-pic'
19870 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19871 # FreeBSD uses GNU C++
19873 hpux9
* | hpux10
* | hpux11
*)
19874 case $cc_basename in
19876 lt_prog_compiler_wl_CXX
='-Wl,'
19877 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19878 if test "$host_cpu" != ia64
; then
19879 lt_prog_compiler_pic_CXX
='+Z'
19883 lt_prog_compiler_wl_CXX
='-Wl,'
19884 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19890 lt_prog_compiler_pic_CXX
='+Z'
19899 # This is c89, which is MS Visual C++ (no shared libs)
19900 # Anyone wants to do a port?
19902 irix5
* | irix6
* | nonstopux
*)
19903 case $cc_basename in
19905 lt_prog_compiler_wl_CXX
='-Wl,'
19906 lt_prog_compiler_static_CXX
='-non_shared'
19907 # CC pic flag -KPIC is the default.
19914 case $cc_basename in
19917 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19918 lt_prog_compiler_pic_CXX
='-fPIC'
19922 lt_prog_compiler_wl_CXX
='-Wl,'
19923 lt_prog_compiler_pic_CXX
='-KPIC'
19924 lt_prog_compiler_static_CXX
='-static'
19927 # Portland Group C++ compiler.
19928 lt_prog_compiler_wl_CXX
='-Wl,'
19929 lt_prog_compiler_pic_CXX
='-fpic'
19930 lt_prog_compiler_static_CXX
='-Bstatic'
19934 # Make sure the PIC flag is empty. It appears that all Alpha
19935 # Linux and Compaq Tru64 Unix objects are PIC.
19936 lt_prog_compiler_pic_CXX
=
19937 lt_prog_compiler_static_CXX
='-non_shared'
19948 case $cc_basename in
19950 lt_prog_compiler_pic_CXX
='-W c,exportall'
19958 osf3
* | osf4
* | osf5
*)
19959 case $cc_basename in
19961 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19964 # Rational C++ 2.4.1
19965 lt_prog_compiler_pic_CXX
='-pic'
19968 # Digital/Compaq C++
19969 lt_prog_compiler_wl_CXX
='-Wl,'
19970 # Make sure the PIC flag is empty. It appears that all Alpha
19971 # Linux and Compaq Tru64 Unix objects are PIC.
19972 lt_prog_compiler_pic_CXX
=
19973 lt_prog_compiler_static_CXX
='-non_shared'
19982 case $cc_basename in
19984 # Sun C++ 4.2, 5.x and Centerline C++
19985 lt_prog_compiler_pic_CXX
='-KPIC'
19986 lt_prog_compiler_static_CXX
='-Bstatic'
19987 lt_prog_compiler_wl_CXX
='-Qoption ld '
19990 # Green Hills C++ Compiler
19991 lt_prog_compiler_pic_CXX
='-PIC'
19998 case $cc_basename in
20001 lt_prog_compiler_pic_CXX
='-pic'
20002 lt_prog_compiler_static_CXX
='-Bstatic'
20006 lt_prog_compiler_pic_CXX
='-pic'
20013 case $cc_basename in
20015 # NonStop-UX NCC 3.20
20016 lt_prog_compiler_pic_CXX
='-KPIC'
20022 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20023 case $cc_basename in
20025 lt_prog_compiler_wl_CXX
='-Wl,'
20026 lt_prog_compiler_pic_CXX
='-KPIC'
20027 lt_prog_compiler_static_CXX
='-Bstatic'
20034 lt_prog_compiler_can_build_shared_CXX
=no
20039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20040 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20043 # Check to make sure the PIC flag actually works.
20045 if test -n "$lt_prog_compiler_pic_CXX"; then
20047 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20048 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20049 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 lt_prog_compiler_pic_works_CXX
=no
20053 ac_outfile
=conftest.
$ac_objext
20054 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20055 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20056 # Insert the option either (1) after the last *FLAGS variable, or
20057 # (2) before a word containing "conftest.", or (3) at the end.
20058 # Note that $ac_compile itself does not contain backslashes and begins
20059 # with a dollar sign (not a hyphen), so the echo should work correctly.
20060 # The option is referenced via a variable to avoid confusing sed.
20061 lt_compile
=`echo "$ac_compile" | $SED \
20062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20064 -e 's:$: $lt_compiler_flag:'`
20065 (eval echo "\"\$as_me:20070: $lt_compile\"" >&5)
20066 (eval "$lt_compile" 2>conftest.err
)
20068 cat conftest.err
>&5
20069 echo "$as_me:20074: \$? = $ac_status" >&5
20070 if (exit $ac_status) && test -s "$ac_outfile"; then
20071 # The compiler can only warn and ignore the option if not recognized
20072 # So say no if there are warnings other than the usual output.
20073 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20074 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20075 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20076 lt_prog_compiler_pic_works_CXX
=yes
20082 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20083 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20085 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20086 case $lt_prog_compiler_pic_CXX in
20088 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20091 lt_prog_compiler_pic_CXX
=
20092 lt_prog_compiler_can_build_shared_CXX
=no
20097 # For platforms which do not support PIC, -DPIC is meaningless:
20099 lt_prog_compiler_pic_CXX
=
20102 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20107 # Check to make sure the static flag actually works.
20109 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20110 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20111 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20112 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 lt_prog_compiler_static_works_CXX
=no
20116 save_LDFLAGS
="$LDFLAGS"
20117 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20118 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20119 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20120 # The linker can only warn and ignore the option if not recognized
20121 # So say no if there are warnings
20122 if test -s conftest.err
; then
20123 # Append any errors to the config.log.
20124 cat conftest.err
1>&5
20125 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20126 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20127 if diff conftest.exp conftest.er2
>/dev
/null
; then
20128 lt_prog_compiler_static_works_CXX
=yes
20131 lt_prog_compiler_static_works_CXX
=yes
20135 LDFLAGS
="$save_LDFLAGS"
20138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20139 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20141 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20144 lt_prog_compiler_static_CXX
=
20148 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20150 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 lt_cv_prog_compiler_c_o_CXX
=no
20154 $rm -r conftest
2>/dev
/null
20158 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20160 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20161 # Insert the option either (1) after the last *FLAGS variable, or
20162 # (2) before a word containing "conftest.", or (3) at the end.
20163 # Note that $ac_compile itself does not contain backslashes and begins
20164 # with a dollar sign (not a hyphen), so the echo should work correctly.
20165 lt_compile
=`echo "$ac_compile" | $SED \
20166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20168 -e 's:$: $lt_compiler_flag:'`
20169 (eval echo "\"\$as_me:20174: $lt_compile\"" >&5)
20170 (eval "$lt_compile" 2>out
/conftest.err
)
20172 cat out
/conftest.err
>&5
20173 echo "$as_me:20178: \$? = $ac_status" >&5
20174 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20176 # The compiler can only warn and ignore the option if not recognized
20177 # So say no if there are warnings
20178 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20179 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20180 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20181 lt_cv_prog_compiler_c_o_CXX
=yes
20186 # SGI C++ compiler will create directory out/ii_files/ for
20187 # template instantiation
20188 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20189 $rm out
/* && rmdir out
20195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20199 hard_links
="nottested"
20200 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20201 # do not overwrite the value of need_locks provided by the user
20202 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20203 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20206 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20208 ln conftest.a conftest.b
2>&5 || hard_links
=no
20209 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20210 { echo "$as_me:$LINENO: result: $hard_links" >&5
20211 echo "${ECHO_T}$hard_links" >&6; }
20212 if test "$hard_links" = no
; then
20213 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20214 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20221 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20224 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20227 # If we're using GNU nm, then we don't want the "-C" option.
20228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20229 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20230 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'
20232 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'
20236 export_symbols_cmds_CXX
="$ltdll_cmds"
20239 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'
20242 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20246 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20248 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20251 # Do we need to explicitly link libc?
20253 case "x$archive_cmds_need_lc_CXX" in
20255 # Assume -lc should be added
20256 archive_cmds_need_lc_CXX
=yes
20258 if test "$enable_shared" = yes && test "$GCC" = yes; then
20259 case $archive_cmds_CXX in
20261 # FIXME: we may have to deal with multi-command sequences.
20264 # Test whether the compiler implicitly links with -lc since on some
20265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20266 # to ld, don't add -lc before -lgcc.
20267 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20268 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20270 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } 2>conftest.err
; then
20279 libobjs
=conftest.
$ac_objext
20281 wl
=$lt_prog_compiler_wl_CXX
20282 pic_flag
=$lt_prog_compiler_pic_CXX
20288 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20289 allow_undefined_flag_CXX
=
20290 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20291 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }
20296 archive_cmds_need_lc_CXX
=no
20298 archive_cmds_need_lc_CXX
=yes
20300 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20302 cat conftest.err
1>&5
20305 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20306 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20313 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20314 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20315 library_names_spec
=
20316 libname_spec
='lib$name'
20320 postuninstall_cmds
=
20324 shlibpath_overrides_runpath
=unknown
20326 dynamic_linker
="$host_os ld.so"
20327 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20328 if test "$GCC" = yes; then
20329 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20330 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20331 # if the path contains ";" then we assume it to be the separator
20332 # otherwise default to the standard path separator (i.e. ":") - it is
20333 # assumed that no part of a normal pathname contains ";" but that should
20334 # okay in the real world where ";" in dirpaths is itself problematic.
20335 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20337 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20340 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20342 need_lib_prefix
=unknown
20343 hardcode_into_libs
=no
20345 # when you set need_version to no, make sure it does not cause -set_version
20346 # flags to be left without arguments
20347 need_version
=unknown
20352 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20353 shlibpath_var
=LIBPATH
20355 # AIX 3 has no versioning support, so we append a major version to the name.
20356 soname_spec
='${libname}${release}${shared_ext}$major'
20363 hardcode_into_libs
=yes
20364 if test "$host_cpu" = ia64
; then
20365 # AIX 5 supports IA64
20366 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20367 shlibpath_var
=LD_LIBRARY_PATH
20369 # With GCC up to 2.95.x, collect2 would create an import file
20370 # for dependence libraries. The import file would start with
20371 # the line `#! .'. This would cause the generated library to
20372 # depend on `.', always an invalid library. This was fixed in
20373 # development snapshots of GCC prior to 3.0.
20375 aix4 | aix4.
[01] | aix4.
[01].
*)
20376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20378 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20381 can_build_shared
=no
20385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20386 # soname into executable. Probably we can add versioning support to
20387 # collect2, so additional links can be useful in future.
20388 if test "$aix_use_runtimelinking" = yes; then
20389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20390 # instead of lib<name>.a to let people know that these are not
20391 # typical AIX shared libraries.
20392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394 # We preserve .a as extension for shared libraries through AIX4.2
20395 # and later when we are not doing run time linking.
20396 library_names_spec
='${libname}${release}.a $libname.a'
20397 soname_spec
='${libname}${release}${shared_ext}$major'
20399 shlibpath_var
=LIBPATH
20404 library_names_spec
='$libname.ixlibrary $libname.a'
20405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20406 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'
20410 library_names_spec
='${libname}${shared_ext}'
20411 dynamic_linker
="$host_os ld.so"
20412 shlibpath_var
=LIBRARY_PATH
20418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec
='${libname}${release}${shared_ext}$major'
20420 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20421 shlibpath_var
=LD_LIBRARY_PATH
20422 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20423 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20424 # the default ld.so.conf also contains /usr/contrib/lib and
20425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20426 # libtool to hard-code these into programs
20429 cygwin
* | mingw
* | pw32
*)
20430 version_type
=windows
20435 case $GCC,$host_os in
20436 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20437 library_names_spec
='$libname.dll.a'
20438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20439 postinstall_cmds
='base_file=`basename \${file}`~
20440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20441 dldir=$destdir/`dirname \$dlpath`~
20442 test -d \$dldir || mkdir -p \$dldir~
20443 $install_prog $dir/$dlname \$dldir/$dlname~
20444 chmod a+x \$dldir/$dlname'
20445 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20446 dlpath=$dir/\$dldll~
20448 shlibpath_overrides_runpath
=yes
20452 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20453 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20454 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20457 # MinGW DLLs use traditional 'lib' prefix
20458 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20459 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20460 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20461 # It is most probably a Windows format PATH printed by
20462 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20463 # path with ; separators, and with drive letters. We can handle the
20464 # drive letters (cygwin fileutils understands them), so leave them,
20465 # especially as we might pass files found there to a mingw objdump,
20466 # which wouldn't understand a cygwinified path. Ahh.
20467 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20469 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20473 # pw32 DLLs use 'pw' prefix rather than 'lib'
20474 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20480 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20483 dynamic_linker
='Win32 ld.exe'
20484 # FIXME: first we should search . and the directory the executable is in
20488 darwin
* | rhapsody
*)
20489 dynamic_linker
="$host_os dyld"
20490 version_type
=darwin
20493 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20494 soname_spec
='${libname}${release}${major}$shared_ext'
20495 shlibpath_overrides_runpath
=yes
20496 shlibpath_var
=DYLD_LIBRARY_PATH
20497 shrext_cmds
='.dylib'
20498 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20499 if test "$GCC" = yes; then
20500 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"`
20502 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20504 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20512 soname_spec
='${libname}${release}${shared_ext}$major'
20513 shlibpath_var
=LD_LIBRARY_PATH
20524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20525 soname_spec
='${libname}${release}${shared_ext}$major'
20526 shlibpath_var
=LD_LIBRARY_PATH
20527 shlibpath_overrides_runpath
=no
20528 hardcode_into_libs
=yes
20529 dynamic_linker
='GNU ld.so'
20532 freebsd
* | dragonfly
*)
20533 # DragonFly does not have aout. When/if they implement a new
20534 # versioning mechanism, adjust this.
20535 if test -x /usr
/bin
/objformat
; then
20536 objformat
=`/usr/bin/objformat`
20539 freebsd
[123]*) objformat
=aout
;;
20540 *) objformat
=elf
;;
20543 version_type
=freebsd-
$objformat
20544 case $version_type in
20546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20551 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20555 shlibpath_var
=LD_LIBRARY_PATH
20558 shlibpath_overrides_runpath
=yes
20560 freebsd3.
[01]* | freebsdelf3.
[01]*)
20561 shlibpath_overrides_runpath
=yes
20562 hardcode_into_libs
=yes
20564 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20565 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20566 shlibpath_overrides_runpath
=no
20567 hardcode_into_libs
=yes
20569 freebsd
*) # from 4.6 on
20570 shlibpath_overrides_runpath
=yes
20571 hardcode_into_libs
=yes
20580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20581 soname_spec
='${libname}${release}${shared_ext}$major'
20582 shlibpath_var
=LD_LIBRARY_PATH
20583 hardcode_into_libs
=yes
20586 hpux9
* | hpux10
* | hpux11
*)
20587 # Give a soname corresponding to the major version so that dld.sl refuses to
20588 # link against other versions.
20595 hardcode_into_libs
=yes
20596 dynamic_linker
="$host_os dld.so"
20597 shlibpath_var
=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20600 soname_spec
='${libname}${release}${shared_ext}$major'
20601 if test "X$HPUX_IA64_MODE" = X32
; then
20602 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20604 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20606 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20610 hardcode_into_libs
=yes
20611 dynamic_linker
="$host_os dld.sl"
20612 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20613 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec
='${libname}${release}${shared_ext}$major'
20616 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20617 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20621 dynamic_linker
="$host_os dld.sl"
20622 shlibpath_var
=SHLIB_PATH
20623 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625 soname_spec
='${libname}${release}${shared_ext}$major'
20628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20629 postinstall_cmds
='chmod 555 $lib'
20636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20637 soname_spec
='${libname}${release}${shared_ext}$major'
20638 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20639 shlibpath_var
=LD_LIBRARY_PATH
20640 shlibpath_overrides_runpath
=no
20641 hardcode_into_libs
=yes
20644 irix5
* | irix6
* | nonstopux
*)
20646 nonstopux
*) version_type
=nonstopux
;;
20648 if test "$lt_cv_prog_gnu_ld" = yes; then
20656 soname_spec
='${libname}${release}${shared_ext}$major'
20657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20659 irix5
* | nonstopux
*)
20660 libsuff
= shlibsuff
=
20663 case $LD in # libtool.m4 will add one of these switches to LD
20664 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20665 libsuff
= shlibsuff
= libmagic
=32-bit;;
20666 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20667 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20668 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20669 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20670 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20674 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20675 shlibpath_overrides_runpath
=no
20676 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20677 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20678 hardcode_into_libs
=yes
20681 # No shared lib support for Linux oldld, aout, or coff.
20682 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20686 # This must be Linux ELF.
20691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20692 soname_spec
='${libname}${release}${shared_ext}$major'
20693 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20694 shlibpath_var
=LD_LIBRARY_PATH
20695 shlibpath_overrides_runpath
=no
20696 # This implies no fast_install, which is unacceptable.
20697 # Some rework will be needed to allow for fast_install
20698 # before this can be enabled.
20699 hardcode_into_libs
=yes
20701 # Append ld.so.conf contents to the search path
20702 if test -f /etc
/ld.so.conf
; then
20703 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' ' '`
20704 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20707 # We used to test for /lib/ld.so.1 and disable shared libraries on
20708 # powerpc, because MkLinux only supported shared libraries with the
20709 # GNU dynamic linker. Since this was broken with cross compilers,
20710 # most powerpc-linux boxes support dynamic linking these days and
20711 # people can always --disable-shared, the test was removed, and we
20712 # assume the GNU/Linux dynamic linker is in use.
20713 dynamic_linker
='GNU/Linux ld.so'
20720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20721 soname_spec
='${libname}${release}${shared_ext}$major'
20722 shlibpath_var
=LD_LIBRARY_PATH
20723 shlibpath_overrides_runpath
=no
20724 hardcode_into_libs
=yes
20725 dynamic_linker
='GNU ld.so'
20732 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20734 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20735 dynamic_linker
='NetBSD (a.out) ld.so'
20737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20738 soname_spec
='${libname}${release}${shared_ext}$major'
20739 dynamic_linker
='NetBSD ld.elf_so'
20741 shlibpath_var
=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath
=yes
20743 hardcode_into_libs
=yes
20748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 shlibpath_var
=LD_LIBRARY_PATH
20750 shlibpath_overrides_runpath
=yes
20757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 soname_spec
='${libname}${release}${shared_ext}$major'
20759 shlibpath_var
=LD_LIBRARY_PATH
20760 shlibpath_overrides_runpath
=yes
20765 sys_lib_dlsearch_path_spec
="/usr/lib"
20767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20769 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20770 *) need_version
=no
;;
20772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20773 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20774 shlibpath_var
=LD_LIBRARY_PATH
20775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20777 openbsd2.
[89] | openbsd2.
[89].
*)
20778 shlibpath_overrides_runpath
=no
20781 shlibpath_overrides_runpath
=yes
20785 shlibpath_overrides_runpath
=yes
20790 libname_spec
='$name'
20793 library_names_spec
='$libname${shared_ext} $libname.a'
20794 dynamic_linker
='OS/2 ld.exe'
20795 shlibpath_var
=LIBPATH
20798 osf3
* | osf4
* | osf5
*)
20802 soname_spec
='${libname}${release}${shared_ext}$major'
20803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 shlibpath_var
=LD_LIBRARY_PATH
20805 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20806 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20814 soname_spec
='${libname}${release}${shared_ext}$major'
20815 shlibpath_var
=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath
=yes
20817 hardcode_into_libs
=yes
20818 # ldd complains unless libraries are executable
20819 postinstall_cmds
='chmod +x $lib'
20824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20825 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20826 shlibpath_var
=LD_LIBRARY_PATH
20827 shlibpath_overrides_runpath
=yes
20828 if test "$with_gnu_ld" = yes; then
20836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec
='${libname}${release}${shared_ext}$major'
20838 shlibpath_var
=LD_LIBRARY_PATH
20839 case $host_vendor in
20841 shlibpath_overrides_runpath
=no
20843 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20844 runpath_var
=LD_RUN_PATH
20852 shlibpath_overrides_runpath
=no
20853 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20859 if test -d /usr
/nec
;then
20861 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20862 soname_spec
='$libname${shared_ext}.$major'
20863 shlibpath_var
=LD_LIBRARY_PATH
20867 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20868 version_type
=freebsd-elf
20871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20872 soname_spec
='${libname}${release}${shared_ext}$major'
20873 shlibpath_var
=LD_LIBRARY_PATH
20874 hardcode_into_libs
=yes
20875 if test "$with_gnu_ld" = yes; then
20876 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20877 shlibpath_overrides_runpath
=no
20879 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20880 shlibpath_overrides_runpath
=yes
20883 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20887 sys_lib_dlsearch_path_spec
='/usr/lib'
20892 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 soname_spec
='${libname}${release}${shared_ext}$major'
20894 shlibpath_var
=LD_LIBRARY_PATH
20901 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20902 echo "${ECHO_T}$dynamic_linker" >&6; }
20903 test "$dynamic_linker" = no
&& can_build_shared
=no
20905 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20906 if test "$GCC" = yes; then
20907 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20910 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20911 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20912 hardcode_action_CXX
=
20913 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20914 test -n "$runpath_var_CXX" || \
20915 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20917 # We can hardcode non-existant directories.
20918 if test "$hardcode_direct_CXX" != no
&&
20919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20920 # have to relink, otherwise we might link with an installed library
20921 # when we should be linking with a yet-to-be-installed one
20922 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20923 test "$hardcode_minus_L_CXX" != no
; then
20924 # Linking always hardcodes the temporary library directory.
20925 hardcode_action_CXX
=relink
20927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20928 hardcode_action_CXX
=immediate
20931 # We cannot hardcode anything, or else we can only hardcode existing
20933 hardcode_action_CXX
=unsupported
20935 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20936 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20938 if test "$hardcode_action_CXX" = relink
; then
20939 # Fast installation is not supported
20940 enable_fast_install
=no
20941 elif test "$shlibpath_overrides_runpath" = yes ||
20942 test "$enable_shared" = no
; then
20943 # Fast installation is not necessary
20944 enable_fast_install
=needless
20948 # The else clause should only fire when bootstrapping the
20949 # libtool distribution, otherwise you forgot to ship ltmain.sh
20950 # with your package, and you will get complaints that there are
20951 # no rules to generate ltmain.sh.
20952 if test -f "$ltmain"; then
20953 # See if we are running on zsh, and set the options which allow our commands through
20954 # without removal of \ escapes.
20955 if test -n "${ZSH_VERSION+set}" ; then
20956 setopt NO_GLOB_SUBST
20958 # Now quote all the things that may contain metacharacters while being
20959 # careful not to overquote the AC_SUBSTed values. We take copies of the
20960 # variables and quote the copies for generation of the libtool script.
20961 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20965 deplibs_check_method reload_flag reload_cmds need_locks \
20966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20967 lt_cv_sys_global_symbol_to_c_name_address \
20968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20969 old_postinstall_cmds old_postuninstall_cmds \
20973 lt_prog_compiler_wl_CXX \
20974 lt_prog_compiler_pic_CXX \
20975 lt_prog_compiler_static_CXX \
20976 lt_prog_compiler_no_builtin_flag_CXX \
20977 export_dynamic_flag_spec_CXX \
20978 thread_safe_flag_spec_CXX \
20979 whole_archive_flag_spec_CXX \
20980 enable_shared_with_static_runtimes_CXX \
20981 old_archive_cmds_CXX \
20982 old_archive_from_new_cmds_CXX \
20983 predep_objects_CXX \
20984 postdep_objects_CXX \
20987 compiler_lib_search_path_CXX \
20989 archive_expsym_cmds_CXX \
20990 postinstall_cmds_CXX \
20991 postuninstall_cmds_CXX \
20992 old_archive_from_expsyms_cmds_CXX \
20993 allow_undefined_flag_CXX \
20994 no_undefined_flag_CXX \
20995 export_symbols_cmds_CXX \
20996 hardcode_libdir_flag_spec_CXX \
20997 hardcode_libdir_flag_spec_ld_CXX \
20998 hardcode_libdir_separator_CXX \
20999 hardcode_automatic_CXX \
21001 module_expsym_cmds_CXX \
21002 lt_cv_prog_compiler_c_o_CXX \
21003 exclude_expsyms_CXX \
21004 include_expsyms_CXX
; do
21007 old_archive_cmds_CXX | \
21008 old_archive_from_new_cmds_CXX | \
21009 archive_cmds_CXX | \
21010 archive_expsym_cmds_CXX | \
21011 module_cmds_CXX | \
21012 module_expsym_cmds_CXX | \
21013 old_archive_from_expsyms_cmds_CXX | \
21014 export_symbols_cmds_CXX | \
21015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21016 postinstall_cmds | postuninstall_cmds | \
21017 old_postinstall_cmds | old_postuninstall_cmds | \
21018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21019 # Double-quote double-evaled strings.
21020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21029 *'\$0 --fallback-echo"')
21030 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21036 cat <<__EOF__ >> "$cfgfile"
21037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21041 # Shell to use when invoking shell scripts.
21044 # Whether or not to build shared libraries.
21045 build_libtool_libs=$enable_shared
21047 # Whether or not to build static libraries.
21048 build_old_libs=$enable_static
21050 # Whether or not to add -lc for building shared libraries.
21051 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21053 # Whether or not to disallow shared libs when runtime libs are static
21054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21056 # Whether or not to optimize for fast installation.
21057 fast_install=$enable_fast_install
21060 host_alias=$host_alias
21064 # The build system.
21065 build_alias=$build_alias
21069 # An echo program that does not interpret backslashes.
21074 AR_FLAGS=$lt_AR_FLAGS
21079 # LTCC compiler flags.
21080 LTCFLAGS=$lt_LTCFLAGS
21082 # A language-specific compiler.
21083 CC=$lt_compiler_CXX
21085 # Is the compiler the GNU C compiler?
21091 # The linker used to build libraries.
21094 # Whether we need hard or soft links.
21097 # A BSD-compatible nm program.
21100 # A symbol stripping program
21103 # Used to examine libraries when file_magic_cmd begins "file"
21104 MAGIC_CMD=$MAGIC_CMD
21106 # Used on cygwin: DLL creation program.
21109 # Used on cygwin: object dumper.
21112 # Used on cygwin: assembler.
21115 # The name of the directory that contains temporary libtool files.
21118 # How to create reloadable object files.
21119 reload_flag=$lt_reload_flag
21120 reload_cmds=$lt_reload_cmds
21122 # How to pass a linker flag through the compiler.
21123 wl=$lt_lt_prog_compiler_wl_CXX
21125 # Object file suffix (normally "o").
21126 objext="$ac_objext"
21128 # Old archive suffix (normally "a").
21131 # Shared library suffix (normally ".so").
21132 shrext_cmds='$shrext_cmds'
21134 # Executable file suffix (normally "").
21137 # Additional compiler flags for building library objects.
21138 pic_flag=$lt_lt_prog_compiler_pic_CXX
21141 # What is the maximum length of a command?
21142 max_cmd_len=$lt_cv_sys_max_cmd_len
21144 # Does compiler simultaneously support -c and -o options?
21145 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21147 # Must we lock files when doing compilation?
21148 need_locks=$lt_need_locks
21150 # Do we need the lib prefix for modules?
21151 need_lib_prefix=$need_lib_prefix
21153 # Do we need a version for libraries?
21154 need_version=$need_version
21156 # Whether dlopen is supported.
21157 dlopen_support=$enable_dlopen
21159 # Whether dlopen of programs is supported.
21160 dlopen_self=$enable_dlopen_self
21162 # Whether dlopen of statically linked programs is supported.
21163 dlopen_self_static=$enable_dlopen_self_static
21165 # Compiler flag to prevent dynamic linking.
21166 link_static_flag=$lt_lt_prog_compiler_static_CXX
21168 # Compiler flag to turn off builtin functions.
21169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21171 # Compiler flag to allow reflexive dlopens.
21172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21174 # Compiler flag to generate shared objects directly from archives.
21175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21177 # Compiler flag to generate thread-safe objects.
21178 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21180 # Library versioning type.
21181 version_type=$version_type
21183 # Format of library name prefix.
21184 libname_spec=$lt_libname_spec
21186 # List of archive names. First name is the real one, the rest are links.
21187 # The last name is the one that the linker finds with -lNAME.
21188 library_names_spec=$lt_library_names_spec
21190 # The coded name of the library, if different from the real name.
21191 soname_spec=$lt_soname_spec
21193 # Commands used to build and install an old-style archive.
21195 old_archive_cmds=$lt_old_archive_cmds_CXX
21196 old_postinstall_cmds=$lt_old_postinstall_cmds
21197 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21199 # Create an old-style archive from a shared archive.
21200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21202 # Create a temporary old-style archive to link instead of a shared archive.
21203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21205 # Commands used to build and install a shared archive.
21206 archive_cmds=$lt_archive_cmds_CXX
21207 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21208 postinstall_cmds=$lt_postinstall_cmds
21209 postuninstall_cmds=$lt_postuninstall_cmds
21211 # Commands used to build a loadable module (assumed same as above if empty)
21212 module_cmds=$lt_module_cmds_CXX
21213 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21215 # Commands to strip libraries.
21216 old_striplib=$lt_old_striplib
21217 striplib=$lt_striplib
21219 # Dependencies to place before the objects being linked to create a
21221 predep_objects=$lt_predep_objects_CXX
21223 # Dependencies to place after the objects being linked to create a
21225 postdep_objects=$lt_postdep_objects_CXX
21227 # Dependencies to place before the objects being linked to create a
21229 predeps=$lt_predeps_CXX
21231 # Dependencies to place after the objects being linked to create a
21233 postdeps=$lt_postdeps_CXX
21235 # The library search path used internally by the compiler when linking
21236 # a shared library.
21237 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21239 # Method to check whether dependent libraries are shared objects.
21240 deplibs_check_method=$lt_deplibs_check_method
21242 # Command to use when deplibs_check_method == file_magic.
21243 file_magic_cmd=$lt_file_magic_cmd
21245 # Flag that allows shared libraries with undefined symbols to be built.
21246 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21248 # Flag that forces no undefined symbols.
21249 no_undefined_flag=$lt_no_undefined_flag_CXX
21251 # Commands used to finish a libtool library installation in a directory.
21252 finish_cmds=$lt_finish_cmds
21254 # Same as above, but a single script fragment to be evaled but not shown.
21255 finish_eval=$lt_finish_eval
21257 # Take the output of nm and produce a listing of raw symbols and C names.
21258 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21260 # Transform the output of nm in a proper C declaration
21261 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21263 # Transform the output of nm in a C name address pair
21264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21266 # This is the shared library runtime path variable.
21267 runpath_var=$runpath_var
21269 # This is the shared library path variable.
21270 shlibpath_var=$shlibpath_var
21272 # Is shlibpath searched before the hard-coded library search path?
21273 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21275 # How to hardcode a shared library path into an executable.
21276 hardcode_action=$hardcode_action_CXX
21278 # Whether we should hardcode library paths into libraries.
21279 hardcode_into_libs=$hardcode_into_libs
21281 # Flag to hardcode \$libdir into a binary during linking.
21282 # This must work even if \$libdir does not exist.
21283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21285 # If ld is used when linking, flag to hardcode \$libdir into
21286 # a binary during linking. This must work even if \$libdir does
21288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21290 # Whether we need a single -rpath flag with a separated argument.
21291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21293 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21294 # resulting binary.
21295 hardcode_direct=$hardcode_direct_CXX
21297 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21298 # resulting binary.
21299 hardcode_minus_L=$hardcode_minus_L_CXX
21301 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21302 # the resulting binary.
21303 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21305 # Set to yes if building a shared library automatically hardcodes DIR into the library
21306 # and all subsequent libraries and executables linked against it.
21307 hardcode_automatic=$hardcode_automatic_CXX
21309 # Variables whose values should be saved in libtool wrapper scripts and
21310 # restored at relink time.
21311 variables_saved_for_relink="$variables_saved_for_relink"
21313 # Whether libtool must link a program against all its dependency libraries.
21314 link_all_deplibs=$link_all_deplibs_CXX
21316 # Compile-time system search path for libraries
21317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21319 # Run-time system search path for libraries
21320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21322 # Fix the shell variable \$srcfile for the compiler.
21323 fix_srcfile_path="$fix_srcfile_path_CXX"
21325 # Set to yes if exported symbols are required.
21326 always_export_symbols=$always_export_symbols_CXX
21328 # The commands to list exported symbols.
21329 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21331 # The commands to extract the exported symbol list from a shared archive.
21332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21334 # Symbols that should not be listed in the preloaded symbols.
21335 exclude_expsyms=$lt_exclude_expsyms_CXX
21337 # Symbols that must always be exported.
21338 include_expsyms=$lt_include_expsyms_CXX
21340 # ### END LIBTOOL TAG CONFIG: $tagname
21346 # If there is no Makefile yet, we rely on a make rule to execute
21347 # `config.status --recheck' to rerun these tests and create the
21348 # libtool script then.
21349 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21350 if test -f "$ltmain_in"; then
21351 test -f Makefile
&& make "$ltmain"
21357 ac_cpp
='$CPP $CPPFLAGS'
21358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21366 with_gnu_ldcxx
=$with_gnu_ld
21367 with_gnu_ld
=$lt_save_with_gnu_ld
21368 lt_cv_path_LDCXX
=$lt_cv_path_LD
21369 lt_cv_path_LD
=$lt_save_path_LD
21370 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21371 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21379 if test -n "$F77" && test "X$F77" != "Xno"; then
21382 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21383 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21387 archive_cmds_need_lc_F77
=no
21388 allow_undefined_flag_F77
=
21389 always_export_symbols_F77
=no
21390 archive_expsym_cmds_F77
=
21391 export_dynamic_flag_spec_F77
=
21392 hardcode_direct_F77
=no
21393 hardcode_libdir_flag_spec_F77
=
21394 hardcode_libdir_flag_spec_ld_F77
=
21395 hardcode_libdir_separator_F77
=
21396 hardcode_minus_L_F77
=no
21397 hardcode_automatic_F77
=no
21399 module_expsym_cmds_F77
=
21400 link_all_deplibs_F77
=unknown
21401 old_archive_cmds_F77
=$old_archive_cmds
21402 no_undefined_flag_F77
=
21403 whole_archive_flag_spec_F77
=
21404 enable_shared_with_static_runtimes_F77
=no
21406 # Source file extension for f77 test sources.
21409 # Object file extension for compiled f77 test sources.
21413 # Code to be used in simple compile tests
21414 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21416 # Code to be used in simple link tests
21417 lt_simple_link_test_code
=" program t\n end\n"
21419 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21421 # If no C compiler was specified, use CC.
21424 # If no C compiler flags were specified, use CFLAGS.
21425 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21427 # Allow CC to be a program name with arguments.
21431 # save warnings/boilerplate of simple test code
21432 ac_outfile
=conftest.
$ac_objext
21433 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21434 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21435 _lt_compiler_boilerplate
=`cat conftest.err`
21438 ac_outfile
=conftest.
$ac_objext
21439 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21440 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21441 _lt_linker_boilerplate
=`cat conftest.err`
21445 # Allow CC to be a program name with arguments.
21450 for cc_temp
in $compiler""; do
21452 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21453 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21458 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21461 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21462 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21463 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21464 echo "${ECHO_T}$can_build_shared" >&6; }
21466 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21467 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21468 test "$can_build_shared" = "no" && enable_shared
=no
21470 # On AIX, shared libraries and static libraries use the same namespace, and
21471 # are all built from PIC.
21474 test "$enable_shared" = yes && enable_static
=no
21475 if test -n "$RANLIB"; then
21476 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21477 postinstall_cmds
='$RANLIB $lib'
21481 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21482 test "$enable_shared" = yes && enable_static
=no
21486 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21487 echo "${ECHO_T}$enable_shared" >&6; }
21489 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21490 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21491 # Make sure either enable_shared or enable_static is yes.
21492 test "$enable_shared" = yes || enable_static
=yes
21493 { echo "$as_me:$LINENO: result: $enable_static" >&5
21494 echo "${ECHO_T}$enable_static" >&6; }
21499 lt_prog_compiler_wl_F77
=
21500 lt_prog_compiler_pic_F77
=
21501 lt_prog_compiler_static_F77
=
21503 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21504 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21506 if test "$GCC" = yes; then
21507 lt_prog_compiler_wl_F77
='-Wl,'
21508 lt_prog_compiler_static_F77
='-static'
21512 # All AIX code is PIC.
21513 if test "$host_cpu" = ia64
; then
21514 # AIX 5 now supports IA64 processor
21515 lt_prog_compiler_static_F77
='-Bstatic'
21520 # FIXME: we need at least 68020 code to build shared libraries, but
21521 # adding the `-m68020' flag to GCC prevents building anything better,
21523 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21526 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21527 # PIC is the default for these OSes.
21530 mingw
* | pw32
* | os2
*)
21531 # This hack is so that the source file can tell whether it is being
21532 # built for inclusion in a dll (and should export symbols for example).
21533 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21536 darwin
* | rhapsody
*)
21537 # PIC is the default on this platform
21538 # Common symbols not allowed in MH_DYLIB files
21539 lt_prog_compiler_pic_F77
='-fno-common'
21543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21544 # Instead, we relocate shared libraries at runtime.
21548 # Just because we use GCC doesn't mean we suddenly get shared libraries
21549 # on systems that don't support them.
21550 lt_prog_compiler_can_build_shared_F77
=no
21555 if test -d /usr
/nec
; then
21556 lt_prog_compiler_pic_F77
=-Kconform_pic
21561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21562 # not for PA HP-UX.
21568 lt_prog_compiler_pic_F77
='-fPIC'
21574 lt_prog_compiler_pic_F77
='-fPIC'
21578 # PORTME Check for flag to pass linker flags through the system compiler.
21581 lt_prog_compiler_wl_F77
='-Wl,'
21582 if test "$host_cpu" = ia64
; then
21583 # AIX 5 now supports IA64 processor
21584 lt_prog_compiler_static_F77
='-Bstatic'
21586 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21590 # PIC is the default on this platform
21591 # Common symbols not allowed in MH_DYLIB files
21592 case $cc_basename in
21594 lt_prog_compiler_pic_F77
='-qnocommon'
21595 lt_prog_compiler_wl_F77
='-Wl,'
21600 mingw
* | pw32
* | os2
*)
21601 # This hack is so that the source file can tell whether it is being
21602 # built for inclusion in a dll (and should export symbols for example).
21603 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21606 hpux9
* | hpux10
* | hpux11
*)
21607 lt_prog_compiler_wl_F77
='-Wl,'
21608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21609 # not for PA HP-UX.
21615 lt_prog_compiler_pic_F77
='+Z'
21618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21619 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21622 irix5
* | irix6
* | nonstopux
*)
21623 lt_prog_compiler_wl_F77
='-Wl,'
21624 # PIC (with -KPIC) is the default.
21625 lt_prog_compiler_static_F77
='-non_shared'
21629 lt_prog_compiler_pic_F77
='-KPIC'
21630 lt_prog_compiler_static_F77
='-Bstatic'
21634 case $cc_basename in
21636 lt_prog_compiler_wl_F77
='-Wl,'
21637 lt_prog_compiler_pic_F77
='-KPIC'
21638 lt_prog_compiler_static_F77
='-static'
21640 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21641 # Portland Group compilers (*not* the Pentium gcc compiler,
21642 # which looks to be a dead project)
21643 lt_prog_compiler_wl_F77
='-Wl,'
21644 lt_prog_compiler_pic_F77
='-fpic'
21645 lt_prog_compiler_static_F77
='-Bstatic'
21648 lt_prog_compiler_wl_F77
='-Wl,'
21649 # All Alpha code is PIC.
21650 lt_prog_compiler_static_F77
='-non_shared'
21655 osf3
* | osf4
* | osf5
*)
21656 lt_prog_compiler_wl_F77
='-Wl,'
21657 # All OSF/1 code is PIC.
21658 lt_prog_compiler_static_F77
='-non_shared'
21662 lt_prog_compiler_pic_F77
='-KPIC'
21663 lt_prog_compiler_static_F77
='-Bstatic'
21664 case $cc_basename in
21665 f77
* | f90
* | f95
*)
21666 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21668 lt_prog_compiler_wl_F77
='-Wl,';;
21673 lt_prog_compiler_wl_F77
='-Qoption ld '
21674 lt_prog_compiler_pic_F77
='-PIC'
21675 lt_prog_compiler_static_F77
='-Bstatic'
21678 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21679 lt_prog_compiler_wl_F77
='-Wl,'
21680 lt_prog_compiler_pic_F77
='-KPIC'
21681 lt_prog_compiler_static_F77
='-Bstatic'
21685 if test -d /usr
/nec
;then
21686 lt_prog_compiler_pic_F77
='-Kconform_pic'
21687 lt_prog_compiler_static_F77
='-Bstatic'
21691 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21692 lt_prog_compiler_wl_F77
='-Wl,'
21693 lt_prog_compiler_pic_F77
='-KPIC'
21694 lt_prog_compiler_static_F77
='-Bstatic'
21698 lt_prog_compiler_wl_F77
='-Wl,'
21699 lt_prog_compiler_can_build_shared_F77
=no
21703 lt_prog_compiler_pic_F77
='-pic'
21704 lt_prog_compiler_static_F77
='-Bstatic'
21708 lt_prog_compiler_can_build_shared_F77
=no
21713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21714 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21717 # Check to make sure the PIC flag actually works.
21719 if test -n "$lt_prog_compiler_pic_F77"; then
21721 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21723 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 lt_prog_compiler_pic_works_F77
=no
21727 ac_outfile
=conftest.
$ac_objext
21728 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21729 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21730 # Insert the option either (1) after the last *FLAGS variable, or
21731 # (2) before a word containing "conftest.", or (3) at the end.
21732 # Note that $ac_compile itself does not contain backslashes and begins
21733 # with a dollar sign (not a hyphen), so the echo should work correctly.
21734 # The option is referenced via a variable to avoid confusing sed.
21735 lt_compile
=`echo "$ac_compile" | $SED \
21736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21738 -e 's:$: $lt_compiler_flag:'`
21739 (eval echo "\"\$as_me:21744: $lt_compile\"" >&5)
21740 (eval "$lt_compile" 2>conftest.err
)
21742 cat conftest.err
>&5
21743 echo "$as_me:21748: \$? = $ac_status" >&5
21744 if (exit $ac_status) && test -s "$ac_outfile"; then
21745 # The compiler can only warn and ignore the option if not recognized
21746 # So say no if there are warnings other than the usual output.
21747 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21748 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21749 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21750 lt_prog_compiler_pic_works_F77
=yes
21756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21757 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21759 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21760 case $lt_prog_compiler_pic_F77 in
21762 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21765 lt_prog_compiler_pic_F77
=
21766 lt_prog_compiler_can_build_shared_F77
=no
21771 # For platforms which do not support PIC, -DPIC is meaningless:
21773 lt_prog_compiler_pic_F77
=
21776 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21781 # Check to make sure the static flag actually works.
21783 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21784 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21785 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21786 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 lt_prog_compiler_static_works_F77
=no
21790 save_LDFLAGS
="$LDFLAGS"
21791 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21792 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21793 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21794 # The linker can only warn and ignore the option if not recognized
21795 # So say no if there are warnings
21796 if test -s conftest.err
; then
21797 # Append any errors to the config.log.
21798 cat conftest.err
1>&5
21799 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21800 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21801 if diff conftest.exp conftest.er2
>/dev
/null
; then
21802 lt_prog_compiler_static_works_F77
=yes
21805 lt_prog_compiler_static_works_F77
=yes
21809 LDFLAGS
="$save_LDFLAGS"
21812 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21813 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21815 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21818 lt_prog_compiler_static_F77
=
21822 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21824 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21827 lt_cv_prog_compiler_c_o_F77
=no
21828 $rm -r conftest
2>/dev
/null
21832 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21834 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21835 # Insert the option either (1) after the last *FLAGS variable, or
21836 # (2) before a word containing "conftest.", or (3) at the end.
21837 # Note that $ac_compile itself does not contain backslashes and begins
21838 # with a dollar sign (not a hyphen), so the echo should work correctly.
21839 lt_compile
=`echo "$ac_compile" | $SED \
21840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21842 -e 's:$: $lt_compiler_flag:'`
21843 (eval echo "\"\$as_me:21848: $lt_compile\"" >&5)
21844 (eval "$lt_compile" 2>out
/conftest.err
)
21846 cat out
/conftest.err
>&5
21847 echo "$as_me:21852: \$? = $ac_status" >&5
21848 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21850 # The compiler can only warn and ignore the option if not recognized
21851 # So say no if there are warnings
21852 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21853 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21854 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21855 lt_cv_prog_compiler_c_o_F77
=yes
21860 # SGI C++ compiler will create directory out/ii_files/ for
21861 # template instantiation
21862 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21863 $rm out
/* && rmdir out
21869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21870 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21873 hard_links
="nottested"
21874 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21875 # do not overwrite the value of need_locks provided by the user
21876 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21877 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21880 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21882 ln conftest.a conftest.b
2>&5 || hard_links
=no
21883 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21884 { echo "$as_me:$LINENO: result: $hard_links" >&5
21885 echo "${ECHO_T}$hard_links" >&6; }
21886 if test "$hard_links" = no
; then
21887 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21888 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21895 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21896 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21899 allow_undefined_flag_F77
=
21900 enable_shared_with_static_runtimes_F77
=no
21902 archive_expsym_cmds_F77
=
21903 old_archive_From_new_cmds_F77
=
21904 old_archive_from_expsyms_cmds_F77
=
21905 export_dynamic_flag_spec_F77
=
21906 whole_archive_flag_spec_F77
=
21907 thread_safe_flag_spec_F77
=
21908 hardcode_libdir_flag_spec_F77
=
21909 hardcode_libdir_flag_spec_ld_F77
=
21910 hardcode_libdir_separator_F77
=
21911 hardcode_direct_F77
=no
21912 hardcode_minus_L_F77
=no
21913 hardcode_shlibpath_var_F77
=unsupported
21914 link_all_deplibs_F77
=unknown
21915 hardcode_automatic_F77
=no
21917 module_expsym_cmds_F77
=
21918 always_export_symbols_F77
=no
21919 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21920 # include_expsyms should be a list of space-separated symbols to be *always*
21921 # included in the symbol list
21922 include_expsyms_F77
=
21923 # exclude_expsyms can be an extended regexp of symbols to exclude
21924 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21925 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21926 # as well as any symbol that contains `d'.
21927 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21928 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21929 # platforms (ab)use it in PIC code, but their linkers get confused if
21930 # the symbol is explicitly referenced. Since portable code cannot
21931 # rely on this symbol name, it's probably fine to never include it in
21932 # preloaded symbol tables.
21933 extract_expsyms_cmds
=
21934 # Just being paranoid about ensuring that cc_basename is set.
21935 for cc_temp
in $compiler""; do
21937 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21938 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21943 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21946 cygwin
* | mingw
* | pw32
*)
21947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21948 # When not using gcc, we currently assume that we are using
21949 # Microsoft Visual C++.
21950 if test "$GCC" != yes; then
21955 # we just hope/assume this is gcc and not c89 (= MSVC++)
21964 if test "$with_gnu_ld" = yes; then
21965 # If archive_cmds runs LD, not CC, wlarc should be empty
21968 # Set some defaults for GNU ld with shared library support. These
21969 # are reset later if shared libraries are not supported. Putting them
21970 # here allows them to be overridden if necessary.
21971 runpath_var
=LD_RUN_PATH
21972 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21973 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21974 # ancient GNU ld didn't support --whole-archive et. al.
21975 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21976 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21978 whole_archive_flag_spec_F77
=
21980 supports_anon_versioning
=no
21981 case `$LD -v 2>/dev/null` in
21982 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21983 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21984 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21985 *\
2.11.
*) ;; # other 2.11 versions
21986 *) supports_anon_versioning
=yes ;;
21989 # See if GNU ld supports shared libraries.
21991 aix3
* | aix4
* | aix5
*)
21992 # On AIX/PPC, the GNU linker is very broken
21993 if test "$host_cpu" != ia64
; then
21997 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21998 *** to be unable to reliably create shared libraries on AIX.
21999 *** Therefore, libtool is disabling shared libraries support. If you
22000 *** really care for shared libraries, you may want to modify your PATH
22001 *** so that a non-GNU linker is found, and then restart.
22008 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)'
22009 hardcode_libdir_flag_spec_F77
='-L$libdir'
22010 hardcode_minus_L_F77
=yes
22012 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22013 # that the semantics of dynamic libraries on AmigaOS, at least up
22014 # to version 4, is to share data among multiple programs linked
22015 # with the same dynamic library. Since this doesn't match the
22016 # behavior of shared libraries on other platforms, we can't use
22022 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22023 allow_undefined_flag_F77
=unsupported
22024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22025 # support --undefined. This deserves some investigation. FIXME
22026 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22032 cygwin
* | mingw
* | pw32
*)
22033 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22034 # as there is no search path for DLLs.
22035 hardcode_libdir_flag_spec_F77
='-L$libdir'
22036 allow_undefined_flag_F77
=unsupported
22037 always_export_symbols_F77
=no
22038 enable_shared_with_static_runtimes_F77
=yes
22039 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22041 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22042 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22043 # If the export-symbols file already is a .def file (1st line
22044 # is EXPORTS), use it as is; otherwise, prepend...
22045 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22046 cp $export_symbols $output_objdir/$soname.def;
22048 echo EXPORTS > $output_objdir/$soname.def;
22049 cat $export_symbols >> $output_objdir/$soname.def;
22051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22058 hardcode_direct_F77
=no
22059 hardcode_shlibpath_var_F77
=no
22060 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22061 export_dynamic_flag_spec_F77
='${wl}-E'
22062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22063 # Instead, shared libraries are loaded at an image base (0x10000000 by
22064 # default) and relocated if they conflict, which is a slow very memory
22065 # consuming and fragmenting process. To avoid this, we pick a random,
22066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22068 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'
22069 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'
22073 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22075 case $cc_basename,$host_cpu in
22076 pgcc
*) # Portland Group C compiler
22077 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'
22078 tmp_addflag
=' $pic_flag'
22080 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22081 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'
22082 tmp_addflag
=' $pic_flag -Mnomain' ;;
22083 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22084 tmp_addflag
=' -i_dynamic' ;;
22085 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22086 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22087 ifc
* | ifort
*) # Intel Fortran compiler
22088 tmp_addflag
=' -nofor_main' ;;
22090 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22092 if test $supports_anon_versioning = yes; then
22093 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22095 $echo "local: *; };" >> $output_objdir/$libname.ver~
22096 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22104 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22105 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22108 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22109 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22114 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22119 *** create shared libraries on Solaris systems. Therefore, libtool
22120 *** is disabling shared libraries support. We urge you to upgrade GNU
22121 *** binutils to release 2.9.1 or newer. Another option is to modify
22122 *** your PATH or compiler configuration so that the native linker is
22123 *** used, and then restart.
22126 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22127 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22128 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22134 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22135 case `$LD -v 2>&1` in
22136 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22141 *** reliably create shared libraries on SCO systems. Therefore, libtool
22142 *** is disabling shared libraries support. We urge you to upgrade GNU
22143 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22144 *** your PATH or compiler configuration so that the native linker is
22145 *** used, and then restart.
22150 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22151 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22152 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22153 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22162 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22164 hardcode_direct_F77
=yes
22165 hardcode_shlibpath_var_F77
=no
22169 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22170 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22178 if test "$ld_shlibs_F77" = no
; then
22180 hardcode_libdir_flag_spec_F77
=
22181 export_dynamic_flag_spec_F77
=
22182 whole_archive_flag_spec_F77
=
22185 # PORTME fill in a description of your system's linker (not GNU ld)
22188 allow_undefined_flag_F77
=unsupported
22189 always_export_symbols_F77
=yes
22190 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'
22191 # Note: this linker hardcodes the directories in LIBPATH if there
22192 # are no directories specified by -L.
22193 hardcode_minus_L_F77
=yes
22194 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22195 # Neither direct hardcoding nor static linking is supported with a
22197 hardcode_direct_F77
=unsupported
22202 if test "$host_cpu" = ia64
; then
22203 # On IA64, the linker does run time linking by default, so we don't
22204 # have to do anything special.
22205 aix_use_runtimelinking
=no
22206 exp_sym_flag
='-Bexport'
22209 # If we're using GNU nm, then we don't want the "-C" option.
22210 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22211 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22212 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'
22214 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'
22216 aix_use_runtimelinking
=no
22218 # Test if we are trying to use run time linking or normal
22219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22220 # need to do runtime linking.
22221 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22222 for ld_flag
in $LDFLAGS; do
22223 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22224 aix_use_runtimelinking
=yes
22231 exp_sym_flag
='-bexport'
22232 no_entry_flag
='-bnoentry'
22235 # When large executables or shared objects are built, AIX ld can
22236 # have problems creating the table of contents. If linking a library
22237 # or program results in "error TOC overflow" add -mminimal-toc to
22238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22241 archive_cmds_F77
=''
22242 hardcode_direct_F77
=yes
22243 hardcode_libdir_separator_F77
=':'
22244 link_all_deplibs_F77
=yes
22246 if test "$GCC" = yes; then
22247 case $host_os in aix4.
[012]|aix4.
[012].
*)
22248 # We only want to do this on AIX 4.2 and lower, the check
22249 # below for broken collect2 doesn't work under 4.3+
22250 collect2name
=`${CC} -print-prog-name=collect2`
22251 if test -f "$collect2name" && \
22252 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22254 # We have reworked collect2
22255 hardcode_direct_F77
=yes
22257 # We have old collect2
22258 hardcode_direct_F77
=unsupported
22259 # It fails to find uninstalled libraries when the uninstalled
22260 # path is not listed in the libpath. Setting hardcode_minus_L
22261 # to unsupported forces relinking
22262 hardcode_minus_L_F77
=yes
22263 hardcode_libdir_flag_spec_F77
='-L$libdir'
22264 hardcode_libdir_separator_F77
=
22268 shared_flag
='-shared'
22269 if test "$aix_use_runtimelinking" = yes; then
22270 shared_flag
="$shared_flag "'${wl}-G'
22274 if test "$host_cpu" = ia64
; then
22275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22276 # chokes on -Wl,-G. The following line is correct:
22279 if test "$aix_use_runtimelinking" = yes; then
22280 shared_flag
='${wl}-G'
22282 shared_flag
='${wl}-bM:SRE'
22287 # It seems that -bexpall does not export symbols beginning with
22288 # underscore (_), so it is better to generate a list of symbols to export.
22289 always_export_symbols_F77
=yes
22290 if test "$aix_use_runtimelinking" = yes; then
22291 # Warning - without using the other runtime loading flags (-brtl),
22292 # -berok will link without error, but may produce a broken library.
22293 allow_undefined_flag_F77
='-berok'
22294 # Determine the default libpath from the value encoded in an empty executable.
22295 cat >conftest.
$ac_ext <<_ACEOF
22300 rm -f conftest.
$ac_objext conftest
$ac_exeext
22301 if { (ac_try
="$ac_link"
22302 case "(($ac_try" in
22303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_link") 2>conftest.er1
22309 grep -v '^ *+' conftest.er1 >conftest.err
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22315 { (case "(($ac_try" in
22316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22317 *) ac_try_echo
=$ac_try;;
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_try") 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; } &&
22324 { ac_try
='test -s conftest$ac_exeext'
22325 { (case "(($ac_try" in
22326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22335 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22337 # Check for a 64-bit object if we didn't find anything.
22338 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; }
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22347 rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext conftest.$ac_ext
22349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22352 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"
22354 if test "$host_cpu" = ia64; then
22355 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22356 allow_undefined_flag_F77="-z nodefs"
22357 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"
22359 # Determine the default libpath from the value encoded in an empty executable.
22360 cat >conftest.$ac_ext <<_ACEOF
22365 rm -f conftest.$ac_objext conftest$ac_exeext
22366 if { (ac_try="$ac_link"
22367 case "(($ac_try" in
22368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22369 *) ac_try_echo
=$ac_try;;
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_link") 2>conftest.er1
22374 grep -v '^ *+' conftest.er1
>conftest.err
22376 cat conftest.err
>&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
22379 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22380 { (case "(($ac_try" in
22381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_try") 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; } &&
22389 { ac_try='test -s conftest$ac_exeext'
22390 { (case "(($ac_try" in
22391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22392 *) ac_try_echo
=$ac_try;;
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_try") 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22400 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22402 # Check for a 64-bit object if we didn't find anything.
22403 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; }
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.
$ac_ext >&5
22412 rm -f core conftest.err conftest.
$ac_objext \
22413 conftest
$ac_exeext conftest.
$ac_ext
22414 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22416 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22417 # Warning - without using the other run time loading flags,
22418 # -berok will link without error, but may produce a broken library.
22419 no_undefined_flag_F77
=' ${wl}-bernotok'
22420 allow_undefined_flag_F77
=' ${wl}-berok'
22421 # Exported symbols can be pulled into shared objects from archives
22422 whole_archive_flag_spec_F77
='$convenience'
22423 archive_cmds_need_lc_F77
=yes
22424 # This is similar to how AIX traditionally builds its shared libraries.
22425 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'
22431 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)'
22432 hardcode_libdir_flag_spec_F77
='-L$libdir'
22433 hardcode_minus_L_F77
=yes
22434 # see comment about different semantics on the GNU ld section
22439 export_dynamic_flag_spec_F77
=-rdynamic
22442 cygwin
* | mingw
* | pw32
*)
22443 # When not using gcc, we currently assume that we are using
22444 # Microsoft Visual C++.
22445 # hardcode_libdir_flag_spec is actually meaningless, as there is
22446 # no search path for DLLs.
22447 hardcode_libdir_flag_spec_F77
=' '
22448 allow_undefined_flag_F77
=unsupported
22449 # Tell ltmain to make .lib files, not .a files.
22451 # Tell ltmain to make .dll files, not .so files.
22453 # FIXME: Setting linknames here is a bad hack.
22454 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22455 # The linker will automatically build a .lib file if we build a DLL.
22456 old_archive_From_new_cmds_F77
='true'
22457 # FIXME: Should let the user specify the lib program.
22458 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22459 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22460 enable_shared_with_static_runtimes_F77
=yes
22463 darwin
* | rhapsody
*)
22465 rhapsody
* | darwin1.
[012])
22466 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22470 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22472 case ${MACOSX_DEPLOYMENT_TARGET} in
22474 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22477 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22483 archive_cmds_need_lc_F77
=no
22484 hardcode_direct_F77
=no
22485 hardcode_automatic_F77
=yes
22486 hardcode_shlibpath_var_F77
=unsupported
22487 whole_archive_flag_spec_F77
=''
22488 link_all_deplibs_F77
=yes
22489 if test "$GCC" = yes ; then
22490 output_verbose_link_cmd
='echo'
22491 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22492 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22494 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}'
22495 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}'
22497 case $cc_basename in
22499 output_verbose_link_cmd
='echo'
22500 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22501 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22503 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}'
22504 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}'
22514 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22515 hardcode_libdir_flag_spec_F77
='-L$libdir'
22516 hardcode_shlibpath_var_F77
=no
22523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22524 # support. Future versions do this automatically, but an explicit c++rt0.o
22525 # does not break anything, and helps significantly (at the cost of a little
22528 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22529 hardcode_libdir_flag_spec_F77
='-R$libdir'
22530 hardcode_direct_F77
=yes
22531 hardcode_shlibpath_var_F77
=no
22534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22536 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22537 hardcode_direct_F77
=yes
22538 hardcode_minus_L_F77
=yes
22539 hardcode_shlibpath_var_F77
=no
22542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22543 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22544 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22545 hardcode_libdir_flag_spec_F77
='-R$libdir'
22546 hardcode_direct_F77
=yes
22547 hardcode_shlibpath_var_F77
=no
22551 if test "$GCC" = yes; then
22552 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'
22554 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'
22556 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22557 hardcode_libdir_separator_F77
=:
22558 hardcode_direct_F77
=yes
22560 # hardcode_minus_L: Not really in the search PATH,
22561 # but as the default location of the library.
22562 hardcode_minus_L_F77
=yes
22563 export_dynamic_flag_spec_F77
='${wl}-E'
22567 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22568 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22572 if test "$with_gnu_ld" = no
; then
22573 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22574 hardcode_libdir_separator_F77
=:
22576 hardcode_direct_F77
=yes
22577 export_dynamic_flag_spec_F77
='${wl}-E'
22579 # hardcode_minus_L: Not really in the search PATH,
22580 # but as the default location of the library.
22581 hardcode_minus_L_F77
=yes
22586 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22589 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22592 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22595 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22601 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22604 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22607 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22611 if test "$with_gnu_ld" = no
; then
22612 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22613 hardcode_libdir_separator_F77
=:
22617 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22618 hardcode_direct_F77
=no
22619 hardcode_shlibpath_var_F77
=no
22622 hardcode_direct_F77
=yes
22623 export_dynamic_flag_spec_F77
='${wl}-E'
22625 # hardcode_minus_L: Not really in the search PATH,
22626 # but as the default location of the library.
22627 hardcode_minus_L_F77
=yes
22633 irix5
* | irix6
* | nonstopux
*)
22634 if test "$GCC" = yes; then
22635 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'
22637 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'
22638 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22640 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22641 hardcode_libdir_separator_F77
=:
22642 link_all_deplibs_F77
=yes
22646 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22647 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22649 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22651 hardcode_libdir_flag_spec_F77
='-R$libdir'
22652 hardcode_direct_F77
=yes
22653 hardcode_shlibpath_var_F77
=no
22657 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_F77
=yes
22659 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22660 hardcode_libdir_separator_F77
=:
22661 hardcode_shlibpath_var_F77
=no
22665 hardcode_direct_F77
=yes
22666 hardcode_shlibpath_var_F77
=no
22667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22668 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22669 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22670 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22671 export_dynamic_flag_spec_F77
='${wl}-E'
22674 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22675 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22676 hardcode_libdir_flag_spec_F77
='-R$libdir'
22679 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22680 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22687 hardcode_libdir_flag_spec_F77
='-L$libdir'
22688 hardcode_minus_L_F77
=yes
22689 allow_undefined_flag_F77
=unsupported
22690 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'
22691 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22695 if test "$GCC" = yes; then
22696 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22697 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'
22699 allow_undefined_flag_F77
=' -expect_unresolved \*'
22700 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'
22702 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22703 hardcode_libdir_separator_F77
=:
22706 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22707 if test "$GCC" = yes; then
22708 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22709 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'
22710 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22712 allow_undefined_flag_F77
=' -expect_unresolved \*'
22713 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'
22714 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~
22715 $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'
22717 # Both c and cxx compiler support -rpath directly
22718 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22720 hardcode_libdir_separator_F77
=:
22724 no_undefined_flag_F77
=' -z text'
22725 if test "$GCC" = yes; then
22727 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22728 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22729 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22732 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22733 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22736 hardcode_libdir_flag_spec_F77
='-R$libdir'
22737 hardcode_shlibpath_var_F77
=no
22739 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22741 # The compiler driver will combine linker options so we
22742 # cannot just pass the convience library names through
22743 # without $wl, iff we do not link with $LD.
22744 # Luckily, gcc supports the same syntax we need for Sun Studio.
22745 # Supported since Solaris 2.6 (maybe 2.5.1?)
22748 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22750 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' ;;
22753 link_all_deplibs_F77
=yes
22757 if test "x$host_vendor" = xsequent
; then
22758 # Use $CC to link under sequent, because it throws in some extra .o
22759 # files that make .init and .fini sections work.
22760 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22762 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22764 hardcode_libdir_flag_spec_F77
='-L$libdir'
22765 hardcode_direct_F77
=yes
22766 hardcode_minus_L_F77
=yes
22767 hardcode_shlibpath_var_F77
=no
22771 case $host_vendor in
22773 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22774 hardcode_direct_F77
=yes # is this really true???
22777 ## LD is ld it makes a PLAMLIB
22778 ## CC just makes a GrossModule.
22779 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22780 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22781 hardcode_direct_F77
=no
22784 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22785 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22788 runpath_var
='LD_RUN_PATH'
22789 hardcode_shlibpath_var_F77
=no
22793 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22794 hardcode_shlibpath_var_F77
=no
22795 export_dynamic_flag_spec_F77
='-Bexport'
22799 if test -d /usr
/nec
; then
22800 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801 hardcode_shlibpath_var_F77
=no
22802 runpath_var
=LD_RUN_PATH
22803 hardcode_runpath_var
=yes
22808 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22809 no_undefined_flag_F77
='${wl}-z,text'
22810 archive_cmds_need_lc_F77
=no
22811 hardcode_shlibpath_var_F77
=no
22812 runpath_var
='LD_RUN_PATH'
22814 if test "$GCC" = yes; then
22815 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22816 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22818 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22819 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22823 sysv5
* | sco3.2v5
* | sco5v6
*)
22824 # Note: We can NOT use -z defs as we might desire, because we do not
22825 # link with -lc, and that would cause any symbols used from libc to
22826 # always be unresolved, which means just about no library would
22827 # ever link correctly. If we're not using GNU ld we use -z text
22828 # though, which does catch some bad symbols but isn't as heavy-handed
22830 no_undefined_flag_F77
='${wl}-z,text'
22831 allow_undefined_flag_F77
='${wl}-z,nodefs'
22832 archive_cmds_need_lc_F77
=no
22833 hardcode_shlibpath_var_F77
=no
22834 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22835 hardcode_libdir_separator_F77
=':'
22836 link_all_deplibs_F77
=yes
22837 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22838 runpath_var
='LD_RUN_PATH'
22840 if test "$GCC" = yes; then
22841 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22842 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22845 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22850 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22851 hardcode_libdir_flag_spec_F77
='-L$libdir'
22852 hardcode_shlibpath_var_F77
=no
22861 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22862 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22863 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22866 # Do we need to explicitly link libc?
22868 case "x$archive_cmds_need_lc_F77" in
22870 # Assume -lc should be added
22871 archive_cmds_need_lc_F77
=yes
22873 if test "$enable_shared" = yes && test "$GCC" = yes; then
22874 case $archive_cmds_F77 in
22876 # FIXME: we may have to deal with multi-command sequences.
22879 # Test whether the compiler implicitly links with -lc since on some
22880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22881 # to ld, don't add -lc before -lgcc.
22882 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22883 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22885 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22888 (eval $ac_compile) 2>&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } 2>conftest.err
; then
22894 libobjs
=conftest.
$ac_objext
22896 wl
=$lt_prog_compiler_wl_F77
22897 pic_flag
=$lt_prog_compiler_pic_F77
22903 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22904 allow_undefined_flag_F77
=
22905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22906 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }
22911 archive_cmds_need_lc_F77
=no
22913 archive_cmds_need_lc_F77
=yes
22915 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22917 cat conftest.err
1>&5
22920 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22921 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22928 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22930 library_names_spec
=
22931 libname_spec
='lib$name'
22935 postuninstall_cmds
=
22939 shlibpath_overrides_runpath
=unknown
22941 dynamic_linker
="$host_os ld.so"
22942 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22943 if test "$GCC" = yes; then
22944 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22945 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22946 # if the path contains ";" then we assume it to be the separator
22947 # otherwise default to the standard path separator (i.e. ":") - it is
22948 # assumed that no part of a normal pathname contains ";" but that should
22949 # okay in the real world where ";" in dirpaths is itself problematic.
22950 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22952 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22955 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22957 need_lib_prefix
=unknown
22958 hardcode_into_libs
=no
22960 # when you set need_version to no, make sure it does not cause -set_version
22961 # flags to be left without arguments
22962 need_version
=unknown
22967 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22968 shlibpath_var
=LIBPATH
22970 # AIX 3 has no versioning support, so we append a major version to the name.
22971 soname_spec
='${libname}${release}${shared_ext}$major'
22978 hardcode_into_libs
=yes
22979 if test "$host_cpu" = ia64
; then
22980 # AIX 5 supports IA64
22981 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22982 shlibpath_var
=LD_LIBRARY_PATH
22984 # With GCC up to 2.95.x, collect2 would create an import file
22985 # for dependence libraries. The import file would start with
22986 # the line `#! .'. This would cause the generated library to
22987 # depend on `.', always an invalid library. This was fixed in
22988 # development snapshots of GCC prior to 3.0.
22990 aix4 | aix4.
[01] | aix4.
[01].
*)
22991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22993 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22996 can_build_shared
=no
23000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23001 # soname into executable. Probably we can add versioning support to
23002 # collect2, so additional links can be useful in future.
23003 if test "$aix_use_runtimelinking" = yes; then
23004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23005 # instead of lib<name>.a to let people know that these are not
23006 # typical AIX shared libraries.
23007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23009 # We preserve .a as extension for shared libraries through AIX4.2
23010 # and later when we are not doing run time linking.
23011 library_names_spec
='${libname}${release}.a $libname.a'
23012 soname_spec
='${libname}${release}${shared_ext}$major'
23014 shlibpath_var
=LIBPATH
23019 library_names_spec
='$libname.ixlibrary $libname.a'
23020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23021 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'
23025 library_names_spec
='${libname}${shared_ext}'
23026 dynamic_linker
="$host_os ld.so"
23027 shlibpath_var
=LIBRARY_PATH
23033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23034 soname_spec
='${libname}${release}${shared_ext}$major'
23035 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23036 shlibpath_var
=LD_LIBRARY_PATH
23037 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23038 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23039 # the default ld.so.conf also contains /usr/contrib/lib and
23040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23041 # libtool to hard-code these into programs
23044 cygwin
* | mingw
* | pw32
*)
23045 version_type
=windows
23050 case $GCC,$host_os in
23051 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23052 library_names_spec
='$libname.dll.a'
23053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23054 postinstall_cmds
='base_file=`basename \${file}`~
23055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23056 dldir=$destdir/`dirname \$dlpath`~
23057 test -d \$dldir || mkdir -p \$dldir~
23058 $install_prog $dir/$dlname \$dldir/$dlname~
23059 chmod a+x \$dldir/$dlname'
23060 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23061 dlpath=$dir/\$dldll~
23063 shlibpath_overrides_runpath
=yes
23067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23068 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23069 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23072 # MinGW DLLs use traditional 'lib' prefix
23073 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23074 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23075 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23076 # It is most probably a Windows format PATH printed by
23077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23078 # path with ; separators, and with drive letters. We can handle the
23079 # drive letters (cygwin fileutils understands them), so leave them,
23080 # especially as we might pass files found there to a mingw objdump,
23081 # which wouldn't understand a cygwinified path. Ahh.
23082 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23084 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23088 # pw32 DLLs use 'pw' prefix rather than 'lib'
23089 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23095 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23098 dynamic_linker
='Win32 ld.exe'
23099 # FIXME: first we should search . and the directory the executable is in
23103 darwin
* | rhapsody
*)
23104 dynamic_linker
="$host_os dyld"
23105 version_type
=darwin
23108 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23109 soname_spec
='${libname}${release}${major}$shared_ext'
23110 shlibpath_overrides_runpath
=yes
23111 shlibpath_var
=DYLD_LIBRARY_PATH
23112 shrext_cmds
='.dylib'
23113 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23114 if test "$GCC" = yes; then
23115 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"`
23117 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23119 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23127 soname_spec
='${libname}${release}${shared_ext}$major'
23128 shlibpath_var
=LD_LIBRARY_PATH
23139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23140 soname_spec
='${libname}${release}${shared_ext}$major'
23141 shlibpath_var
=LD_LIBRARY_PATH
23142 shlibpath_overrides_runpath
=no
23143 hardcode_into_libs
=yes
23144 dynamic_linker
='GNU ld.so'
23147 freebsd
* | dragonfly
*)
23148 # DragonFly does not have aout. When/if they implement a new
23149 # versioning mechanism, adjust this.
23150 if test -x /usr
/bin
/objformat
; then
23151 objformat
=`/usr/bin/objformat`
23154 freebsd
[123]*) objformat
=aout
;;
23155 *) objformat
=elf
;;
23158 version_type
=freebsd-
$objformat
23159 case $version_type in
23161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23166 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23170 shlibpath_var
=LD_LIBRARY_PATH
23173 shlibpath_overrides_runpath
=yes
23175 freebsd3.
[01]* | freebsdelf3.
[01]*)
23176 shlibpath_overrides_runpath
=yes
23177 hardcode_into_libs
=yes
23179 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23180 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23181 shlibpath_overrides_runpath
=no
23182 hardcode_into_libs
=yes
23184 freebsd
*) # from 4.6 on
23185 shlibpath_overrides_runpath
=yes
23186 hardcode_into_libs
=yes
23195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23196 soname_spec
='${libname}${release}${shared_ext}$major'
23197 shlibpath_var
=LD_LIBRARY_PATH
23198 hardcode_into_libs
=yes
23201 hpux9
* | hpux10
* | hpux11
*)
23202 # Give a soname corresponding to the major version so that dld.sl refuses to
23203 # link against other versions.
23210 hardcode_into_libs
=yes
23211 dynamic_linker
="$host_os dld.so"
23212 shlibpath_var
=LD_LIBRARY_PATH
23213 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23215 soname_spec
='${libname}${release}${shared_ext}$major'
23216 if test "X$HPUX_IA64_MODE" = X32
; then
23217 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23219 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23221 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23225 hardcode_into_libs
=yes
23226 dynamic_linker
="$host_os dld.sl"
23227 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23228 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23230 soname_spec
='${libname}${release}${shared_ext}$major'
23231 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23232 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23236 dynamic_linker
="$host_os dld.sl"
23237 shlibpath_var
=SHLIB_PATH
23238 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23240 soname_spec
='${libname}${release}${shared_ext}$major'
23243 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23244 postinstall_cmds
='chmod 555 $lib'
23251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23252 soname_spec
='${libname}${release}${shared_ext}$major'
23253 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23254 shlibpath_var
=LD_LIBRARY_PATH
23255 shlibpath_overrides_runpath
=no
23256 hardcode_into_libs
=yes
23259 irix5
* | irix6
* | nonstopux
*)
23261 nonstopux
*) version_type
=nonstopux
;;
23263 if test "$lt_cv_prog_gnu_ld" = yes; then
23271 soname_spec
='${libname}${release}${shared_ext}$major'
23272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23274 irix5
* | nonstopux
*)
23275 libsuff
= shlibsuff
=
23278 case $LD in # libtool.m4 will add one of these switches to LD
23279 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23280 libsuff
= shlibsuff
= libmagic
=32-bit;;
23281 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23282 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23283 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23284 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23285 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23289 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23290 shlibpath_overrides_runpath
=no
23291 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23292 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23293 hardcode_into_libs
=yes
23296 # No shared lib support for Linux oldld, aout, or coff.
23297 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23301 # This must be Linux ELF.
23306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23307 soname_spec
='${libname}${release}${shared_ext}$major'
23308 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23309 shlibpath_var
=LD_LIBRARY_PATH
23310 shlibpath_overrides_runpath
=no
23311 # This implies no fast_install, which is unacceptable.
23312 # Some rework will be needed to allow for fast_install
23313 # before this can be enabled.
23314 hardcode_into_libs
=yes
23316 # Append ld.so.conf contents to the search path
23317 if test -f /etc
/ld.so.conf
; then
23318 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' ' '`
23319 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23322 # We used to test for /lib/ld.so.1 and disable shared libraries on
23323 # powerpc, because MkLinux only supported shared libraries with the
23324 # GNU dynamic linker. Since this was broken with cross compilers,
23325 # most powerpc-linux boxes support dynamic linking these days and
23326 # people can always --disable-shared, the test was removed, and we
23327 # assume the GNU/Linux dynamic linker is in use.
23328 dynamic_linker
='GNU/Linux ld.so'
23335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23336 soname_spec
='${libname}${release}${shared_ext}$major'
23337 shlibpath_var
=LD_LIBRARY_PATH
23338 shlibpath_overrides_runpath
=no
23339 hardcode_into_libs
=yes
23340 dynamic_linker
='GNU ld.so'
23347 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23349 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23350 dynamic_linker
='NetBSD (a.out) ld.so'
23352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23353 soname_spec
='${libname}${release}${shared_ext}$major'
23354 dynamic_linker
='NetBSD ld.elf_so'
23356 shlibpath_var
=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath
=yes
23358 hardcode_into_libs
=yes
23363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23364 shlibpath_var
=LD_LIBRARY_PATH
23365 shlibpath_overrides_runpath
=yes
23372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373 soname_spec
='${libname}${release}${shared_ext}$major'
23374 shlibpath_var
=LD_LIBRARY_PATH
23375 shlibpath_overrides_runpath
=yes
23380 sys_lib_dlsearch_path_spec
="/usr/lib"
23382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23384 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23385 *) need_version
=no
;;
23387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23388 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23389 shlibpath_var
=LD_LIBRARY_PATH
23390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23392 openbsd2.
[89] | openbsd2.
[89].
*)
23393 shlibpath_overrides_runpath
=no
23396 shlibpath_overrides_runpath
=yes
23400 shlibpath_overrides_runpath
=yes
23405 libname_spec
='$name'
23408 library_names_spec
='$libname${shared_ext} $libname.a'
23409 dynamic_linker
='OS/2 ld.exe'
23410 shlibpath_var
=LIBPATH
23413 osf3
* | osf4
* | osf5
*)
23417 soname_spec
='${libname}${release}${shared_ext}$major'
23418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23419 shlibpath_var
=LD_LIBRARY_PATH
23420 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23421 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23429 soname_spec
='${libname}${release}${shared_ext}$major'
23430 shlibpath_var
=LD_LIBRARY_PATH
23431 shlibpath_overrides_runpath
=yes
23432 hardcode_into_libs
=yes
23433 # ldd complains unless libraries are executable
23434 postinstall_cmds
='chmod +x $lib'
23439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23440 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23441 shlibpath_var
=LD_LIBRARY_PATH
23442 shlibpath_overrides_runpath
=yes
23443 if test "$with_gnu_ld" = yes; then
23451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23452 soname_spec
='${libname}${release}${shared_ext}$major'
23453 shlibpath_var
=LD_LIBRARY_PATH
23454 case $host_vendor in
23456 shlibpath_overrides_runpath
=no
23458 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23459 runpath_var
=LD_RUN_PATH
23467 shlibpath_overrides_runpath
=no
23468 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23474 if test -d /usr
/nec
;then
23476 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23477 soname_spec
='$libname${shared_ext}.$major'
23478 shlibpath_var
=LD_LIBRARY_PATH
23482 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23483 version_type
=freebsd-elf
23486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23487 soname_spec
='${libname}${release}${shared_ext}$major'
23488 shlibpath_var
=LD_LIBRARY_PATH
23489 hardcode_into_libs
=yes
23490 if test "$with_gnu_ld" = yes; then
23491 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23492 shlibpath_overrides_runpath
=no
23494 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23495 shlibpath_overrides_runpath
=yes
23498 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23502 sys_lib_dlsearch_path_spec
='/usr/lib'
23507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23508 soname_spec
='${libname}${release}${shared_ext}$major'
23509 shlibpath_var
=LD_LIBRARY_PATH
23516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23517 echo "${ECHO_T}$dynamic_linker" >&6; }
23518 test "$dynamic_linker" = no
&& can_build_shared
=no
23520 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23521 if test "$GCC" = yes; then
23522 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23527 hardcode_action_F77
=
23528 if test -n "$hardcode_libdir_flag_spec_F77" || \
23529 test -n "$runpath_var_F77" || \
23530 test "X$hardcode_automatic_F77" = "Xyes" ; then
23532 # We can hardcode non-existant directories.
23533 if test "$hardcode_direct_F77" != no
&&
23534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23535 # have to relink, otherwise we might link with an installed library
23536 # when we should be linking with a yet-to-be-installed one
23537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23538 test "$hardcode_minus_L_F77" != no
; then
23539 # Linking always hardcodes the temporary library directory.
23540 hardcode_action_F77
=relink
23542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23543 hardcode_action_F77
=immediate
23546 # We cannot hardcode anything, or else we can only hardcode existing
23548 hardcode_action_F77
=unsupported
23550 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23551 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23553 if test "$hardcode_action_F77" = relink
; then
23554 # Fast installation is not supported
23555 enable_fast_install
=no
23556 elif test "$shlibpath_overrides_runpath" = yes ||
23557 test "$enable_shared" = no
; then
23558 # Fast installation is not necessary
23559 enable_fast_install
=needless
23563 # The else clause should only fire when bootstrapping the
23564 # libtool distribution, otherwise you forgot to ship ltmain.sh
23565 # with your package, and you will get complaints that there are
23566 # no rules to generate ltmain.sh.
23567 if test -f "$ltmain"; then
23568 # See if we are running on zsh, and set the options which allow our commands through
23569 # without removal of \ escapes.
23570 if test -n "${ZSH_VERSION+set}" ; then
23571 setopt NO_GLOB_SUBST
23573 # Now quote all the things that may contain metacharacters while being
23574 # careful not to overquote the AC_SUBSTed values. We take copies of the
23575 # variables and quote the copies for generation of the libtool script.
23576 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23580 deplibs_check_method reload_flag reload_cmds need_locks \
23581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23582 lt_cv_sys_global_symbol_to_c_name_address \
23583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23584 old_postinstall_cmds old_postuninstall_cmds \
23588 lt_prog_compiler_wl_F77 \
23589 lt_prog_compiler_pic_F77 \
23590 lt_prog_compiler_static_F77 \
23591 lt_prog_compiler_no_builtin_flag_F77 \
23592 export_dynamic_flag_spec_F77 \
23593 thread_safe_flag_spec_F77 \
23594 whole_archive_flag_spec_F77 \
23595 enable_shared_with_static_runtimes_F77 \
23596 old_archive_cmds_F77 \
23597 old_archive_from_new_cmds_F77 \
23598 predep_objects_F77 \
23599 postdep_objects_F77 \
23602 compiler_lib_search_path_F77 \
23604 archive_expsym_cmds_F77 \
23605 postinstall_cmds_F77 \
23606 postuninstall_cmds_F77 \
23607 old_archive_from_expsyms_cmds_F77 \
23608 allow_undefined_flag_F77 \
23609 no_undefined_flag_F77 \
23610 export_symbols_cmds_F77 \
23611 hardcode_libdir_flag_spec_F77 \
23612 hardcode_libdir_flag_spec_ld_F77 \
23613 hardcode_libdir_separator_F77 \
23614 hardcode_automatic_F77 \
23616 module_expsym_cmds_F77 \
23617 lt_cv_prog_compiler_c_o_F77 \
23618 exclude_expsyms_F77 \
23619 include_expsyms_F77
; do
23622 old_archive_cmds_F77 | \
23623 old_archive_from_new_cmds_F77 | \
23624 archive_cmds_F77 | \
23625 archive_expsym_cmds_F77 | \
23626 module_cmds_F77 | \
23627 module_expsym_cmds_F77 | \
23628 old_archive_from_expsyms_cmds_F77 | \
23629 export_symbols_cmds_F77 | \
23630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23631 postinstall_cmds | postuninstall_cmds | \
23632 old_postinstall_cmds | old_postuninstall_cmds | \
23633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23634 # Double-quote double-evaled strings.
23635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23644 *'\$0 --fallback-echo"')
23645 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23651 cat <<__EOF__ >> "$cfgfile"
23652 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23654 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23656 # Shell to use when invoking shell scripts.
23659 # Whether or not to build shared libraries.
23660 build_libtool_libs=$enable_shared
23662 # Whether or not to build static libraries.
23663 build_old_libs=$enable_static
23665 # Whether or not to add -lc for building shared libraries.
23666 build_libtool_need_lc=$archive_cmds_need_lc_F77
23668 # Whether or not to disallow shared libs when runtime libs are static
23669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23671 # Whether or not to optimize for fast installation.
23672 fast_install=$enable_fast_install
23675 host_alias=$host_alias
23679 # The build system.
23680 build_alias=$build_alias
23684 # An echo program that does not interpret backslashes.
23689 AR_FLAGS=$lt_AR_FLAGS
23694 # LTCC compiler flags.
23695 LTCFLAGS=$lt_LTCFLAGS
23697 # A language-specific compiler.
23698 CC=$lt_compiler_F77
23700 # Is the compiler the GNU C compiler?
23706 # The linker used to build libraries.
23709 # Whether we need hard or soft links.
23712 # A BSD-compatible nm program.
23715 # A symbol stripping program
23718 # Used to examine libraries when file_magic_cmd begins "file"
23719 MAGIC_CMD=$MAGIC_CMD
23721 # Used on cygwin: DLL creation program.
23724 # Used on cygwin: object dumper.
23727 # Used on cygwin: assembler.
23730 # The name of the directory that contains temporary libtool files.
23733 # How to create reloadable object files.
23734 reload_flag=$lt_reload_flag
23735 reload_cmds=$lt_reload_cmds
23737 # How to pass a linker flag through the compiler.
23738 wl=$lt_lt_prog_compiler_wl_F77
23740 # Object file suffix (normally "o").
23741 objext="$ac_objext"
23743 # Old archive suffix (normally "a").
23746 # Shared library suffix (normally ".so").
23747 shrext_cmds='$shrext_cmds'
23749 # Executable file suffix (normally "").
23752 # Additional compiler flags for building library objects.
23753 pic_flag=$lt_lt_prog_compiler_pic_F77
23756 # What is the maximum length of a command?
23757 max_cmd_len=$lt_cv_sys_max_cmd_len
23759 # Does compiler simultaneously support -c and -o options?
23760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23762 # Must we lock files when doing compilation?
23763 need_locks=$lt_need_locks
23765 # Do we need the lib prefix for modules?
23766 need_lib_prefix=$need_lib_prefix
23768 # Do we need a version for libraries?
23769 need_version=$need_version
23771 # Whether dlopen is supported.
23772 dlopen_support=$enable_dlopen
23774 # Whether dlopen of programs is supported.
23775 dlopen_self=$enable_dlopen_self
23777 # Whether dlopen of statically linked programs is supported.
23778 dlopen_self_static=$enable_dlopen_self_static
23780 # Compiler flag to prevent dynamic linking.
23781 link_static_flag=$lt_lt_prog_compiler_static_F77
23783 # Compiler flag to turn off builtin functions.
23784 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23786 # Compiler flag to allow reflexive dlopens.
23787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23789 # Compiler flag to generate shared objects directly from archives.
23790 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23792 # Compiler flag to generate thread-safe objects.
23793 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23795 # Library versioning type.
23796 version_type=$version_type
23798 # Format of library name prefix.
23799 libname_spec=$lt_libname_spec
23801 # List of archive names. First name is the real one, the rest are links.
23802 # The last name is the one that the linker finds with -lNAME.
23803 library_names_spec=$lt_library_names_spec
23805 # The coded name of the library, if different from the real name.
23806 soname_spec=$lt_soname_spec
23808 # Commands used to build and install an old-style archive.
23810 old_archive_cmds=$lt_old_archive_cmds_F77
23811 old_postinstall_cmds=$lt_old_postinstall_cmds
23812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23814 # Create an old-style archive from a shared archive.
23815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23817 # Create a temporary old-style archive to link instead of a shared archive.
23818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23820 # Commands used to build and install a shared archive.
23821 archive_cmds=$lt_archive_cmds_F77
23822 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23823 postinstall_cmds=$lt_postinstall_cmds
23824 postuninstall_cmds=$lt_postuninstall_cmds
23826 # Commands used to build a loadable module (assumed same as above if empty)
23827 module_cmds=$lt_module_cmds_F77
23828 module_expsym_cmds=$lt_module_expsym_cmds_F77
23830 # Commands to strip libraries.
23831 old_striplib=$lt_old_striplib
23832 striplib=$lt_striplib
23834 # Dependencies to place before the objects being linked to create a
23836 predep_objects=$lt_predep_objects_F77
23838 # Dependencies to place after the objects being linked to create a
23840 postdep_objects=$lt_postdep_objects_F77
23842 # Dependencies to place before the objects being linked to create a
23844 predeps=$lt_predeps_F77
23846 # Dependencies to place after the objects being linked to create a
23848 postdeps=$lt_postdeps_F77
23850 # The library search path used internally by the compiler when linking
23851 # a shared library.
23852 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23854 # Method to check whether dependent libraries are shared objects.
23855 deplibs_check_method=$lt_deplibs_check_method
23857 # Command to use when deplibs_check_method == file_magic.
23858 file_magic_cmd=$lt_file_magic_cmd
23860 # Flag that allows shared libraries with undefined symbols to be built.
23861 allow_undefined_flag=$lt_allow_undefined_flag_F77
23863 # Flag that forces no undefined symbols.
23864 no_undefined_flag=$lt_no_undefined_flag_F77
23866 # Commands used to finish a libtool library installation in a directory.
23867 finish_cmds=$lt_finish_cmds
23869 # Same as above, but a single script fragment to be evaled but not shown.
23870 finish_eval=$lt_finish_eval
23872 # Take the output of nm and produce a listing of raw symbols and C names.
23873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23875 # Transform the output of nm in a proper C declaration
23876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23878 # Transform the output of nm in a C name address pair
23879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23881 # This is the shared library runtime path variable.
23882 runpath_var=$runpath_var
23884 # This is the shared library path variable.
23885 shlibpath_var=$shlibpath_var
23887 # Is shlibpath searched before the hard-coded library search path?
23888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23890 # How to hardcode a shared library path into an executable.
23891 hardcode_action=$hardcode_action_F77
23893 # Whether we should hardcode library paths into libraries.
23894 hardcode_into_libs=$hardcode_into_libs
23896 # Flag to hardcode \$libdir into a binary during linking.
23897 # This must work even if \$libdir does not exist.
23898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23900 # If ld is used when linking, flag to hardcode \$libdir into
23901 # a binary during linking. This must work even if \$libdir does
23903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23905 # Whether we need a single -rpath flag with a separated argument.
23906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23908 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23909 # resulting binary.
23910 hardcode_direct=$hardcode_direct_F77
23912 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23913 # resulting binary.
23914 hardcode_minus_L=$hardcode_minus_L_F77
23916 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23917 # the resulting binary.
23918 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23920 # Set to yes if building a shared library automatically hardcodes DIR into the library
23921 # and all subsequent libraries and executables linked against it.
23922 hardcode_automatic=$hardcode_automatic_F77
23924 # Variables whose values should be saved in libtool wrapper scripts and
23925 # restored at relink time.
23926 variables_saved_for_relink="$variables_saved_for_relink"
23928 # Whether libtool must link a program against all its dependency libraries.
23929 link_all_deplibs=$link_all_deplibs_F77
23931 # Compile-time system search path for libraries
23932 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23934 # Run-time system search path for libraries
23935 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23937 # Fix the shell variable \$srcfile for the compiler.
23938 fix_srcfile_path="$fix_srcfile_path_F77"
23940 # Set to yes if exported symbols are required.
23941 always_export_symbols=$always_export_symbols_F77
23943 # The commands to list exported symbols.
23944 export_symbols_cmds=$lt_export_symbols_cmds_F77
23946 # The commands to extract the exported symbol list from a shared archive.
23947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23949 # Symbols that should not be listed in the preloaded symbols.
23950 exclude_expsyms=$lt_exclude_expsyms_F77
23952 # Symbols that must always be exported.
23953 include_expsyms=$lt_include_expsyms_F77
23955 # ### END LIBTOOL TAG CONFIG: $tagname
23961 # If there is no Makefile yet, we rely on a make rule to execute
23962 # `config.status --recheck' to rerun these tests and create the
23963 # libtool script then.
23964 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23965 if test -f "$ltmain_in"; then
23966 test -f Makefile
&& make "$ltmain"
23972 ac_cpp
='$CPP $CPPFLAGS'
23973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23985 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23987 ac_cpp
='$CPP $CPPFLAGS'
23988 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23989 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23990 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23993 # Source file extension for Java test sources.
23996 # Object file extension for compiled Java test sources.
24000 # Code to be used in simple compile tests
24001 lt_simple_compile_test_code
="class foo {}\n"
24003 # Code to be used in simple link tests
24004 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
24006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24008 # If no C compiler was specified, use CC.
24011 # If no C compiler flags were specified, use CFLAGS.
24012 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
24014 # Allow CC to be a program name with arguments.
24018 # save warnings/boilerplate of simple test code
24019 ac_outfile
=conftest.
$ac_objext
24020 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
24021 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24022 _lt_compiler_boilerplate
=`cat conftest.err`
24025 ac_outfile
=conftest.
$ac_objext
24026 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
24027 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24028 _lt_linker_boilerplate
=`cat conftest.err`
24032 # Allow CC to be a program name with arguments.
24037 for cc_temp
in $compiler""; do
24039 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24040 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24045 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24048 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24049 archive_cmds_need_lc_GCJ
=no
24051 old_archive_cmds_GCJ
=$old_archive_cmds
24054 lt_prog_compiler_no_builtin_flag_GCJ
=
24056 if test "$GCC" = yes; then
24057 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24060 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24061 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24062 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 lt_cv_prog_compiler_rtti_exceptions
=no
24066 ac_outfile
=conftest.
$ac_objext
24067 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24068 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24069 # Insert the option either (1) after the last *FLAGS variable, or
24070 # (2) before a word containing "conftest.", or (3) at the end.
24071 # Note that $ac_compile itself does not contain backslashes and begins
24072 # with a dollar sign (not a hyphen), so the echo should work correctly.
24073 # The option is referenced via a variable to avoid confusing sed.
24074 lt_compile
=`echo "$ac_compile" | $SED \
24075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24077 -e 's:$: $lt_compiler_flag:'`
24078 (eval echo "\"\$as_me:24083: $lt_compile\"" >&5)
24079 (eval "$lt_compile" 2>conftest.err
)
24081 cat conftest.err
>&5
24082 echo "$as_me:24087: \$? = $ac_status" >&5
24083 if (exit $ac_status) && test -s "$ac_outfile"; then
24084 # The compiler can only warn and ignore the option if not recognized
24085 # So say no if there are warnings other than the usual output.
24086 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24087 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24088 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24089 lt_cv_prog_compiler_rtti_exceptions
=yes
24095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24096 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24098 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24099 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24106 lt_prog_compiler_wl_GCJ
=
24107 lt_prog_compiler_pic_GCJ
=
24108 lt_prog_compiler_static_GCJ
=
24110 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24111 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24113 if test "$GCC" = yes; then
24114 lt_prog_compiler_wl_GCJ
='-Wl,'
24115 lt_prog_compiler_static_GCJ
='-static'
24119 # All AIX code is PIC.
24120 if test "$host_cpu" = ia64
; then
24121 # AIX 5 now supports IA64 processor
24122 lt_prog_compiler_static_GCJ
='-Bstatic'
24127 # FIXME: we need at least 68020 code to build shared libraries, but
24128 # adding the `-m68020' flag to GCC prevents building anything better,
24130 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24133 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24134 # PIC is the default for these OSes.
24137 mingw
* | pw32
* | os2
*)
24138 # This hack is so that the source file can tell whether it is being
24139 # built for inclusion in a dll (and should export symbols for example).
24140 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24143 darwin
* | rhapsody
*)
24144 # PIC is the default on this platform
24145 # Common symbols not allowed in MH_DYLIB files
24146 lt_prog_compiler_pic_GCJ
='-fno-common'
24150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24151 # Instead, we relocate shared libraries at runtime.
24155 # Just because we use GCC doesn't mean we suddenly get shared libraries
24156 # on systems that don't support them.
24157 lt_prog_compiler_can_build_shared_GCJ
=no
24162 if test -d /usr
/nec
; then
24163 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24169 # not for PA HP-UX.
24175 lt_prog_compiler_pic_GCJ
='-fPIC'
24181 lt_prog_compiler_pic_GCJ
='-fPIC'
24185 # PORTME Check for flag to pass linker flags through the system compiler.
24188 lt_prog_compiler_wl_GCJ
='-Wl,'
24189 if test "$host_cpu" = ia64
; then
24190 # AIX 5 now supports IA64 processor
24191 lt_prog_compiler_static_GCJ
='-Bstatic'
24193 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24197 # PIC is the default on this platform
24198 # Common symbols not allowed in MH_DYLIB files
24199 case $cc_basename in
24201 lt_prog_compiler_pic_GCJ
='-qnocommon'
24202 lt_prog_compiler_wl_GCJ
='-Wl,'
24207 mingw
* | pw32
* | os2
*)
24208 # This hack is so that the source file can tell whether it is being
24209 # built for inclusion in a dll (and should export symbols for example).
24210 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24213 hpux9
* | hpux10
* | hpux11
*)
24214 lt_prog_compiler_wl_GCJ
='-Wl,'
24215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24216 # not for PA HP-UX.
24222 lt_prog_compiler_pic_GCJ
='+Z'
24225 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24226 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24229 irix5
* | irix6
* | nonstopux
*)
24230 lt_prog_compiler_wl_GCJ
='-Wl,'
24231 # PIC (with -KPIC) is the default.
24232 lt_prog_compiler_static_GCJ
='-non_shared'
24236 lt_prog_compiler_pic_GCJ
='-KPIC'
24237 lt_prog_compiler_static_GCJ
='-Bstatic'
24241 case $cc_basename in
24243 lt_prog_compiler_wl_GCJ
='-Wl,'
24244 lt_prog_compiler_pic_GCJ
='-KPIC'
24245 lt_prog_compiler_static_GCJ
='-static'
24247 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24248 # Portland Group compilers (*not* the Pentium gcc compiler,
24249 # which looks to be a dead project)
24250 lt_prog_compiler_wl_GCJ
='-Wl,'
24251 lt_prog_compiler_pic_GCJ
='-fpic'
24252 lt_prog_compiler_static_GCJ
='-Bstatic'
24255 lt_prog_compiler_wl_GCJ
='-Wl,'
24256 # All Alpha code is PIC.
24257 lt_prog_compiler_static_GCJ
='-non_shared'
24262 osf3
* | osf4
* | osf5
*)
24263 lt_prog_compiler_wl_GCJ
='-Wl,'
24264 # All OSF/1 code is PIC.
24265 lt_prog_compiler_static_GCJ
='-non_shared'
24269 lt_prog_compiler_pic_GCJ
='-KPIC'
24270 lt_prog_compiler_static_GCJ
='-Bstatic'
24271 case $cc_basename in
24272 f77
* | f90
* | f95
*)
24273 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24275 lt_prog_compiler_wl_GCJ
='-Wl,';;
24280 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24281 lt_prog_compiler_pic_GCJ
='-PIC'
24282 lt_prog_compiler_static_GCJ
='-Bstatic'
24285 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24286 lt_prog_compiler_wl_GCJ
='-Wl,'
24287 lt_prog_compiler_pic_GCJ
='-KPIC'
24288 lt_prog_compiler_static_GCJ
='-Bstatic'
24292 if test -d /usr
/nec
;then
24293 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24294 lt_prog_compiler_static_GCJ
='-Bstatic'
24298 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24299 lt_prog_compiler_wl_GCJ
='-Wl,'
24300 lt_prog_compiler_pic_GCJ
='-KPIC'
24301 lt_prog_compiler_static_GCJ
='-Bstatic'
24305 lt_prog_compiler_wl_GCJ
='-Wl,'
24306 lt_prog_compiler_can_build_shared_GCJ
=no
24310 lt_prog_compiler_pic_GCJ
='-pic'
24311 lt_prog_compiler_static_GCJ
='-Bstatic'
24315 lt_prog_compiler_can_build_shared_GCJ
=no
24320 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24321 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24324 # Check to make sure the PIC flag actually works.
24326 if test -n "$lt_prog_compiler_pic_GCJ"; then
24328 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24329 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24330 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24333 lt_prog_compiler_pic_works_GCJ
=no
24334 ac_outfile
=conftest.
$ac_objext
24335 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24336 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24337 # Insert the option either (1) after the last *FLAGS variable, or
24338 # (2) before a word containing "conftest.", or (3) at the end.
24339 # Note that $ac_compile itself does not contain backslashes and begins
24340 # with a dollar sign (not a hyphen), so the echo should work correctly.
24341 # The option is referenced via a variable to avoid confusing sed.
24342 lt_compile
=`echo "$ac_compile" | $SED \
24343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24345 -e 's:$: $lt_compiler_flag:'`
24346 (eval echo "\"\$as_me:24351: $lt_compile\"" >&5)
24347 (eval "$lt_compile" 2>conftest.err
)
24349 cat conftest.err
>&5
24350 echo "$as_me:24355: \$? = $ac_status" >&5
24351 if (exit $ac_status) && test -s "$ac_outfile"; then
24352 # The compiler can only warn and ignore the option if not recognized
24353 # So say no if there are warnings other than the usual output.
24354 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24355 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24356 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24357 lt_prog_compiler_pic_works_GCJ
=yes
24363 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24364 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24366 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24367 case $lt_prog_compiler_pic_GCJ in
24369 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24372 lt_prog_compiler_pic_GCJ
=
24373 lt_prog_compiler_can_build_shared_GCJ
=no
24378 # For platforms which do not support PIC, -DPIC is meaningless:
24380 lt_prog_compiler_pic_GCJ
=
24383 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24388 # Check to make sure the static flag actually works.
24390 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24391 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24392 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24393 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24394 echo $ECHO_N "(cached) $ECHO_C" >&6
24396 lt_prog_compiler_static_works_GCJ
=no
24397 save_LDFLAGS
="$LDFLAGS"
24398 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24399 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24400 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24401 # The linker can only warn and ignore the option if not recognized
24402 # So say no if there are warnings
24403 if test -s conftest.err
; then
24404 # Append any errors to the config.log.
24405 cat conftest.err
1>&5
24406 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24407 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24408 if diff conftest.exp conftest.er2
>/dev
/null
; then
24409 lt_prog_compiler_static_works_GCJ
=yes
24412 lt_prog_compiler_static_works_GCJ
=yes
24416 LDFLAGS
="$save_LDFLAGS"
24419 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24420 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24422 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24425 lt_prog_compiler_static_GCJ
=
24429 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24431 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 lt_cv_prog_compiler_c_o_GCJ
=no
24435 $rm -r conftest
2>/dev
/null
24439 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24441 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24442 # Insert the option either (1) after the last *FLAGS variable, or
24443 # (2) before a word containing "conftest.", or (3) at the end.
24444 # Note that $ac_compile itself does not contain backslashes and begins
24445 # with a dollar sign (not a hyphen), so the echo should work correctly.
24446 lt_compile
=`echo "$ac_compile" | $SED \
24447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24449 -e 's:$: $lt_compiler_flag:'`
24450 (eval echo "\"\$as_me:24455: $lt_compile\"" >&5)
24451 (eval "$lt_compile" 2>out
/conftest.err
)
24453 cat out
/conftest.err
>&5
24454 echo "$as_me:24459: \$? = $ac_status" >&5
24455 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24457 # The compiler can only warn and ignore the option if not recognized
24458 # So say no if there are warnings
24459 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24460 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24461 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24462 lt_cv_prog_compiler_c_o_GCJ
=yes
24467 # SGI C++ compiler will create directory out/ii_files/ for
24468 # template instantiation
24469 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24470 $rm out
/* && rmdir out
24476 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24480 hard_links
="nottested"
24481 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24482 # do not overwrite the value of need_locks provided by the user
24483 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24487 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24489 ln conftest.a conftest.b
2>&5 || hard_links
=no
24490 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24491 { echo "$as_me:$LINENO: result: $hard_links" >&5
24492 echo "${ECHO_T}$hard_links" >&6; }
24493 if test "$hard_links" = no
; then
24494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24502 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24506 allow_undefined_flag_GCJ
=
24507 enable_shared_with_static_runtimes_GCJ
=no
24509 archive_expsym_cmds_GCJ
=
24510 old_archive_From_new_cmds_GCJ
=
24511 old_archive_from_expsyms_cmds_GCJ
=
24512 export_dynamic_flag_spec_GCJ
=
24513 whole_archive_flag_spec_GCJ
=
24514 thread_safe_flag_spec_GCJ
=
24515 hardcode_libdir_flag_spec_GCJ
=
24516 hardcode_libdir_flag_spec_ld_GCJ
=
24517 hardcode_libdir_separator_GCJ
=
24518 hardcode_direct_GCJ
=no
24519 hardcode_minus_L_GCJ
=no
24520 hardcode_shlibpath_var_GCJ
=unsupported
24521 link_all_deplibs_GCJ
=unknown
24522 hardcode_automatic_GCJ
=no
24524 module_expsym_cmds_GCJ
=
24525 always_export_symbols_GCJ
=no
24526 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24527 # include_expsyms should be a list of space-separated symbols to be *always*
24528 # included in the symbol list
24529 include_expsyms_GCJ
=
24530 # exclude_expsyms can be an extended regexp of symbols to exclude
24531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24533 # as well as any symbol that contains `d'.
24534 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24536 # platforms (ab)use it in PIC code, but their linkers get confused if
24537 # the symbol is explicitly referenced. Since portable code cannot
24538 # rely on this symbol name, it's probably fine to never include it in
24539 # preloaded symbol tables.
24540 extract_expsyms_cmds
=
24541 # Just being paranoid about ensuring that cc_basename is set.
24542 for cc_temp
in $compiler""; do
24544 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24545 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24550 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24553 cygwin
* | mingw
* | pw32
*)
24554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24555 # When not using gcc, we currently assume that we are using
24556 # Microsoft Visual C++.
24557 if test "$GCC" != yes; then
24562 # we just hope/assume this is gcc and not c89 (= MSVC++)
24571 if test "$with_gnu_ld" = yes; then
24572 # If archive_cmds runs LD, not CC, wlarc should be empty
24575 # Set some defaults for GNU ld with shared library support. These
24576 # are reset later if shared libraries are not supported. Putting them
24577 # here allows them to be overridden if necessary.
24578 runpath_var
=LD_RUN_PATH
24579 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24580 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24581 # ancient GNU ld didn't support --whole-archive et. al.
24582 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24583 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24585 whole_archive_flag_spec_GCJ
=
24587 supports_anon_versioning
=no
24588 case `$LD -v 2>/dev/null` in
24589 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24590 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24591 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24592 *\
2.11.
*) ;; # other 2.11 versions
24593 *) supports_anon_versioning
=yes ;;
24596 # See if GNU ld supports shared libraries.
24598 aix3
* | aix4
* | aix5
*)
24599 # On AIX/PPC, the GNU linker is very broken
24600 if test "$host_cpu" != ia64
; then
24604 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24605 *** to be unable to reliably create shared libraries on AIX.
24606 *** Therefore, libtool is disabling shared libraries support. If you
24607 *** really care for shared libraries, you may want to modify your PATH
24608 *** so that a non-GNU linker is found, and then restart.
24615 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)'
24616 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24617 hardcode_minus_L_GCJ
=yes
24619 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24620 # that the semantics of dynamic libraries on AmigaOS, at least up
24621 # to version 4, is to share data among multiple programs linked
24622 # with the same dynamic library. Since this doesn't match the
24623 # behavior of shared libraries on other platforms, we can't use
24629 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24630 allow_undefined_flag_GCJ
=unsupported
24631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24632 # support --undefined. This deserves some investigation. FIXME
24633 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24639 cygwin
* | mingw
* | pw32
*)
24640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24641 # as there is no search path for DLLs.
24642 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24643 allow_undefined_flag_GCJ
=unsupported
24644 always_export_symbols_GCJ
=no
24645 enable_shared_with_static_runtimes_GCJ
=yes
24646 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24648 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24649 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24650 # If the export-symbols file already is a .def file (1st line
24651 # is EXPORTS), use it as is; otherwise, prepend...
24652 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24653 cp $export_symbols $output_objdir/$soname.def;
24655 echo EXPORTS > $output_objdir/$soname.def;
24656 cat $export_symbols >> $output_objdir/$soname.def;
24658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24665 hardcode_direct_GCJ
=no
24666 hardcode_shlibpath_var_GCJ
=no
24667 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24668 export_dynamic_flag_spec_GCJ
='${wl}-E'
24669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24670 # Instead, shared libraries are loaded at an image base (0x10000000 by
24671 # default) and relocated if they conflict, which is a slow very memory
24672 # consuming and fragmenting process. To avoid this, we pick a random,
24673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24675 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'
24676 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'
24680 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24682 case $cc_basename,$host_cpu in
24683 pgcc
*) # Portland Group C compiler
24684 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'
24685 tmp_addflag
=' $pic_flag'
24687 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24688 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'
24689 tmp_addflag
=' $pic_flag -Mnomain' ;;
24690 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24691 tmp_addflag
=' -i_dynamic' ;;
24692 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24693 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24694 ifc
* | ifort
*) # Intel Fortran compiler
24695 tmp_addflag
=' -nofor_main' ;;
24697 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24699 if test $supports_anon_versioning = yes; then
24700 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24702 $echo "local: *; };" >> $output_objdir/$libname.ver~
24703 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24711 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24712 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24715 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24716 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24721 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24726 *** create shared libraries on Solaris systems. Therefore, libtool
24727 *** is disabling shared libraries support. We urge you to upgrade GNU
24728 *** binutils to release 2.9.1 or newer. Another option is to modify
24729 *** your PATH or compiler configuration so that the native linker is
24730 *** used, and then restart.
24733 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24734 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24735 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24741 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24742 case `$LD -v 2>&1` in
24743 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24748 *** reliably create shared libraries on SCO systems. Therefore, libtool
24749 *** is disabling shared libraries support. We urge you to upgrade GNU
24750 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24751 *** your PATH or compiler configuration so that the native linker is
24752 *** used, and then restart.
24757 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24758 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24759 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24760 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24769 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24771 hardcode_direct_GCJ
=yes
24772 hardcode_shlibpath_var_GCJ
=no
24776 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24777 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24785 if test "$ld_shlibs_GCJ" = no
; then
24787 hardcode_libdir_flag_spec_GCJ
=
24788 export_dynamic_flag_spec_GCJ
=
24789 whole_archive_flag_spec_GCJ
=
24792 # PORTME fill in a description of your system's linker (not GNU ld)
24795 allow_undefined_flag_GCJ
=unsupported
24796 always_export_symbols_GCJ
=yes
24797 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'
24798 # Note: this linker hardcodes the directories in LIBPATH if there
24799 # are no directories specified by -L.
24800 hardcode_minus_L_GCJ
=yes
24801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24802 # Neither direct hardcoding nor static linking is supported with a
24804 hardcode_direct_GCJ
=unsupported
24809 if test "$host_cpu" = ia64
; then
24810 # On IA64, the linker does run time linking by default, so we don't
24811 # have to do anything special.
24812 aix_use_runtimelinking
=no
24813 exp_sym_flag
='-Bexport'
24816 # If we're using GNU nm, then we don't want the "-C" option.
24817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24818 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24819 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'
24821 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'
24823 aix_use_runtimelinking
=no
24825 # Test if we are trying to use run time linking or normal
24826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24827 # need to do runtime linking.
24828 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24829 for ld_flag
in $LDFLAGS; do
24830 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24831 aix_use_runtimelinking
=yes
24838 exp_sym_flag
='-bexport'
24839 no_entry_flag
='-bnoentry'
24842 # When large executables or shared objects are built, AIX ld can
24843 # have problems creating the table of contents. If linking a library
24844 # or program results in "error TOC overflow" add -mminimal-toc to
24845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24848 archive_cmds_GCJ
=''
24849 hardcode_direct_GCJ
=yes
24850 hardcode_libdir_separator_GCJ
=':'
24851 link_all_deplibs_GCJ
=yes
24853 if test "$GCC" = yes; then
24854 case $host_os in aix4.
[012]|aix4.
[012].
*)
24855 # We only want to do this on AIX 4.2 and lower, the check
24856 # below for broken collect2 doesn't work under 4.3+
24857 collect2name
=`${CC} -print-prog-name=collect2`
24858 if test -f "$collect2name" && \
24859 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24861 # We have reworked collect2
24862 hardcode_direct_GCJ
=yes
24864 # We have old collect2
24865 hardcode_direct_GCJ
=unsupported
24866 # It fails to find uninstalled libraries when the uninstalled
24867 # path is not listed in the libpath. Setting hardcode_minus_L
24868 # to unsupported forces relinking
24869 hardcode_minus_L_GCJ
=yes
24870 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24871 hardcode_libdir_separator_GCJ
=
24875 shared_flag
='-shared'
24876 if test "$aix_use_runtimelinking" = yes; then
24877 shared_flag
="$shared_flag "'${wl}-G'
24881 if test "$host_cpu" = ia64
; then
24882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24883 # chokes on -Wl,-G. The following line is correct:
24886 if test "$aix_use_runtimelinking" = yes; then
24887 shared_flag
='${wl}-G'
24889 shared_flag
='${wl}-bM:SRE'
24894 # It seems that -bexpall does not export symbols beginning with
24895 # underscore (_), so it is better to generate a list of symbols to export.
24896 always_export_symbols_GCJ
=yes
24897 if test "$aix_use_runtimelinking" = yes; then
24898 # Warning - without using the other runtime loading flags (-brtl),
24899 # -berok will link without error, but may produce a broken library.
24900 allow_undefined_flag_GCJ
='-berok'
24901 # Determine the default libpath from the value encoded in an empty executable.
24902 cat >conftest.
$ac_ext <<_ACEOF
24905 cat confdefs.h
>>conftest.
$ac_ext
24906 cat >>conftest.
$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24917 rm -f conftest.
$ac_objext conftest
$ac_exeext
24918 if { (ac_try
="$ac_link"
24919 case "(($ac_try" in
24920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_link") 2>conftest.er1
24926 grep -v '^ *+' conftest.er1 >conftest.err
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } &&
24931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24932 { (case "(($ac_try" in
24933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24934 *) ac_try_echo
=$ac_try;;
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_try") 2>&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try
='test -s conftest$ac_exeext'
24942 { (case "(($ac_try" in
24943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947 (eval "$ac_try") 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24952 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24954 # Check for a 64-bit object if we didn't find anything.
24955 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; }
24958 echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24964 rm -f core conftest.err conftest.$ac_objext \
24965 conftest$ac_exeext conftest.$ac_ext
24966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24968 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24969 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"
24971 if test "$host_cpu" = ia64; then
24972 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24973 allow_undefined_flag_GCJ="-z nodefs"
24974 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"
24976 # Determine the default libpath from the value encoded in an empty executable.
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24992 rm -f conftest.$ac_objext conftest$ac_exeext
24993 if { (ac_try="$ac_link"
24994 case "(($ac_try" in
24995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24996 *) ac_try_echo
=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1
>conftest.err
25003 cat conftest.err
>&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
25006 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25007 { (case "(($ac_try" in
25008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012 (eval "$ac_try") 2>&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; } &&
25016 { ac_try='test -s conftest$ac_exeext'
25017 { (case "(($ac_try" in
25018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25019 *) ac_try_echo
=$ac_try;;
25021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25022 (eval "$ac_try") 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25027 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25029 # Check for a 64-bit object if we didn't find anything.
25030 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; }
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.
$ac_ext >&5
25039 rm -f core conftest.err conftest.
$ac_objext \
25040 conftest
$ac_exeext conftest.
$ac_ext
25041 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
25043 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
25044 # Warning - without using the other run time loading flags,
25045 # -berok will link without error, but may produce a broken library.
25046 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25047 allow_undefined_flag_GCJ
=' ${wl}-berok'
25048 # Exported symbols can be pulled into shared objects from archives
25049 whole_archive_flag_spec_GCJ
='$convenience'
25050 archive_cmds_need_lc_GCJ
=yes
25051 # This is similar to how AIX traditionally builds its shared libraries.
25052 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'
25058 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)'
25059 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25060 hardcode_minus_L_GCJ
=yes
25061 # see comment about different semantics on the GNU ld section
25066 export_dynamic_flag_spec_GCJ
=-rdynamic
25069 cygwin
* | mingw
* | pw32
*)
25070 # When not using gcc, we currently assume that we are using
25071 # Microsoft Visual C++.
25072 # hardcode_libdir_flag_spec is actually meaningless, as there is
25073 # no search path for DLLs.
25074 hardcode_libdir_flag_spec_GCJ
=' '
25075 allow_undefined_flag_GCJ
=unsupported
25076 # Tell ltmain to make .lib files, not .a files.
25078 # Tell ltmain to make .dll files, not .so files.
25080 # FIXME: Setting linknames here is a bad hack.
25081 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25082 # The linker will automatically build a .lib file if we build a DLL.
25083 old_archive_From_new_cmds_GCJ
='true'
25084 # FIXME: Should let the user specify the lib program.
25085 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25086 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25087 enable_shared_with_static_runtimes_GCJ
=yes
25090 darwin
* | rhapsody
*)
25092 rhapsody
* | darwin1.
[012])
25093 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25096 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25097 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25099 case ${MACOSX_DEPLOYMENT_TARGET} in
25101 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25104 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25110 archive_cmds_need_lc_GCJ
=no
25111 hardcode_direct_GCJ
=no
25112 hardcode_automatic_GCJ
=yes
25113 hardcode_shlibpath_var_GCJ
=unsupported
25114 whole_archive_flag_spec_GCJ
=''
25115 link_all_deplibs_GCJ
=yes
25116 if test "$GCC" = yes ; then
25117 output_verbose_link_cmd
='echo'
25118 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25119 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25121 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}'
25122 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}'
25124 case $cc_basename in
25126 output_verbose_link_cmd
='echo'
25127 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25128 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25130 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}'
25131 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}'
25141 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25142 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25143 hardcode_shlibpath_var_GCJ
=no
25150 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25151 # support. Future versions do this automatically, but an explicit c++rt0.o
25152 # does not break anything, and helps significantly (at the cost of a little
25155 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25156 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25157 hardcode_direct_GCJ
=yes
25158 hardcode_shlibpath_var_GCJ
=no
25161 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25163 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25164 hardcode_direct_GCJ
=yes
25165 hardcode_minus_L_GCJ
=yes
25166 hardcode_shlibpath_var_GCJ
=no
25169 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25170 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25171 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25172 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25173 hardcode_direct_GCJ
=yes
25174 hardcode_shlibpath_var_GCJ
=no
25178 if test "$GCC" = yes; then
25179 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'
25181 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'
25183 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25184 hardcode_libdir_separator_GCJ
=:
25185 hardcode_direct_GCJ
=yes
25187 # hardcode_minus_L: Not really in the search PATH,
25188 # but as the default location of the library.
25189 hardcode_minus_L_GCJ
=yes
25190 export_dynamic_flag_spec_GCJ
='${wl}-E'
25194 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25195 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25199 if test "$with_gnu_ld" = no
; then
25200 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25201 hardcode_libdir_separator_GCJ
=:
25203 hardcode_direct_GCJ
=yes
25204 export_dynamic_flag_spec_GCJ
='${wl}-E'
25206 # hardcode_minus_L: Not really in the search PATH,
25207 # but as the default location of the library.
25208 hardcode_minus_L_GCJ
=yes
25213 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25216 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25219 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25222 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25228 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25231 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25234 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25238 if test "$with_gnu_ld" = no
; then
25239 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25240 hardcode_libdir_separator_GCJ
=:
25244 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25245 hardcode_direct_GCJ
=no
25246 hardcode_shlibpath_var_GCJ
=no
25249 hardcode_direct_GCJ
=yes
25250 export_dynamic_flag_spec_GCJ
='${wl}-E'
25252 # hardcode_minus_L: Not really in the search PATH,
25253 # but as the default location of the library.
25254 hardcode_minus_L_GCJ
=yes
25260 irix5
* | irix6
* | nonstopux
*)
25261 if test "$GCC" = yes; then
25262 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'
25264 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'
25265 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25267 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25268 hardcode_libdir_separator_GCJ
=:
25269 link_all_deplibs_GCJ
=yes
25273 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25274 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25276 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25278 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25279 hardcode_direct_GCJ
=yes
25280 hardcode_shlibpath_var_GCJ
=no
25284 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25285 hardcode_direct_GCJ
=yes
25286 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ
=:
25288 hardcode_shlibpath_var_GCJ
=no
25292 hardcode_direct_GCJ
=yes
25293 hardcode_shlibpath_var_GCJ
=no
25294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25295 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25296 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25297 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25298 export_dynamic_flag_spec_GCJ
='${wl}-E'
25301 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25302 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25303 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25306 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25307 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25314 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25315 hardcode_minus_L_GCJ
=yes
25316 allow_undefined_flag_GCJ
=unsupported
25317 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'
25318 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25322 if test "$GCC" = yes; then
25323 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25324 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'
25326 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25327 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'
25329 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25330 hardcode_libdir_separator_GCJ
=:
25333 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25334 if test "$GCC" = yes; then
25335 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25336 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'
25337 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25339 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25340 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'
25341 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~
25342 $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'
25344 # Both c and cxx compiler support -rpath directly
25345 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25347 hardcode_libdir_separator_GCJ
=:
25351 no_undefined_flag_GCJ
=' -z text'
25352 if test "$GCC" = yes; then
25354 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25355 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25356 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25359 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25360 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25363 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25364 hardcode_shlibpath_var_GCJ
=no
25366 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25368 # The compiler driver will combine linker options so we
25369 # cannot just pass the convience library names through
25370 # without $wl, iff we do not link with $LD.
25371 # Luckily, gcc supports the same syntax we need for Sun Studio.
25372 # Supported since Solaris 2.6 (maybe 2.5.1?)
25375 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25377 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' ;;
25380 link_all_deplibs_GCJ
=yes
25384 if test "x$host_vendor" = xsequent
; then
25385 # Use $CC to link under sequent, because it throws in some extra .o
25386 # files that make .init and .fini sections work.
25387 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25389 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25391 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25392 hardcode_direct_GCJ
=yes
25393 hardcode_minus_L_GCJ
=yes
25394 hardcode_shlibpath_var_GCJ
=no
25398 case $host_vendor in
25400 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25401 hardcode_direct_GCJ
=yes # is this really true???
25404 ## LD is ld it makes a PLAMLIB
25405 ## CC just makes a GrossModule.
25406 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25407 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25408 hardcode_direct_GCJ
=no
25411 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25412 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25415 runpath_var
='LD_RUN_PATH'
25416 hardcode_shlibpath_var_GCJ
=no
25420 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25421 hardcode_shlibpath_var_GCJ
=no
25422 export_dynamic_flag_spec_GCJ
='-Bexport'
25426 if test -d /usr
/nec
; then
25427 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25428 hardcode_shlibpath_var_GCJ
=no
25429 runpath_var
=LD_RUN_PATH
25430 hardcode_runpath_var
=yes
25435 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25436 no_undefined_flag_GCJ
='${wl}-z,text'
25437 archive_cmds_need_lc_GCJ
=no
25438 hardcode_shlibpath_var_GCJ
=no
25439 runpath_var
='LD_RUN_PATH'
25441 if test "$GCC" = yes; then
25442 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25443 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25445 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25446 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25450 sysv5
* | sco3.2v5
* | sco5v6
*)
25451 # Note: We can NOT use -z defs as we might desire, because we do not
25452 # link with -lc, and that would cause any symbols used from libc to
25453 # always be unresolved, which means just about no library would
25454 # ever link correctly. If we're not using GNU ld we use -z text
25455 # though, which does catch some bad symbols but isn't as heavy-handed
25457 no_undefined_flag_GCJ
='${wl}-z,text'
25458 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25459 archive_cmds_need_lc_GCJ
=no
25460 hardcode_shlibpath_var_GCJ
=no
25461 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25462 hardcode_libdir_separator_GCJ
=':'
25463 link_all_deplibs_GCJ
=yes
25464 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25465 runpath_var
='LD_RUN_PATH'
25467 if test "$GCC" = yes; then
25468 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25469 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25472 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25477 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25478 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25479 hardcode_shlibpath_var_GCJ
=no
25488 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25489 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25490 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25493 # Do we need to explicitly link libc?
25495 case "x$archive_cmds_need_lc_GCJ" in
25497 # Assume -lc should be added
25498 archive_cmds_need_lc_GCJ
=yes
25500 if test "$enable_shared" = yes && test "$GCC" = yes; then
25501 case $archive_cmds_GCJ in
25503 # FIXME: we may have to deal with multi-command sequences.
25506 # Test whether the compiler implicitly links with -lc since on some
25507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25508 # to ld, don't add -lc before -lgcc.
25509 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25510 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25512 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515 (eval $ac_compile) 2>&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } 2>conftest.err
; then
25521 libobjs
=conftest.
$ac_objext
25523 wl
=$lt_prog_compiler_wl_GCJ
25524 pic_flag
=$lt_prog_compiler_pic_GCJ
25530 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25531 allow_undefined_flag_GCJ
=
25532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25533 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }
25538 archive_cmds_need_lc_GCJ
=no
25540 archive_cmds_need_lc_GCJ
=yes
25542 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25544 cat conftest.err
1>&5
25547 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25548 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25555 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25557 library_names_spec
=
25558 libname_spec
='lib$name'
25562 postuninstall_cmds
=
25566 shlibpath_overrides_runpath
=unknown
25568 dynamic_linker
="$host_os ld.so"
25569 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25570 if test "$GCC" = yes; then
25571 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25572 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25573 # if the path contains ";" then we assume it to be the separator
25574 # otherwise default to the standard path separator (i.e. ":") - it is
25575 # assumed that no part of a normal pathname contains ";" but that should
25576 # okay in the real world where ";" in dirpaths is itself problematic.
25577 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25579 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25582 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25584 need_lib_prefix
=unknown
25585 hardcode_into_libs
=no
25587 # when you set need_version to no, make sure it does not cause -set_version
25588 # flags to be left without arguments
25589 need_version
=unknown
25594 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25595 shlibpath_var
=LIBPATH
25597 # AIX 3 has no versioning support, so we append a major version to the name.
25598 soname_spec
='${libname}${release}${shared_ext}$major'
25605 hardcode_into_libs
=yes
25606 if test "$host_cpu" = ia64
; then
25607 # AIX 5 supports IA64
25608 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25609 shlibpath_var
=LD_LIBRARY_PATH
25611 # With GCC up to 2.95.x, collect2 would create an import file
25612 # for dependence libraries. The import file would start with
25613 # the line `#! .'. This would cause the generated library to
25614 # depend on `.', always an invalid library. This was fixed in
25615 # development snapshots of GCC prior to 3.0.
25617 aix4 | aix4.
[01] | aix4.
[01].
*)
25618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25620 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25623 can_build_shared
=no
25627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25628 # soname into executable. Probably we can add versioning support to
25629 # collect2, so additional links can be useful in future.
25630 if test "$aix_use_runtimelinking" = yes; then
25631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25632 # instead of lib<name>.a to let people know that these are not
25633 # typical AIX shared libraries.
25634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25636 # We preserve .a as extension for shared libraries through AIX4.2
25637 # and later when we are not doing run time linking.
25638 library_names_spec
='${libname}${release}.a $libname.a'
25639 soname_spec
='${libname}${release}${shared_ext}$major'
25641 shlibpath_var
=LIBPATH
25646 library_names_spec
='$libname.ixlibrary $libname.a'
25647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25648 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'
25652 library_names_spec
='${libname}${shared_ext}'
25653 dynamic_linker
="$host_os ld.so"
25654 shlibpath_var
=LIBRARY_PATH
25660 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25661 soname_spec
='${libname}${release}${shared_ext}$major'
25662 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25663 shlibpath_var
=LD_LIBRARY_PATH
25664 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25665 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25666 # the default ld.so.conf also contains /usr/contrib/lib and
25667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25668 # libtool to hard-code these into programs
25671 cygwin
* | mingw
* | pw32
*)
25672 version_type
=windows
25677 case $GCC,$host_os in
25678 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25679 library_names_spec
='$libname.dll.a'
25680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25681 postinstall_cmds
='base_file=`basename \${file}`~
25682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25683 dldir=$destdir/`dirname \$dlpath`~
25684 test -d \$dldir || mkdir -p \$dldir~
25685 $install_prog $dir/$dlname \$dldir/$dlname~
25686 chmod a+x \$dldir/$dlname'
25687 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25688 dlpath=$dir/\$dldll~
25690 shlibpath_overrides_runpath
=yes
25694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25695 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25696 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25699 # MinGW DLLs use traditional 'lib' prefix
25700 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25701 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25702 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25703 # It is most probably a Windows format PATH printed by
25704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25705 # path with ; separators, and with drive letters. We can handle the
25706 # drive letters (cygwin fileutils understands them), so leave them,
25707 # especially as we might pass files found there to a mingw objdump,
25708 # which wouldn't understand a cygwinified path. Ahh.
25709 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25711 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25715 # pw32 DLLs use 'pw' prefix rather than 'lib'
25716 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25722 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25725 dynamic_linker
='Win32 ld.exe'
25726 # FIXME: first we should search . and the directory the executable is in
25730 darwin
* | rhapsody
*)
25731 dynamic_linker
="$host_os dyld"
25732 version_type
=darwin
25735 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25736 soname_spec
='${libname}${release}${major}$shared_ext'
25737 shlibpath_overrides_runpath
=yes
25738 shlibpath_var
=DYLD_LIBRARY_PATH
25739 shrext_cmds
='.dylib'
25740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25741 if test "$GCC" = yes; then
25742 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"`
25744 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25746 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25754 soname_spec
='${libname}${release}${shared_ext}$major'
25755 shlibpath_var
=LD_LIBRARY_PATH
25766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25767 soname_spec
='${libname}${release}${shared_ext}$major'
25768 shlibpath_var
=LD_LIBRARY_PATH
25769 shlibpath_overrides_runpath
=no
25770 hardcode_into_libs
=yes
25771 dynamic_linker
='GNU ld.so'
25774 freebsd
* | dragonfly
*)
25775 # DragonFly does not have aout. When/if they implement a new
25776 # versioning mechanism, adjust this.
25777 if test -x /usr
/bin
/objformat
; then
25778 objformat
=`/usr/bin/objformat`
25781 freebsd
[123]*) objformat
=aout
;;
25782 *) objformat
=elf
;;
25785 version_type
=freebsd-
$objformat
25786 case $version_type in
25788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25793 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25797 shlibpath_var
=LD_LIBRARY_PATH
25800 shlibpath_overrides_runpath
=yes
25802 freebsd3.
[01]* | freebsdelf3.
[01]*)
25803 shlibpath_overrides_runpath
=yes
25804 hardcode_into_libs
=yes
25806 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25807 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25808 shlibpath_overrides_runpath
=no
25809 hardcode_into_libs
=yes
25811 freebsd
*) # from 4.6 on
25812 shlibpath_overrides_runpath
=yes
25813 hardcode_into_libs
=yes
25822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25823 soname_spec
='${libname}${release}${shared_ext}$major'
25824 shlibpath_var
=LD_LIBRARY_PATH
25825 hardcode_into_libs
=yes
25828 hpux9
* | hpux10
* | hpux11
*)
25829 # Give a soname corresponding to the major version so that dld.sl refuses to
25830 # link against other versions.
25837 hardcode_into_libs
=yes
25838 dynamic_linker
="$host_os dld.so"
25839 shlibpath_var
=LD_LIBRARY_PATH
25840 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25842 soname_spec
='${libname}${release}${shared_ext}$major'
25843 if test "X$HPUX_IA64_MODE" = X32
; then
25844 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25846 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25848 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25852 hardcode_into_libs
=yes
25853 dynamic_linker
="$host_os dld.sl"
25854 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25855 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25857 soname_spec
='${libname}${release}${shared_ext}$major'
25858 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25859 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25863 dynamic_linker
="$host_os dld.sl"
25864 shlibpath_var
=SHLIB_PATH
25865 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25867 soname_spec
='${libname}${release}${shared_ext}$major'
25870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25871 postinstall_cmds
='chmod 555 $lib'
25878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25879 soname_spec
='${libname}${release}${shared_ext}$major'
25880 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25881 shlibpath_var
=LD_LIBRARY_PATH
25882 shlibpath_overrides_runpath
=no
25883 hardcode_into_libs
=yes
25886 irix5
* | irix6
* | nonstopux
*)
25888 nonstopux
*) version_type
=nonstopux
;;
25890 if test "$lt_cv_prog_gnu_ld" = yes; then
25898 soname_spec
='${libname}${release}${shared_ext}$major'
25899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25901 irix5
* | nonstopux
*)
25902 libsuff
= shlibsuff
=
25905 case $LD in # libtool.m4 will add one of these switches to LD
25906 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25907 libsuff
= shlibsuff
= libmagic
=32-bit;;
25908 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25909 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25910 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25911 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25912 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25916 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25917 shlibpath_overrides_runpath
=no
25918 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25919 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25920 hardcode_into_libs
=yes
25923 # No shared lib support for Linux oldld, aout, or coff.
25924 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25928 # This must be Linux ELF.
25933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25934 soname_spec
='${libname}${release}${shared_ext}$major'
25935 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25936 shlibpath_var
=LD_LIBRARY_PATH
25937 shlibpath_overrides_runpath
=no
25938 # This implies no fast_install, which is unacceptable.
25939 # Some rework will be needed to allow for fast_install
25940 # before this can be enabled.
25941 hardcode_into_libs
=yes
25943 # Append ld.so.conf contents to the search path
25944 if test -f /etc
/ld.so.conf
; then
25945 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' ' '`
25946 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25949 # We used to test for /lib/ld.so.1 and disable shared libraries on
25950 # powerpc, because MkLinux only supported shared libraries with the
25951 # GNU dynamic linker. Since this was broken with cross compilers,
25952 # most powerpc-linux boxes support dynamic linking these days and
25953 # people can always --disable-shared, the test was removed, and we
25954 # assume the GNU/Linux dynamic linker is in use.
25955 dynamic_linker
='GNU/Linux ld.so'
25962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25963 soname_spec
='${libname}${release}${shared_ext}$major'
25964 shlibpath_var
=LD_LIBRARY_PATH
25965 shlibpath_overrides_runpath
=no
25966 hardcode_into_libs
=yes
25967 dynamic_linker
='GNU ld.so'
25974 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25976 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25977 dynamic_linker
='NetBSD (a.out) ld.so'
25979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25980 soname_spec
='${libname}${release}${shared_ext}$major'
25981 dynamic_linker
='NetBSD ld.elf_so'
25983 shlibpath_var
=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath
=yes
25985 hardcode_into_libs
=yes
25990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991 shlibpath_var
=LD_LIBRARY_PATH
25992 shlibpath_overrides_runpath
=yes
25999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000 soname_spec
='${libname}${release}${shared_ext}$major'
26001 shlibpath_var
=LD_LIBRARY_PATH
26002 shlibpath_overrides_runpath
=yes
26007 sys_lib_dlsearch_path_spec
="/usr/lib"
26009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26011 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
26012 *) need_version
=no
;;
26014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26015 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26016 shlibpath_var
=LD_LIBRARY_PATH
26017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26019 openbsd2.
[89] | openbsd2.
[89].
*)
26020 shlibpath_overrides_runpath
=no
26023 shlibpath_overrides_runpath
=yes
26027 shlibpath_overrides_runpath
=yes
26032 libname_spec
='$name'
26035 library_names_spec
='$libname${shared_ext} $libname.a'
26036 dynamic_linker
='OS/2 ld.exe'
26037 shlibpath_var
=LIBPATH
26040 osf3
* | osf4
* | osf5
*)
26044 soname_spec
='${libname}${release}${shared_ext}$major'
26045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26046 shlibpath_var
=LD_LIBRARY_PATH
26047 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26048 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26056 soname_spec
='${libname}${release}${shared_ext}$major'
26057 shlibpath_var
=LD_LIBRARY_PATH
26058 shlibpath_overrides_runpath
=yes
26059 hardcode_into_libs
=yes
26060 # ldd complains unless libraries are executable
26061 postinstall_cmds
='chmod +x $lib'
26066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26067 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26068 shlibpath_var
=LD_LIBRARY_PATH
26069 shlibpath_overrides_runpath
=yes
26070 if test "$with_gnu_ld" = yes; then
26078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26079 soname_spec
='${libname}${release}${shared_ext}$major'
26080 shlibpath_var
=LD_LIBRARY_PATH
26081 case $host_vendor in
26083 shlibpath_overrides_runpath
=no
26085 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26086 runpath_var
=LD_RUN_PATH
26094 shlibpath_overrides_runpath
=no
26095 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26101 if test -d /usr
/nec
;then
26103 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26104 soname_spec
='$libname${shared_ext}.$major'
26105 shlibpath_var
=LD_LIBRARY_PATH
26109 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26110 version_type
=freebsd-elf
26113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26114 soname_spec
='${libname}${release}${shared_ext}$major'
26115 shlibpath_var
=LD_LIBRARY_PATH
26116 hardcode_into_libs
=yes
26117 if test "$with_gnu_ld" = yes; then
26118 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26119 shlibpath_overrides_runpath
=no
26121 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26122 shlibpath_overrides_runpath
=yes
26125 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26129 sys_lib_dlsearch_path_spec
='/usr/lib'
26134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26135 soname_spec
='${libname}${release}${shared_ext}$major'
26136 shlibpath_var
=LD_LIBRARY_PATH
26143 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26144 echo "${ECHO_T}$dynamic_linker" >&6; }
26145 test "$dynamic_linker" = no
&& can_build_shared
=no
26147 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26148 if test "$GCC" = yes; then
26149 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26152 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26153 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26154 hardcode_action_GCJ
=
26155 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26156 test -n "$runpath_var_GCJ" || \
26157 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26159 # We can hardcode non-existant directories.
26160 if test "$hardcode_direct_GCJ" != no
&&
26161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26162 # have to relink, otherwise we might link with an installed library
26163 # when we should be linking with a yet-to-be-installed one
26164 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26165 test "$hardcode_minus_L_GCJ" != no
; then
26166 # Linking always hardcodes the temporary library directory.
26167 hardcode_action_GCJ
=relink
26169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26170 hardcode_action_GCJ
=immediate
26173 # We cannot hardcode anything, or else we can only hardcode existing
26175 hardcode_action_GCJ
=unsupported
26177 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26178 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26180 if test "$hardcode_action_GCJ" = relink
; then
26181 # Fast installation is not supported
26182 enable_fast_install
=no
26183 elif test "$shlibpath_overrides_runpath" = yes ||
26184 test "$enable_shared" = no
; then
26185 # Fast installation is not necessary
26186 enable_fast_install
=needless
26190 # The else clause should only fire when bootstrapping the
26191 # libtool distribution, otherwise you forgot to ship ltmain.sh
26192 # with your package, and you will get complaints that there are
26193 # no rules to generate ltmain.sh.
26194 if test -f "$ltmain"; then
26195 # See if we are running on zsh, and set the options which allow our commands through
26196 # without removal of \ escapes.
26197 if test -n "${ZSH_VERSION+set}" ; then
26198 setopt NO_GLOB_SUBST
26200 # Now quote all the things that may contain metacharacters while being
26201 # careful not to overquote the AC_SUBSTed values. We take copies of the
26202 # variables and quote the copies for generation of the libtool script.
26203 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26207 deplibs_check_method reload_flag reload_cmds need_locks \
26208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26209 lt_cv_sys_global_symbol_to_c_name_address \
26210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26211 old_postinstall_cmds old_postuninstall_cmds \
26215 lt_prog_compiler_wl_GCJ \
26216 lt_prog_compiler_pic_GCJ \
26217 lt_prog_compiler_static_GCJ \
26218 lt_prog_compiler_no_builtin_flag_GCJ \
26219 export_dynamic_flag_spec_GCJ \
26220 thread_safe_flag_spec_GCJ \
26221 whole_archive_flag_spec_GCJ \
26222 enable_shared_with_static_runtimes_GCJ \
26223 old_archive_cmds_GCJ \
26224 old_archive_from_new_cmds_GCJ \
26225 predep_objects_GCJ \
26226 postdep_objects_GCJ \
26229 compiler_lib_search_path_GCJ \
26231 archive_expsym_cmds_GCJ \
26232 postinstall_cmds_GCJ \
26233 postuninstall_cmds_GCJ \
26234 old_archive_from_expsyms_cmds_GCJ \
26235 allow_undefined_flag_GCJ \
26236 no_undefined_flag_GCJ \
26237 export_symbols_cmds_GCJ \
26238 hardcode_libdir_flag_spec_GCJ \
26239 hardcode_libdir_flag_spec_ld_GCJ \
26240 hardcode_libdir_separator_GCJ \
26241 hardcode_automatic_GCJ \
26243 module_expsym_cmds_GCJ \
26244 lt_cv_prog_compiler_c_o_GCJ \
26245 exclude_expsyms_GCJ \
26246 include_expsyms_GCJ
; do
26249 old_archive_cmds_GCJ | \
26250 old_archive_from_new_cmds_GCJ | \
26251 archive_cmds_GCJ | \
26252 archive_expsym_cmds_GCJ | \
26253 module_cmds_GCJ | \
26254 module_expsym_cmds_GCJ | \
26255 old_archive_from_expsyms_cmds_GCJ | \
26256 export_symbols_cmds_GCJ | \
26257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26258 postinstall_cmds | postuninstall_cmds | \
26259 old_postinstall_cmds | old_postuninstall_cmds | \
26260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26261 # Double-quote double-evaled strings.
26262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26271 *'\$0 --fallback-echo"')
26272 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26278 cat <<__EOF__ >> "$cfgfile"
26279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26283 # Shell to use when invoking shell scripts.
26286 # Whether or not to build shared libraries.
26287 build_libtool_libs=$enable_shared
26289 # Whether or not to build static libraries.
26290 build_old_libs=$enable_static
26292 # Whether or not to add -lc for building shared libraries.
26293 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26295 # Whether or not to disallow shared libs when runtime libs are static
26296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26298 # Whether or not to optimize for fast installation.
26299 fast_install=$enable_fast_install
26302 host_alias=$host_alias
26306 # The build system.
26307 build_alias=$build_alias
26311 # An echo program that does not interpret backslashes.
26316 AR_FLAGS=$lt_AR_FLAGS
26321 # LTCC compiler flags.
26322 LTCFLAGS=$lt_LTCFLAGS
26324 # A language-specific compiler.
26325 CC=$lt_compiler_GCJ
26327 # Is the compiler the GNU C compiler?
26333 # The linker used to build libraries.
26336 # Whether we need hard or soft links.
26339 # A BSD-compatible nm program.
26342 # A symbol stripping program
26345 # Used to examine libraries when file_magic_cmd begins "file"
26346 MAGIC_CMD=$MAGIC_CMD
26348 # Used on cygwin: DLL creation program.
26351 # Used on cygwin: object dumper.
26354 # Used on cygwin: assembler.
26357 # The name of the directory that contains temporary libtool files.
26360 # How to create reloadable object files.
26361 reload_flag=$lt_reload_flag
26362 reload_cmds=$lt_reload_cmds
26364 # How to pass a linker flag through the compiler.
26365 wl=$lt_lt_prog_compiler_wl_GCJ
26367 # Object file suffix (normally "o").
26368 objext="$ac_objext"
26370 # Old archive suffix (normally "a").
26373 # Shared library suffix (normally ".so").
26374 shrext_cmds='$shrext_cmds'
26376 # Executable file suffix (normally "").
26379 # Additional compiler flags for building library objects.
26380 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26383 # What is the maximum length of a command?
26384 max_cmd_len=$lt_cv_sys_max_cmd_len
26386 # Does compiler simultaneously support -c and -o options?
26387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26389 # Must we lock files when doing compilation?
26390 need_locks=$lt_need_locks
26392 # Do we need the lib prefix for modules?
26393 need_lib_prefix=$need_lib_prefix
26395 # Do we need a version for libraries?
26396 need_version=$need_version
26398 # Whether dlopen is supported.
26399 dlopen_support=$enable_dlopen
26401 # Whether dlopen of programs is supported.
26402 dlopen_self=$enable_dlopen_self
26404 # Whether dlopen of statically linked programs is supported.
26405 dlopen_self_static=$enable_dlopen_self_static
26407 # Compiler flag to prevent dynamic linking.
26408 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26410 # Compiler flag to turn off builtin functions.
26411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26413 # Compiler flag to allow reflexive dlopens.
26414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26416 # Compiler flag to generate shared objects directly from archives.
26417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26419 # Compiler flag to generate thread-safe objects.
26420 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26422 # Library versioning type.
26423 version_type=$version_type
26425 # Format of library name prefix.
26426 libname_spec=$lt_libname_spec
26428 # List of archive names. First name is the real one, the rest are links.
26429 # The last name is the one that the linker finds with -lNAME.
26430 library_names_spec=$lt_library_names_spec
26432 # The coded name of the library, if different from the real name.
26433 soname_spec=$lt_soname_spec
26435 # Commands used to build and install an old-style archive.
26437 old_archive_cmds=$lt_old_archive_cmds_GCJ
26438 old_postinstall_cmds=$lt_old_postinstall_cmds
26439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26441 # Create an old-style archive from a shared archive.
26442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26444 # Create a temporary old-style archive to link instead of a shared archive.
26445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26447 # Commands used to build and install a shared archive.
26448 archive_cmds=$lt_archive_cmds_GCJ
26449 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26450 postinstall_cmds=$lt_postinstall_cmds
26451 postuninstall_cmds=$lt_postuninstall_cmds
26453 # Commands used to build a loadable module (assumed same as above if empty)
26454 module_cmds=$lt_module_cmds_GCJ
26455 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26457 # Commands to strip libraries.
26458 old_striplib=$lt_old_striplib
26459 striplib=$lt_striplib
26461 # Dependencies to place before the objects being linked to create a
26463 predep_objects=$lt_predep_objects_GCJ
26465 # Dependencies to place after the objects being linked to create a
26467 postdep_objects=$lt_postdep_objects_GCJ
26469 # Dependencies to place before the objects being linked to create a
26471 predeps=$lt_predeps_GCJ
26473 # Dependencies to place after the objects being linked to create a
26475 postdeps=$lt_postdeps_GCJ
26477 # The library search path used internally by the compiler when linking
26478 # a shared library.
26479 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26481 # Method to check whether dependent libraries are shared objects.
26482 deplibs_check_method=$lt_deplibs_check_method
26484 # Command to use when deplibs_check_method == file_magic.
26485 file_magic_cmd=$lt_file_magic_cmd
26487 # Flag that allows shared libraries with undefined symbols to be built.
26488 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26490 # Flag that forces no undefined symbols.
26491 no_undefined_flag=$lt_no_undefined_flag_GCJ
26493 # Commands used to finish a libtool library installation in a directory.
26494 finish_cmds=$lt_finish_cmds
26496 # Same as above, but a single script fragment to be evaled but not shown.
26497 finish_eval=$lt_finish_eval
26499 # Take the output of nm and produce a listing of raw symbols and C names.
26500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26502 # Transform the output of nm in a proper C declaration
26503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26505 # Transform the output of nm in a C name address pair
26506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26508 # This is the shared library runtime path variable.
26509 runpath_var=$runpath_var
26511 # This is the shared library path variable.
26512 shlibpath_var=$shlibpath_var
26514 # Is shlibpath searched before the hard-coded library search path?
26515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26517 # How to hardcode a shared library path into an executable.
26518 hardcode_action=$hardcode_action_GCJ
26520 # Whether we should hardcode library paths into libraries.
26521 hardcode_into_libs=$hardcode_into_libs
26523 # Flag to hardcode \$libdir into a binary during linking.
26524 # This must work even if \$libdir does not exist.
26525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26527 # If ld is used when linking, flag to hardcode \$libdir into
26528 # a binary during linking. This must work even if \$libdir does
26530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26532 # Whether we need a single -rpath flag with a separated argument.
26533 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26535 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26536 # resulting binary.
26537 hardcode_direct=$hardcode_direct_GCJ
26539 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26540 # resulting binary.
26541 hardcode_minus_L=$hardcode_minus_L_GCJ
26543 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26544 # the resulting binary.
26545 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26547 # Set to yes if building a shared library automatically hardcodes DIR into the library
26548 # and all subsequent libraries and executables linked against it.
26549 hardcode_automatic=$hardcode_automatic_GCJ
26551 # Variables whose values should be saved in libtool wrapper scripts and
26552 # restored at relink time.
26553 variables_saved_for_relink="$variables_saved_for_relink"
26555 # Whether libtool must link a program against all its dependency libraries.
26556 link_all_deplibs=$link_all_deplibs_GCJ
26558 # Compile-time system search path for libraries
26559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26561 # Run-time system search path for libraries
26562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26564 # Fix the shell variable \$srcfile for the compiler.
26565 fix_srcfile_path="$fix_srcfile_path_GCJ"
26567 # Set to yes if exported symbols are required.
26568 always_export_symbols=$always_export_symbols_GCJ
26570 # The commands to list exported symbols.
26571 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26573 # The commands to extract the exported symbol list from a shared archive.
26574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26576 # Symbols that should not be listed in the preloaded symbols.
26577 exclude_expsyms=$lt_exclude_expsyms_GCJ
26579 # Symbols that must always be exported.
26580 include_expsyms=$lt_include_expsyms_GCJ
26582 # ### END LIBTOOL TAG CONFIG: $tagname
26588 # If there is no Makefile yet, we rely on a make rule to execute
26589 # `config.status --recheck' to rerun these tests and create the
26590 # libtool script then.
26591 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26592 if test -f "$ltmain_in"; then
26593 test -f Makefile
&& make "$ltmain"
26599 ac_cpp
='$CPP $CPPFLAGS'
26600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26613 ac_cpp
='$CPP $CPPFLAGS'
26614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26619 # Source file extension for RC test sources.
26622 # Object file extension for compiled RC test sources.
26626 # Code to be used in simple compile tests
26627 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26629 # Code to be used in simple link tests
26630 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26634 # If no C compiler was specified, use CC.
26637 # If no C compiler flags were specified, use CFLAGS.
26638 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26640 # Allow CC to be a program name with arguments.
26644 # save warnings/boilerplate of simple test code
26645 ac_outfile
=conftest.
$ac_objext
26646 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26647 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26648 _lt_compiler_boilerplate
=`cat conftest.err`
26651 ac_outfile
=conftest.
$ac_objext
26652 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26653 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26654 _lt_linker_boilerplate
=`cat conftest.err`
26658 # Allow CC to be a program name with arguments.
26663 for cc_temp
in $compiler""; do
26665 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26666 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26671 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26673 lt_cv_prog_compiler_c_o_RC
=yes
26675 # The else clause should only fire when bootstrapping the
26676 # libtool distribution, otherwise you forgot to ship ltmain.sh
26677 # with your package, and you will get complaints that there are
26678 # no rules to generate ltmain.sh.
26679 if test -f "$ltmain"; then
26680 # See if we are running on zsh, and set the options which allow our commands through
26681 # without removal of \ escapes.
26682 if test -n "${ZSH_VERSION+set}" ; then
26683 setopt NO_GLOB_SUBST
26685 # Now quote all the things that may contain metacharacters while being
26686 # careful not to overquote the AC_SUBSTed values. We take copies of the
26687 # variables and quote the copies for generation of the libtool script.
26688 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26690 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26691 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26692 deplibs_check_method reload_flag reload_cmds need_locks \
26693 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26694 lt_cv_sys_global_symbol_to_c_name_address \
26695 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26696 old_postinstall_cmds old_postuninstall_cmds \
26700 lt_prog_compiler_wl_RC \
26701 lt_prog_compiler_pic_RC \
26702 lt_prog_compiler_static_RC \
26703 lt_prog_compiler_no_builtin_flag_RC \
26704 export_dynamic_flag_spec_RC \
26705 thread_safe_flag_spec_RC \
26706 whole_archive_flag_spec_RC \
26707 enable_shared_with_static_runtimes_RC \
26708 old_archive_cmds_RC \
26709 old_archive_from_new_cmds_RC \
26710 predep_objects_RC \
26711 postdep_objects_RC \
26714 compiler_lib_search_path_RC \
26716 archive_expsym_cmds_RC \
26717 postinstall_cmds_RC \
26718 postuninstall_cmds_RC \
26719 old_archive_from_expsyms_cmds_RC \
26720 allow_undefined_flag_RC \
26721 no_undefined_flag_RC \
26722 export_symbols_cmds_RC \
26723 hardcode_libdir_flag_spec_RC \
26724 hardcode_libdir_flag_spec_ld_RC \
26725 hardcode_libdir_separator_RC \
26726 hardcode_automatic_RC \
26728 module_expsym_cmds_RC \
26729 lt_cv_prog_compiler_c_o_RC \
26730 exclude_expsyms_RC \
26731 include_expsyms_RC
; do
26734 old_archive_cmds_RC | \
26735 old_archive_from_new_cmds_RC | \
26736 archive_cmds_RC | \
26737 archive_expsym_cmds_RC | \
26739 module_expsym_cmds_RC | \
26740 old_archive_from_expsyms_cmds_RC | \
26741 export_symbols_cmds_RC | \
26742 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26743 postinstall_cmds | postuninstall_cmds | \
26744 old_postinstall_cmds | old_postuninstall_cmds | \
26745 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26746 # Double-quote double-evaled strings.
26747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26756 *'\$0 --fallback-echo"')
26757 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26763 cat <<__EOF__ >> "$cfgfile"
26764 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26766 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26768 # Shell to use when invoking shell scripts.
26771 # Whether or not to build shared libraries.
26772 build_libtool_libs=$enable_shared
26774 # Whether or not to build static libraries.
26775 build_old_libs=$enable_static
26777 # Whether or not to add -lc for building shared libraries.
26778 build_libtool_need_lc=$archive_cmds_need_lc_RC
26780 # Whether or not to disallow shared libs when runtime libs are static
26781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26783 # Whether or not to optimize for fast installation.
26784 fast_install=$enable_fast_install
26787 host_alias=$host_alias
26791 # The build system.
26792 build_alias=$build_alias
26796 # An echo program that does not interpret backslashes.
26801 AR_FLAGS=$lt_AR_FLAGS
26806 # LTCC compiler flags.
26807 LTCFLAGS=$lt_LTCFLAGS
26809 # A language-specific compiler.
26812 # Is the compiler the GNU C compiler?
26818 # The linker used to build libraries.
26821 # Whether we need hard or soft links.
26824 # A BSD-compatible nm program.
26827 # A symbol stripping program
26830 # Used to examine libraries when file_magic_cmd begins "file"
26831 MAGIC_CMD=$MAGIC_CMD
26833 # Used on cygwin: DLL creation program.
26836 # Used on cygwin: object dumper.
26839 # Used on cygwin: assembler.
26842 # The name of the directory that contains temporary libtool files.
26845 # How to create reloadable object files.
26846 reload_flag=$lt_reload_flag
26847 reload_cmds=$lt_reload_cmds
26849 # How to pass a linker flag through the compiler.
26850 wl=$lt_lt_prog_compiler_wl_RC
26852 # Object file suffix (normally "o").
26853 objext="$ac_objext"
26855 # Old archive suffix (normally "a").
26858 # Shared library suffix (normally ".so").
26859 shrext_cmds='$shrext_cmds'
26861 # Executable file suffix (normally "").
26864 # Additional compiler flags for building library objects.
26865 pic_flag=$lt_lt_prog_compiler_pic_RC
26868 # What is the maximum length of a command?
26869 max_cmd_len=$lt_cv_sys_max_cmd_len
26871 # Does compiler simultaneously support -c and -o options?
26872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26874 # Must we lock files when doing compilation?
26875 need_locks=$lt_need_locks
26877 # Do we need the lib prefix for modules?
26878 need_lib_prefix=$need_lib_prefix
26880 # Do we need a version for libraries?
26881 need_version=$need_version
26883 # Whether dlopen is supported.
26884 dlopen_support=$enable_dlopen
26886 # Whether dlopen of programs is supported.
26887 dlopen_self=$enable_dlopen_self
26889 # Whether dlopen of statically linked programs is supported.
26890 dlopen_self_static=$enable_dlopen_self_static
26892 # Compiler flag to prevent dynamic linking.
26893 link_static_flag=$lt_lt_prog_compiler_static_RC
26895 # Compiler flag to turn off builtin functions.
26896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26898 # Compiler flag to allow reflexive dlopens.
26899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26901 # Compiler flag to generate shared objects directly from archives.
26902 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26904 # Compiler flag to generate thread-safe objects.
26905 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26907 # Library versioning type.
26908 version_type=$version_type
26910 # Format of library name prefix.
26911 libname_spec=$lt_libname_spec
26913 # List of archive names. First name is the real one, the rest are links.
26914 # The last name is the one that the linker finds with -lNAME.
26915 library_names_spec=$lt_library_names_spec
26917 # The coded name of the library, if different from the real name.
26918 soname_spec=$lt_soname_spec
26920 # Commands used to build and install an old-style archive.
26922 old_archive_cmds=$lt_old_archive_cmds_RC
26923 old_postinstall_cmds=$lt_old_postinstall_cmds
26924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26926 # Create an old-style archive from a shared archive.
26927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26929 # Create a temporary old-style archive to link instead of a shared archive.
26930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26932 # Commands used to build and install a shared archive.
26933 archive_cmds=$lt_archive_cmds_RC
26934 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26935 postinstall_cmds=$lt_postinstall_cmds
26936 postuninstall_cmds=$lt_postuninstall_cmds
26938 # Commands used to build a loadable module (assumed same as above if empty)
26939 module_cmds=$lt_module_cmds_RC
26940 module_expsym_cmds=$lt_module_expsym_cmds_RC
26942 # Commands to strip libraries.
26943 old_striplib=$lt_old_striplib
26944 striplib=$lt_striplib
26946 # Dependencies to place before the objects being linked to create a
26948 predep_objects=$lt_predep_objects_RC
26950 # Dependencies to place after the objects being linked to create a
26952 postdep_objects=$lt_postdep_objects_RC
26954 # Dependencies to place before the objects being linked to create a
26956 predeps=$lt_predeps_RC
26958 # Dependencies to place after the objects being linked to create a
26960 postdeps=$lt_postdeps_RC
26962 # The library search path used internally by the compiler when linking
26963 # a shared library.
26964 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26966 # Method to check whether dependent libraries are shared objects.
26967 deplibs_check_method=$lt_deplibs_check_method
26969 # Command to use when deplibs_check_method == file_magic.
26970 file_magic_cmd=$lt_file_magic_cmd
26972 # Flag that allows shared libraries with undefined symbols to be built.
26973 allow_undefined_flag=$lt_allow_undefined_flag_RC
26975 # Flag that forces no undefined symbols.
26976 no_undefined_flag=$lt_no_undefined_flag_RC
26978 # Commands used to finish a libtool library installation in a directory.
26979 finish_cmds=$lt_finish_cmds
26981 # Same as above, but a single script fragment to be evaled but not shown.
26982 finish_eval=$lt_finish_eval
26984 # Take the output of nm and produce a listing of raw symbols and C names.
26985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26987 # Transform the output of nm in a proper C declaration
26988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26990 # Transform the output of nm in a C name address pair
26991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26993 # This is the shared library runtime path variable.
26994 runpath_var=$runpath_var
26996 # This is the shared library path variable.
26997 shlibpath_var=$shlibpath_var
26999 # Is shlibpath searched before the hard-coded library search path?
27000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27002 # How to hardcode a shared library path into an executable.
27003 hardcode_action=$hardcode_action_RC
27005 # Whether we should hardcode library paths into libraries.
27006 hardcode_into_libs=$hardcode_into_libs
27008 # Flag to hardcode \$libdir into a binary during linking.
27009 # This must work even if \$libdir does not exist.
27010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27012 # If ld is used when linking, flag to hardcode \$libdir into
27013 # a binary during linking. This must work even if \$libdir does
27015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27017 # Whether we need a single -rpath flag with a separated argument.
27018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27021 # resulting binary.
27022 hardcode_direct=$hardcode_direct_RC
27024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27025 # resulting binary.
27026 hardcode_minus_L=$hardcode_minus_L_RC
27028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27029 # the resulting binary.
27030 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27032 # Set to yes if building a shared library automatically hardcodes DIR into the library
27033 # and all subsequent libraries and executables linked against it.
27034 hardcode_automatic=$hardcode_automatic_RC
27036 # Variables whose values should be saved in libtool wrapper scripts and
27037 # restored at relink time.
27038 variables_saved_for_relink="$variables_saved_for_relink"
27040 # Whether libtool must link a program against all its dependency libraries.
27041 link_all_deplibs=$link_all_deplibs_RC
27043 # Compile-time system search path for libraries
27044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27046 # Run-time system search path for libraries
27047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27049 # Fix the shell variable \$srcfile for the compiler.
27050 fix_srcfile_path="$fix_srcfile_path_RC"
27052 # Set to yes if exported symbols are required.
27053 always_export_symbols=$always_export_symbols_RC
27055 # The commands to list exported symbols.
27056 export_symbols_cmds=$lt_export_symbols_cmds_RC
27058 # The commands to extract the exported symbol list from a shared archive.
27059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27061 # Symbols that should not be listed in the preloaded symbols.
27062 exclude_expsyms=$lt_exclude_expsyms_RC
27064 # Symbols that must always be exported.
27065 include_expsyms=$lt_include_expsyms_RC
27067 # ### END LIBTOOL TAG CONFIG: $tagname
27073 # If there is no Makefile yet, we rely on a make rule to execute
27074 # `config.status --recheck' to rerun these tests and create the
27075 # libtool script then.
27076 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27077 if test -f "$ltmain_in"; then
27078 test -f Makefile
&& make "$ltmain"
27084 ac_cpp
='$CPP $CPPFLAGS'
27085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27094 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27095 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27096 { (exit 1); exit 1; }; }
27100 # Append the new tag name to the list of available tags.
27101 if test -n "$tagname" ; then
27102 available_tags
="$available_tags $tagname"
27108 # Now substitute the updated list of available tags.
27109 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27110 mv "${ofile}T" "$ofile"
27114 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27115 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27116 { (exit 1); exit 1; }; }
27122 # This can be used to rebuild libtool when needed
27123 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27125 # Always use our own libtool.
27126 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27128 # Prevent multiple expansion
27150 if test "$lt_cv_dlopen_self" = "yes" ; then
27152 cat >>confdefs.h
<<\_ACEOF
27153 #define CAN_DLOPEN_SELF 1
27159 if test "$WITH_LLVMGCCDIR" = "default" ; then
27160 LLVMGCC
="llvm-gcc${EXEEXT}"
27161 LLVMGXX
="llvm-g++${EXEEXT}"
27162 LLVMGCCCOMMAND
="$LLVMGCC"
27163 LLVMGXXCOMMAND
="$LLVMGXX"
27164 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27166 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27168 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27169 set dummy
$LLVMGCC; ac_word
=$2
27170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27172 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27177 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27181 for as_dir
in $PATH
27184 test -z "$as_dir" && as_dir
=.
27185 for ac_exec_ext
in '' $ac_executable_extensions; do
27186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27187 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27198 LLVMGCC
=$ac_cv_path_LLVMGCC
27199 if test -n "$LLVMGCC"; then
27200 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27201 echo "${ECHO_T}$LLVMGCC" >&6; }
27203 { echo "$as_me:$LINENO: result: no" >&5
27204 echo "${ECHO_T}no" >&6; }
27208 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27209 set dummy
$LLVMGXX; ac_word
=$2
27210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27212 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27217 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27221 for as_dir
in $PATH
27224 test -z "$as_dir" && as_dir
=.
27225 for ac_exec_ext
in '' $ac_executable_extensions; do
27226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27227 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27238 LLVMGXX
=$ac_cv_path_LLVMGXX
27239 if test -n "$LLVMGXX"; then
27240 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27241 echo "${ECHO_T}$LLVMGXX" >&6; }
27243 { echo "$as_me:$LINENO: result: no" >&5
27244 echo "${ECHO_T}no" >&6; }
27249 if test -z "$LLVMGCC"; then
27250 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27251 LLVMGCCCOMMAND
="$LLVMGCC"
27253 if test -z "$LLVMGXX"; then
27254 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27255 LLVMGXXCOMMAND
="$LLVMGXX"
27262 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27264 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27269 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27270 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27283 if test "$GCC" != "yes" && test "$ICC" != "yes"
27285 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27286 echo "$as_me: error: gcc|icc required but not found" >&2;}
27287 { (exit 1); exit 1; }; }
27290 if test "$GXX" != "yes" && test "$IXX" != "yes"
27292 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27293 echo "$as_me: error: g++|icc required but not found" >&2;}
27294 { (exit 1); exit 1; }; }
27297 if test "$GCC" = "yes"
27299 cat >conftest.
$ac_ext <<_ACEOF
27300 #if !defined(__GNUC__) || __GNUC__ < 3
27301 #error Unsupported GCC version
27305 rm -f conftest.
$ac_objext
27306 if { (ac_try
="$ac_compile"
27307 case "(($ac_try" in
27308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_compile") 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (case "(($ac_try" in
27321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27322 *) ac_try_echo
=$ac_try;;
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_try") 2>&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try
='test -s conftest.$ac_objext'
27330 { (case "(($ac_try" in
27331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27345 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27346 { (exit 1); exit 1; }; }
27349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27352 if test -z "$llvm_cv_gnu_make_command"
27354 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27355 echo "$as_me: error: GNU Make required but not found" >&2;}
27356 { (exit 1); exit 1; }; }
27359 { echo "$as_me:$LINENO: result: ok" >&5
27360 echo "${ECHO_T}ok" >&6; }
27364 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27365 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27366 if test "${ac_cv_lib_m_sin+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27369 ac_check_lib_save_LIBS=$LIBS
27371 cat >conftest.$ac_ext <<_ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27378 /* Override any GCC internal prototype to avoid an error.
27379 Use char because int might match the return type of a GCC
27380 builtin and then its argument prototype would still apply. */
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (ac_try="$ac_link"
27395 case "(($ac_try" in
27396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27397 *) ac_try_echo
=$ac_try;;
27399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400 (eval "$ac_link") 2>conftest.er1
27402 grep -v '^ *+' conftest.er1
>conftest.err
27404 cat conftest.err
>&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
27407 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27408 { (case "(($ac_try" in
27409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_try") 2>&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; } &&
27417 { ac_try='test -s conftest$ac_exeext'
27418 { (case "(($ac_try" in
27419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27420 *) ac_try_echo
=$ac_try;;
27422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423 (eval "$ac_try") 2>&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); }; }; then
27427 ac_cv_lib_m_sin
=yes
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.
$ac_ext >&5
27435 rm -f core conftest.err conftest.
$ac_objext \
27436 conftest
$ac_exeext conftest.
$ac_ext
27437 LIBS
=$ac_check_lib_save_LIBS
27439 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27440 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27441 if test $ac_cv_lib_m_sin = yes; then
27442 cat >>confdefs.h
<<_ACEOF
27443 #define HAVE_LIBM 1
27450 if test "$llvm_cv_os_type" = "MingW" ; then
27452 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27453 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27454 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27455 echo $ECHO_N "(cached) $ECHO_C" >&6
27457 ac_check_lib_save_LIBS
=$LIBS
27458 LIBS
="-limagehlp $LIBS"
27459 cat >conftest.
$ac_ext <<_ACEOF
27462 cat confdefs.h
>>conftest.
$ac_ext
27463 cat >>conftest.
$ac_ext <<_ACEOF
27464 /* end confdefs.h. */
27475 rm -f conftest.
$ac_objext conftest
$ac_exeext
27476 if { (ac_try
="$ac_link"
27477 case "(($ac_try" in
27478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27479 *) ac_try_echo=$ac_try;;
27481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27482 (eval "$ac_link") 2>conftest.er1
27484 grep -v '^ *+' conftest.er1 >conftest.err
27486 cat conftest.err >&5
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); } &&
27489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27490 { (case "(($ac_try" in
27491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27492 *) ac_try_echo
=$ac_try;;
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495 (eval "$ac_try") 2>&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try
='test -s conftest$ac_exeext'
27500 { (case "(($ac_try" in
27501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_try") 2>&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 ac_cv_lib_imagehlp_main=yes
27511 echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27514 ac_cv_lib_imagehlp_main=no
27517 rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
27519 LIBS=$ac_check_lib_save_LIBS
27521 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27522 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27523 if test $ac_cv_lib_imagehlp_main = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_LIBIMAGEHLP 1
27528 LIBS="-limagehlp $LIBS"
27533 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27534 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27535 if test "${ac_cv_lib_psapi_main+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 ac_check_lib_save_LIBS=$LIBS
27539 LIBS="-lpsapi $LIBS"
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27560 *) ac_try_echo
=$ac_try;;
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
27565 grep -v '^ *+' conftest.er1
>conftest.err
27567 cat conftest.err
>&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27583 *) ac_try_echo
=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 ac_cv_lib_psapi_main
=yes
27592 echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.
$ac_ext >&5
27595 ac_cv_lib_psapi_main
=no
27598 rm -f core conftest.err conftest.
$ac_objext \
27599 conftest
$ac_exeext conftest.
$ac_ext
27600 LIBS
=$ac_check_lib_save_LIBS
27602 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27603 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27604 if test $ac_cv_lib_psapi_main = yes; then
27605 cat >>confdefs.h
<<_ACEOF
27606 #define HAVE_LIBPSAPI 1
27609 LIBS
="-lpsapi $LIBS"
27615 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27616 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27617 if test "${ac_cv_search_dlopen+set}" = set; then
27618 echo $ECHO_N "(cached) $ECHO_C" >&6
27620 ac_func_search_save_LIBS
=$LIBS
27621 cat >conftest.
$ac_ext <<_ACEOF
27624 cat confdefs.h
>>conftest.
$ac_ext
27625 cat >>conftest.
$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27628 /* Override any GCC internal prototype to avoid an error.
27629 Use char because int might match the return type of a GCC
27630 builtin and then its argument prototype would still apply. */
27643 for ac_lib
in '' dl
; do
27644 if test -z "$ac_lib"; then
27645 ac_res
="none required"
27648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27650 rm -f conftest.
$ac_objext conftest
$ac_exeext
27651 if { (ac_try
="$ac_link"
27652 case "(($ac_try" in
27653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
27659 grep -v '^ *+' conftest.er1 >conftest.err
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27667 *) ac_try_echo
=$ac_try;;
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try
='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 ac_cv_search_dlopen=$ac_res
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27692 rm -f core conftest.err conftest.$ac_objext \
27694 if test "${ac_cv_search_dlopen+set}" = set; then
27698 if test "${ac_cv_search_dlopen+set}" = set; then
27701 ac_cv_search_dlopen=no
27703 rm conftest.$ac_ext
27704 LIBS=$ac_func_search_save_LIBS
27706 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27707 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27708 ac_res=$ac_cv_search_dlopen
27709 if test "$ac_res" != no; then
27710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27712 cat >>confdefs.h <<\_ACEOF
27713 #define HAVE_DLOPEN 1
27717 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27718 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27722 if test "$llvm_cv_enable_libffi" = "yes" ; then
27723 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27724 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27725 if test "${ac_cv_search_ffi_call+set}" = set; then
27726 echo $ECHO_N "(cached) $ECHO_C" >&6
27728 ac_func_search_save_LIBS=$LIBS
27729 cat >conftest.$ac_ext <<_ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h. */
27736 /* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27746 return ffi_call ();
27751 for ac_lib in '' ffi; do
27752 if test -z "$ac_lib"; then
27753 ac_res="none required"
27756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27758 rm -f conftest.$ac_objext conftest$ac_exeext
27759 if { (ac_try="$ac_link"
27760 case "(($ac_try" in
27761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27762 *) ac_try_echo
=$ac_try;;
27764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765 (eval "$ac_link") 2>conftest.er1
27767 grep -v '^ *+' conftest.er1
>conftest.err
27769 cat conftest.err
>&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
27772 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773 { (case "(($ac_try" in
27774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest$ac_exeext'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27785 *) ac_try_echo
=$ac_try;;
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27792 ac_cv_search_ffi_call
=$ac_res
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.
$ac_ext >&5
27800 rm -f core conftest.err conftest.
$ac_objext \
27802 if test "${ac_cv_search_ffi_call+set}" = set; then
27806 if test "${ac_cv_search_ffi_call+set}" = set; then
27809 ac_cv_search_ffi_call
=no
27811 rm conftest.
$ac_ext
27812 LIBS
=$ac_func_search_save_LIBS
27814 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27815 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27816 ac_res
=$ac_cv_search_ffi_call
27817 if test "$ac_res" != no
; then
27818 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27820 cat >>confdefs.h
<<\_ACEOF
27821 #define HAVE_FFI_CALL 1
27825 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27826 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27831 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27833 if test "${ac_cv_search_mallinfo+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27836 ac_func_search_save_LIBS
=$LIBS
27837 cat >conftest.
$ac_ext <<_ACEOF
27840 cat confdefs.h
>>conftest.
$ac_ext
27841 cat >>conftest.
$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27844 /* Override any GCC internal prototype to avoid an error.
27845 Use char because int might match the return type of a GCC
27846 builtin and then its argument prototype would still apply. */
27854 return mallinfo ();
27859 for ac_lib
in '' malloc
; do
27860 if test -z "$ac_lib"; then
27861 ac_res
="none required"
27864 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27866 rm -f conftest.
$ac_objext conftest
$ac_exeext
27867 if { (ac_try
="$ac_link"
27868 case "(($ac_try" in
27869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>conftest.er1
27875 grep -v '^ *+' conftest.er1 >conftest.err
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27883 *) ac_try_echo
=$ac_try;;
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try
='test -s conftest$ac_exeext'
27891 { (case "(($ac_try" in
27892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27893 *) ac_try_echo=$ac_try;;
27895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27896 (eval "$ac_try") 2>&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
27900 ac_cv_search_mallinfo=$ac_res
27902 echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27908 rm -f core conftest.err conftest.$ac_objext \
27910 if test "${ac_cv_search_mallinfo+set}" = set; then
27914 if test "${ac_cv_search_mallinfo+set}" = set; then
27917 ac_cv_search_mallinfo=no
27919 rm conftest.$ac_ext
27920 LIBS=$ac_func_search_save_LIBS
27922 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27923 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27924 ac_res=$ac_cv_search_mallinfo
27925 if test "$ac_res" != no; then
27926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27928 cat >>confdefs.h <<\_ACEOF
27929 #define HAVE_MALLINFO 1
27935 if test "$ENABLE_THREADS" -eq 1 ; then
27937 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27938 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27939 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
27942 ac_check_lib_save_LIBS=$LIBS
27943 LIBS="-lpthread $LIBS"
27944 cat >conftest.$ac_ext <<_ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h. */
27951 /* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27957 char pthread_mutex_init ();
27961 return pthread_mutex_init ();
27966 rm -f conftest.$ac_objext conftest$ac_exeext
27967 if { (ac_try="$ac_link"
27968 case "(($ac_try" in
27969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27970 *) ac_try_echo
=$ac_try;;
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973 (eval "$ac_link") 2>conftest.er1
27975 grep -v '^ *+' conftest.er1
>conftest.err
27977 cat conftest.err
>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981 { (case "(($ac_try" in
27982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_try") 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; } &&
27990 { ac_try='test -s conftest$ac_exeext'
27991 { (case "(($ac_try" in
27992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27993 *) ac_try_echo
=$ac_try;;
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996 (eval "$ac_try") 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28000 ac_cv_lib_pthread_pthread_mutex_init
=yes
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.
$ac_ext >&5
28005 ac_cv_lib_pthread_pthread_mutex_init
=no
28008 rm -f core conftest.err conftest.
$ac_objext \
28009 conftest
$ac_exeext conftest.
$ac_ext
28010 LIBS
=$ac_check_lib_save_LIBS
28012 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28013 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28014 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28015 cat >>confdefs.h
<<_ACEOF
28016 #define HAVE_LIBPTHREAD 1
28019 LIBS
="-lpthread $LIBS"
28023 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28024 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28025 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 ac_func_search_save_LIBS
=$LIBS
28029 cat >conftest.
$ac_ext <<_ACEOF
28032 cat confdefs.h
>>conftest.
$ac_ext
28033 cat >>conftest.
$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28036 /* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28042 char pthread_mutex_lock ();
28046 return pthread_mutex_lock ();
28051 for ac_lib
in '' pthread
; do
28052 if test -z "$ac_lib"; then
28053 ac_res
="none required"
28056 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28058 rm -f conftest.
$ac_objext conftest
$ac_exeext
28059 if { (ac_try
="$ac_link"
28060 case "(($ac_try" in
28061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
28067 grep -v '^ *+' conftest.er1 >conftest.err
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28075 *) ac_try_echo
=$ac_try;;
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try
='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 ac_cv_search_pthread_mutex_lock=$ac_res
28094 echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28100 rm -f core conftest.err conftest.$ac_objext \
28102 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28109 ac_cv_search_pthread_mutex_lock=no
28111 rm conftest.$ac_ext
28112 LIBS=$ac_func_search_save_LIBS
28114 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28115 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28116 ac_res=$ac_cv_search_pthread_mutex_lock
28117 if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28120 cat >>confdefs.h <<\_ACEOF
28121 #define HAVE_PTHREAD_MUTEX_LOCK 1
28126 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28127 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28128 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28131 ac_func_search_save_LIBS=$LIBS
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28139 /* Override any GCC internal prototype to avoid an error.
28140 Use char because int might match the return type of a GCC
28141 builtin and then its argument prototype would still apply. */
28145 char pthread_rwlock_init ();
28149 return pthread_rwlock_init ();
28154 for ac_lib in '' pthread; do
28155 if test -z "$ac_lib"; then
28156 ac_res="none required"
28159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162 if { (ac_try="$ac_link"
28163 case "(($ac_try" in
28164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28165 *) ac_try_echo
=$ac_try;;
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_link") 2>conftest.er1
28170 grep -v '^ *+' conftest.er1
>conftest.err
28172 cat conftest.err
>&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest$ac_exeext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28188 *) ac_try_echo
=$ac_try;;
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
28195 ac_cv_search_pthread_rwlock_init
=$ac_res
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.
$ac_ext >&5
28203 rm -f core conftest.err conftest.
$ac_objext \
28205 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28212 ac_cv_search_pthread_rwlock_init
=no
28214 rm conftest.
$ac_ext
28215 LIBS
=$ac_func_search_save_LIBS
28217 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28218 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28219 ac_res
=$ac_cv_search_pthread_rwlock_init
28220 if test "$ac_res" != no
; then
28221 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28223 cat >>confdefs.h
<<\_ACEOF
28224 #define HAVE_PTHREAD_RWLOCK_INIT 1
28229 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28230 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28231 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28232 echo $ECHO_N "(cached) $ECHO_C" >&6
28234 ac_func_search_save_LIBS
=$LIBS
28235 cat >conftest.
$ac_ext <<_ACEOF
28238 cat confdefs.h
>>conftest.
$ac_ext
28239 cat >>conftest.
$ac_ext <<_ACEOF
28240 /* end confdefs.h. */
28242 /* Override any GCC internal prototype to avoid an error.
28243 Use char because int might match the return type of a GCC
28244 builtin and then its argument prototype would still apply. */
28248 char pthread_getspecific ();
28252 return pthread_getspecific ();
28257 for ac_lib
in '' pthread
; do
28258 if test -z "$ac_lib"; then
28259 ac_res
="none required"
28262 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28264 rm -f conftest.
$ac_objext conftest
$ac_exeext
28265 if { (ac_try
="$ac_link"
28266 case "(($ac_try" in
28267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_link") 2>conftest.er1
28273 grep -v '^ *+' conftest.er1 >conftest.err
28275 cat conftest.err >&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } &&
28278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28281 *) ac_try_echo
=$ac_try;;
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try
='test -s conftest$ac_exeext'
28289 { (case "(($ac_try" in
28290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28291 *) ac_try_echo=$ac_try;;
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294 (eval "$ac_try") 2>&5
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); }; }; then
28298 ac_cv_search_pthread_getspecific=$ac_res
28300 echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28306 rm -f core conftest.err conftest.$ac_objext \
28308 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28315 ac_cv_search_pthread_getspecific=no
28317 rm conftest.$ac_ext
28318 LIBS=$ac_func_search_save_LIBS
28320 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28321 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28322 ac_res=$ac_cv_search_pthread_getspecific
28323 if test "$ac_res" != no; then
28324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28326 cat >>confdefs.h <<\_ACEOF
28327 #define HAVE_PTHREAD_GETSPECIFIC 1
28335 # Check whether --with-udis86 was given.
28336 if test "${with_udis86+set}" = set; then
28337 withval=$with_udis86;
28342 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28345 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28346 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28347 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28350 ac_check_lib_save_LIBS=$LIBS
28351 LIBS="-ludis86 $LIBS"
28352 cat >conftest.$ac_ext <<_ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h. */
28359 /* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28374 rm -f conftest.$ac_objext conftest$ac_exeext
28375 if { (ac_try="$ac_link"
28376 case "(($ac_try" in
28377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28378 *) ac_try_echo
=$ac_try;;
28380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381 (eval "$ac_link") 2>conftest.er1
28383 grep -v '^ *+' conftest.er1
>conftest.err
28385 cat conftest.err
>&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
28388 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389 { (case "(($ac_try" in
28390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_try") 2>&5
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; } &&
28398 { ac_try='test -s conftest$ac_exeext'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28401 *) ac_try_echo
=$ac_try;;
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_cv_lib_udis86_ud_init
=yes
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.
$ac_ext >&5
28413 ac_cv_lib_udis86_ud_init
=no
28416 rm -f core conftest.err conftest.
$ac_objext \
28417 conftest
$ac_exeext conftest.
$ac_ext
28418 LIBS
=$ac_check_lib_save_LIBS
28420 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28421 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28422 if test $ac_cv_lib_udis86_ud_init = yes; then
28423 cat >>confdefs.h
<<_ACEOF
28424 #define HAVE_LIBUDIS86 1
28427 LIBS
="-ludis86 $LIBS"
28431 echo "Error! You need to have libudis86 around."
28443 cat >>confdefs.h
<<_ACEOF
28444 #define USE_UDIS86 $USE_UDIS86
28449 # Check whether --with-oprofile was given.
28450 if test "${with_oprofile+set}" = set; then
28451 withval
=$with_oprofile;
28455 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
28456 *) llvm_cv_oppath
="${withval}/lib/oprofile"
28457 CPPFLAGS
="-I${withval}/include";;
28459 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28460 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28461 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28462 if test "${ac_cv_search_op_open_agent+set}" = set; then
28463 echo $ECHO_N "(cached) $ECHO_C" >&6
28465 ac_func_search_save_LIBS
=$LIBS
28466 cat >conftest.
$ac_ext <<_ACEOF
28469 cat confdefs.h
>>conftest.
$ac_ext
28470 cat >>conftest.
$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28473 /* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28479 char op_open_agent ();
28483 return op_open_agent ();
28488 for ac_lib
in '' opagent
; do
28489 if test -z "$ac_lib"; then
28490 ac_res
="none required"
28493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28495 rm -f conftest.
$ac_objext conftest
$ac_exeext
28496 if { (ac_try
="$ac_link"
28497 case "(($ac_try" in
28498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_link") 2>conftest.er1
28504 grep -v '^ *+' conftest.er1 >conftest.err
28506 cat conftest.err >&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } &&
28509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28510 { (case "(($ac_try" in
28511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28512 *) ac_try_echo
=$ac_try;;
28514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515 (eval "$ac_try") 2>&5
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; } &&
28519 { ac_try
='test -s conftest$ac_exeext'
28520 { (case "(($ac_try" in
28521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28525 (eval "$ac_try") 2>&5
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; }; then
28529 ac_cv_search_op_open_agent=$ac_res
28531 echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28537 rm -f core conftest.err conftest.$ac_objext \
28539 if test "${ac_cv_search_op_open_agent+set}" = set; then
28543 if test "${ac_cv_search_op_open_agent+set}" = set; then
28546 ac_cv_search_op_open_agent=no
28548 rm conftest.$ac_ext
28549 LIBS=$ac_func_search_save_LIBS
28551 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28552 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28553 ac_res=$ac_cv_search_op_open_agent
28554 if test "$ac_res" != no; then
28555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28559 echo "Error! You need to have libopagent around."
28564 if test "${ac_cv_header_opagent_h+set}" = set; then
28565 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28566 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28567 if test "${ac_cv_header_opagent_h+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28570 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28571 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28573 # Is the header compilable?
28574 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28575 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28576 cat >conftest.$ac_ext <<_ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28582 $ac_includes_default
28583 #include <opagent.h>
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28589 *) ac_try_echo
=$ac_try;;
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28594 grep -v '^ *+' conftest.er1
>conftest.err
28596 cat conftest.err
>&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
28599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest.$ac_objext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28612 *) ac_try_echo
=$ac_try;;
28614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 ac_header_compiler
=yes
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.
$ac_ext >&5
28624 ac_header_compiler
=no
28627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28629 echo "${ECHO_T}$ac_header_compiler" >&6; }
28631 # Is the header present?
28632 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28633 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28634 cat >conftest.
$ac_ext <<_ACEOF
28637 cat confdefs.h
>>conftest.
$ac_ext
28638 cat >>conftest.
$ac_ext <<_ACEOF
28639 /* end confdefs.h. */
28640 #include <opagent.h>
28642 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28643 case "(($ac_try" in
28644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28645 *) ac_try_echo=$ac_try;;
28647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28650 grep -v '^ *+' conftest.er1 >conftest.err
28652 cat conftest.err >&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } >/dev/null; then
28655 if test -s conftest.err; then
28656 ac_cpp_err=$ac_c_preproc_warn_flag
28657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28664 if test -z "$ac_cpp_err"; then
28665 ac_header_preproc=yes
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ac_header_preproc=no
28673 rm -f conftest.err conftest.$ac_ext
28674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28675 echo "${ECHO_T}$ac_header_preproc" >&6; }
28677 # So? What about this header?
28678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28680 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28681 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28683 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28684 ac_header_preproc=yes
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28688 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28690 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28691 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28692 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28693 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28694 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28695 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28696 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28697 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28698 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28700 ## ----------------------------------- ##
28701 ## Report this to llvmbugs@cs.uiuc.edu ##
28702 ## ----------------------------------- ##
28704 ) | sed "s/^/$as_me: WARNING: /" >&2
28707 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28708 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28709 if test "${ac_cv_header_opagent_h+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 ac_cv_header_opagent_h=$ac_header_preproc
28714 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28715 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28718 if test $ac_cv_header_opagent_h = yes; then
28722 echo "Error! You need to have opagent.h around."
28731 llvm_cv_old_LIBS="$LIBS"
28732 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28733 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28734 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28735 if test "${ac_cv_search_op_open_agent+set}" = set; then
28736 echo $ECHO_N "(cached) $ECHO_C" >&6
28738 ac_func_search_save_LIBS=$LIBS
28739 cat >conftest.$ac_ext <<_ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h. */
28746 /* Override any GCC internal prototype to avoid an error.
28747 Use char because int might match the return type of a GCC
28748 builtin and then its argument prototype would still apply. */
28752 char op_open_agent ();
28756 return op_open_agent ();
28761 for ac_lib in '' opagent; do
28762 if test -z "$ac_lib"; then
28763 ac_res="none required"
28766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769 if { (ac_try="$ac_link"
28770 case "(($ac_try" in
28771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28772 *) ac_try_echo
=$ac_try;;
28774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775 (eval "$ac_link") 2>conftest.er1
28777 grep -v '^ *+' conftest.er1
>conftest.err
28779 cat conftest.err
>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } &&
28782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28783 { (case "(($ac_try" in
28784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_try") 2>&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; } &&
28792 { ac_try='test -s conftest$ac_exeext'
28793 { (case "(($ac_try" in
28794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28795 *) ac_try_echo
=$ac_try;;
28797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28798 (eval "$ac_try") 2>&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); }; }; then
28802 ac_cv_search_op_open_agent
=$ac_res
28804 echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.
$ac_ext >&5
28810 rm -f core conftest.err conftest.
$ac_objext \
28812 if test "${ac_cv_search_op_open_agent+set}" = set; then
28816 if test "${ac_cv_search_op_open_agent+set}" = set; then
28819 ac_cv_search_op_open_agent
=no
28821 rm conftest.
$ac_ext
28822 LIBS
=$ac_func_search_save_LIBS
28824 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28825 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28826 ac_res
=$ac_cv_search_op_open_agent
28827 if test "$ac_res" != no
; then
28828 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28832 LIBS
="$llvm_cv_old_LIBS"
28837 if test "${ac_cv_header_opagent_h+set}" = set; then
28838 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28839 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28840 if test "${ac_cv_header_opagent_h+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28843 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28844 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28846 # Is the header compilable?
28847 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28848 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28849 cat >conftest.
$ac_ext <<_ACEOF
28852 cat confdefs.h
>>conftest.
$ac_ext
28853 cat >>conftest.
$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28855 $ac_includes_default
28856 #include <opagent.h>
28858 rm -f conftest.
$ac_objext
28859 if { (ac_try
="$ac_compile"
28860 case "(($ac_try" in
28861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_compile") 2>conftest.er1
28867 grep -v '^ *+' conftest.er1 >conftest.err
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28873 { (case "(($ac_try" in
28874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28875 *) ac_try_echo
=$ac_try;;
28877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_try") 2>&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; } &&
28882 { ac_try
='test -s conftest.$ac_objext'
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_try") 2>&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 ac_header_compiler=yes
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ac_header_compiler=no
28900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28902 echo "${ECHO_T}$ac_header_compiler" >&6; }
28904 # Is the header present?
28905 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28906 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28907 cat >conftest.$ac_ext <<_ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28913 #include <opagent.h>
28915 if { (ac_try="$ac_cpp conftest.$ac_ext"
28916 case "(($ac_try" in
28917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28918 *) ac_try_echo
=$ac_try;;
28920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28923 grep -v '^ *+' conftest.er1
>conftest.err
28925 cat conftest.err
>&5
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } >/dev
/null
; then
28928 if test -s conftest.err
; then
28929 ac_cpp_err
=$ac_c_preproc_warn_flag
28930 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28937 if test -z "$ac_cpp_err"; then
28938 ac_header_preproc
=yes
28940 echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.
$ac_ext >&5
28943 ac_header_preproc
=no
28946 rm -f conftest.err conftest.
$ac_ext
28947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28948 echo "${ECHO_T}$ac_header_preproc" >&6; }
28950 # So? What about this header?
28951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28953 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28954 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28956 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28957 ac_header_preproc
=yes
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28961 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28963 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28964 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28965 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28966 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28967 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28968 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28969 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28971 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28973 ## ----------------------------------- ##
28974 ## Report this to llvmbugs@cs.uiuc.edu ##
28975 ## ----------------------------------- ##
28977 ) |
sed "s/^/$as_me: WARNING: /" >&2
28980 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28981 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28982 if test "${ac_cv_header_opagent_h+set}" = set; then
28983 echo $ECHO_N "(cached) $ECHO_C" >&6
28985 ac_cv_header_opagent_h
=$ac_header_preproc
28987 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28988 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28991 if test $ac_cv_header_opagent_h = yes; then
28995 LIBS
="$llvm_cv_old_LIBS"
29006 cat >>confdefs.h
<<_ACEOF
29007 #define USE_OPROFILE $USE_OPROFILE
29017 ac_header_dirent
=no
29018 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
29019 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29020 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29021 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29022 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29023 echo $ECHO_N "(cached) $ECHO_C" >&6
29025 cat >conftest.
$ac_ext <<_ACEOF
29028 cat confdefs.h
>>conftest.
$ac_ext
29029 cat >>conftest.
$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29031 #include <sys/types.h>
29043 rm -f conftest.
$ac_objext
29044 if { (ac_try
="$ac_compile"
29045 case "(($ac_try" in
29046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29047 *) ac_try_echo=$ac_try;;
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050 (eval "$ac_compile") 2>conftest.er1
29052 grep -v '^ *+' conftest.er1 >conftest.err
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
29057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29058 { (case "(($ac_try" in
29059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29060 *) ac_try_echo
=$ac_try;;
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063 (eval "$ac_try") 2>&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; } &&
29067 { ac_try
='test -s conftest.$ac_objext'
29068 { (case "(($ac_try" in
29069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_try") 2>&5
29075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076 (exit $ac_status); }; }; then
29077 eval "$as_ac_Header=yes"
29079 echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29082 eval "$as_ac_Header=no"
29085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29087 ac_res=`eval echo '${'$as_ac_Header'}'`
29088 { echo "$as_me:$LINENO: result: $ac_res" >&5
29089 echo "${ECHO_T}$ac_res" >&6; }
29090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 cat >>confdefs.h <<_ACEOF
29092 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
29095 ac_header_dirent=$ac_hdr; break
29099 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29100 if test $ac_header_dirent = dirent.h; then
29101 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29102 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29103 if test "${ac_cv_search_opendir+set}" = set; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 ac_func_search_save_LIBS=$LIBS
29107 cat >conftest.$ac_ext <<_ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h. */
29114 /* Override any GCC internal prototype to avoid an error.
29115 Use char because int might match the return type of a GCC
29116 builtin and then its argument prototype would still apply. */
29129 for ac_lib in '' dir; do
29130 if test -z "$ac_lib"; then
29131 ac_res="none required"
29134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29136 rm -f conftest.$ac_objext conftest$ac_exeext
29137 if { (ac_try="$ac_link"
29138 case "(($ac_try" in
29139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29140 *) ac_try_echo
=$ac_try;;
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_link") 2>conftest.er1
29145 grep -v '^ *+' conftest.er1
>conftest.err
29147 cat conftest.err
>&5
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); } &&
29150 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29151 { (case "(($ac_try" in
29152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; } &&
29160 { ac_try='test -s conftest$ac_exeext'
29161 { (case "(($ac_try" in
29162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29163 *) ac_try_echo
=$ac_try;;
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_try") 2>&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 ac_cv_search_opendir
=$ac_res
29172 echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.
$ac_ext >&5
29178 rm -f core conftest.err conftest.
$ac_objext \
29180 if test "${ac_cv_search_opendir+set}" = set; then
29184 if test "${ac_cv_search_opendir+set}" = set; then
29187 ac_cv_search_opendir
=no
29189 rm conftest.
$ac_ext
29190 LIBS
=$ac_func_search_save_LIBS
29192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29194 ac_res
=$ac_cv_search_opendir
29195 if test "$ac_res" != no
; then
29196 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29203 if test "${ac_cv_search_opendir+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29206 ac_func_search_save_LIBS
=$LIBS
29207 cat >conftest.
$ac_ext <<_ACEOF
29210 cat confdefs.h
>>conftest.
$ac_ext
29211 cat >>conftest.
$ac_ext <<_ACEOF
29212 /* end confdefs.h. */
29214 /* Override any GCC internal prototype to avoid an error.
29215 Use char because int might match the return type of a GCC
29216 builtin and then its argument prototype would still apply. */
29229 for ac_lib
in '' x
; do
29230 if test -z "$ac_lib"; then
29231 ac_res
="none required"
29234 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29236 rm -f conftest.
$ac_objext conftest
$ac_exeext
29237 if { (ac_try
="$ac_link"
29238 case "(($ac_try" in
29239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_link") 2>conftest.er1
29245 grep -v '^ *+' conftest.er1 >conftest.err
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29253 *) ac_try_echo
=$ac_try;;
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; } &&
29260 { ac_try
='test -s conftest$ac_exeext'
29261 { (case "(($ac_try" in
29262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29263 *) ac_try_echo=$ac_try;;
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266 (eval "$ac_try") 2>&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; }; then
29270 ac_cv_search_opendir=$ac_res
29272 echo "$as_me: failed program was:" >&5
29273 sed 's/^/| /' conftest.$ac_ext >&5
29278 rm -f core conftest.err conftest.$ac_objext \
29280 if test "${ac_cv_search_opendir+set}" = set; then
29284 if test "${ac_cv_search_opendir+set}" = set; then
29287 ac_cv_search_opendir=no
29289 rm conftest.$ac_ext
29290 LIBS=$ac_func_search_save_LIBS
29292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29294 ac_res=$ac_cv_search_opendir
29295 if test "$ac_res" != no; then
29296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29302 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29303 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29304 if test "${ac_cv_header_mmap_anon+set}" = set; then
29305 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 ac_cpp='$CPP $CPPFLAGS'
29309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29313 cat >conftest.$ac_ext <<_ACEOF
29316 cat confdefs.h >>conftest.$ac_ext
29317 cat >>conftest.$ac_ext <<_ACEOF
29318 /* end confdefs.h. */
29319 #include <sys/mman.h>
29320 #include <unistd.h>
29325 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29330 rm -f conftest.$ac_objext
29331 if { (ac_try="$ac_compile"
29332 case "(($ac_try" in
29333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29334 *) ac_try_echo
=$ac_try;;
29336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_compile") 2>conftest.er1
29339 grep -v '^ *+' conftest.er1
>conftest.err
29341 cat conftest.err
>&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); } &&
29344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29345 { (case "(($ac_try" in
29346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29347 *) ac_try_echo=$ac_try;;
29349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29350 (eval "$ac_try") 2>&5
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); }; } &&
29354 { ac_try='test -s conftest.$ac_objext'
29355 { (case "(($ac_try" in
29356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29357 *) ac_try_echo
=$ac_try;;
29359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360 (eval "$ac_try") 2>&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); }; }; then
29364 ac_cv_header_mmap_anon
=yes
29366 echo "$as_me: failed program was:" >&5
29367 sed 's/^/| /' conftest.
$ac_ext >&5
29369 ac_cv_header_mmap_anon
=no
29372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29374 ac_cpp
='$CPP $CPPFLAGS'
29375 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29376 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29377 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29381 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29382 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29383 if test "$ac_cv_header_mmap_anon" = yes; then
29385 cat >>confdefs.h
<<\_ACEOF
29386 #define HAVE_MMAP_ANONYMOUS 1
29391 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29392 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29393 if test "${ac_cv_header_stat_broken+set}" = set; then
29394 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 cat >conftest.
$ac_ext <<_ACEOF
29399 cat confdefs.h
>>conftest.
$ac_ext
29400 cat >>conftest.
$ac_ext <<_ACEOF
29401 /* end confdefs.h. */
29402 #include <sys/types.h>
29403 #include <sys/stat.h>
29405 #if defined S_ISBLK && defined S_IFDIR
29406 # if S_ISBLK (S_IFDIR)
29411 #if defined S_ISBLK && defined S_IFCHR
29412 # if S_ISBLK (S_IFCHR)
29417 #if defined S_ISLNK && defined S_IFREG
29418 # if S_ISLNK (S_IFREG)
29423 #if defined S_ISSOCK && defined S_IFREG
29424 # if S_ISSOCK (S_IFREG)
29430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29431 $EGREP "You lose" >/dev
/null
2>&1; then
29432 ac_cv_header_stat_broken
=yes
29434 ac_cv_header_stat_broken
=no
29439 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29440 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29441 if test $ac_cv_header_stat_broken = yes; then
29443 cat >>confdefs.h
<<\_ACEOF
29444 #define STAT_MACROS_BROKEN 1
29449 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29451 if test "${ac_cv_header_stdc+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29454 cat >conftest.
$ac_ext <<_ACEOF
29457 cat confdefs.h
>>conftest.
$ac_ext
29458 cat >>conftest.
$ac_ext <<_ACEOF
29459 /* end confdefs.h. */
29460 #include <stdlib.h>
29461 #include <stdarg.h>
29462 #include <string.h>
29473 rm -f conftest.
$ac_objext
29474 if { (ac_try
="$ac_compile"
29475 case "(($ac_try" in
29476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_compile") 2>conftest.er1
29482 grep -v '^ *+' conftest.er1 >conftest.err
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29490 *) ac_try_echo
=$ac_try;;
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try
='test -s conftest.$ac_objext'
29498 { (case "(($ac_try" in
29499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_try") 2>&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507 ac_cv_header_stdc=yes
29509 echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29512 ac_cv_header_stdc=no
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29517 if test $ac_cv_header_stdc = yes; then
29518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29519 cat >conftest.$ac_ext <<_ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h. */
29525 #include <string.h>
29528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29529 $EGREP "memchr" >/dev/null 2>&1; then
29532 ac_cv_header_stdc=no
29538 if test $ac_cv_header_stdc = yes; then
29539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29540 cat >conftest.$ac_ext <<_ACEOF
29543 cat confdefs.h >>conftest.$ac_ext
29544 cat >>conftest.$ac_ext <<_ACEOF
29545 /* end confdefs.h. */
29546 #include <stdlib.h>
29549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29550 $EGREP "free" >/dev/null 2>&1; then
29553 ac_cv_header_stdc=no
29559 if test $ac_cv_header_stdc = yes; then
29560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29561 if test "$cross_compiling" = yes; then
29564 cat >conftest.$ac_ext <<_ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29571 #include <stdlib.h>
29572 #if ((' ' & 0x0FF) == 0x020)
29573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29576 # define ISLOWER(c) \
29577 (('a' <= (c) && (c) <= 'i') \
29578 || ('j' <= (c) && (c) <= 'r') \
29579 || ('s' <= (c) && (c) <= 'z'))
29580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29588 for (i = 0; i < 256; i++)
29589 if (XOR (islower (i), ISLOWER (i))
29590 || toupper (i) != TOUPPER (i))
29595 rm -f conftest$ac_exeext
29596 if { (ac_try="$ac_link"
29597 case "(($ac_try" in
29598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29599 *) ac_try_echo
=$ac_try;;
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_link") 2>&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29606 { (case "(($ac_try" in
29607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_try") 2>&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29617 echo "$as_me: program exited with status $ac_status" >&5
29618 echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29621 ( exit $ac_status )
29622 ac_cv_header_stdc=no
29624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29630 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29631 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29632 if test $ac_cv_header_stdc = yes; then
29634 cat >>confdefs.h <<\_ACEOF
29635 #define STDC_HEADERS 1
29640 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29641 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29642 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29643 echo $ECHO_N "(cached) $ECHO_C" >&6
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29651 #include <sys/types.h>
29652 #include <sys/wait.h>
29653 #ifndef WEXITSTATUS
29654 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29657 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29665 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29670 rm -f conftest.$ac_objext
29671 if { (ac_try="$ac_compile"
29672 case "(($ac_try" in
29673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29674 *) ac_try_echo
=$ac_try;;
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
29679 grep -v '^ *+' conftest.er1
>conftest.err
29681 cat conftest.err
>&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } &&
29684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29697 *) ac_try_echo
=$ac_try;;
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29704 ac_cv_header_sys_wait_h
=yes
29706 echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.
$ac_ext >&5
29709 ac_cv_header_sys_wait_h
=no
29712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29714 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29715 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29716 if test $ac_cv_header_sys_wait_h = yes; then
29718 cat >>confdefs.h
<<\_ACEOF
29719 #define HAVE_SYS_WAIT_H 1
29724 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29725 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29726 if test "${ac_cv_header_time+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 cat >conftest.
$ac_ext <<_ACEOF
29732 cat confdefs.h
>>conftest.
$ac_ext
29733 cat >>conftest.
$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29735 #include <sys/types.h>
29736 #include <sys/time.h>
29742 if ((struct tm *) 0)
29748 rm -f conftest.
$ac_objext
29749 if { (ac_try
="$ac_compile"
29750 case "(($ac_try" in
29751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_compile") 2>conftest.er1
29757 grep -v '^ *+' conftest.er1 >conftest.err
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
29762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29763 { (case "(($ac_try" in
29764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29765 *) ac_try_echo
=$ac_try;;
29767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29768 (eval "$ac_try") 2>&5
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; } &&
29772 { ac_try
='test -s conftest.$ac_objext'
29773 { (case "(($ac_try" in
29774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_try") 2>&5
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; }; then
29782 ac_cv_header_time=yes
29784 echo "$as_me: failed program was:" >&5
29785 sed 's/^/| /' conftest.$ac_ext >&5
29787 ac_cv_header_time=no
29790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29793 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29794 if test $ac_cv_header_time = yes; then
29796 cat >>confdefs.h <<\_ACEOF
29797 #define TIME_WITH_SYS_TIME 1
29809 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29811 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29818 ac_res=`eval echo '${'$as_ac_Header'}'`
29819 { echo "$as_me:$LINENO: result: $ac_res" >&5
29820 echo "${ECHO_T}$ac_res" >&6; }
29822 # Is the header compilable?
29823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29825 cat >conftest.$ac_ext <<_ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29831 $ac_includes_default
29832 #include <$ac_header>
29834 rm -f conftest.$ac_objext
29835 if { (ac_try="$ac_compile"
29836 case "(($ac_try" in
29837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29838 *) ac_try_echo
=$ac_try;;
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_compile") 2>conftest.er1
29843 grep -v '^ *+' conftest.er1
>conftest.err
29845 cat conftest.err
>&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); } &&
29848 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29849 { (case "(($ac_try" in
29850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_try") 2>&5
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest.$ac_objext'
29859 { (case "(($ac_try" in
29860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29861 *) ac_try_echo
=$ac_try;;
29863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864 (eval "$ac_try") 2>&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
29868 ac_header_compiler
=yes
29870 echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.
$ac_ext >&5
29873 ac_header_compiler
=no
29876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29878 echo "${ECHO_T}$ac_header_compiler" >&6; }
29880 # Is the header present?
29881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29883 cat >conftest.
$ac_ext <<_ACEOF
29886 cat confdefs.h
>>conftest.
$ac_ext
29887 cat >>conftest.
$ac_ext <<_ACEOF
29888 /* end confdefs.h. */
29889 #include <$ac_header>
29891 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29892 case "(($ac_try" in
29893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29899 grep -v '^ *+' conftest.er1 >conftest.err
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } >/dev/null; then
29904 if test -s conftest.err; then
29905 ac_cpp_err=$ac_c_preproc_warn_flag
29906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29913 if test -z "$ac_cpp_err"; then
29914 ac_header_preproc=yes
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29919 ac_header_preproc=no
29922 rm -f conftest.err conftest.$ac_ext
29923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29924 echo "${ECHO_T}$ac_header_preproc" >&6; }
29926 # So? What about this header?
29927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29933 ac_header_preproc=yes
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29949 ## ----------------------------------- ##
29950 ## Report this to llvmbugs@cs.uiuc.edu ##
29951 ## ----------------------------------- ##
29953 ) | sed "s/^/$as_me: WARNING: /" >&2
29956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29959 echo $ECHO_N "(cached) $ECHO_C" >&6
29961 eval "$as_ac_Header=\$ac_header_preproc"
29963 ac_res=`eval echo '${'$as_ac_Header'}'`
29964 { echo "$as_me:$LINENO: result: $ac_res" >&5
29965 echo "${ECHO_T}$ac_res" >&6; }
29968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29969 cat >>confdefs.h <<_ACEOF
29970 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29983 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29985 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29990 echo $ECHO_N "(cached) $ECHO_C" >&6
29992 ac_res=`eval echo '${'$as_ac_Header'}'`
29993 { echo "$as_me:$LINENO: result: $ac_res" >&5
29994 echo "${ECHO_T}$ac_res" >&6; }
29996 # Is the header compilable?
29997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29999 cat >conftest.$ac_ext <<_ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h. */
30005 $ac_includes_default
30006 #include <$ac_header>
30008 rm -f conftest.$ac_objext
30009 if { (ac_try="$ac_compile"
30010 case "(($ac_try" in
30011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30012 *) ac_try_echo
=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_compile") 2>conftest.er1
30017 grep -v '^ *+' conftest.er1
>conftest.err
30019 cat conftest.err
>&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } &&
30022 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30023 { (case "(($ac_try" in
30024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_try") 2>&5
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; } &&
30032 { ac_try='test -s conftest.$ac_objext'
30033 { (case "(($ac_try" in
30034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30035 *) ac_try_echo
=$ac_try;;
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_try") 2>&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 ac_header_compiler
=yes
30044 echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.
$ac_ext >&5
30047 ac_header_compiler
=no
30050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30052 echo "${ECHO_T}$ac_header_compiler" >&6; }
30054 # Is the header present?
30055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30057 cat >conftest.
$ac_ext <<_ACEOF
30060 cat confdefs.h
>>conftest.
$ac_ext
30061 cat >>conftest.
$ac_ext <<_ACEOF
30062 /* end confdefs.h. */
30063 #include <$ac_header>
30065 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30066 case "(($ac_try" in
30067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30068 *) ac_try_echo=$ac_try;;
30070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30073 grep -v '^ *+' conftest.er1 >conftest.err
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); } >/dev/null; then
30078 if test -s conftest.err; then
30079 ac_cpp_err=$ac_c_preproc_warn_flag
30080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30087 if test -z "$ac_cpp_err"; then
30088 ac_header_preproc=yes
30090 echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 ac_header_preproc=no
30096 rm -f conftest.err conftest.$ac_ext
30097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30098 echo "${ECHO_T}$ac_header_preproc" >&6; }
30100 # So? What about this header?
30101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30107 ac_header_preproc=yes
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30123 ## ----------------------------------- ##
30124 ## Report this to llvmbugs@cs.uiuc.edu ##
30125 ## ----------------------------------- ##
30127 ) | sed "s/^/$as_me: WARNING: /" >&2
30130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 eval "$as_ac_Header=\$ac_header_preproc"
30137 ac_res=`eval echo '${'$as_ac_Header'}'`
30138 { echo "$as_me:$LINENO: result: $ac_res" >&5
30139 echo "${ECHO_T}$ac_res" >&6; }
30142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30143 cat >>confdefs.h <<_ACEOF
30144 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30153 for ac_header in utime.h windows.h
30155 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30162 ac_res=`eval echo '${'$as_ac_Header'}'`
30163 { echo "$as_me:$LINENO: result: $ac_res" >&5
30164 echo "${ECHO_T}$ac_res" >&6; }
30166 # Is the header compilable?
30167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30169 cat >conftest.$ac_ext <<_ACEOF
30172 cat confdefs.h >>conftest.$ac_ext
30173 cat >>conftest.$ac_ext <<_ACEOF
30174 /* end confdefs.h. */
30175 $ac_includes_default
30176 #include <$ac_header>
30178 rm -f conftest.$ac_objext
30179 if { (ac_try="$ac_compile"
30180 case "(($ac_try" in
30181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30182 *) ac_try_echo
=$ac_try;;
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_compile") 2>conftest.er1
30187 grep -v '^ *+' conftest.er1
>conftest.err
30189 cat conftest.err
>&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } &&
30192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30193 { (case "(($ac_try" in
30194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_try") 2>&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); }; } &&
30202 { ac_try='test -s conftest.$ac_objext'
30203 { (case "(($ac_try" in
30204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30205 *) ac_try_echo
=$ac_try;;
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208 (eval "$ac_try") 2>&5
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); }; }; then
30212 ac_header_compiler
=yes
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.
$ac_ext >&5
30217 ac_header_compiler
=no
30220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30222 echo "${ECHO_T}$ac_header_compiler" >&6; }
30224 # Is the header present?
30225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30227 cat >conftest.
$ac_ext <<_ACEOF
30230 cat confdefs.h
>>conftest.
$ac_ext
30231 cat >>conftest.
$ac_ext <<_ACEOF
30232 /* end confdefs.h. */
30233 #include <$ac_header>
30235 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30236 case "(($ac_try" in
30237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30243 grep -v '^ *+' conftest.er1 >conftest.err
30245 cat conftest.err >&5
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); } >/dev/null; then
30248 if test -s conftest.err; then
30249 ac_cpp_err=$ac_c_preproc_warn_flag
30250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30257 if test -z "$ac_cpp_err"; then
30258 ac_header_preproc=yes
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30263 ac_header_preproc=no
30266 rm -f conftest.err conftest.$ac_ext
30267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30268 echo "${ECHO_T}$ac_header_preproc" >&6; }
30270 # So? What about this header?
30271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30277 ac_header_preproc=yes
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30293 ## ----------------------------------- ##
30294 ## Report this to llvmbugs@cs.uiuc.edu ##
30295 ## ----------------------------------- ##
30297 ) | sed "s/^/$as_me: WARNING: /" >&2
30300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 eval "$as_ac_Header=\$ac_header_preproc"
30307 ac_res=`eval echo '${'$as_ac_Header'}'`
30308 { echo "$as_me:$LINENO: result: $ac_res" >&5
30309 echo "${ECHO_T}$ac_res" >&6; }
30312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30313 cat >>confdefs.h <<_ACEOF
30314 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30325 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30327 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30334 ac_res=`eval echo '${'$as_ac_Header'}'`
30335 { echo "$as_me:$LINENO: result: $ac_res" >&5
30336 echo "${ECHO_T}$ac_res" >&6; }
30338 # Is the header compilable?
30339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30341 cat >conftest.$ac_ext <<_ACEOF
30344 cat confdefs.h >>conftest.$ac_ext
30345 cat >>conftest.$ac_ext <<_ACEOF
30346 /* end confdefs.h. */
30347 $ac_includes_default
30348 #include <$ac_header>
30350 rm -f conftest.$ac_objext
30351 if { (ac_try="$ac_compile"
30352 case "(($ac_try" in
30353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30354 *) ac_try_echo
=$ac_try;;
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
30359 grep -v '^ *+' conftest.er1
>conftest.err
30361 cat conftest.err
>&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
30364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30365 { (case "(($ac_try" in
30366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_try") 2>&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest.$ac_objext'
30375 { (case "(($ac_try" in
30376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30377 *) ac_try_echo
=$ac_try;;
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_try") 2>&5
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; }; then
30384 ac_header_compiler
=yes
30386 echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.
$ac_ext >&5
30389 ac_header_compiler
=no
30392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30394 echo "${ECHO_T}$ac_header_compiler" >&6; }
30396 # Is the header present?
30397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30399 cat >conftest.
$ac_ext <<_ACEOF
30402 cat confdefs.h
>>conftest.
$ac_ext
30403 cat >>conftest.
$ac_ext <<_ACEOF
30404 /* end confdefs.h. */
30405 #include <$ac_header>
30407 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30408 case "(($ac_try" in
30409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30415 grep -v '^ *+' conftest.er1 >conftest.err
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } >/dev/null; then
30420 if test -s conftest.err; then
30421 ac_cpp_err=$ac_c_preproc_warn_flag
30422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30429 if test -z "$ac_cpp_err"; then
30430 ac_header_preproc=yes
30432 echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30435 ac_header_preproc=no
30438 rm -f conftest.err conftest.$ac_ext
30439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30440 echo "${ECHO_T}$ac_header_preproc" >&6; }
30442 # So? What about this header?
30443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30449 ac_header_preproc=yes
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30465 ## ----------------------------------- ##
30466 ## Report this to llvmbugs@cs.uiuc.edu ##
30467 ## ----------------------------------- ##
30469 ) | sed "s/^/$as_me: WARNING: /" >&2
30472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30477 eval "$as_ac_Header=\$ac_header_preproc"
30479 ac_res=`eval echo '${'$as_ac_Header'}'`
30480 { echo "$as_me:$LINENO: result: $ac_res" >&5
30481 echo "${ECHO_T}$ac_res" >&6; }
30484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30485 cat >>confdefs.h <<_ACEOF
30486 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30497 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30499 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30506 ac_res=`eval echo '${'$as_ac_Header'}'`
30507 { echo "$as_me:$LINENO: result: $ac_res" >&5
30508 echo "${ECHO_T}$ac_res" >&6; }
30510 # Is the header compilable?
30511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30513 cat >conftest.$ac_ext <<_ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30519 $ac_includes_default
30520 #include <$ac_header>
30522 rm -f conftest.$ac_objext
30523 if { (ac_try="$ac_compile"
30524 case "(($ac_try" in
30525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30526 *) ac_try_echo
=$ac_try;;
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_compile") 2>conftest.er1
30531 grep -v '^ *+' conftest.er1
>conftest.err
30533 cat conftest.err
>&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537 { (case "(($ac_try" in
30538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest.$ac_objext'
30547 { (case "(($ac_try" in
30548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30549 *) ac_try_echo
=$ac_try;;
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_try") 2>&5
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
30556 ac_header_compiler
=yes
30558 echo "$as_me: failed program was:" >&5
30559 sed 's/^/| /' conftest.
$ac_ext >&5
30561 ac_header_compiler
=no
30564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30566 echo "${ECHO_T}$ac_header_compiler" >&6; }
30568 # Is the header present?
30569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30571 cat >conftest.
$ac_ext <<_ACEOF
30574 cat confdefs.h
>>conftest.
$ac_ext
30575 cat >>conftest.
$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 #include <$ac_header>
30579 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30580 case "(($ac_try" in
30581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30582 *) ac_try_echo=$ac_try;;
30584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30587 grep -v '^ *+' conftest.er1 >conftest.err
30589 cat conftest.err >&5
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } >/dev/null; then
30592 if test -s conftest.err; then
30593 ac_cpp_err=$ac_c_preproc_warn_flag
30594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30601 if test -z "$ac_cpp_err"; then
30602 ac_header_preproc=yes
30604 echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30607 ac_header_preproc=no
30610 rm -f conftest.err conftest.$ac_ext
30611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30612 echo "${ECHO_T}$ac_header_preproc" >&6; }
30614 # So? What about this header?
30615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30621 ac_header_preproc=yes
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30637 ## ----------------------------------- ##
30638 ## Report this to llvmbugs@cs.uiuc.edu ##
30639 ## ----------------------------------- ##
30641 ) | sed "s/^/$as_me: WARNING: /" >&2
30644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30649 eval "$as_ac_Header=\$ac_header_preproc"
30651 ac_res=`eval echo '${'$as_ac_Header'}'`
30652 { echo "$as_me:$LINENO: result: $ac_res" >&5
30653 echo "${ECHO_T}$ac_res" >&6; }
30656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30657 cat >>confdefs.h <<_ACEOF
30658 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30665 if test "$ENABLE_THREADS" -eq 1 ; then
30667 for ac_header in pthread.h
30669 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30676 ac_res=`eval echo '${'$as_ac_Header'}'`
30677 { echo "$as_me:$LINENO: result: $ac_res" >&5
30678 echo "${ECHO_T}$ac_res" >&6; }
30680 # Is the header compilable?
30681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30683 cat >conftest.$ac_ext <<_ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30689 $ac_includes_default
30690 #include <$ac_header>
30692 rm -f conftest.$ac_objext
30693 if { (ac_try="$ac_compile"
30694 case "(($ac_try" in
30695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30696 *) ac_try_echo
=$ac_try;;
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_compile") 2>conftest.er1
30701 grep -v '^ *+' conftest.er1
>conftest.err
30703 cat conftest.err
>&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707 { (case "(($ac_try" in
30708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; } &&
30716 { ac_try='test -s conftest.$ac_objext'
30717 { (case "(($ac_try" in
30718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30719 *) ac_try_echo
=$ac_try;;
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_try") 2>&5
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
30726 ac_header_compiler
=yes
30728 echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.
$ac_ext >&5
30731 ac_header_compiler
=no
30734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30736 echo "${ECHO_T}$ac_header_compiler" >&6; }
30738 # Is the header present?
30739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30741 cat >conftest.
$ac_ext <<_ACEOF
30744 cat confdefs.h
>>conftest.
$ac_ext
30745 cat >>conftest.
$ac_ext <<_ACEOF
30746 /* end confdefs.h. */
30747 #include <$ac_header>
30749 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30750 case "(($ac_try" in
30751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30757 grep -v '^ *+' conftest.er1 >conftest.err
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } >/dev/null; then
30762 if test -s conftest.err; then
30763 ac_cpp_err=$ac_c_preproc_warn_flag
30764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30771 if test -z "$ac_cpp_err"; then
30772 ac_header_preproc=yes
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30777 ac_header_preproc=no
30780 rm -f conftest.err conftest.$ac_ext
30781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30782 echo "${ECHO_T}$ac_header_preproc" >&6; }
30784 # So? What about this header?
30785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30791 ac_header_preproc=yes
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30807 ## ----------------------------------- ##
30808 ## Report this to llvmbugs@cs.uiuc.edu ##
30809 ## ----------------------------------- ##
30811 ) | sed "s/^/$as_me: WARNING: /" >&2
30814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30819 eval "$as_ac_Header=\$ac_header_preproc"
30821 ac_res=`eval echo '${'$as_ac_Header'}'`
30822 { echo "$as_me:$LINENO: result: $ac_res" >&5
30823 echo "${ECHO_T}$ac_res" >&6; }
30826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30827 cat >>confdefs.h <<_ACEOF
30828 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30844 if test "$llvm_cv_enable_libffi" = "yes" ; then
30847 for ac_header in ffi.h ffi/ffi.h
30849 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30854 echo $ECHO_N "(cached) $ECHO_C" >&6
30856 ac_res=`eval echo '${'$as_ac_Header'}'`
30857 { echo "$as_me:$LINENO: result: $ac_res" >&5
30858 echo "${ECHO_T}$ac_res" >&6; }
30860 # Is the header compilable?
30861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30863 cat >conftest.$ac_ext <<_ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h. */
30869 $ac_includes_default
30870 #include <$ac_header>
30872 rm -f conftest.$ac_objext
30873 if { (ac_try="$ac_compile"
30874 case "(($ac_try" in
30875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30876 *) ac_try_echo
=$ac_try;;
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_compile") 2>conftest.er1
30881 grep -v '^ *+' conftest.er1
>conftest.err
30883 cat conftest.err
>&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
30886 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30887 { (case "(($ac_try" in
30888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_try") 2>&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; } &&
30896 { ac_try='test -s conftest.$ac_objext'
30897 { (case "(($ac_try" in
30898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30899 *) ac_try_echo
=$ac_try;;
30901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902 (eval "$ac_try") 2>&5
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; }; then
30906 ac_header_compiler
=yes
30908 echo "$as_me: failed program was:" >&5
30909 sed 's/^/| /' conftest.
$ac_ext >&5
30911 ac_header_compiler
=no
30914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30916 echo "${ECHO_T}$ac_header_compiler" >&6; }
30918 # Is the header present?
30919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30921 cat >conftest.
$ac_ext <<_ACEOF
30924 cat confdefs.h
>>conftest.
$ac_ext
30925 cat >>conftest.
$ac_ext <<_ACEOF
30926 /* end confdefs.h. */
30927 #include <$ac_header>
30929 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30930 case "(($ac_try" in
30931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30932 *) ac_try_echo=$ac_try;;
30934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30937 grep -v '^ *+' conftest.er1 >conftest.err
30939 cat conftest.err >&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); } >/dev/null; then
30942 if test -s conftest.err; then
30943 ac_cpp_err=$ac_c_preproc_warn_flag
30944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30951 if test -z "$ac_cpp_err"; then
30952 ac_header_preproc=yes
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_header_preproc=no
30960 rm -f conftest.err conftest.$ac_ext
30961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30962 echo "${ECHO_T}$ac_header_preproc" >&6; }
30964 # So? What about this header?
30965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30971 ac_header_preproc=yes
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30987 ## ----------------------------------- ##
30988 ## Report this to llvmbugs@cs.uiuc.edu ##
30989 ## ----------------------------------- ##
30991 ) | sed "s/^/$as_me: WARNING: /" >&2
30994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30997 echo $ECHO_N "(cached) $ECHO_C" >&6
30999 eval "$as_ac_Header=\$ac_header_preproc"
31001 ac_res=`eval echo '${'$as_ac_Header'}'`
31002 { echo "$as_me:$LINENO: result: $ac_res" >&5
31003 echo "${ECHO_T}$ac_res" >&6; }
31006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31007 cat >>confdefs.h <<_ACEOF
31008 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
31019 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31020 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31021 if test "${ac_cv_huge_val_sanity+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31026 ac_cpp='$CXXCPP $CPPFLAGS'
31027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31032 if test "$cross_compiling" = yes; then
31033 ac_cv_huge_val_sanity=yes
31035 cat >conftest.$ac_ext <<_ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h. */
31045 double x = HUGE_VAL; return x != x;
31050 rm -f conftest$ac_exeext
31051 if { (ac_try="$ac_link"
31052 case "(($ac_try" in
31053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31054 *) ac_try_echo
=$ac_try;;
31056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31057 (eval "$ac_link") 2>&5
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31061 { (case "(($ac_try" in
31062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_try") 2>&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 ac_cv_huge_val_sanity=yes
31072 echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31076 ( exit $ac_status )
31077 ac_cv_huge_val_sanity=no
31079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31084 ac_cpp='$CPP $CPPFLAGS'
31085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31091 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31092 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31093 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31096 { echo "$as_me:$LINENO: checking for pid_t" >&5
31097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31098 if test "${ac_cv_type_pid_t+set}" = set; then
31099 echo $ECHO_N "(cached) $ECHO_C" >&6
31101 cat >conftest.$ac_ext <<_ACEOF
31104 cat confdefs.h >>conftest.$ac_ext
31105 cat >>conftest.$ac_ext <<_ACEOF
31106 /* end confdefs.h. */
31107 $ac_includes_default
31108 typedef pid_t ac__type_new_;
31112 if ((ac__type_new_ *) 0)
31114 if (sizeof (ac__type_new_))
31120 rm -f conftest.$ac_objext
31121 if { (ac_try="$ac_compile"
31122 case "(($ac_try" in
31123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31124 *) ac_try_echo
=$ac_try;;
31126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127 (eval "$ac_compile") 2>conftest.er1
31129 grep -v '^ *+' conftest.er1
>conftest.err
31131 cat conftest.err
>&5
31132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); } &&
31134 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31135 { (case "(($ac_try" in
31136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31137 *) ac_try_echo=$ac_try;;
31139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31140 (eval "$ac_try") 2>&5
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); }; } &&
31144 { ac_try='test -s conftest.$ac_objext'
31145 { (case "(($ac_try" in
31146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31147 *) ac_try_echo
=$ac_try;;
31149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150 (eval "$ac_try") 2>&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; }; then
31154 ac_cv_type_pid_t
=yes
31156 echo "$as_me: failed program was:" >&5
31157 sed 's/^/| /' conftest.
$ac_ext >&5
31159 ac_cv_type_pid_t
=no
31162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31164 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31166 if test $ac_cv_type_pid_t = yes; then
31170 cat >>confdefs.h
<<_ACEOF
31176 { echo "$as_me:$LINENO: checking for size_t" >&5
31177 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31178 if test "${ac_cv_type_size_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31181 cat >conftest.
$ac_ext <<_ACEOF
31184 cat confdefs.h
>>conftest.
$ac_ext
31185 cat >>conftest.
$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31187 $ac_includes_default
31188 typedef size_t ac__type_new_;
31192 if ((ac__type_new_ *) 0)
31194 if (sizeof (ac__type_new_))
31200 rm -f conftest.
$ac_objext
31201 if { (ac_try
="$ac_compile"
31202 case "(($ac_try" in
31203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31204 *) ac_try_echo=$ac_try;;
31206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_compile") 2>conftest.er1
31209 grep -v '^ *+' conftest.er1 >conftest.err
31211 cat conftest.err >&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31215 { (case "(($ac_try" in
31216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31217 *) ac_try_echo
=$ac_try;;
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_try") 2>&5
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try
='test -s conftest.$ac_objext'
31225 { (case "(($ac_try" in
31226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_try") 2>&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31234 ac_cv_type_size_t=yes
31236 echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31239 ac_cv_type_size_t=no
31242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31244 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31245 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31246 if test $ac_cv_type_size_t = yes; then
31250 cat >>confdefs.h <<_ACEOF
31251 #define size_t unsigned int
31256 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31257 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31258 if test "${ac_cv_type_signal+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31261 cat >conftest.$ac_ext <<_ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h. */
31267 #include <sys/types.h>
31268 #include <signal.h>
31273 return *(signal (0, 0)) (0) == 1;
31278 rm -f conftest.$ac_objext
31279 if { (ac_try="$ac_compile"
31280 case "(($ac_try" in
31281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31282 *) ac_try_echo
=$ac_try;;
31284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285 (eval "$ac_compile") 2>conftest.er1
31287 grep -v '^ *+' conftest.er1
>conftest.err
31289 cat conftest.err
>&5
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); } &&
31292 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31293 { (case "(($ac_try" in
31294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; } &&
31302 { ac_try='test -s conftest.$ac_objext'
31303 { (case "(($ac_try" in
31304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31305 *) ac_try_echo
=$ac_try;;
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_try") 2>&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; }; then
31312 ac_cv_type_signal
=int
31314 echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.
$ac_ext >&5
31317 ac_cv_type_signal
=void
31320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31322 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31323 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31325 cat >>confdefs.h
<<_ACEOF
31326 #define RETSIGTYPE $ac_cv_type_signal
31330 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31331 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31332 if test "${ac_cv_struct_tm+set}" = set; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
31335 cat >conftest.
$ac_ext <<_ACEOF
31338 cat confdefs.h
>>conftest.
$ac_ext
31339 cat >>conftest.
$ac_ext <<_ACEOF
31340 /* end confdefs.h. */
31341 #include <sys/types.h>
31347 struct tm *tp; tp->tm_sec;
31352 rm -f conftest.
$ac_objext
31353 if { (ac_try
="$ac_compile"
31354 case "(($ac_try" in
31355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31356 *) ac_try_echo=$ac_try;;
31358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31359 (eval "$ac_compile") 2>conftest.er1
31361 grep -v '^ *+' conftest.er1 >conftest.err
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31367 { (case "(($ac_try" in
31368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31369 *) ac_try_echo
=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_try") 2>&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); }; } &&
31376 { ac_try
='test -s conftest.$ac_objext'
31377 { (case "(($ac_try" in
31378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; }; then
31386 ac_cv_struct_tm=time.h
31388 echo "$as_me: failed program was:" >&5
31389 sed 's/^/| /' conftest.$ac_ext >&5
31391 ac_cv_struct_tm=sys/time.h
31394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31396 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31397 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31398 if test $ac_cv_struct_tm = sys/time.h; then
31400 cat >>confdefs.h <<\_ACEOF
31401 #define TM_IN_SYS_TIME 1
31406 { echo "$as_me:$LINENO: checking for int64_t" >&5
31407 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31408 if test "${ac_cv_type_int64_t+set}" = set; then
31409 echo $ECHO_N "(cached) $ECHO_C" >&6
31411 cat >conftest.$ac_ext <<_ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31417 $ac_includes_default
31418 typedef int64_t ac__type_new_;
31422 if ((ac__type_new_ *) 0)
31424 if (sizeof (ac__type_new_))
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31434 *) ac_try_echo
=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31439 grep -v '^ *+' conftest.er1
>conftest.err
31441 cat conftest.err
>&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } &&
31444 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31445 { (case "(($ac_try" in
31446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest.$ac_objext'
31455 { (case "(($ac_try" in
31456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31457 *) ac_try_echo
=$ac_try;;
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 ac_cv_type_int64_t
=yes
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.
$ac_ext >&5
31469 ac_cv_type_int64_t
=no
31472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31474 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31475 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31476 if test $ac_cv_type_int64_t = yes; then
31478 cat >>confdefs.h
<<_ACEOF
31479 #define HAVE_INT64_T 1
31484 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31485 echo "$as_me: error: Type int64_t required but not found" >&2;}
31486 { (exit 1); exit 1; }; }
31489 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31490 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31491 if test "${ac_cv_type_uint64_t+set}" = set; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31494 cat >conftest.
$ac_ext <<_ACEOF
31497 cat confdefs.h
>>conftest.
$ac_ext
31498 cat >>conftest.
$ac_ext <<_ACEOF
31499 /* end confdefs.h. */
31500 $ac_includes_default
31501 typedef uint64_t ac__type_new_;
31505 if ((ac__type_new_ *) 0)
31507 if (sizeof (ac__type_new_))
31513 rm -f conftest.
$ac_objext
31514 if { (ac_try
="$ac_compile"
31515 case "(($ac_try" in
31516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_compile") 2>conftest.er1
31522 grep -v '^ *+' conftest.er1 >conftest.err
31524 cat conftest.err >&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } &&
31527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31528 { (case "(($ac_try" in
31529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31530 *) ac_try_echo
=$ac_try;;
31532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31533 (eval "$ac_try") 2>&5
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; } &&
31537 { ac_try
='test -s conftest.$ac_objext'
31538 { (case "(($ac_try" in
31539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31540 *) ac_try_echo=$ac_try;;
31542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543 (eval "$ac_try") 2>&5
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); }; }; then
31547 ac_cv_type_uint64_t=yes
31549 echo "$as_me: failed program was:" >&5
31550 sed 's/^/| /' conftest.$ac_ext >&5
31552 ac_cv_type_uint64_t=no
31555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31557 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31558 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31559 if test $ac_cv_type_uint64_t = yes; then
31561 cat >>confdefs.h <<_ACEOF
31562 #define HAVE_UINT64_T 1
31567 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31568 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31569 if test "${ac_cv_type_u_int64_t+set}" = set; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31572 cat >conftest.$ac_ext <<_ACEOF
31575 cat confdefs.h >>conftest.$ac_ext
31576 cat >>conftest.$ac_ext <<_ACEOF
31577 /* end confdefs.h. */
31578 $ac_includes_default
31579 typedef u_int64_t ac__type_new_;
31583 if ((ac__type_new_ *) 0)
31585 if (sizeof (ac__type_new_))
31591 rm -f conftest.$ac_objext
31592 if { (ac_try="$ac_compile"
31593 case "(($ac_try" in
31594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31595 *) ac_try_echo
=$ac_try;;
31597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_compile") 2>conftest.er1
31600 grep -v '^ *+' conftest.er1
>conftest.err
31602 cat conftest.err
>&5
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); } &&
31605 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31606 { (case "(($ac_try" in
31607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_try") 2>&5
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
31616 { (case "(($ac_try" in
31617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31618 *) ac_try_echo
=$ac_try;;
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_try") 2>&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; }; then
31625 ac_cv_type_u_int64_t
=yes
31627 echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.
$ac_ext >&5
31630 ac_cv_type_u_int64_t
=no
31633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31635 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31636 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31637 if test $ac_cv_type_u_int64_t = yes; then
31639 cat >>confdefs.h
<<_ACEOF
31640 #define HAVE_U_INT64_T 1
31645 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31646 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31647 { (exit 1); exit 1; }; }
31661 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31666 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31667 echo $ECHO_N "(cached) $ECHO_C" >&6
31669 cat >conftest.
$ac_ext <<_ACEOF
31672 cat confdefs.h
>>conftest.
$ac_ext
31673 cat >>conftest.
$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31677 #define $ac_func innocuous_$ac_func
31679 /* System header to define __stub macros and hopefully few prototypes,
31680 which can conflict with char $ac_func (); below.
31681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31682 <limits.h> exists even on freestanding compilers. */
31685 # include <limits.h>
31687 # include <assert.h>
31692 /* Override any GCC internal prototype to avoid an error.
31693 Use char because int might match the return type of a GCC
31694 builtin and then its argument prototype would still apply. */
31699 /* The GNU C library defines this for functions which it implements
31700 to always fail with ENOSYS. Some functions are actually named
31701 something starting with __ and the normal name is an alias. */
31702 #if defined __stub_$ac_func || defined __stub___$ac_func
31709 return $ac_func ();
31714 rm -f conftest.
$ac_objext conftest
$ac_exeext
31715 if { (ac_try
="$ac_link"
31716 case "(($ac_try" in
31717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_link") 2>conftest.er1
31723 grep -v '^ *+' conftest.er1 >conftest.err
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } &&
31728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31729 { (case "(($ac_try" in
31730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31731 *) ac_try_echo
=$ac_try;;
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_try") 2>&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; } &&
31738 { ac_try
='test -s conftest$ac_exeext'
31739 { (case "(($ac_try" in
31740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_try") 2>&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; }; then
31748 eval "$as_ac_var=yes"
31750 echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31753 eval "$as_ac_var=no"
31756 rm -f core conftest.err conftest.$ac_objext \
31757 conftest$ac_exeext conftest.$ac_ext
31759 ac_res=`eval echo '${'$as_ac_var'}'`
31760 { echo "$as_me:$LINENO: result: $ac_res" >&5
31761 echo "${ECHO_T}$ac_res" >&6; }
31762 if test `eval echo '${'$as_ac_var'}'` = yes; then
31763 cat >>confdefs.h <<_ACEOF
31764 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31774 for ac_func in powf fmodf strtof round
31776 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31780 echo $ECHO_N "(cached) $ECHO_C" >&6
31782 cat >conftest.$ac_ext <<_ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h. */
31788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31790 #define $ac_func innocuous_$ac_func
31792 /* System header to define __stub macros and hopefully few prototypes,
31793 which can conflict with char $ac_func (); below.
31794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31795 <limits.h> exists even on freestanding compilers. */
31798 # include <limits.h>
31800 # include <assert.h>
31805 /* Override any GCC internal prototype to avoid an error.
31806 Use char because int might match the return type of a GCC
31807 builtin and then its argument prototype would still apply. */
31812 /* The GNU C library defines this for functions which it implements
31813 to always fail with ENOSYS. Some functions are actually named
31814 something starting with __ and the normal name is an alias. */
31815 #if defined __stub_$ac_func || defined __stub___$ac_func
31822 return $ac_func ();
31827 rm -f conftest.$ac_objext conftest$ac_exeext
31828 if { (ac_try="$ac_link"
31829 case "(($ac_try" in
31830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31831 *) ac_try_echo
=$ac_try;;
31833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834 (eval "$ac_link") 2>conftest.er1
31836 grep -v '^ *+' conftest.er1
>conftest.err
31838 cat conftest.err
>&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } &&
31841 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31842 { (case "(($ac_try" in
31843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
31852 { (case "(($ac_try" in
31853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31854 *) ac_try_echo
=$ac_try;;
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_try") 2>&5
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; }; then
31861 eval "$as_ac_var=yes"
31863 echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.
$ac_ext >&5
31866 eval "$as_ac_var=no"
31869 rm -f core conftest.err conftest.
$ac_objext \
31870 conftest
$ac_exeext conftest.
$ac_ext
31872 ac_res
=`eval echo '${'$as_ac_var'}'`
31873 { echo "$as_me:$LINENO: result: $ac_res" >&5
31874 echo "${ECHO_T}$ac_res" >&6; }
31875 if test `eval echo '${'$as_ac_var'}'` = yes; then
31876 cat >>confdefs.h
<<_ACEOF
31877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31888 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
31890 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31893 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31896 cat >conftest.
$ac_ext <<_ACEOF
31899 cat confdefs.h
>>conftest.
$ac_ext
31900 cat >>conftest.
$ac_ext <<_ACEOF
31901 /* end confdefs.h. */
31902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31904 #define $ac_func innocuous_$ac_func
31906 /* System header to define __stub macros and hopefully few prototypes,
31907 which can conflict with char $ac_func (); below.
31908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31909 <limits.h> exists even on freestanding compilers. */
31912 # include <limits.h>
31914 # include <assert.h>
31919 /* Override any GCC internal prototype to avoid an error.
31920 Use char because int might match the return type of a GCC
31921 builtin and then its argument prototype would still apply. */
31926 /* The GNU C library defines this for functions which it implements
31927 to always fail with ENOSYS. Some functions are actually named
31928 something starting with __ and the normal name is an alias. */
31929 #if defined __stub_$ac_func || defined __stub___$ac_func
31936 return $ac_func ();
31941 rm -f conftest.
$ac_objext conftest
$ac_exeext
31942 if { (ac_try
="$ac_link"
31943 case "(($ac_try" in
31944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_link") 2>conftest.er1
31950 grep -v '^ *+' conftest.er1 >conftest.err
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } &&
31955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31956 { (case "(($ac_try" in
31957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31958 *) ac_try_echo
=$ac_try;;
31960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961 (eval "$ac_try") 2>&5
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; } &&
31965 { ac_try
='test -s conftest$ac_exeext'
31966 { (case "(($ac_try" in
31967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_try") 2>&5
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; }; then
31975 eval "$as_ac_var=yes"
31977 echo "$as_me: failed program was:" >&5
31978 sed 's/^/| /' conftest.$ac_ext >&5
31980 eval "$as_ac_var=no"
31983 rm -f core conftest.err conftest.$ac_objext \
31984 conftest$ac_exeext conftest.$ac_ext
31986 ac_res=`eval echo '${'$as_ac_var'}'`
31987 { echo "$as_me:$LINENO: result: $ac_res" >&5
31988 echo "${ECHO_T}$ac_res" >&6; }
31989 if test `eval echo '${'$as_ac_var'}'` = yes; then
31990 cat >>confdefs.h <<_ACEOF
31991 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32000 for ac_func in isatty mkdtemp mkstemp
32002 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32008 cat >conftest.$ac_ext <<_ACEOF
32011 cat confdefs.h >>conftest.$ac_ext
32012 cat >>conftest.$ac_ext <<_ACEOF
32013 /* end confdefs.h. */
32014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32016 #define $ac_func innocuous_$ac_func
32018 /* System header to define __stub macros and hopefully few prototypes,
32019 which can conflict with char $ac_func (); below.
32020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32021 <limits.h> exists even on freestanding compilers. */
32024 # include <limits.h>
32026 # include <assert.h>
32031 /* Override any GCC internal prototype to avoid an error.
32032 Use char because int might match the return type of a GCC
32033 builtin and then its argument prototype would still apply. */
32038 /* The GNU C library defines this for functions which it implements
32039 to always fail with ENOSYS. Some functions are actually named
32040 something starting with __ and the normal name is an alias. */
32041 #if defined __stub_$ac_func || defined __stub___$ac_func
32048 return $ac_func ();
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (ac_try="$ac_link"
32055 case "(($ac_try" in
32056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32057 *) ac_try_echo
=$ac_try;;
32059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32060 (eval "$ac_link") 2>conftest.er1
32062 grep -v '^ *+' conftest.er1
>conftest.err
32064 cat conftest.err
>&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); } &&
32067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32068 { (case "(($ac_try" in
32069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; } &&
32077 { ac_try='test -s conftest$ac_exeext'
32078 { (case "(($ac_try" in
32079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32080 *) ac_try_echo
=$ac_try;;
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_try") 2>&5
32085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086 (exit $ac_status); }; }; then
32087 eval "$as_ac_var=yes"
32089 echo "$as_me: failed program was:" >&5
32090 sed 's/^/| /' conftest.
$ac_ext >&5
32092 eval "$as_ac_var=no"
32095 rm -f core conftest.err conftest.
$ac_objext \
32096 conftest
$ac_exeext conftest.
$ac_ext
32098 ac_res
=`eval echo '${'$as_ac_var'}'`
32099 { echo "$as_me:$LINENO: result: $ac_res" >&5
32100 echo "${ECHO_T}$ac_res" >&6; }
32101 if test `eval echo '${'$as_ac_var'}'` = yes; then
32102 cat >>confdefs.h
<<_ACEOF
32103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32114 for ac_func
in mktemp realpath sbrk setrlimit strdup
32116 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32119 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32120 echo $ECHO_N "(cached) $ECHO_C" >&6
32122 cat >conftest.
$ac_ext <<_ACEOF
32125 cat confdefs.h
>>conftest.
$ac_ext
32126 cat >>conftest.
$ac_ext <<_ACEOF
32127 /* end confdefs.h. */
32128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32130 #define $ac_func innocuous_$ac_func
32132 /* System header to define __stub macros and hopefully few prototypes,
32133 which can conflict with char $ac_func (); below.
32134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32135 <limits.h> exists even on freestanding compilers. */
32138 # include <limits.h>
32140 # include <assert.h>
32145 /* Override any GCC internal prototype to avoid an error.
32146 Use char because int might match the return type of a GCC
32147 builtin and then its argument prototype would still apply. */
32152 /* The GNU C library defines this for functions which it implements
32153 to always fail with ENOSYS. Some functions are actually named
32154 something starting with __ and the normal name is an alias. */
32155 #if defined __stub_$ac_func || defined __stub___$ac_func
32162 return $ac_func ();
32167 rm -f conftest.
$ac_objext conftest
$ac_exeext
32168 if { (ac_try
="$ac_link"
32169 case "(($ac_try" in
32170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32171 *) ac_try_echo=$ac_try;;
32173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32174 (eval "$ac_link") 2>conftest.er1
32176 grep -v '^ *+' conftest.er1 >conftest.err
32178 cat conftest.err >&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); } &&
32181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32182 { (case "(($ac_try" in
32183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32184 *) ac_try_echo
=$ac_try;;
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187 (eval "$ac_try") 2>&5
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; } &&
32191 { ac_try
='test -s conftest$ac_exeext'
32192 { (case "(($ac_try" in
32193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32194 *) ac_try_echo=$ac_try;;
32196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32197 (eval "$ac_try") 2>&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); }; }; then
32201 eval "$as_ac_var=yes"
32203 echo "$as_me: failed program was:" >&5
32204 sed 's/^/| /' conftest.$ac_ext >&5
32206 eval "$as_ac_var=no"
32209 rm -f core conftest.err conftest.$ac_objext \
32210 conftest$ac_exeext conftest.$ac_ext
32212 ac_res=`eval echo '${'$as_ac_var'}'`
32213 { echo "$as_me:$LINENO: result: $ac_res" >&5
32214 echo "${ECHO_T}$ac_res" >&6; }
32215 if test `eval echo '${'$as_ac_var'}'` = yes; then
32216 cat >>confdefs.h <<_ACEOF
32217 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32226 for ac_func in strerror strerror_r strerror_s
32228 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 cat >conftest.$ac_ext <<_ACEOF
32237 cat confdefs.h >>conftest.$ac_ext
32238 cat >>conftest.$ac_ext <<_ACEOF
32239 /* end confdefs.h. */
32240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32242 #define $ac_func innocuous_$ac_func
32244 /* System header to define __stub macros and hopefully few prototypes,
32245 which can conflict with char $ac_func (); below.
32246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32247 <limits.h> exists even on freestanding compilers. */
32250 # include <limits.h>
32252 # include <assert.h>
32257 /* Override any GCC internal prototype to avoid an error.
32258 Use char because int might match the return type of a GCC
32259 builtin and then its argument prototype would still apply. */
32264 /* The GNU C library defines this for functions which it implements
32265 to always fail with ENOSYS. Some functions are actually named
32266 something starting with __ and the normal name is an alias. */
32267 #if defined __stub_$ac_func || defined __stub___$ac_func
32274 return $ac_func ();
32279 rm -f conftest.$ac_objext conftest$ac_exeext
32280 if { (ac_try="$ac_link"
32281 case "(($ac_try" in
32282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32283 *) ac_try_echo
=$ac_try;;
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_link") 2>conftest.er1
32288 grep -v '^ *+' conftest.er1
>conftest.err
32290 cat conftest.err
>&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
32293 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32294 { (case "(($ac_try" in
32295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_try") 2>&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); }; } &&
32303 { ac_try='test -s conftest$ac_exeext'
32304 { (case "(($ac_try" in
32305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32306 *) ac_try_echo
=$ac_try;;
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_try") 2>&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 eval "$as_ac_var=yes"
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.
$ac_ext >&5
32318 eval "$as_ac_var=no"
32321 rm -f core conftest.err conftest.
$ac_objext \
32322 conftest
$ac_exeext conftest.
$ac_ext
32324 ac_res
=`eval echo '${'$as_ac_var'}'`
32325 { echo "$as_me:$LINENO: result: $ac_res" >&5
32326 echo "${ECHO_T}$ac_res" >&6; }
32327 if test `eval echo '${'$as_ac_var'}'` = yes; then
32328 cat >>confdefs.h
<<_ACEOF
32329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32339 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
32341 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32344 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32345 echo $ECHO_N "(cached) $ECHO_C" >&6
32347 cat >conftest.
$ac_ext <<_ACEOF
32350 cat confdefs.h
>>conftest.
$ac_ext
32351 cat >>conftest.
$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32355 #define $ac_func innocuous_$ac_func
32357 /* System header to define __stub macros and hopefully few prototypes,
32358 which can conflict with char $ac_func (); below.
32359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32360 <limits.h> exists even on freestanding compilers. */
32363 # include <limits.h>
32365 # include <assert.h>
32370 /* Override any GCC internal prototype to avoid an error.
32371 Use char because int might match the return type of a GCC
32372 builtin and then its argument prototype would still apply. */
32377 /* The GNU C library defines this for functions which it implements
32378 to always fail with ENOSYS. Some functions are actually named
32379 something starting with __ and the normal name is an alias. */
32380 #if defined __stub_$ac_func || defined __stub___$ac_func
32387 return $ac_func ();
32392 rm -f conftest.
$ac_objext conftest
$ac_exeext
32393 if { (ac_try
="$ac_link"
32394 case "(($ac_try" in
32395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_link") 2>conftest.er1
32401 grep -v '^ *+' conftest.er1 >conftest.err
32403 cat conftest.err >&5
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); } &&
32406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32407 { (case "(($ac_try" in
32408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32409 *) ac_try_echo
=$ac_try;;
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_try") 2>&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); }; } &&
32416 { ac_try
='test -s conftest$ac_exeext'
32417 { (case "(($ac_try" in
32418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32419 *) ac_try_echo=$ac_try;;
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422 (eval "$ac_try") 2>&5
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; }; then
32426 eval "$as_ac_var=yes"
32428 echo "$as_me: failed program was:" >&5
32429 sed 's/^/| /' conftest.$ac_ext >&5
32431 eval "$as_ac_var=no"
32434 rm -f core conftest.err conftest.$ac_objext \
32435 conftest$ac_exeext conftest.$ac_ext
32437 ac_res=`eval echo '${'$as_ac_var'}'`
32438 { echo "$as_me:$LINENO: result: $ac_res" >&5
32439 echo "${ECHO_T}$ac_res" >&6; }
32440 if test `eval echo '${'$as_ac_var'}'` = yes; then
32441 cat >>confdefs.h <<_ACEOF
32442 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32452 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32454 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32458 echo $ECHO_N "(cached) $ECHO_C" >&6
32460 cat >conftest.$ac_ext <<_ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32468 #define $ac_func innocuous_$ac_func
32470 /* System header to define __stub macros and hopefully few prototypes,
32471 which can conflict with char $ac_func (); below.
32472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32473 <limits.h> exists even on freestanding compilers. */
32476 # include <limits.h>
32478 # include <assert.h>
32483 /* Override any GCC internal prototype to avoid an error.
32484 Use char because int might match the return type of a GCC
32485 builtin and then its argument prototype would still apply. */
32490 /* The GNU C library defines this for functions which it implements
32491 to always fail with ENOSYS. Some functions are actually named
32492 something starting with __ and the normal name is an alias. */
32493 #if defined __stub_$ac_func || defined __stub___$ac_func
32500 return $ac_func ();
32505 rm -f conftest.$ac_objext conftest$ac_exeext
32506 if { (ac_try="$ac_link"
32507 case "(($ac_try" in
32508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32509 *) ac_try_echo
=$ac_try;;
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_link") 2>conftest.er1
32514 grep -v '^ *+' conftest.er1
>conftest.err
32516 cat conftest.err
>&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } &&
32519 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32520 { (case "(($ac_try" in
32521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_try") 2>&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; } &&
32529 { ac_try='test -s conftest$ac_exeext'
32530 { (case "(($ac_try" in
32531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32532 *) ac_try_echo
=$ac_try;;
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_try") 2>&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; }; then
32539 eval "$as_ac_var=yes"
32541 echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.
$ac_ext >&5
32544 eval "$as_ac_var=no"
32547 rm -f core conftest.err conftest.
$ac_objext \
32548 conftest
$ac_exeext conftest.
$ac_ext
32550 ac_res
=`eval echo '${'$as_ac_var'}'`
32551 { echo "$as_me:$LINENO: result: $ac_res" >&5
32552 echo "${ECHO_T}$ac_res" >&6; }
32553 if test `eval echo '${'$as_ac_var'}'` = yes; then
32554 cat >>confdefs.h
<<_ACEOF
32555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32561 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32562 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32563 if test "${llvm_cv_c_printf_a+set}" = set; then
32564 echo $ECHO_N "(cached) $ECHO_C" >&6
32567 ac_cpp
='$CPP $CPPFLAGS'
32568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32572 if test "$cross_compiling" = yes; then
32573 llvmac_cv_c_printf_a
=no
32575 cat >conftest.
$ac_ext <<_ACEOF
32579 cat confdefs.h
>>conftest.
$ac_ext
32580 cat >>conftest.
$ac_ext <<_ACEOF
32581 /* end confdefs.h. */
32584 #include <stdlib.h>
32590 volatile double A, B;
32594 sprintf(Buffer, "%a", A);
32598 if (A != 0x1.999999999999ap-4)
32605 rm -f conftest
$ac_exeext
32606 if { (ac_try
="$ac_link"
32607 case "(($ac_try" in
32608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_link") 2>&5
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32616 { (case "(($ac_try" in
32617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32618 *) ac_try_echo
=$ac_try;;
32620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621 (eval "$ac_try") 2>&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625 llvm_cv_c_printf_a
=yes
32627 echo "$as_me: program exited with status $ac_status" >&5
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.
$ac_ext >&5
32631 ( exit $ac_status )
32632 llvmac_cv_c_printf_a
=no
32634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32639 ac_cpp
='$CPP $CPPFLAGS'
32640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32645 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32646 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32647 if test "$llvm_cv_c_printf_a" = "yes"; then
32649 cat >>confdefs.h
<<\_ACEOF
32650 #define HAVE_PRINTF_A 1
32655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32656 # for constant arguments. Useless!
32657 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32658 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32659 if test "${ac_cv_working_alloca_h+set}" = set; then
32660 echo $ECHO_N "(cached) $ECHO_C" >&6
32662 cat >conftest.
$ac_ext <<_ACEOF
32665 cat confdefs.h
>>conftest.
$ac_ext
32666 cat >>conftest.
$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32668 #include <alloca.h>
32672 char *p = (char *) alloca (2 * sizeof (int));
32678 rm -f conftest.
$ac_objext conftest
$ac_exeext
32679 if { (ac_try
="$ac_link"
32680 case "(($ac_try" in
32681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_link") 2>conftest.er1
32687 grep -v '^ *+' conftest.er1 >conftest.err
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32695 *) ac_try_echo
=$ac_try;;
32697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try
='test -s conftest$ac_exeext'
32703 { (case "(($ac_try" in
32704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 ac_cv_working_alloca_h=yes
32714 echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32717 ac_cv_working_alloca_h=no
32720 rm -f core conftest.err conftest.$ac_objext \
32721 conftest$ac_exeext conftest.$ac_ext
32723 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32724 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32725 if test $ac_cv_working_alloca_h = yes; then
32727 cat >>confdefs.h <<\_ACEOF
32728 #define HAVE_ALLOCA_H 1
32733 { echo "$as_me:$LINENO: checking for alloca" >&5
32734 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32735 if test "${ac_cv_func_alloca_works+set}" = set; then
32736 echo $ECHO_N "(cached) $ECHO_C" >&6
32738 cat >conftest.$ac_ext <<_ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h. */
32745 # define alloca __builtin_alloca
32748 # include <malloc.h>
32749 # define alloca _alloca
32752 # include <alloca.h>
32757 # ifndef alloca /* predefined by HP cc +Olibcalls */
32768 char *p = (char *) alloca (1);
32774 rm -f conftest.$ac_objext conftest$ac_exeext
32775 if { (ac_try="$ac_link"
32776 case "(($ac_try" in
32777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32778 *) ac_try_echo
=$ac_try;;
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_link") 2>conftest.er1
32783 grep -v '^ *+' conftest.er1
>conftest.err
32785 cat conftest.err
>&5
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); } &&
32788 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32789 { (case "(($ac_try" in
32790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794 (eval "$ac_try") 2>&5
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; } &&
32798 { ac_try='test -s conftest$ac_exeext'
32799 { (case "(($ac_try" in
32800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32801 *) ac_try_echo
=$ac_try;;
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804 (eval "$ac_try") 2>&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); }; }; then
32808 ac_cv_func_alloca_works
=yes
32810 echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.
$ac_ext >&5
32813 ac_cv_func_alloca_works
=no
32816 rm -f core conftest.err conftest.
$ac_objext \
32817 conftest
$ac_exeext conftest.
$ac_ext
32819 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32820 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32822 if test $ac_cv_func_alloca_works = yes; then
32824 cat >>confdefs.h
<<\_ACEOF
32825 #define HAVE_ALLOCA 1
32829 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32830 # that cause trouble. Some versions do not even contain alloca or
32831 # contain a buggy version. If you still want to use their alloca,
32832 # use ar to extract alloca.o from them instead of compiling alloca.c.
32834 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
32836 cat >>confdefs.h
<<\_ACEOF
32841 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32842 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32843 if test "${ac_cv_os_cray+set}" = set; then
32844 echo $ECHO_N "(cached) $ECHO_C" >&6
32846 cat >conftest.
$ac_ext <<_ACEOF
32849 cat confdefs.h
>>conftest.
$ac_ext
32850 cat >>conftest.
$ac_ext <<_ACEOF
32851 /* end confdefs.h. */
32852 #if defined CRAY && ! defined CRAY2
32859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32860 $EGREP "webecray" >/dev
/null
2>&1; then
32868 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32869 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32870 if test $ac_cv_os_cray = yes; then
32871 for ac_func
in _getb67 GETB67 getb67
; do
32872 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32875 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32876 echo $ECHO_N "(cached) $ECHO_C" >&6
32878 cat >conftest.
$ac_ext <<_ACEOF
32881 cat confdefs.h
>>conftest.
$ac_ext
32882 cat >>conftest.
$ac_ext <<_ACEOF
32883 /* end confdefs.h. */
32884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32886 #define $ac_func innocuous_$ac_func
32888 /* System header to define __stub macros and hopefully few prototypes,
32889 which can conflict with char $ac_func (); below.
32890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32891 <limits.h> exists even on freestanding compilers. */
32894 # include <limits.h>
32896 # include <assert.h>
32901 /* Override any GCC internal prototype to avoid an error.
32902 Use char because int might match the return type of a GCC
32903 builtin and then its argument prototype would still apply. */
32908 /* The GNU C library defines this for functions which it implements
32909 to always fail with ENOSYS. Some functions are actually named
32910 something starting with __ and the normal name is an alias. */
32911 #if defined __stub_$ac_func || defined __stub___$ac_func
32918 return $ac_func ();
32923 rm -f conftest.
$ac_objext conftest
$ac_exeext
32924 if { (ac_try
="$ac_link"
32925 case "(($ac_try" in
32926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32927 *) ac_try_echo=$ac_try;;
32929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32930 (eval "$ac_link") 2>conftest.er1
32932 grep -v '^ *+' conftest.er1 >conftest.err
32934 cat conftest.err >&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); } &&
32937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32938 { (case "(($ac_try" in
32939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32940 *) ac_try_echo
=$ac_try;;
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_try") 2>&5
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; } &&
32947 { ac_try
='test -s conftest$ac_exeext'
32948 { (case "(($ac_try" in
32949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32950 *) ac_try_echo=$ac_try;;
32952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953 (eval "$ac_try") 2>&5
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 eval "$as_ac_var=yes"
32959 echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32962 eval "$as_ac_var=no"
32965 rm -f core conftest.err conftest.$ac_objext \
32966 conftest$ac_exeext conftest.$ac_ext
32968 ac_res=`eval echo '${'$as_ac_var'}'`
32969 { echo "$as_me:$LINENO: result: $ac_res" >&5
32970 echo "${ECHO_T}$ac_res" >&6; }
32971 if test `eval echo '${'$as_ac_var'}'` = yes; then
32973 cat >>confdefs.h <<_ACEOF
32974 #define CRAY_STACKSEG_END $ac_func
32983 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32984 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32985 if test "${ac_cv_c_stack_direction+set}" = set; then
32986 echo $ECHO_N "(cached) $ECHO_C" >&6
32988 if test "$cross_compiling" = yes; then
32989 ac_cv_c_stack_direction=0
32991 cat >conftest.$ac_ext <<_ACEOF
32994 cat confdefs.h >>conftest.$ac_ext
32995 cat >>conftest.$ac_ext <<_ACEOF
32996 /* end confdefs.h. */
32997 $ac_includes_default
32999 find_stack_direction ()
33001 static char *addr = 0;
33006 return find_stack_direction ();
33009 return (&dummy > addr) ? 1 : -1;
33015 return find_stack_direction () < 0;
33018 rm -f conftest$ac_exeext
33019 if { (ac_try="$ac_link"
33020 case "(($ac_try" in
33021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33022 *) ac_try_echo
=$ac_try;;
33024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_link") 2>&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33029 { (case "(($ac_try" in
33030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_try") 2>&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); }; }; then
33038 ac_cv_c_stack_direction=1
33040 echo "$as_me: program exited with status $ac_status" >&5
33041 echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33044 ( exit $ac_status )
33045 ac_cv_c_stack_direction=-1
33047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33052 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33053 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33055 cat >>confdefs.h <<_ACEOF
33056 #define STACK_DIRECTION $ac_cv_c_stack_direction
33063 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33064 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33065 if test "${ac_cv_func_rand48+set}" = set; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33069 ac_cpp='$CXXCPP $CPPFLAGS'
33070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33074 cat >conftest.$ac_ext <<_ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h. */
33080 #include <stdlib.h>
33084 srand48(0);lrand48();drand48();
33089 rm -f conftest.$ac_objext
33090 if { (ac_try="$ac_compile"
33091 case "(($ac_try" in
33092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33093 *) ac_try_echo
=$ac_try;;
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096 (eval "$ac_compile") 2>conftest.er1
33098 grep -v '^ *+' conftest.er1
>conftest.err
33100 cat conftest.err
>&5
33101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102 (exit $ac_status); } &&
33103 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33104 { (case "(($ac_try" in
33105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33106 *) ac_try_echo=$ac_try;;
33108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33109 (eval "$ac_try") 2>&5
33111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112 (exit $ac_status); }; } &&
33113 { ac_try='test -s conftest.$ac_objext'
33114 { (case "(($ac_try" in
33115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33116 *) ac_try_echo
=$ac_try;;
33118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119 (eval "$ac_try") 2>&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }; }; then
33123 ac_cv_func_rand48
=yes
33125 echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.
$ac_ext >&5
33128 ac_cv_func_rand48
=no
33131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33133 ac_cpp
='$CPP $CPPFLAGS'
33134 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33135 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33136 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33139 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33140 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33142 if test "$ac_cv_func_rand48" = "yes" ; then
33144 cat >>confdefs.h
<<\_ACEOF
33145 #define HAVE_RAND48 1
33151 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33152 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33153 if test "${ac_cv_cxx_namespaces+set}" = set; then
33154 echo $ECHO_N "(cached) $ECHO_C" >&6
33157 ac_cpp
='$CXXCPP $CPPFLAGS'
33158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33162 cat >conftest.
$ac_ext <<_ACEOF
33165 cat confdefs.h
>>conftest.
$ac_ext
33166 cat >>conftest.
$ac_ext <<_ACEOF
33167 /* end confdefs.h. */
33168 namespace Outer { namespace Inner { int i = 0; }}
33172 using namespace Outer::Inner; return i;
33177 rm -f conftest.
$ac_objext
33178 if { (ac_try
="$ac_compile"
33179 case "(($ac_try" in
33180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33181 *) ac_try_echo=$ac_try;;
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184 (eval "$ac_compile") 2>conftest.er1
33186 grep -v '^ *+' conftest.er1 >conftest.err
33188 cat conftest.err >&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); } &&
33191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33192 { (case "(($ac_try" in
33193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33194 *) ac_try_echo
=$ac_try;;
33196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197 (eval "$ac_try") 2>&5
33199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200 (exit $ac_status); }; } &&
33201 { ac_try
='test -s conftest.$ac_objext'
33202 { (case "(($ac_try" in
33203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_try") 2>&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); }; }; then
33211 ac_cv_cxx_namespaces=yes
33213 echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.$ac_ext >&5
33216 ac_cv_cxx_namespaces=no
33219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33221 ac_cpp='$CPP $CPPFLAGS'
33222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33229 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33230 if test "$ac_cv_cxx_namespaces" = yes; then
33232 cat >>confdefs.h <<\_ACEOF
33233 #define HAVE_NAMESPACES
33238 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33239 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33240 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33245 ac_cpp='$CXXCPP $CPPFLAGS'
33246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33250 cat >conftest.$ac_ext <<_ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h. */
33256 #include <iterator>
33257 #ifdef HAVE_NAMESPACES
33258 using namespace std;
33263 iterator<int,int,int> t; return 0;
33268 rm -f conftest.$ac_objext
33269 if { (ac_try="$ac_compile"
33270 case "(($ac_try" in
33271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33272 *) ac_try_echo
=$ac_try;;
33274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275 (eval "$ac_compile") 2>conftest.er1
33277 grep -v '^ *+' conftest.er1
>conftest.err
33279 cat conftest.err
>&5
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); } &&
33282 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33283 { (case "(($ac_try" in
33284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_try") 2>&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; } &&
33292 { ac_try='test -s conftest.$ac_objext'
33293 { (case "(($ac_try" in
33294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33295 *) ac_try_echo
=$ac_try;;
33297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33298 (eval "$ac_try") 2>&5
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
33302 ac_cv_cxx_have_std_iterator
=yes
33304 echo "$as_me: failed program was:" >&5
33305 sed 's/^/| /' conftest.
$ac_ext >&5
33307 ac_cv_cxx_have_std_iterator
=no
33310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33312 ac_cpp
='$CPP $CPPFLAGS'
33313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33319 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33320 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33321 if test "$ac_cv_cxx_have_std_iterator" = yes
33324 cat >>confdefs.h
<<\_ACEOF
33325 #define HAVE_STD_ITERATOR 1
33330 cat >>confdefs.h
<<\_ACEOF
33331 #define HAVE_STD_ITERATOR 0
33336 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33337 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33338 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33339 echo $ECHO_N "(cached) $ECHO_C" >&6
33343 ac_cpp
='$CXXCPP $CPPFLAGS'
33344 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33345 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33346 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33348 cat >conftest.
$ac_ext <<_ACEOF
33351 cat confdefs.h
>>conftest.
$ac_ext
33352 cat >>conftest.
$ac_ext <<_ACEOF
33353 /* end confdefs.h. */
33354 #include <iterator>
33355 #ifdef HAVE_NAMESPACES
33356 using namespace std;
33361 bidirectional_iterator<int,int> t; return 0;
33366 rm -f conftest.
$ac_objext
33367 if { (ac_try
="$ac_compile"
33368 case "(($ac_try" in
33369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_compile") 2>conftest.er1
33375 grep -v '^ *+' conftest.er1 >conftest.err
33377 cat conftest.err >&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
33380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33381 { (case "(($ac_try" in
33382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33383 *) ac_try_echo
=$ac_try;;
33385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386 (eval "$ac_try") 2>&5
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); }; } &&
33390 { ac_try
='test -s conftest.$ac_objext'
33391 { (case "(($ac_try" in
33392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33393 *) ac_try_echo=$ac_try;;
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396 (eval "$ac_try") 2>&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_cv_cxx_have_bi_iterator=yes
33402 echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33405 ac_cv_cxx_have_bi_iterator=no
33408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33410 ac_cpp='$CPP $CPPFLAGS'
33411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33418 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33419 if test "$ac_cv_cxx_have_bi_iterator" = yes
33422 cat >>confdefs.h <<\_ACEOF
33423 #define HAVE_BI_ITERATOR 1
33428 cat >>confdefs.h <<\_ACEOF
33429 #define HAVE_BI_ITERATOR 0
33434 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33435 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33436 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33437 echo $ECHO_N "(cached) $ECHO_C" >&6
33441 ac_cpp='$CXXCPP $CPPFLAGS'
33442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33446 cat >conftest.$ac_ext <<_ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h. */
33452 #include <iterator>
33453 #ifdef HAVE_NAMESPACES
33454 using namespace std;
33459 forward_iterator<int,int> t; return 0;
33464 rm -f conftest.$ac_objext
33465 if { (ac_try="$ac_compile"
33466 case "(($ac_try" in
33467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33468 *) ac_try_echo
=$ac_try;;
33470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471 (eval "$ac_compile") 2>conftest.er1
33473 grep -v '^ *+' conftest.er1
>conftest.err
33475 cat conftest.err
>&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); } &&
33478 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33479 { (case "(($ac_try" in
33480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33481 *) ac_try_echo=$ac_try;;
33483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33484 (eval "$ac_try") 2>&5
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; } &&
33488 { ac_try='test -s conftest.$ac_objext'
33489 { (case "(($ac_try" in
33490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33491 *) ac_try_echo
=$ac_try;;
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_try") 2>&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 ac_cv_cxx_have_fwd_iterator
=yes
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.
$ac_ext >&5
33503 ac_cv_cxx_have_fwd_iterator
=no
33506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33508 ac_cpp
='$CPP $CPPFLAGS'
33509 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33515 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33516 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33517 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33520 cat >>confdefs.h
<<\_ACEOF
33521 #define HAVE_FWD_ITERATOR 1
33526 cat >>confdefs.h
<<\_ACEOF
33527 #define HAVE_FWD_ITERATOR 0
33533 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33534 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33535 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33539 ac_cpp
='$CXXCPP $CPPFLAGS'
33540 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33541 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33542 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33544 cat >conftest.
$ac_ext <<_ACEOF
33547 cat confdefs.h
>>conftest.
$ac_ext
33548 cat >>conftest.
$ac_ext <<_ACEOF
33549 /* end confdefs.h. */
33559 rm -f conftest.
$ac_objext
33560 if { (ac_try
="$ac_compile"
33561 case "(($ac_try" in
33562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33563 *) ac_try_echo=$ac_try;;
33565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33566 (eval "$ac_compile") 2>conftest.er1
33568 grep -v '^ *+' conftest.er1 >conftest.err
33570 cat conftest.err >&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); } &&
33573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33574 { (case "(($ac_try" in
33575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33576 *) ac_try_echo
=$ac_try;;
33578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33579 (eval "$ac_try") 2>&5
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); }; } &&
33583 { ac_try
='test -s conftest.$ac_objext'
33584 { (case "(($ac_try" in
33585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33586 *) ac_try_echo=$ac_try;;
33588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33589 (eval "$ac_try") 2>&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; }; then
33593 ac_cv_func_isnan_in_math_h=yes
33595 echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33598 ac_cv_func_isnan_in_math_h=no
33601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33603 ac_cpp='$CPP $CPPFLAGS'
33604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33609 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33610 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33613 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33615 cat >>confdefs.h <<\_ACEOF
33616 #define HAVE_ISNAN_IN_MATH_H 1
33621 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33622 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33623 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33624 echo $ECHO_N "(cached) $ECHO_C" >&6
33627 ac_cpp='$CXXCPP $CPPFLAGS'
33628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33632 cat >conftest.$ac_ext <<_ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33647 rm -f conftest.$ac_objext
33648 if { (ac_try="$ac_compile"
33649 case "(($ac_try" in
33650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33651 *) ac_try_echo
=$ac_try;;
33653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33654 (eval "$ac_compile") 2>conftest.er1
33656 grep -v '^ *+' conftest.er1
>conftest.err
33658 cat conftest.err
>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); } &&
33661 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33662 { (case "(($ac_try" in
33663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33664 *) ac_try_echo=$ac_try;;
33666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33667 (eval "$ac_try") 2>&5
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; } &&
33671 { ac_try='test -s conftest.$ac_objext'
33672 { (case "(($ac_try" in
33673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33674 *) ac_try_echo
=$ac_try;;
33676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677 (eval "$ac_try") 2>&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; }; then
33681 ac_cv_func_isnan_in_cmath
=yes
33683 echo "$as_me: failed program was:" >&5
33684 sed 's/^/| /' conftest.
$ac_ext >&5
33686 ac_cv_func_isnan_in_cmath
=no
33689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33691 ac_cpp
='$CPP $CPPFLAGS'
33692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33697 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33698 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33700 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33702 cat >>confdefs.h
<<\_ACEOF
33703 #define HAVE_ISNAN_IN_CMATH 1
33708 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33709 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33710 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33714 ac_cpp
='$CXXCPP $CPPFLAGS'
33715 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33719 cat >conftest.
$ac_ext <<_ACEOF
33722 cat confdefs.h
>>conftest.
$ac_ext
33723 cat >>conftest.
$ac_ext <<_ACEOF
33724 /* end confdefs.h. */
33729 float f; std::isnan(f);
33734 rm -f conftest.
$ac_objext
33735 if { (ac_try
="$ac_compile"
33736 case "(($ac_try" in
33737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_compile") 2>conftest.er1
33743 grep -v '^ *+' conftest.er1 >conftest.err
33745 cat conftest.err >&5
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); } &&
33748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33751 *) ac_try_echo
=$ac_try;;
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try
='test -s conftest.$ac_objext'
33759 { (case "(($ac_try" in
33760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
33768 ac_cv_func_std_isnan_in_cmath=yes
33770 echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33773 ac_cv_func_std_isnan_in_cmath=no
33776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33778 ac_cpp='$CPP $CPPFLAGS'
33779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33784 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33785 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33787 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33789 cat >>confdefs.h <<\_ACEOF
33790 #define HAVE_STD_ISNAN_IN_CMATH 1
33796 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33797 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33798 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33802 ac_cpp='$CXXCPP $CPPFLAGS'
33803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33807 cat >conftest.$ac_ext <<_ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h. */
33822 rm -f conftest.$ac_objext
33823 if { (ac_try="$ac_compile"
33824 case "(($ac_try" in
33825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33826 *) ac_try_echo
=$ac_try;;
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_compile") 2>conftest.er1
33831 grep -v '^ *+' conftest.er1
>conftest.err
33833 cat conftest.err
>&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } &&
33836 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33837 { (case "(($ac_try" in
33838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_try") 2>&5
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; } &&
33846 { ac_try='test -s conftest.$ac_objext'
33847 { (case "(($ac_try" in
33848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33849 *) ac_try_echo
=$ac_try;;
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852 (eval "$ac_try") 2>&5
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); }; }; then
33856 ac_cv_func_isinf_in_math_h
=yes
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.
$ac_ext >&5
33861 ac_cv_func_isinf_in_math_h
=no
33864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33866 ac_cpp
='$CPP $CPPFLAGS'
33867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33872 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33873 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33875 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33877 cat >>confdefs.h
<<\_ACEOF
33878 #define HAVE_ISINF_IN_MATH_H 1
33883 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33884 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33885 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33886 echo $ECHO_N "(cached) $ECHO_C" >&6
33889 ac_cpp
='$CXXCPP $CPPFLAGS'
33890 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33894 cat >conftest.
$ac_ext <<_ACEOF
33897 cat confdefs.h
>>conftest.
$ac_ext
33898 cat >>conftest.
$ac_ext <<_ACEOF
33899 /* end confdefs.h. */
33909 rm -f conftest.
$ac_objext
33910 if { (ac_try
="$ac_compile"
33911 case "(($ac_try" in
33912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_compile") 2>conftest.er1
33918 grep -v '^ *+' conftest.er1 >conftest.err
33920 cat conftest.err >&5
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922 (exit $ac_status); } &&
33923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33924 { (case "(($ac_try" in
33925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33926 *) ac_try_echo
=$ac_try;;
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_try") 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; } &&
33933 { ac_try
='test -s conftest.$ac_objext'
33934 { (case "(($ac_try" in
33935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_try") 2>&5
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 ac_cv_func_isinf_in_cmath=yes
33945 echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33948 ac_cv_func_isinf_in_cmath=no
33951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33953 ac_cpp='$CPP $CPPFLAGS'
33954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33959 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33960 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33962 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33964 cat >>confdefs.h <<\_ACEOF
33965 #define HAVE_ISINF_IN_CMATH 1
33970 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33971 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33972 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33976 ac_cpp='$CXXCPP $CPPFLAGS'
33977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33981 cat >conftest.$ac_ext <<_ACEOF
33984 cat confdefs.h >>conftest.$ac_ext
33985 cat >>conftest.$ac_ext <<_ACEOF
33986 /* end confdefs.h. */
33991 float f; std::isinf(f)}
33996 rm -f conftest.$ac_objext
33997 if { (ac_try="$ac_compile"
33998 case "(($ac_try" in
33999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34000 *) ac_try_echo
=$ac_try;;
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_compile") 2>conftest.er1
34005 grep -v '^ *+' conftest.er1
>conftest.err
34007 cat conftest.err
>&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } &&
34010 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34011 { (case "(($ac_try" in
34012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_try") 2>&5
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest.$ac_objext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34023 *) ac_try_echo
=$ac_try;;
34025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 ac_cv_func_std_isinf_in_cmath
=yes
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.
$ac_ext >&5
34035 ac_cv_func_std_isinf_in_cmath
=no
34038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34040 ac_cpp
='$CPP $CPPFLAGS'
34041 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34046 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34047 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34049 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34051 cat >>confdefs.h
<<\_ACEOF
34052 #define HAVE_STD_ISINF_IN_CMATH 1
34057 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34058 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34059 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34063 ac_cpp
='$CXXCPP $CPPFLAGS'
34064 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34065 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34066 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
34068 cat >conftest.
$ac_ext <<_ACEOF
34071 cat confdefs.h
>>conftest.
$ac_ext
34072 cat >>conftest.
$ac_ext <<_ACEOF
34073 /* end confdefs.h. */
34074 #include <ieeefp.h>
34078 float f; finite(f);
34083 rm -f conftest.
$ac_objext
34084 if { (ac_try
="$ac_compile"
34085 case "(($ac_try" in
34086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_compile") 2>conftest.er1
34092 grep -v '^ *+' conftest.er1 >conftest.err
34094 cat conftest.err >&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); } &&
34097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34098 { (case "(($ac_try" in
34099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34100 *) ac_try_echo
=$ac_try;;
34102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_try") 2>&5
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try
='test -s conftest.$ac_objext'
34108 { (case "(($ac_try" in
34109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34110 *) ac_try_echo=$ac_try;;
34112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34113 (eval "$ac_try") 2>&5
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
34117 ac_cv_func_finite_in_ieeefp_h=yes
34119 echo "$as_me: failed program was:" >&5
34120 sed 's/^/| /' conftest.$ac_ext >&5
34122 ac_cv_func_finite_in_ieeefp_h=no
34125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34127 ac_cpp='$CPP $CPPFLAGS'
34128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34133 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34134 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34136 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34138 cat >>confdefs.h <<\_ACEOF
34139 #define HAVE_FINITE_IN_IEEEFP_H 1
34146 if test "$llvm_cv_platform_type" = "Unix" ; then
34149 for ac_header in stdlib.h unistd.h
34151 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34158 ac_res=`eval echo '${'$as_ac_Header'}'`
34159 { echo "$as_me:$LINENO: result: $ac_res" >&5
34160 echo "${ECHO_T}$ac_res" >&6; }
34162 # Is the header compilable?
34163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34165 cat >conftest.$ac_ext <<_ACEOF
34168 cat confdefs.h >>conftest.$ac_ext
34169 cat >>conftest.$ac_ext <<_ACEOF
34170 /* end confdefs.h. */
34171 $ac_includes_default
34172 #include <$ac_header>
34174 rm -f conftest.$ac_objext
34175 if { (ac_try="$ac_compile"
34176 case "(($ac_try" in
34177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34178 *) ac_try_echo
=$ac_try;;
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_compile") 2>conftest.er1
34183 grep -v '^ *+' conftest.er1
>conftest.err
34185 cat conftest.err
>&5
34186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 (exit $ac_status); } &&
34188 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34189 { (case "(($ac_try" in
34190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34191 *) ac_try_echo=$ac_try;;
34193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34194 (eval "$ac_try") 2>&5
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; } &&
34198 { ac_try='test -s conftest.$ac_objext'
34199 { (case "(($ac_try" in
34200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34201 *) ac_try_echo
=$ac_try;;
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204 (eval "$ac_try") 2>&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; }; then
34208 ac_header_compiler
=yes
34210 echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.
$ac_ext >&5
34213 ac_header_compiler
=no
34216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34218 echo "${ECHO_T}$ac_header_compiler" >&6; }
34220 # Is the header present?
34221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34223 cat >conftest.
$ac_ext <<_ACEOF
34226 cat confdefs.h
>>conftest.
$ac_ext
34227 cat >>conftest.
$ac_ext <<_ACEOF
34228 /* end confdefs.h. */
34229 #include <$ac_header>
34231 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34232 case "(($ac_try" in
34233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34239 grep -v '^ *+' conftest.er1 >conftest.err
34241 cat conftest.err >&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } >/dev/null; then
34244 if test -s conftest.err; then
34245 ac_cpp_err=$ac_c_preproc_warn_flag
34246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34253 if test -z "$ac_cpp_err"; then
34254 ac_header_preproc=yes
34256 echo "$as_me: failed program was:" >&5
34257 sed 's/^/| /' conftest.$ac_ext >&5
34259 ac_header_preproc=no
34262 rm -f conftest.err conftest.$ac_ext
34263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34264 echo "${ECHO_T}$ac_header_preproc" >&6; }
34266 # So? What about this header?
34267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34273 ac_header_preproc=yes
34276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34289 ## ----------------------------------- ##
34290 ## Report this to llvmbugs@cs.uiuc.edu ##
34291 ## ----------------------------------- ##
34293 ) | sed "s/^/$as_me: WARNING: /" >&2
34296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34299 echo $ECHO_N "(cached) $ECHO_C" >&6
34301 eval "$as_ac_Header=\$ac_header_preproc"
34303 ac_res=`eval echo '${'$as_ac_Header'}'`
34304 { echo "$as_me:$LINENO: result: $ac_res" >&5
34305 echo "${ECHO_T}$ac_res" >&6; }
34308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34309 cat >>confdefs.h <<_ACEOF
34310 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
34318 for ac_func in getpagesize
34320 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34326 cat >conftest.$ac_ext <<_ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h. */
34332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34334 #define $ac_func innocuous_$ac_func
34336 /* System header to define __stub macros and hopefully few prototypes,
34337 which can conflict with char $ac_func (); below.
34338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34339 <limits.h> exists even on freestanding compilers. */
34342 # include <limits.h>
34344 # include <assert.h>
34349 /* Override any GCC internal prototype to avoid an error.
34350 Use char because int might match the return type of a GCC
34351 builtin and then its argument prototype would still apply. */
34356 /* The GNU C library defines this for functions which it implements
34357 to always fail with ENOSYS. Some functions are actually named
34358 something starting with __ and the normal name is an alias. */
34359 #if defined __stub_$ac_func || defined __stub___$ac_func
34366 return $ac_func ();
34371 rm -f conftest.$ac_objext conftest$ac_exeext
34372 if { (ac_try="$ac_link"
34373 case "(($ac_try" in
34374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34375 *) ac_try_echo
=$ac_try;;
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378 (eval "$ac_link") 2>conftest.er1
34380 grep -v '^ *+' conftest.er1
>conftest.err
34382 cat conftest.err
>&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34386 { (case "(($ac_try" in
34387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34388 *) ac_try_echo=$ac_try;;
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391 (eval "$ac_try") 2>&5
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; } &&
34395 { ac_try='test -s conftest$ac_exeext'
34396 { (case "(($ac_try" in
34397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34398 *) ac_try_echo
=$ac_try;;
34400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401 (eval "$ac_try") 2>&5
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); }; }; then
34405 eval "$as_ac_var=yes"
34407 echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.
$ac_ext >&5
34410 eval "$as_ac_var=no"
34413 rm -f core conftest.err conftest.
$ac_objext \
34414 conftest
$ac_exeext conftest.
$ac_ext
34416 ac_res
=`eval echo '${'$as_ac_var'}'`
34417 { echo "$as_me:$LINENO: result: $ac_res" >&5
34418 echo "${ECHO_T}$ac_res" >&6; }
34419 if test `eval echo '${'$as_ac_var'}'` = yes; then
34420 cat >>confdefs.h
<<_ACEOF
34421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34427 { echo "$as_me:$LINENO: checking for working mmap" >&5
34428 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34429 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34432 if test "$cross_compiling" = yes; then
34433 ac_cv_func_mmap_fixed_mapped
=no
34435 cat >conftest.
$ac_ext <<_ACEOF
34438 cat confdefs.h
>>conftest.
$ac_ext
34439 cat >>conftest.
$ac_ext <<_ACEOF
34440 /* end confdefs.h. */
34441 $ac_includes_default
34442 /* malloc might have been renamed as rpl_malloc. */
34445 /* Thanks to Mike Haertel and Jim Avera for this test.
34446 Here is a matrix of mmap possibilities:
34447 mmap private not fixed
34448 mmap private fixed at somewhere currently unmapped
34449 mmap private fixed at somewhere already mapped
34450 mmap shared not fixed
34451 mmap shared fixed at somewhere currently unmapped
34452 mmap shared fixed at somewhere already mapped
34453 For private mappings, we should verify that changes cannot be read()
34454 back from the file, nor mmap's back from the file at a different
34455 address. (There have been systems where private was not correctly
34456 implemented like the infamous i386 svr4.0, and systems where the
34457 VM page cache was not coherent with the file system buffer cache
34458 like early versions of FreeBSD and possibly contemporary NetBSD.)
34459 For shared mappings, we should conversely verify that changes get
34460 propagated back to all the places they're supposed to be.
34462 Grep wants private fixed already mapped.
34463 The main things grep needs to know about mmap are:
34464 * does it exist and is it safe to write into the mmap'd area
34465 * how to use it (BSD variants) */
34468 #include <sys/mman.h>
34470 #if !STDC_HEADERS && !HAVE_STDLIB_H
34474 /* This mess was copied from the GNU getpagesize.h. */
34475 #if !HAVE_GETPAGESIZE
34476 /* Assume that all systems that can run configure have sys/param.h. */
34477 # if !HAVE_SYS_PARAM_H
34478 # define HAVE_SYS_PARAM_H 1
34481 # ifdef _SC_PAGESIZE
34482 # define getpagesize() sysconf(_SC_PAGESIZE)
34483 # else /* no _SC_PAGESIZE */
34484 # if HAVE_SYS_PARAM_H
34485 # include <sys/param.h>
34486 # ifdef EXEC_PAGESIZE
34487 # define getpagesize() EXEC_PAGESIZE
34488 # else /* no EXEC_PAGESIZE */
34490 # define getpagesize() NBPG * CLSIZE
34493 # endif /* no CLSIZE */
34494 # else /* no NBPG */
34496 # define getpagesize() NBPC
34497 # else /* no NBPC */
34499 # define getpagesize() PAGESIZE
34500 # endif /* PAGESIZE */
34501 # endif /* no NBPC */
34502 # endif /* no NBPG */
34503 # endif /* no EXEC_PAGESIZE */
34504 # else /* no HAVE_SYS_PARAM_H */
34505 # define getpagesize() 8192 /* punt totally */
34506 # endif /* no HAVE_SYS_PARAM_H */
34507 # endif /* no _SC_PAGESIZE */
34509 #endif /* no HAVE_GETPAGESIZE */
34514 char *data, *data2, *data3;
34518 pagesize = getpagesize ();
34520 /* First, make a file with some known garbage in it. */
34521 data = (char *) malloc (pagesize);
34524 for (i = 0; i < pagesize; ++i)
34525 *(data + i) = rand ();
34527 fd = creat ("conftest.mmap", 0600);
34530 if (write (fd, data, pagesize) != pagesize)
34534 /* Next, try to mmap the file at a fixed address which already has
34535 something else allocated at it. If we can, also make sure that
34536 we see the same garbage. */
34537 fd = open ("conftest.mmap", O_RDWR);
34540 data2 = (char *) malloc (2 * pagesize);
34543 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34544 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34545 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34547 for (i = 0; i < pagesize; ++i)
34548 if (*(data + i) != *(data2 + i))
34551 /* Finally, make sure that changes to the mapped area do not
34552 percolate back to the file as seen by read(). (This is a bug on
34553 some variants of i386 svr4.0.) */
34554 for (i = 0; i < pagesize; ++i)
34555 *(data2 + i) = *(data2 + i) + 1;
34556 data3 = (char *) malloc (pagesize);
34559 if (read (fd, data3, pagesize) != pagesize)
34561 for (i = 0; i < pagesize; ++i)
34562 if (*(data + i) != *(data3 + i))
34568 rm -f conftest
$ac_exeext
34569 if { (ac_try
="$ac_link"
34570 case "(($ac_try" in
34571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575 (eval "$ac_link") 2>&5
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34579 { (case "(($ac_try" in
34580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34581 *) ac_try_echo
=$ac_try;;
34583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34584 (eval "$ac_try") 2>&5
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); }; }; then
34588 ac_cv_func_mmap_fixed_mapped
=yes
34590 echo "$as_me: program exited with status $ac_status" >&5
34591 echo "$as_me: failed program was:" >&5
34592 sed 's/^/| /' conftest.
$ac_ext >&5
34594 ( exit $ac_status )
34595 ac_cv_func_mmap_fixed_mapped
=no
34597 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34602 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34603 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34604 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34606 cat >>confdefs.h
<<\_ACEOF
34607 #define HAVE_MMAP 1
34611 rm -f conftest.mmap
34613 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34614 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34615 if test "${ac_cv_func_mmap_file+set}" = set; then
34616 echo $ECHO_N "(cached) $ECHO_C" >&6
34619 ac_cpp
='$CPP $CPPFLAGS'
34620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34624 if test "$cross_compiling" = yes; then
34625 ac_cv_func_mmap_file
=no
34627 cat >conftest.
$ac_ext <<_ACEOF
34631 cat confdefs.h
>>conftest.
$ac_ext
34632 cat >>conftest.
$ac_ext <<_ACEOF
34633 /* end confdefs.h. */
34635 #include <sys/types.h>
34636 #include <sys/mman.h>
34644 fd = creat ("foo",0777);
34645 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34647 return (fd != (int) MAP_FAILED);
34652 rm -f conftest
$ac_exeext
34653 if { (ac_try
="$ac_link"
34654 case "(($ac_try" in
34655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34656 *) ac_try_echo=$ac_try;;
34658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34659 (eval "$ac_link") 2>&5
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34663 { (case "(($ac_try" in
34664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34665 *) ac_try_echo
=$ac_try;;
34667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34668 (eval "$ac_try") 2>&5
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); }; }; then
34672 ac_cv_func_mmap_file
=yes
34674 echo "$as_me: program exited with status $ac_status" >&5
34675 echo "$as_me: failed program was:" >&5
34676 sed 's/^/| /' conftest.
$ac_ext >&5
34678 ( exit $ac_status )
34679 ac_cv_func_mmap_file
=no
34681 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34686 ac_cpp
='$CPP $CPPFLAGS'
34687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34693 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34694 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34695 if test "$ac_cv_func_mmap_file" = yes; then
34697 cat >>confdefs.h
<<\_ACEOF
34698 #define HAVE_MMAP_FILE
34705 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34706 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34707 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34710 if test "$llvm_cv_os_type" = "Interix" ; then
34711 ac_cv_need_dev_zero_for_mmap
=yes
34713 ac_cv_need_dev_zero_for_mmap
=no
34717 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34718 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34719 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34721 cat >>confdefs.h
<<\_ACEOF
34722 #define NEED_DEV_ZERO_FOR_MMAP 1
34727 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34729 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34730 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34732 if test "$ac_cv_func_mmap_file" = "no"
34734 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34735 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34739 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34740 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34741 cat >conftest.
$ac_ext <<_ACEOF
34744 cat confdefs.h
>>conftest.
$ac_ext
34745 cat >>conftest.
$ac_ext <<_ACEOF
34746 /* end confdefs.h. */
34748 volatile unsigned long val = 1;
34749 __sync_synchronize();
34750 __sync_val_compare_and_swap(&val, 1, 0);
34751 __sync_add_and_fetch(&val, 1);
34752 __sync_sub_and_fetch(&val, 1);
34757 rm -f conftest.
$ac_objext conftest
$ac_exeext
34758 if { (ac_try
="$ac_link"
34759 case "(($ac_try" in
34760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34761 *) ac_try_echo=$ac_try;;
34763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764 (eval "$ac_link") 2>conftest.er1
34766 grep -v '^ *+' conftest.er1 >conftest.err
34768 cat conftest.err >&5
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); } &&
34771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34772 { (case "(($ac_try" in
34773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34774 *) ac_try_echo
=$ac_try;;
34776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34777 (eval "$ac_try") 2>&5
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } &&
34781 { ac_try
='test -s conftest$ac_exeext'
34782 { (case "(($ac_try" in
34783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34784 *) ac_try_echo=$ac_try;;
34786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34787 (eval "$ac_try") 2>&5
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); }; }; then
34791 { echo "$as_me:$LINENO: result: yes" >&5
34792 echo "${ECHO_T}yes" >&6; }
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LLVM_MULTITHREADED 1
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34802 { echo "$as_me:$LINENO: result: no" >&5
34803 echo "${ECHO_T}no" >&6; }
34805 cat >>confdefs.h <<\_ACEOF
34806 #define LLVM_MULTITHREADED 0
34809 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34810 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34813 rm -f core conftest.err conftest.$ac_objext \
34814 conftest$ac_exeext conftest.$ac_ext
34819 for ac_func in __dso_handle
34821 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34825 echo $ECHO_N "(cached) $ECHO_C" >&6
34827 cat >conftest.$ac_ext <<_ACEOF
34830 cat confdefs.h >>conftest.$ac_ext
34831 cat >>conftest.$ac_ext <<_ACEOF
34832 /* end confdefs.h. */
34833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34835 #define $ac_func innocuous_$ac_func
34837 /* System header to define __stub macros and hopefully few prototypes,
34838 which can conflict with char $ac_func (); below.
34839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34840 <limits.h> exists even on freestanding compilers. */
34843 # include <limits.h>
34845 # include <assert.h>
34850 /* Override any GCC internal prototype to avoid an error.
34851 Use char because int might match the return type of a GCC
34852 builtin and then its argument prototype would still apply. */
34857 /* The GNU C library defines this for functions which it implements
34858 to always fail with ENOSYS. Some functions are actually named
34859 something starting with __ and the normal name is an alias. */
34860 #if defined __stub_$ac_func || defined __stub___$ac_func
34867 return $ac_func ();
34872 rm -f conftest.$ac_objext conftest$ac_exeext
34873 if { (ac_try="$ac_link"
34874 case "(($ac_try" in
34875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34876 *) ac_try_echo
=$ac_try;;
34878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34879 (eval "$ac_link") 2>conftest.er1
34881 grep -v '^ *+' conftest.er1
>conftest.err
34883 cat conftest.err
>&5
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); } &&
34886 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34887 { (case "(($ac_try" in
34888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34889 *) ac_try_echo=$ac_try;;
34891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34892 (eval "$ac_try") 2>&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest$ac_exeext'
34897 { (case "(($ac_try" in
34898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34899 *) ac_try_echo
=$ac_try;;
34901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34902 (eval "$ac_try") 2>&5
34904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34905 (exit $ac_status); }; }; then
34906 eval "$as_ac_var=yes"
34908 echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.
$ac_ext >&5
34911 eval "$as_ac_var=no"
34914 rm -f core conftest.err conftest.
$ac_objext \
34915 conftest
$ac_exeext conftest.
$ac_ext
34917 ac_res
=`eval echo '${'$as_ac_var'}'`
34918 { echo "$as_me:$LINENO: result: $ac_res" >&5
34919 echo "${ECHO_T}$ac_res" >&6; }
34920 if test `eval echo '${'$as_ac_var'}'` = yes; then
34921 cat >>confdefs.h
<<_ACEOF
34922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34929 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34930 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34931 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34932 echo $ECHO_N "(cached) $ECHO_C" >&6
34934 llvm_cv_llvmgcc_sanity
="no"
34935 if test -x "$LLVMGCC" ; then
34936 cp /dev
/null conftest.c
34937 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34938 grep 'target datalayout =' > /dev
/null
2>&1
34939 if test $?
-eq 0 ; then
34940 llvm_cv_llvmgcc_sanity
="yes"
34945 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34946 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34948 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34949 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34950 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34951 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
34952 LLVMCC1
=$llvmcc1path
34954 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
34955 LLVMCC1PLUS
=$llvmcc1pluspath
34957 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34958 LLVMGCCDIR
=$llvmgccdir
34960 llvmgcclibexec
=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34961 LLVMGCCLIBEXEC
=$llvmgcclibexec
34963 llvmgccversion
=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34964 llvmgccmajvers
=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34965 LLVMGCC_VERSION
=$llvmgccversion
34967 LLVMGCC_MAJVERS
=$llvmgccmajvers
34969 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34970 LLVMGCC_LANGS
=$llvmgcclangs
34972 { echo "$as_me:$LINENO: result: ok" >&5
34973 echo "${ECHO_T}ok" >&6; }
34976 SHLIBEXT
=$libltdl_cv_shlibext
34979 # Translate the various configuration directories and other basic
34980 # information into substitutions that will end up in Makefile.config.in
34981 # that these configured values can be used by the makefiles
34982 if test "${prefix}" = "NONE" ; then
34983 prefix
="/usr/local"
34985 eval LLVM_PREFIX
="${prefix}";
34986 eval LLVM_BINDIR
="${prefix}/bin";
34987 eval LLVM_LIBDIR
="${prefix}/lib";
34988 eval LLVM_DATADIR
="${prefix}/share/llvm";
34989 eval LLVM_DOCSDIR
="${prefix}/docs/llvm";
34990 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
34991 eval LLVM_INCLUDEDIR
="${prefix}/include";
34992 eval LLVM_INFODIR
="${prefix}/info";
34993 eval LLVM_MANDIR
="${prefix}/man";
34994 LLVM_CONFIGTIME
=`date`
35006 # Place the various directores into the config.h file as #defines so that we
35007 # can know about the installation paths within LLVM.
35009 cat >>confdefs.h
<<_ACEOF
35010 #define LLVM_PREFIX "$LLVM_PREFIX"
35014 cat >>confdefs.h
<<_ACEOF
35015 #define LLVM_BINDIR "$LLVM_BINDIR"
35019 cat >>confdefs.h
<<_ACEOF
35020 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35024 cat >>confdefs.h
<<_ACEOF
35025 #define LLVM_DATADIR "$LLVM_DATADIR"
35029 cat >>confdefs.h
<<_ACEOF
35030 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35034 cat >>confdefs.h
<<_ACEOF
35035 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35039 cat >>confdefs.h
<<_ACEOF
35040 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35044 cat >>confdefs.h
<<_ACEOF
35045 #define LLVM_INFODIR "$LLVM_INFODIR"
35049 cat >>confdefs.h
<<_ACEOF
35050 #define LLVM_MANDIR "$LLVM_MANDIR"
35054 cat >>confdefs.h
<<_ACEOF
35055 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35059 cat >>confdefs.h
<<_ACEOF
35060 #define LLVM_HOSTTRIPLE "$host"
35064 # Determine which bindings to build.
35065 if test "$BINDINGS_TO_BUILD" = auto
; then
35066 BINDINGS_TO_BUILD
=""
35067 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
35068 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
35071 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
35074 # This isn't really configurey, but it avoids having to repeat the list in
35079 # Do any work necessary to ensure that bindings have what they need.
35080 binding_prereqs_failed
=0
35081 for a_binding
in $BINDINGS_TO_BUILD ; do
35082 case "$a_binding" in
35084 if test "x$OCAMLC" = x
; then
35085 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35086 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35087 binding_prereqs_failed
=1
35089 if test "x$OCAMLDEP" = x
; then
35090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35091 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35092 binding_prereqs_failed
=1
35094 if test "x$OCAMLOPT" = x
; then
35095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35096 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35098 if test "x$with_ocaml_libdir" != xauto
; then
35099 OCAML_LIBDIR
=$with_ocaml_libdir
35102 ocaml_stdlib
="`"$OCAMLC" -where`"
35103 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35105 # ocaml stdlib is beneath our prefix; use stdlib
35106 OCAML_LIBDIR
=$ocaml_stdlib
35109 # ocaml stdlib is outside our prefix; use libdir/ocaml
35110 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
35117 if test "$binding_prereqs_failed" = 1 ; then
35118 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35119 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35120 { (exit 1); exit 1; }; }
35123 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35124 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35125 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35126 echo $ECHO_N "(cached) $ECHO_C" >&6
35129 ac_cpp
='$CXXCPP $CPPFLAGS'
35130 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35131 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35132 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
35134 oldcxxflags
="$CXXFLAGS"
35135 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
35136 cat >conftest.
$ac_ext <<_ACEOF
35139 cat confdefs.h
>>conftest.
$ac_ext
35140 cat >>conftest.
$ac_ext <<_ACEOF
35141 /* end confdefs.h. */
35151 rm -f conftest.
$ac_objext
35152 if { (ac_try
="$ac_compile"
35153 case "(($ac_try" in
35154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35155 *) ac_try_echo=$ac_try;;
35157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 (eval "$ac_compile") 2>conftest.er1
35160 grep -v '^ *+' conftest.er1 >conftest.err
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } &&
35165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35166 { (case "(($ac_try" in
35167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35168 *) ac_try_echo
=$ac_try;;
35170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171 (eval "$ac_try") 2>&5
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; } &&
35175 { ac_try
='test -s conftest.$ac_objext'
35176 { (case "(($ac_try" in
35177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35178 *) ac_try_echo=$ac_try;;
35180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35181 (eval "$ac_try") 2>&5
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
35185 llvm_cv_cxx_visibility_inlines_hidden=yes
35187 echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35190 llvm_cv_cxx_visibility_inlines_hidden=no
35193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35194 CXXFLAGS="$oldcxxflags"
35196 ac_cpp='$CPP $CPPFLAGS'
35197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35203 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35204 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35205 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35206 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35209 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35214 if test "$llvm_cv_link_use_r" = "yes" ; then
35221 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35222 RDYNAMIC="-Wl,-export-dynamic"
35229 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35231 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35233 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35235 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35237 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35239 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35242 ac_config_files="$ac_config_files Makefile.config"
35245 ac_config_files="$ac_config_files llvm.spec"
35248 ac_config_files="$ac_config_files docs/doxygen.cfg"
35251 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35254 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35257 ac_config_commands="$ac_config_commands setup"
35259 ac_config_commands="$ac_config_commands Makefile"
35262 ac_config_commands="$ac_config_commands Makefile.common"
35265 ac_config_commands="$ac_config_commands examples/Makefile"
35268 ac_config_commands="$ac_config_commands lib/Makefile"
35271 ac_config_commands="$ac_config_commands runtime/Makefile"
35274 ac_config_commands="$ac_config_commands test/Makefile"
35277 ac_config_commands="$ac_config_commands test/Makefile.tests"
35280 ac_config_commands="$ac_config_commands unittests/Makefile"
35283 ac_config_commands="$ac_config_commands tools/Makefile"
35286 ac_config_commands="$ac_config_commands utils/Makefile"
35289 ac_config_commands="$ac_config_commands projects/Makefile"
35292 ac_config_commands="$ac_config_commands bindings/Makefile"
35295 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35299 cat >confcache <<\_ACEOF
35300 # This file is a shell script that caches the results of configure
35301 # tests run on this system so they can be shared between configure
35302 # scripts and configure runs, see configure's option --config-cache.
35303 # It is not useful on other systems. If it contains results you don't
35304 # want to keep, you may remove or edit it.
35306 # config.status only pays attention to the cache file if you give it
35307 # the --recheck option to rerun configure.
35309 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
35310 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35311 # following values.
35315 # The following way of writing the cache mishandles newlines in values,
35316 # but we know of no workaround that is simple, portable, and efficient.
35317 # So, we kill variables containing newlines.
35318 # Ultrix sh set writes to stderr and can't be redirected directly,
35319 # and sets the high bit in the cache file unless we assign to the vars.
35321 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35322 eval ac_val
=\$
$ac_var
35326 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35327 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35330 _ | IFS | as_nl
) ;; #(
35331 *) $as_unset $ac_var ;;
35337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35338 *${as_nl}ac_space
=\
*)
35339 # `set' does not quote correctly, so add quotes (double-quote
35340 # substitution turns \\\\ into \\, and sed turns \\ into \).
35343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35346 # `set' quotes correctly as required by POSIX, so do not add quotes.
35347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35360 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35361 if test -w "$cache_file"; then
35362 test "x$cache_file" != "x/dev/null" &&
35363 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35364 echo "$as_me: updating cache $cache_file" >&6;}
35365 cat confcache
>$cache_file
35367 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35368 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35373 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35374 # Let make expand exec_prefix.
35375 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35377 DEFS
=-DHAVE_CONFIG_H
35381 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35382 # 1. Remove the extension, and $U if already installed.
35383 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35384 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35386 # will be set to the directory where LIBOBJS objects are built.
35387 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35388 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35390 LIBOBJS
=$ac_libobjs
35392 LTLIBOBJS
=$ac_ltlibobjs
35395 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35396 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35397 Usually this means the macro was only invoked conditionally." >&5
35398 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35399 Usually this means the macro was only invoked conditionally." >&2;}
35400 { (exit 1); exit 1; }; }
35402 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35403 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35404 Usually this means the macro was only invoked conditionally." >&5
35405 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35406 Usually this means the macro was only invoked conditionally." >&2;}
35407 { (exit 1); exit 1; }; }
35410 : ${CONFIG_STATUS=./config.status}
35411 ac_clean_files_save
=$ac_clean_files
35412 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35415 cat >$CONFIG_STATUS <<_ACEOF
35417 # Generated by $as_me.
35418 # Run this file to recreate the current configuration.
35419 # Compiler output produced by configure, useful for debugging
35420 # configure, is in config.log if it exists.
35423 ac_cs_recheck=false
35425 SHELL=\${CONFIG_SHELL-$SHELL}
35428 cat >>$CONFIG_STATUS <<\_ACEOF
35429 ## --------------------- ##
35430 ## M4sh Initialization. ##
35431 ## --------------------- ##
35433 # Be Bourne compatible
35434 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35438 # is contrary to our usage. Disable this feature.
35439 alias -g '${1+"$@"}'='"$@"'
35440 setopt NO_GLOB_SUBST
35442 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
35444 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
35445 DUALCASE
=1; export DUALCASE
# for MKS sh
35449 # Avoid depending upon Character Ranges.
35450 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35451 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35452 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35453 as_cr_digits
='0123456789'
35454 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35456 # The user is always right.
35457 if test "${PATH_SEPARATOR+set}" != set; then
35458 echo "#! /bin/sh" >conf$$.sh
35459 echo "exit 0" >>conf$$.sh
35461 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35469 # Support unset when possible.
35470 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35478 # We need space, tab and new line, in precisely that order. Quoting is
35479 # there to prevent editors from complaining about space-tab.
35480 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35481 # splitting by setting IFS to empty value.)
35486 # Find who we are. Look in the path if we contain no directory separator.
35488 *[\\/]* ) as_myself
=$0 ;;
35489 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35490 for as_dir
in $PATH
35493 test -z "$as_dir" && as_dir
=.
35494 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35500 # We did not find ourselves, most probably we were run as `sh COMMAND'
35501 # in which case we are not to be found in the path.
35502 if test "x$as_myself" = x
; then
35505 if test ! -f "$as_myself"; then
35506 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35507 { (exit 1); exit 1; }
35510 # Work around bugs in pre-3.0 UWIN ksh.
35511 for as_var
in ENV MAIL MAILPATH
35512 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35522 LC_TELEPHONE LC_TIME
35524 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35525 eval $as_var=C
; export $as_var
35527 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35531 # Required to use basename.
35532 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35533 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35539 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35540 as_basename
=basename
35546 # Name of the executable.
35547 as_me
=`$as_basename -- "$0" ||
35548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35549 X"$0" : 'X\(//\)$' \| \
35550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35552 sed '/^.*\/\([^/][^/]*\)\/*$/{
35571 as_lineno_1
=$LINENO
35572 as_lineno_2
=$LINENO
35573 test "x$as_lineno_1" != "x$as_lineno_2" &&
35574 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35577 # uniformly replaced by the line number. The first 'sed' inserts a
35578 # line-number line after each line using $LINENO; the second 'sed'
35579 # does the real work. The second script uses 'N' to pair each
35580 # line-number line with the line containing $LINENO, and appends
35581 # trailing '-' during substitution so that $LINENO is not a special
35582 # case at line end.
35583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35584 # scripts with optimization help from Paolo Bonzini. Blame Lee
35585 # E. McMahon (1931-1989) for sed's syntax. :-)
35597 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35600 ' >$as_me.lineno
&&
35601 chmod +x
"$as_me.lineno" ||
35602 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35603 { (exit 1); exit 1; }; }
35605 # Don't try to exec as it changes $[0], causing all sort of problems
35606 # (the dirname of $[0] is not the place where we might find the
35607 # original and so on. Autoconf is especially sensitive to this).
35608 .
"./$as_me.lineno"
35609 # Exit status is that of the last command.
35614 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35620 ECHO_C
= ECHO_N
= ECHO_T
=
35621 case `echo -n x` in
35623 case `echo 'x\c'` in
35624 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35631 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35632 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35638 rm -f conf$$ conf$$.exe conf$$.
file
35639 if test -d conf$$.dir
; then
35640 rm -f conf$$.dir
/conf$$.
file
35646 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35648 # ... but there are two gotchas:
35649 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35650 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35651 # In both cases, we have to default to `cp -p'.
35652 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35654 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35659 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35660 rmdir conf$$.dir
2>/dev
/null
35662 if mkdir
-p .
2>/dev
/null
; then
35665 test -d .
/-p && rmdir .
/-p
35669 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35670 # systems may use methods other than mode bits to determine executability.
35671 cat >conf$$.
file <<_ASEOF
35675 chmod +x conf$$.
file
35676 if test -x conf$$.
file >/dev
/null
2>&1; then
35677 as_executable_p
="test -x"
35683 # Sed expression to map a string onto a valid CPP name.
35684 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35686 # Sed expression to map a string onto a valid variable name.
35687 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35692 # Save the log message, to keep $[0] and so on meaningful, and to
35693 # report actual input values of CONFIG_FILES etc. instead of their
35694 # values after options handling.
35696 This file was extended by llvm $as_me 2.6svn, which was
35697 generated by GNU Autoconf 2.60. Invocation command line was
35699 CONFIG_FILES = $CONFIG_FILES
35700 CONFIG_HEADERS = $CONFIG_HEADERS
35701 CONFIG_LINKS = $CONFIG_LINKS
35702 CONFIG_COMMANDS = $CONFIG_COMMANDS
35705 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35710 cat >>$CONFIG_STATUS <<_ACEOF
35711 # Files that config.status was made for.
35712 config_files="$ac_config_files"
35713 config_headers="$ac_config_headers"
35714 config_commands="$ac_config_commands"
35718 cat >>$CONFIG_STATUS <<\_ACEOF
35720 \`$as_me' instantiates files from templates according to the
35721 current configuration.
35723 Usage: $0 [OPTIONS] [FILE]...
35725 -h, --help print this help, then exit
35726 -V, --version print version number, then exit
35727 -q, --quiet do not print progress messages
35728 -d, --debug don't remove temporary files
35729 --recheck update $as_me by reconfiguring in the same conditions
35730 --file=FILE[:TEMPLATE]
35731 instantiate the configuration file FILE
35732 --header=FILE[:TEMPLATE]
35733 instantiate the configuration header FILE
35735 Configuration files:
35738 Configuration headers:
35741 Configuration commands:
35744 Report bugs to <bug-autoconf@gnu.org>."
35747 cat >>$CONFIG_STATUS <<_ACEOF
35749 llvm config.status 2.6svn
35750 configured by $0, generated by GNU Autoconf 2.60,
35751 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35753 Copyright (C) 2006 Free Software Foundation, Inc.
35754 This config.status script is free software; the Free Software Foundation
35755 gives unlimited permission to copy, distribute and modify it."
35762 cat >>$CONFIG_STATUS <<\_ACEOF
35763 # If no file are specified by the user, then we need to provide default
35764 # value. By we need to know if files were specified by the user.
35770 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35771 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35782 # Handling of the options.
35783 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35785 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35786 echo "$ac_cs_version"; exit ;;
35787 --debug |
--debu |
--deb |
--de |
--d |
-d )
35789 --file |
--fil |
--fi |
--f )
35791 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35792 ac_need_defaults
=false
;;
35793 --header |
--heade |
--head |
--hea )
35795 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35796 ac_need_defaults
=false
;;
35798 # Conflict between --help and --header
35799 { echo "$as_me: error: ambiguous option: $1
35800 Try \`$0 --help' for more information." >&2
35801 { (exit 1); exit 1; }; };;
35802 --help |
--hel |
-h )
35803 echo "$ac_cs_usage"; exit ;;
35804 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35805 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35808 # This is an error.
35809 -*) { echo "$as_me: error: unrecognized option: $1
35810 Try \`$0 --help' for more information." >&2
35811 { (exit 1); exit 1; }; } ;;
35813 *) ac_config_targets
="$ac_config_targets $1"
35814 ac_need_defaults
=false
;;
35820 ac_configure_extra_args
=
35822 if $ac_cs_silent; then
35824 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35828 cat >>$CONFIG_STATUS <<_ACEOF
35829 if \$ac_cs_recheck; then
35830 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35831 CONFIG_SHELL=$SHELL
35832 export CONFIG_SHELL
35833 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35837 cat >>$CONFIG_STATUS <<\_ACEOF
35841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35842 ## Running $as_me. ##
35848 cat >>$CONFIG_STATUS <<_ACEOF
35852 llvm_src="${srcdir}"
35856 cat >>$CONFIG_STATUS <<\_ACEOF
35858 # Handling of arguments.
35859 for ac_config_target
in $ac_config_targets
35861 case $ac_config_target in
35862 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35863 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35864 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35865 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35866 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35867 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35868 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35869 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35870 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35871 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35872 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35873 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35874 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35875 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35876 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35877 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35878 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35879 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35880 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35881 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35882 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35883 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35884 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35885 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35886 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35888 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35889 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35890 { (exit 1); exit 1; }; };;
35895 # If the user did not use the arguments to specify the items to instantiate,
35896 # then the envvar interface is used. Set only those that are not.
35897 # We use the long form for the default assignment because of an extremely
35898 # bizarre bug on SunOS 4.1.3.
35899 if $ac_need_defaults; then
35900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35905 # Have a temporary directory for convenience. Make it in the build tree
35906 # simply because there is no reason against having it here, and in addition,
35907 # creating and moving files from /tmp can sometimes cause problems.
35908 # Hook for its removal unless debugging.
35909 # Note that there is a small window in which the directory will not be cleaned:
35910 # after its creation but before its name has been assigned to `$tmp'.
35914 trap 'exit_status=$?
35915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35917 trap '{ (exit 1); exit 1; }' 1 2 13 15
35919 # Create a (secure) tmp directory for tmp files.
35922 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35923 test -n "$tmp" && test -d "$tmp"
35926 tmp
=.
/conf$$
-$RANDOM
35927 (umask 077 && mkdir
"$tmp")
35930 echo "$me: cannot create a temporary directory in ." >&2
35931 { (exit 1); exit 1; }
35935 # Set up the sed scripts for CONFIG_FILES section.
35938 # No need to generate the scripts if there are no CONFIG_FILES.
35939 # This happens for instance when ./config.status config.h
35940 if test -n "$CONFIG_FILES"; then
35947 for ac_last_try
in false false false false false
:; do
35948 cat >conf$
$subs.
sed <<_ACEOF
35949 SHELL!$SHELL$ac_delim
35950 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35951 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35952 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35953 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35954 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35955 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35956 exec_prefix!$exec_prefix$ac_delim
35957 prefix!$prefix$ac_delim
35958 program_transform_name!$program_transform_name$ac_delim
35959 bindir!$bindir$ac_delim
35960 sbindir!$sbindir$ac_delim
35961 libexecdir!$libexecdir$ac_delim
35962 datarootdir!$datarootdir$ac_delim
35963 datadir!$datadir$ac_delim
35964 sysconfdir!$sysconfdir$ac_delim
35965 sharedstatedir!$sharedstatedir$ac_delim
35966 localstatedir!$localstatedir$ac_delim
35967 includedir!$includedir$ac_delim
35968 oldincludedir!$oldincludedir$ac_delim
35969 docdir!$docdir$ac_delim
35970 infodir!$infodir$ac_delim
35971 htmldir!$htmldir$ac_delim
35972 dvidir!$dvidir$ac_delim
35973 pdfdir!$pdfdir$ac_delim
35974 psdir!$psdir$ac_delim
35975 libdir!$libdir$ac_delim
35976 localedir!$localedir$ac_delim
35977 mandir!$mandir$ac_delim
35978 DEFS!$DEFS$ac_delim
35979 ECHO_C!$ECHO_C$ac_delim
35980 ECHO_N!$ECHO_N$ac_delim
35981 ECHO_T!$ECHO_T$ac_delim
35982 LIBS!$LIBS$ac_delim
35983 build_alias!$build_alias$ac_delim
35984 host_alias!$host_alias$ac_delim
35985 target_alias!$target_alias$ac_delim
35986 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35987 subdirs!$subdirs$ac_delim
35988 build!$build$ac_delim
35989 build_cpu!$build_cpu$ac_delim
35990 build_vendor!$build_vendor$ac_delim
35991 build_os!$build_os$ac_delim
35992 host!$host$ac_delim
35993 host_cpu!$host_cpu$ac_delim
35994 host_vendor!$host_vendor$ac_delim
35995 host_os!$host_os$ac_delim
35996 target!$target$ac_delim
35997 target_cpu!$target_cpu$ac_delim
35998 target_vendor!$target_vendor$ac_delim
35999 target_os!$target_os$ac_delim
36001 LINKALL!$LINKALL$ac_delim
36002 NOLINKALL!$NOLINKALL$ac_delim
36003 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36004 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36005 ARCH!$ARCH$ac_delim
36006 ENDIAN!$ENDIAN$ac_delim
36008 CFLAGS!$CFLAGS$ac_delim
36009 LDFLAGS!$LDFLAGS$ac_delim
36010 CPPFLAGS!$CPPFLAGS$ac_delim
36011 ac_ct_CC!$ac_ct_CC$ac_delim
36012 EXEEXT!$EXEEXT$ac_delim
36013 OBJEXT!$OBJEXT$ac_delim
36015 GREP!$GREP$ac_delim
36016 EGREP!$EGREP$ac_delim
36017 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36018 BUILD_CC!$BUILD_CC$ac_delim
36019 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36020 BUILD_CXX!$BUILD_CXX$ac_delim
36021 CVSBUILD!$CVSBUILD$ac_delim
36022 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36023 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36024 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36025 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36026 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36027 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36029 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36030 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36031 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36032 ENABLE_PIC!$ENABLE_PIC$ac_delim
36033 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36034 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36035 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36036 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36037 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36038 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36039 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36040 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36041 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36043 CXXFLAGS!$CXXFLAGS$ac_delim
36044 ac_ct_CXX!$ac_ct_CXX$ac_delim
36048 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36050 elif $ac_last_try; then
36051 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36052 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36053 { (exit 1); exit 1; }; }
36055 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36059 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36060 if test -n "$ac_eof"; then
36061 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36062 ac_eof
=`expr $ac_eof + 1`
36065 cat >>$CONFIG_STATUS <<_ACEOF
36066 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36070 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36071 s/^/s,@/; s/!/@,|#_!!_#|/
36074 s/'"$ac_delim"'$/,g/; t
36076 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36077 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36078 rm -f conf$
$subs.
sed
36079 cat >>$CONFIG_STATUS <<_ACEOF
36085 for ac_last_try
in false false false false false
:; do
36086 cat >conf$
$subs.
sed <<_ACEOF
36087 ifGNUmake!$ifGNUmake$ac_delim
36088 LN_S!$LN_S$ac_delim
36091 DATE!$DATE$ac_delim
36092 FIND!$FIND$ac_delim
36093 MKDIR!$MKDIR$ac_delim
36095 RANLIB!$RANLIB$ac_delim
36099 BINPWD!$BINPWD$ac_delim
36100 GRAPHVIZ!$GRAPHVIZ$ac_delim
36103 NEATO!$NEATO$ac_delim
36104 TWOPI!$TWOPI$ac_delim
36105 CIRCO!$CIRCO$ac_delim
36107 DOTTY!$DOTTY$ac_delim
36108 PERL!$PERL$ac_delim
36109 HAVE_PERL!$HAVE_PERL$ac_delim
36110 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36111 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36112 INSTALL_DATA!$INSTALL_DATA$ac_delim
36113 BZIP2!$BZIP2$ac_delim
36114 DOXYGEN!$DOXYGEN$ac_delim
36115 GROFF!$GROFF$ac_delim
36116 GZIP!$GZIP$ac_delim
36117 POD2HTML!$POD2HTML$ac_delim
36118 POD2MAN!$POD2MAN$ac_delim
36119 RUNTEST!$RUNTEST$ac_delim
36120 TCLSH!$TCLSH$ac_delim
36122 OCAMLC!$OCAMLC$ac_delim
36123 OCAMLOPT!$OCAMLOPT$ac_delim
36124 OCAMLDEP!$OCAMLDEP$ac_delim
36125 OCAMLDOC!$OCAMLDOC$ac_delim
36127 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36128 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36129 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36130 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36131 LIBADD_DL!$LIBADD_DL$ac_delim
36132 ECHO!$ECHO$ac_delim
36134 STRIP!$STRIP$ac_delim
36135 CXXCPP!$CXXCPP$ac_delim
36137 FFLAGS!$FFLAGS$ac_delim
36138 ac_ct_F77!$ac_ct_F77$ac_delim
36139 LIBTOOL!$LIBTOOL$ac_delim
36140 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36141 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36142 LLVMGCC!$LLVMGCC$ac_delim
36143 LLVMGXX!$LLVMGXX$ac_delim
36144 USE_UDIS86!$USE_UDIS86$ac_delim
36145 USE_OPROFILE!$USE_OPROFILE$ac_delim
36146 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36147 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36148 ALLOCA!$ALLOCA$ac_delim
36149 MMAP_FILE!$MMAP_FILE$ac_delim
36150 LLVMCC1!$LLVMCC1$ac_delim
36151 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36152 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36153 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36154 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36155 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36156 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36157 SHLIBEXT!$SHLIBEXT$ac_delim
36158 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36159 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36160 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36161 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36162 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36163 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36164 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36165 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36166 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36167 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36168 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36169 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36170 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36171 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36172 RPATH!$RPATH$ac_delim
36173 RDYNAMIC!$RDYNAMIC$ac_delim
36174 LIBOBJS!$LIBOBJS$ac_delim
36175 LTLIBOBJS!$LTLIBOBJS$ac_delim
36178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
36180 elif $ac_last_try; then
36181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36183 { (exit 1); exit 1; }; }
36185 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36189 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36190 if test -n "$ac_eof"; then
36191 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36192 ac_eof
=`expr $ac_eof + 1`
36195 cat >>$CONFIG_STATUS <<_ACEOF
36196 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36201 s/^/s,@/; s/!/@,|#_!!_#|/
36204 s/'"$ac_delim"'$/,g/; t
36206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36207 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36208 rm -f conf$
$subs.
sed
36209 cat >>$CONFIG_STATUS <<_ACEOF
36216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36218 # trailing colons and then remove the whole line if VPATH becomes empty
36219 # (actually we leave an empty line to preserve line numbers).
36220 if test "x$srcdir" = x.
; then
36221 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36222 s/:*\$(srcdir):*/:/
36223 s/:*\${srcdir}:*/:/
36225 s/^\([^=]*=[ ]*\):*/\1/
36231 cat >>$CONFIG_STATUS <<\_ACEOF
36232 fi # test -n "$CONFIG_FILES"
36235 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
36238 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36240 case $ac_mode$ac_tag in
36242 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36243 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36244 { (exit 1); exit 1; }; };;
36245 :[FH
]-) ac_tag
=-:-;;
36246 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36263 -) ac_f
="$tmp/stdin";;
36264 *) # Look for the file first in the build tree, then in the source tree
36265 # (if the path is not absolute). The absolute path cannot be DOS-style,
36266 # because $ac_f cannot contain `:'.
36270 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36272 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36273 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36274 { (exit 1); exit 1; }; };;
36276 ac_file_inputs
="$ac_file_inputs $ac_f"
36279 # Let's still pretend it is `configure' which instantiates (i.e., don't
36280 # use $as_me), people would be surprised to read:
36281 # /* config.h. Generated by config.status. */
36282 configure_input
="Generated from "`IFS=:
36283 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36284 if test x
"$ac_file" != x-
; then
36285 configure_input
="$ac_file. $configure_input"
36286 { echo "$as_me:$LINENO: creating $ac_file" >&5
36287 echo "$as_me: creating $ac_file" >&6;}
36291 *:-:* |
*:-) cat >"$tmp/stdin";;
36296 ac_dir
=`$as_dirname -- "$ac_file" ||
36297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36298 X"$ac_file" : 'X\(//\)[^/]' \| \
36299 X"$ac_file" : 'X\(//\)$' \| \
36300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36306 /^X\(\/\/\)[^/].*/{
36321 -*) as_dir
=.
/$as_dir;;
36323 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36327 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36328 *) as_qdir
=$as_dir;;
36330 as_dirs
="'$as_qdir' $as_dirs"
36331 as_dir
=`$as_dirname -- "$as_dir" ||
36332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36333 X"$as_dir" : 'X\(//\)[^/]' \| \
36334 X"$as_dir" : 'X\(//\)$' \| \
36335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36341 /^X\(\/\/\)[^/].*/{
36354 test -d "$as_dir" && break
36356 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36357 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36358 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36359 { (exit 1); exit 1; }; }; }
36363 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36365 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36366 # A ".." for each directory in $ac_dir_suffix.
36367 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36368 case $ac_top_builddir_sub in
36369 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36370 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36373 ac_abs_top_builddir
=$ac_pwd
36374 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36375 # for backward compatibility:
36376 ac_top_builddir
=$ac_top_build_prefix
36379 .
) # We are building in place.
36381 ac_top_srcdir
=$ac_top_builddir_sub
36382 ac_abs_top_srcdir
=$ac_pwd ;;
36383 [\\/]* | ?
:[\\/]* ) # Absolute name.
36384 ac_srcdir
=$srcdir$ac_dir_suffix;
36385 ac_top_srcdir
=$srcdir
36386 ac_abs_top_srcdir
=$srcdir ;;
36387 *) # Relative name.
36388 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36389 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36390 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36392 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36402 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36403 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36407 cat >>$CONFIG_STATUS <<\_ACEOF
36408 # If the template does not know about datarootdir, expand it.
36409 # FIXME: This hack should be removed a few years after 2.60.
36410 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36412 case `sed -n '/datarootdir/ {
36421 ' $ac_file_inputs` in
36422 *datarootdir
*) ac_datarootdir_seen
=yes;;
36423 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36424 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36425 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36427 cat >>$CONFIG_STATUS <<_ACEOF
36428 ac_datarootdir_hack='
36429 s&@datadir@&$datadir&g
36430 s&@docdir@&$docdir&g
36431 s&@infodir@&$infodir&g
36432 s&@localedir@&$localedir&g
36433 s&@mandir@&$mandir&g
36434 s&\\\${datarootdir}&$datarootdir&g' ;;
36438 # Neutralize VPATH when `$srcdir' = `.'.
36439 # Shell code in configure.ac might set extrasub.
36440 # FIXME: do we really want to maintain this feature?
36441 cat >>$CONFIG_STATUS <<_ACEOF
36445 cat >>$CONFIG_STATUS <<\_ACEOF
36447 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36448 s
&@configure_input@
&$configure_input&;t t
36449 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36450 s
&@srcdir@
&$ac_srcdir&;t t
36451 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36452 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36453 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36454 s
&@builddir@
&$ac_builddir&;t t
36455 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36456 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36457 s
&@INSTALL@
&$ac_INSTALL&;t t
36458 $ac_datarootdir_hack
36459 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
36461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36464 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36465 which seems to be undefined. Please make sure it is defined." >&5
36466 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36467 which seems to be undefined. Please make sure it is defined." >&2;}
36471 -) cat "$tmp/out"; rm -f "$tmp/out";;
36472 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36481 # Transform confdefs.h into a sed script `conftest.defines', that
36482 # substitutes the proper values into config.h.in to produce config.h.
36483 rm -f conftest.defines conftest.
tail
36484 # First, append a space to every undef/define line, to ease matching.
36485 echo 's/$/ /' >conftest.defines
36486 # Then, protect against being on the right side of a sed subst, or in
36487 # an unquoted here document, in config.status. If some macros were
36488 # called several times there might be several #defines for the same
36489 # symbol, which is useless. But do not sort them, since the last
36490 # AC_DEFINE must be honored.
36491 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36492 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36493 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36494 # PARAMS is the parameter list in the macro definition--in most cases, it's
36495 # just an empty string.
36496 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36497 ac_dB
='\\)[ (].*,\\1define\\2'
36505 s/^[ ]*#[ ]*define[ ][ ]*//
36510 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36511 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36512 ' >>conftest.defines
36514 # Remove the space that was appended to ease matching.
36515 # Then replace #undef with comments. This is necessary, for
36516 # example, in the case of _POSIX_SOURCE, which is predefined and required
36517 # on some systems where configure will not decide to define it.
36518 # (The regexp can be short, since the line contains either #define or #undef.)
36520 s,^[ #]*u.*,/* & */,' >>conftest.defines
36522 # Break up conftest.defines:
36523 ac_max_sed_lines
=50
36525 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36526 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36527 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36529 ac_in
='$ac_file_inputs'
36530 ac_out
='"$tmp/out1"'
36531 ac_nxt
='"$tmp/out2"'
36535 # Write a here document:
36536 cat >>$CONFIG_STATUS <<_ACEOF
36537 # First, check the format of the line:
36538 cat >"\$tmp/defines.sed" <<\\CEOF
36539 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36540 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36544 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36546 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36547 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36548 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36549 grep . conftest.
tail >/dev
/null ||
break
36550 rm -f conftest.defines
36551 mv conftest.
tail conftest.defines
36553 rm -f conftest.defines conftest.
tail
36555 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36556 cat >>$CONFIG_STATUS <<\_ACEOF
36557 if test x
"$ac_file" != x-
; then
36558 echo "/* $configure_input */" >"$tmp/config.h"
36559 cat "$ac_result" >>"$tmp/config.h"
36560 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36561 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36562 echo "$as_me: $ac_file is unchanged" >&6;}
36565 mv "$tmp/config.h" $ac_file
36568 echo "/* $configure_input */"
36574 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36575 echo "$as_me: executing $ac_file commands" >&6;}
36580 case $ac_file$ac_mode in
36581 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
36582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
36583 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
36584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
36585 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
36586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
36587 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
36588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
36589 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
36590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
36591 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
36592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
36593 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
36594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
36595 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
36596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
36597 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
36598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
36599 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
36600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
36601 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
36602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
36603 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
36604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
36605 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
36606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
36612 { (exit 0); exit 0; }
36614 chmod +x
$CONFIG_STATUS
36615 ac_clean_files
=$ac_clean_files_save
36618 # configure is writing to config.log, and then calls config.status.
36619 # config.status does its own redirection, appending to config.log.
36620 # Unfortunately, on DOS this fails, as config.log is still kept open
36621 # by configure, so config.status won't be able to write to it; its
36622 # output is simply discarded. So we exec the FD to /dev/null,
36623 # effectively closing config.log, so it can be properly (re)opened and
36624 # appended to by config.status. When coming back to configure, we
36625 # need to make the FD available again.
36626 if test "$no_create" != yes; then
36628 ac_config_status_args
=
36629 test "$silent" = yes &&
36630 ac_config_status_args
="$ac_config_status_args --quiet"
36632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36635 # would make configure fail if this is the last instruction.
36636 $ac_cs_success ||
{ (exit 1); exit 1; }
36640 # CONFIG_SUBDIRS section.
36642 if test "$no_recursion" != yes; then
36644 # Remove --cache-file and --srcdir arguments so they do not pile up.
36645 ac_sub_configure_args
=
36647 eval "set x $ac_configure_args"
36651 if test -n "$ac_prev"; then
36656 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36657 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36658 ac_prev
=cache_file
;;
36659 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36660 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36663 --config-cache |
-C)
36665 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36667 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36669 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36671 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36675 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36677 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36681 # Always prepend --prefix to ensure using the same prefix
36682 # in subdir configurations.
36683 ac_arg
="--prefix=$prefix"
36685 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36687 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36690 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36692 # Do not complain, so a configure script can configure whichever
36693 # parts of a large source tree are present.
36694 test -d "$srcdir/$ac_dir" ||
continue
36696 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36697 echo "$as_me:$LINENO: $ac_msg" >&5
36701 -*) as_dir
=.
/$as_dir;;
36703 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36707 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36708 *) as_qdir
=$as_dir;;
36710 as_dirs
="'$as_qdir' $as_dirs"
36711 as_dir
=`$as_dirname -- "$as_dir" ||
36712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36713 X"$as_dir" : 'X\(//\)[^/]' \| \
36714 X"$as_dir" : 'X\(//\)$' \| \
36715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36721 /^X\(\/\/\)[^/].*/{
36734 test -d "$as_dir" && break
36736 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36737 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36739 { (exit 1); exit 1; }; }; }
36743 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36745 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36746 # A ".." for each directory in $ac_dir_suffix.
36747 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36748 case $ac_top_builddir_sub in
36749 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36750 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36753 ac_abs_top_builddir
=$ac_pwd
36754 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36755 # for backward compatibility:
36756 ac_top_builddir
=$ac_top_build_prefix
36759 .
) # We are building in place.
36761 ac_top_srcdir
=$ac_top_builddir_sub
36762 ac_abs_top_srcdir
=$ac_pwd ;;
36763 [\\/]* | ?
:[\\/]* ) # Absolute name.
36764 ac_srcdir
=$srcdir$ac_dir_suffix;
36765 ac_top_srcdir
=$srcdir
36766 ac_abs_top_srcdir
=$srcdir ;;
36767 *) # Relative name.
36768 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36769 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36770 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36772 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36777 # Check for guested configure; otherwise get Cygnus style configure.
36778 if test -f "$ac_srcdir/configure.gnu"; then
36779 ac_sub_configure
=$ac_srcdir/configure.gnu
36780 elif test -f "$ac_srcdir/configure"; then
36781 ac_sub_configure
=$ac_srcdir/configure
36782 elif test -f "$ac_srcdir/configure.in"; then
36783 # This should be Cygnus configure.
36784 ac_sub_configure
=$ac_aux_dir/configure
36786 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36787 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36791 # The recursion is here.
36792 if test -n "$ac_sub_configure"; then
36793 # Make the cache file name correct relative to the subdirectory.
36794 case $cache_file in
36795 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36796 *) # Relative name.
36797 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36800 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36801 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36802 # The eval makes quoting arguments work.
36803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36805 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36806 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36807 { (exit 1); exit 1; }; }