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
834 ENABLE_EXPENSIVE_CHECKS
895 CONVENIENCE_LTDL_TRUE
896 CONVENIENCE_LTDL_FALSE
934 ENABLE_VISIBILITY_INLINES_HIDDEN
938 ac_precious_vars
='build_alias
954 ac_subdirs_all
='projects/sample
956 projects/llvm-stacker
963 projects/llvm-poolalloc
965 projects/llvm-kernel'
967 # Initialize some variables set by options.
969 ac_init_version
=false
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
979 program_transform_name
=s
,x
,x
,
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir
='${exec_prefix}/bin'
994 sbindir
='${exec_prefix}/sbin'
995 libexecdir
='${exec_prefix}/libexec'
996 datarootdir
='${prefix}/share'
997 datadir
='${datarootdir}'
998 sysconfdir
='${prefix}/etc'
999 sharedstatedir
='${prefix}/com'
1000 localstatedir
='${prefix}/var'
1001 includedir
='${prefix}/include'
1002 oldincludedir
='/usr/include'
1003 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir
='${datarootdir}/info'
1009 libdir
='${exec_prefix}/lib'
1010 localedir
='${datarootdir}/locale'
1011 mandir
='${datarootdir}/man'
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\
$ac_option
1025 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1035 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1037 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1038 bindir
=$ac_optarg ;;
1040 -build |
--build |
--buil |
--bui |
--bu)
1041 ac_prev
=build_alias
;;
1042 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1043 build_alias
=$ac_optarg ;;
1045 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1046 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1047 ac_prev
=cache_file
;;
1048 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1049 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1050 cache_file
=$ac_optarg ;;
1052 --config-cache |
-C)
1053 cache_file
=config.cache
;;
1055 -datadir |
--datadir |
--datadi |
--datad)
1057 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1058 datadir
=$ac_optarg ;;
1060 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1061 |
--dataroo |
--dataro |
--datar)
1062 ac_prev
=datarootdir
;;
1063 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1064 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1065 datarootdir
=$ac_optarg ;;
1067 -disable-* |
--disable-*)
1068 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1074 eval enable_
$ac_feature=no
;;
1076 -docdir |
--docdir |
--docdi |
--doc |
--do)
1078 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1079 docdir
=$ac_optarg ;;
1081 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1083 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1084 dvidir
=$ac_optarg ;;
1086 -enable-* |
--enable-*)
1087 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1090 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091 { (exit 1); exit 1; }; }
1092 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1093 eval enable_
$ac_feature=\
$ac_optarg ;;
1095 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1096 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1097 |
--exec |
--exe |
--ex)
1098 ac_prev
=exec_prefix
;;
1099 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1100 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1101 |
--exec=* |
--exe=* |
--ex=*)
1102 exec_prefix
=$ac_optarg ;;
1104 -gas |
--gas |
--ga |
--g)
1105 # Obsolete; use --with-gas.
1108 -help |
--help |
--hel |
--he |
-h)
1109 ac_init_help
=long
;;
1110 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1111 ac_init_help
=recursive
;;
1112 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1113 ac_init_help
=short
;;
1115 -host |
--host |
--hos |
--ho)
1116 ac_prev
=host_alias
;;
1117 -host=* |
--host=* |
--hos=* |
--ho=*)
1118 host_alias
=$ac_optarg ;;
1120 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1122 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1124 htmldir
=$ac_optarg ;;
1126 -includedir |
--includedir |
--includedi |
--included |
--include \
1127 |
--includ |
--inclu |
--incl |
--inc)
1128 ac_prev
=includedir
;;
1129 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1130 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1131 includedir
=$ac_optarg ;;
1133 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1135 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1136 infodir
=$ac_optarg ;;
1138 -libdir |
--libdir |
--libdi |
--libd)
1140 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1141 libdir
=$ac_optarg ;;
1143 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1144 |
--libexe |
--libex |
--libe)
1145 ac_prev
=libexecdir
;;
1146 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1147 |
--libexe=* |
--libex=* |
--libe=*)
1148 libexecdir
=$ac_optarg ;;
1150 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1151 ac_prev
=localedir
;;
1152 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1153 localedir
=$ac_optarg ;;
1155 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1156 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1157 ac_prev
=localstatedir
;;
1158 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1159 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1160 localstatedir
=$ac_optarg ;;
1162 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1164 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1165 mandir
=$ac_optarg ;;
1167 -nfp |
--nfp |
--nf)
1168 # Obsolete; use --without-fp.
1171 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1172 |
--no-cr |
--no-c |
-n)
1175 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1176 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1179 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1180 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1181 |
--oldin |
--oldi |
--old |
--ol |
--o)
1182 ac_prev
=oldincludedir
;;
1183 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1184 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1185 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1186 oldincludedir
=$ac_optarg ;;
1188 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1190 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1191 prefix
=$ac_optarg ;;
1193 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1194 |
--program-pre |
--program-pr |
--program-p)
1195 ac_prev
=program_prefix
;;
1196 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1197 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1198 program_prefix
=$ac_optarg ;;
1200 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1201 |
--program-suf |
--program-su |
--program-s)
1202 ac_prev
=program_suffix
;;
1203 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1204 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1205 program_suffix
=$ac_optarg ;;
1207 -program-transform-name |
--program-transform-name \
1208 |
--program-transform-nam |
--program-transform-na \
1209 |
--program-transform-n |
--program-transform- \
1210 |
--program-transform |
--program-transfor \
1211 |
--program-transfo |
--program-transf \
1212 |
--program-trans |
--program-tran \
1213 |
--progr-tra |
--program-tr |
--program-t)
1214 ac_prev
=program_transform_name
;;
1215 -program-transform-name=* |
--program-transform-name=* \
1216 |
--program-transform-nam=* |
--program-transform-na=* \
1217 |
--program-transform-n=* |
--program-transform-=* \
1218 |
--program-transform=* |
--program-transfor=* \
1219 |
--program-transfo=* |
--program-transf=* \
1220 |
--program-trans=* |
--program-tran=* \
1221 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1222 program_transform_name
=$ac_optarg ;;
1224 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1226 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1227 pdfdir
=$ac_optarg ;;
1229 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1231 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1234 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1235 |
-silent |
--silent |
--silen |
--sile |
--sil)
1238 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1240 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1242 sbindir
=$ac_optarg ;;
1244 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1245 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1246 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1248 ac_prev
=sharedstatedir
;;
1249 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1250 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1251 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1253 sharedstatedir
=$ac_optarg ;;
1255 -site |
--site |
--sit)
1257 -site=* |
--site=* |
--sit=*)
1260 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1262 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1263 srcdir
=$ac_optarg ;;
1265 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1266 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1267 ac_prev
=sysconfdir
;;
1268 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1269 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1270 sysconfdir
=$ac_optarg ;;
1272 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1273 ac_prev
=target_alias
;;
1274 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1275 target_alias
=$ac_optarg ;;
1277 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1280 -version |
--version |
--versio |
--versi |
--vers |
-V)
1281 ac_init_version
=: ;;
1284 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
1289 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1290 eval with_
$ac_package=\
$ac_optarg ;;
1292 -without-* |
--without-*)
1293 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1299 eval with_
$ac_package=no
;;
1302 # Obsolete; use --with-x.
1305 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1306 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1307 ac_prev
=x_includes
;;
1308 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1309 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1310 x_includes
=$ac_optarg ;;
1312 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1313 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1314 ac_prev
=x_libraries
;;
1315 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1316 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1317 x_libraries
=$ac_optarg ;;
1319 -*) { echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1325 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1328 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
1330 eval $ac_envvar=\
$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1337 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 if test -n "$ac_prev"; then
1345 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1346 { echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1350 # Be sure to have absolute directory names.
1351 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val
=\$
$ac_var
1358 [\\/$
]* | ?
:[\\/]* ) continue;;
1359 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1361 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362 { (exit 1); exit 1; }; }
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1370 target
=$target_alias
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x
; then
1374 if test "x$build_alias" = x
; then
1375 cross_compiling
=maybe
1376 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used." >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1384 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1386 test "$silent" = yes && exec 6>/dev
/null
1389 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di
=`ls -di .` &&
1391 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1392 { echo "$as_me: error: Working directory cannot be determined" >&2
1393 { (exit 1); exit 1; }; }
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 { echo "$as_me: error: pwd does not report name of working directory" >&2
1396 { (exit 1); exit 1; }; }
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401 ac_srcdir_defaulted
=yes
1402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir
=`$as_dirname -- "$0" ||
1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405 X"$0" : 'X\(//\)[^/]' \| \
1406 X"$0" : 'X\(//\)$' \| \
1407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1431 ac_srcdir_defaulted
=no
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1435 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436 { (exit 1); exit 1; }; }
1438 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441 { (exit 1); exit 1; }; }
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var
in $ac_precious_vars; do
1454 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1456 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1525 --build=BUILD configure
for building on BUILD
[guessed
]
1526 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1527 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1531 if test -n "$ac_init_help"; then
1532 case $ac_init_help in
1533 short | recursive
) echo "Configuration of llvm 2.6svn:";;
1538 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1539 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1542 --enable-expensive-checks
1544 --enable-debug-runtime
1545 --enable-jit Enable Just In Time Compiling
(default is YES
)
1546 --enable-doxygen Build doxygen documentation
(default is NO
)
1547 --enable-threads Use threads
if available
(default is YES
)
1548 --enable-pic Build LLVM with Position Independent Code
(default
1550 --enable-targets Build specific
host targets
:
1551 all
,host-only
,{target-name
} (default
=all
)
1552 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1554 --enable-bindings Build specific language bindings
:
1555 all
,auto
,none
,{binding-name
} (default
=auto
)
1556 --enable-ltdl-install install libltdl
1557 --enable-shared[=PKGS
] build shared libraries
1559 --enable-static[=PKGS
] build static libraries
1561 --enable-fast-install[=PKGS
]
1562 optimize
for fast installation
1564 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1567 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1568 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1569 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1571 --with-llvmgcc Specify location of llvm-gcc driver
(default
1573 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1575 --with-extra-options Specify addtional options to compile LLVM with
1576 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1578 --with-binutils-include Specify path to binutils
/include
/ containing
1579 plugin-api.h
file for gold plugin.
1580 --with-tclinclude directory where tcl headers are
1581 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1582 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1584 --with-tags[=TAGS
] include additional configurations
[automatic
]
1585 --with-udis86=<path
> Use udis86 external x86 disassembler library
1587 Some influential environment variables
:
1588 CC C compiler
command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1591 nonstandard directory
<lib dir
>
1592 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1593 you have headers
in a nonstandard directory
<include dir
>
1595 CXX C
++ compiler
command
1596 CXXFLAGS C
++ compiler flags
1597 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1598 the first program found out of: `bison
-y', `byacc', `yacc'.
1599 YFLAGS The list of arguments that will be passed by default to $YACC.
1600 This script will default YFLAGS to the empty string to avoid a
1601 default value of `-d' given by some make applications.
1602 CXXCPP C++ preprocessor
1603 F77 Fortran 77 compiler command
1604 FFLAGS Fortran 77 compiler flags
1606 Use these variables to override the choices made by `configure' or to
help
1607 it to
find libraries and programs with nonstandard names
/locations.
1609 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1617 test -d "$ac_dir" ||
continue
1621 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1623 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1624 # A ".." for each directory in $ac_dir_suffix.
1625 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1626 case $ac_top_builddir_sub in
1627 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1628 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1631 ac_abs_top_builddir
=$ac_pwd
1632 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1633 # for backward compatibility:
1634 ac_top_builddir
=$ac_top_build_prefix
1637 .
) # We are building in place.
1639 ac_top_srcdir
=$ac_top_builddir_sub
1640 ac_abs_top_srcdir
=$ac_pwd ;;
1641 [\\/]* | ?
:[\\/]* ) # Absolute name.
1642 ac_srcdir
=$srcdir$ac_dir_suffix;
1643 ac_top_srcdir
=$srcdir
1644 ac_abs_top_srcdir
=$srcdir ;;
1646 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1648 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1650 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1652 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1653 # Check for guested configure.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1661 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1670 llvm configure
2.6svn
1671 generated by GNU Autoconf
2.60
1673 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1674 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1675 This configure
script is free software
; the Free Software Foundation
1676 gives unlimited permission to copy
, distribute and modify it.
1678 Copyright
(c
) 2003-2008 University of Illinois
at Urbana-Champaign.
1682 cat >config.log
<<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1686 It was created by llvm $as_me 2.6svn, which was
1687 generated by GNU Autoconf 2.60. Invocation command line was
1699 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1711 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1712 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir
=.
1723 echo "PATH: $as_dir"
1739 # Keep a trace of the command line.
1740 # Strip out --no-create and --no-recursion so they do not pile up.
1741 # Strip out --silent because we don't want to record it for future runs.
1742 # Also quote any args containing shell meta-characters.
1743 # Make two passes to allow for proper duplicate-argument suppression.
1747 ac_must_keep_next
=false
1753 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1754 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1755 |
-silent |
--silent |
--silen |
--sile |
--sil)
1758 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1763 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1764 if test $ac_must_keep_next = true
; then
1765 ac_must_keep_next
=false
# Got value, back to normal.
1768 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1769 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1770 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1771 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1772 case "$ac_configure_args0 " in
1773 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1776 -* ) ac_must_keep_next
=true
;;
1779 ac_configure_args
="$ac_configure_args '$ac_arg'"
1784 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1785 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1787 # When interrupted or exit'd, cleanup temporary files, and complete
1788 # config.log. We remove comments because anyway the quotes in there
1789 # would cause problems or look ugly.
1790 # WARNING: Use '\'' to represent an apostrophe within the trap.
1791 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1792 trap 'exit_status=$?
1793 # Save into config.log some information that might help in debugging.
1798 ## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##
1803 # The following way of writing the cache mishandles newlines in values,
1805 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806 eval ac_val=\$$ac_var
1810 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1811 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1814 _ | IFS | as_nl) ;; #(
1815 *) $as_unset $ac_var ;;
1820 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821 *${as_nl}ac_space=\ *)
1823 "s/'\''/'\''\\\\'\'''\''/g;
1824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1835 ## ----------------- ##
1836 ## Output variables. ##
1837 ## ----------------- ##
1840 for ac_var in $ac_subst_vars
1842 eval ac_val=\$$ac_var
1844 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 echo "$ac_var='\''$ac_val'\''"
1850 if test -n "$ac_subst_files"; then
1852 ## ------------------- ##
1853 ## File substitutions. ##
1854 ## ------------------- ##
1857 for ac_var
in $ac_subst_files
1859 eval ac_val
=\$
$ac_var
1861 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 echo "$ac_var='\''$ac_val'\''"
1868 if test -s confdefs.h; then
1878 test "$ac_signal" != 0 &&
1879 echo "$as_me: caught signal $ac_signal"
1880 echo "$as_me: exit $exit_status"
1882 rm -f core *.core core.conftest.* &&
1883 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1886 for ac_signal
in 1 2 13 15; do
1887 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1891 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1892 rm -f -r conftest
* confdefs.h
1894 # Predefined preprocessor variables.
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1901 cat >>confdefs.h
<<_ACEOF
1902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906 cat >>confdefs.h
<<_ACEOF
1907 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1911 cat >>confdefs.h
<<_ACEOF
1912 #define PACKAGE_STRING "$PACKAGE_STRING"
1916 cat >>confdefs.h
<<_ACEOF
1917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer explicitly selected file to automatically selected ones.
1923 if test -n "$CONFIG_SITE"; then
1924 set x
"$CONFIG_SITE"
1925 elif test "x$prefix" != xNONE
; then
1926 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1928 set x
"$ac_default_prefix/share/config.site" \
1929 "$ac_default_prefix/etc/config.site"
1934 if test -r "$ac_site_file"; then
1935 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1942 if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 echo "$as_me: loading cache $cache_file" >&6;}
1949 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1950 *) .
"./$cache_file";;
1954 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 echo "$as_me: creating cache $cache_file" >&6;}
1959 # Check that the precious variables saved in the cache have kept the same
1961 ac_cache_corrupted
=false
1962 for ac_var
in $ac_precious_vars; do
1963 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1964 eval ac_new_set
=\
$ac_env_${ac_var}_set
1965 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1966 eval ac_new_val
=\
$ac_env_${ac_var}_value
1967 case $ac_old_set,$ac_new_set in
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971 ac_cache_corrupted
=: ;;
1973 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975 ac_cache_corrupted
=: ;;
1978 if test "x$ac_old_val" != "x$ac_new_val"; then
1979 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1982 echo "$as_me: former value: $ac_old_val" >&2;}
1983 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1984 echo "$as_me: current value: $ac_new_val" >&2;}
1985 ac_cache_corrupted
=:
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1991 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 *) ac_arg
=$ac_var=$ac_new_val ;;
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2000 if $ac_cache_corrupted; then
2001 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005 { (exit 1); exit 1; }; }
2033 ac_cpp
='$CPP $CPPFLAGS'
2034 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2040 LLVM_COPYRIGHT
="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2049 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2050 if test -f "$ac_dir/install-sh"; then
2052 ac_install_sh
="$ac_aux_dir/install-sh -c"
2054 elif test -f "$ac_dir/install.sh"; then
2056 ac_install_sh
="$ac_aux_dir/install.sh -c"
2058 elif test -f "$ac_dir/shtool"; then
2060 ac_install_sh
="$ac_aux_dir/shtool install -c"
2064 if test -z "$ac_aux_dir"; then
2065 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2066 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2067 { (exit 1); exit 1; }; }
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2080 if test ${srcdir} != "." ; then
2081 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2082 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2083 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2084 { (exit 1); exit 1; }; }
2088 for i
in `ls ${srcdir}/projects`
2090 if test -d ${srcdir}/projects
/${i} ; then
2093 sample
) subdirs
="$subdirs projects/sample"
2095 privbracket
) subdirs
="$subdirs projects/privbracket"
2097 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2099 # llvm-test is the old name of the test-suite, kept here for backwards
2101 llvm-test
) subdirs
="$subdirs projects/llvm-test"
2103 test-suite
) subdirs
="$subdirs projects/test-suite"
2105 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2107 llvm-gcc
) subdirs
="$subdirs projects/llvm-gcc"
2109 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2111 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2113 llvm-poolalloc
) subdirs
="$subdirs projects/llvm-poolalloc"
2115 poolalloc
) subdirs
="$subdirs projects/poolalloc"
2117 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2120 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2121 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2128 # Make sure we can run config.sub.
2129 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2130 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2131 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2132 { (exit 1); exit 1; }; }
2134 { echo "$as_me:$LINENO: checking build system type" >&5
2135 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_build+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 ac_build_alias
=$build_alias
2140 test "x$ac_build_alias" = x
&&
2141 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2142 test "x$ac_build_alias" = x
&&
2143 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2144 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2145 { (exit 1); exit 1; }; }
2146 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
2152 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2153 echo "${ECHO_T}$ac_cv_build" >&6; }
2154 case $ac_cv_build in
2156 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2157 echo "$as_me: error: invalid value of canonical build" >&2;}
2158 { (exit 1); exit 1; }; };;
2161 ac_save_IFS
=$IFS; IFS
='-'
2167 # Remember, the first character of IFS is used to create $*,
2168 # except with old shells:
2171 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2174 { echo "$as_me:$LINENO: checking host system type" >&5
2175 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2176 if test "${ac_cv_host+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test "x$host_alias" = x
; then
2180 ac_cv_host
=$ac_cv_build
2182 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2183 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2184 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2185 { (exit 1); exit 1; }; }
2189 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2190 echo "${ECHO_T}$ac_cv_host" >&6; }
2193 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2194 echo "$as_me: error: invalid value of canonical host" >&2;}
2195 { (exit 1); exit 1; }; };;
2198 ac_save_IFS
=$IFS; IFS
='-'
2204 # Remember, the first character of IFS is used to create $*,
2205 # except with old shells:
2208 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2211 { echo "$as_me:$LINENO: checking target system type" >&5
2212 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2213 if test "${ac_cv_target+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test "x$target_alias" = x
; then
2217 ac_cv_target
=$ac_cv_host
2219 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2220 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2221 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2222 { (exit 1); exit 1; }; }
2226 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2227 echo "${ECHO_T}$ac_cv_target" >&6; }
2228 case $ac_cv_target in
2230 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2231 echo "$as_me: error: invalid value of canonical target" >&2;}
2232 { (exit 1); exit 1; }; };;
2234 target
=$ac_cv_target
2235 ac_save_IFS
=$IFS; IFS
='-'
2241 # Remember, the first character of IFS is used to create $*,
2242 # except with old shells:
2245 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2248 # The aliases save the names the user supplied, while $host etc.
2249 # will get canonicalized.
2250 test -n "$target_alias" &&
2251 test "$program_prefix$program_suffix$program_transform_name" = \
2253 program_prefix
=${target_alias}-
2255 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2256 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2257 if test "${llvm_cv_os_type+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 llvm_cv_link_all_option
="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2264 llvm_cv_os_type
="AIX"
2265 llvm_cv_platform_type
="Unix" ;;
2267 llvm_cv_link_all_option
="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2269 llvm_cv_os_type
="IRIX"
2270 llvm_cv_platform_type
="Unix" ;;
2272 llvm_cv_link_all_option
="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2274 llvm_cv_os_type
="Cygwin"
2275 llvm_cv_platform_type
="Unix" ;;
2277 llvm_cv_link_all_option
="-Wl,-all_load"
2278 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2279 llvm_cv_os_type
="Darwin"
2280 llvm_cv_platform_type
="Unix" ;;
2282 llvm_cv_link_all_option
="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2284 llvm_cv_os_type
="FreeBSD"
2285 llvm_cv_platform_type
="Unix" ;;
2287 llvm_cv_link_all_option
="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2289 llvm_cv_os_type
="OpenBSD"
2290 llvm_cv_platform_type
="Unix" ;;
2292 llvm_cv_link_all_option
="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2294 llvm_cv_os_type
="NetBSD"
2295 llvm_cv_platform_type
="Unix" ;;
2297 llvm_cv_link_all_option
="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2299 llvm_cv_os_type
="DragonFly"
2300 llvm_cv_platform_type
="Unix" ;;
2302 llvm_cv_link_all_option
="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2304 llvm_cv_os_type
="HP-UX"
2305 llvm_cv_platform_type
="Unix" ;;
2307 llvm_cv_link_all_option
="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2309 llvm_cv_os_type
="Interix"
2310 llvm_cv_platform_type
="Unix" ;;
2312 llvm_cv_link_all_option
="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2314 llvm_cv_os_type
="Linux"
2315 llvm_cv_platform_type
="Unix" ;;
2317 llvm_cv_link_all_option
="-Wl,-z,allextract"
2318 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2319 llvm_cv_os_type
="SunOS"
2320 llvm_cv_platform_type
="Unix" ;;
2322 llvm_cv_link_all_option
="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2324 llvm_cv_os_type
="Win32"
2325 llvm_cv_platform_type
="Win32" ;;
2327 llvm_cv_link_all_option
="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2329 llvm_cv_os_type
="MingW"
2330 llvm_cv_platform_type
="Win32" ;;
2332 llvm_cv_link_all_option
=""
2333 llvm_cv_no_link_all_option
=""
2334 llvm_cv_os_type
="Unknown"
2335 llvm_cv_platform_type
="Unknown" ;;
2338 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2341 if test "$llvm_cv_os_type" = "Unknown" ; then
2342 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2344 { (exit 1); exit 1; }; }
2350 LINKALL
=$llvm_cv_link_all_option
2352 NOLINKALL
=$llvm_cv_no_link_all_option
2355 case $llvm_cv_platform_type in
2358 cat >>confdefs.h
<<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2369 cat >>confdefs.h
<<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 i?
86-*) llvm_cv_target_arch
="x86" ;;
2387 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2388 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2389 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2390 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2391 ia64-
*) llvm_cv_target_arch
="IA64" ;;
2392 arm-
*) llvm_cv_target_arch
="ARM" ;;
2393 mips-
*) llvm_cv_target_arch
="Mips" ;;
2394 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2395 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2396 *) llvm_cv_target_arch
="Unknown" ;;
2399 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2400 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2402 if test "$llvm_cv_target_arch" = "Unknown" ; then
2403 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2404 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2407 ARCH
=$llvm_cv_target_arch
2411 ac_cpp
='$CPP $CPPFLAGS'
2412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2417 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 if test -n "$CC"; then
2424 ac_cv_prog_CC
="$CC" # Let the user override the test.
2426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir
=.
2431 for ac_exec_ext
in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 if test -n "$CC"; then
2445 { echo "$as_me:$LINENO: result: $CC" >&5
2446 echo "${ECHO_T}$CC" >&6; }
2448 { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2454 if test -z "$ac_cv_prog_CC"; then
2456 # Extract the first word of "gcc", so it can be a program name with args.
2457 set dummy gcc
; ac_word
=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir
=.
2471 for ac_exec_ext
in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_ac_ct_CC
="gcc"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6; }
2488 { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2492 if test "x$ac_ct_CC" = x
; then
2495 case $cross_compiling:$ac_tool_warned in
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned
=yes ;;
2511 if test -z "$CC"; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2514 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC
="$CC" # Let the user override the test.
2523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir
=.
2528 for ac_exec_ext
in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2552 if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554 set dummy cc
; ac_word
=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC
="$CC" # Let the user override the test.
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 for ac_exec_ext
in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected
=yes
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy
$ac_cv_prog_CC
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2592 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2598 if test -n "$CC"; then
2599 { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2608 if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
2610 for ac_prog
in cl.exe
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC
="$CC" # Let the user override the test.
2622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir
=.
2627 for ac_exec_ext
in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test -n "$CC"; then
2641 { echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6; }
2644 { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2649 test -n "$CC" && break
2652 if test -z "$CC"; then
2654 for ac_prog
in cl.exe
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy
$ac_prog; ac_word
=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir
=.
2671 for ac_exec_ext
in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_CC
="$ac_prog"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686 echo "${ECHO_T}$ac_ct_CC" >&6; }
2688 { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2693 test -n "$ac_ct_CC" && break
2696 if test "x$ac_ct_CC" = x
; then
2699 case $cross_compiling:$ac_tool_warned in
2701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet. If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&5
2704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705 whose name does not start with the host triplet. If you think this
2706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2707 ac_tool_warned
=yes ;;
2716 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: no acceptable C compiler found in \$PATH
2719 See \`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2722 # Provide some information about the compiler.
2723 echo "$as_me:$LINENO: checking for C compiler version" >&5
2724 ac_compiler
=`set X $ac_compile; echo $2`
2725 { (ac_try
="$ac_compiler --version >&5"
2727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compiler --version >&5") 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }
2735 { (ac_try="$ac_compiler -v >&5"
2737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2738 *) ac_try_echo
=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compiler -v >&5") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2745 { (ac_try
="$ac_compiler -V >&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 -V >&5") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2756 cat >conftest.$ac_ext <<_ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2771 ac_clean_files_save=$ac_clean_files
2772 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2773 # Try to create an executable without -o first, disregard a.out.
2774 # It will help us diagnose broken compilers, and finding out an intuition
2776 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2777 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2778 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2780 # List of possible output files, starting from the most likely.
2781 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2782 # only as a last resort. b.out is created by i960 compilers.
2783 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2785 # The IRIX 6 linker writes into existing files which may not be
2786 # executable, retaining their permissions. Remove them first so a
2787 # subsequent execution test works.
2789 for ac_file in $ac_files
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2798 if { (ac_try="$ac_link_default"
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_link_default") 2>&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; then
2808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2810 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2811 # so that the user can short-circuit this test for compilers unknown to
2813 for ac_file
in $ac_files
2815 test -f "$ac_file" ||
continue
2817 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2820 # We found the default executable, but exeext='' is most
2824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2826 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 # We set ac_cv_exeext here because the later test for it is not
2829 # safe: cross compilers may not add the suffix if given an `-o'
2830 # argument, so we may need to know it at that point already.
2831 # Even if this section looks crufty: it has the advantage of
2838 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.
$ac_ext >&5
2844 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2845 See \`config.log' for more details." >&5
2846 echo "$as_me: error: C compiler cannot create executables
2847 See \`config.log' for more details." >&2;}
2848 { (exit 77); exit 77; }; }
2851 ac_exeext
=$ac_cv_exeext
2852 { echo "$as_me:$LINENO: result: $ac_file" >&5
2853 echo "${ECHO_T}$ac_file" >&6; }
2855 # Check that the compiler produces executables we can run. If not, either
2856 # the compiler is broken, or we cross compile.
2857 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2858 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2859 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2860 # If not cross compiling, check that we can run a simple program.
2861 if test "$cross_compiling" != yes; then
2862 if { ac_try
='./$ac_file'
2863 { (case "(($ac_try" in
2864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_try") 2>&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2874 if test "$cross_compiling" = maybe; then
2877 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2878 If you meant to cross compile, use \`--host'.
2879 See \`config.log' for more details.
" >&5
2880 echo "$as_me: error
: cannot run C compiled programs.
2881 If you meant to cross compile
, use \
`--host'.
2882 See \`config.log
' for more details." >&2;}
2883 { (exit 1); exit 1; }; }
2887 { echo "$as_me:$LINENO: result: yes" >&5
2888 echo "${ECHO_T}yes" >&6; }
2890 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2891 ac_clean_files=$ac_clean_files_save
2892 # Check that the compiler produces executables we can run. If not, either
2893 # the compiler is broken, or we cross compile.
2894 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2895 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2896 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2897 echo "${ECHO_T}$cross_compiling" >&6; }
2899 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2900 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2901 if { (ac_try="$ac_link"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_link") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2912 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2913 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2915 for ac_file
in conftest.exe conftest conftest.
*; do
2916 test -f "$ac_file" ||
continue
2918 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2919 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2932 rm -f conftest
$ac_cv_exeext
2933 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2934 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2936 rm -f conftest.
$ac_ext
2937 EXEEXT
=$ac_cv_exeext
2939 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2940 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2941 if test "${ac_cv_objext+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.
$ac_ext <<_ACEOF
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2959 rm -f conftest.o conftest.obj
2960 if { (ac_try
="$ac_compile"
2962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 for ac_file in conftest.o conftest.obj conftest.*; do
2971 test -f "$ac_file" || continue;
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2983 See \`config.log
' for more details." >&5
2984 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2985 See \`config.log' for more details.
" >&2;}
2986 { (exit 1); exit 1; }; }
2989 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2991 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2992 echo "${ECHO_T}$ac_cv_objext" >&6; }
2993 OBJEXT=$ac_cv_objext
2995 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2996 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2998 echo $ECHO_N "(cached
) $ECHO_C" >&6
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3051 (exit $ac_status); }; }; then
3054 echo "$as_me: failed program was
:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3066 GCC=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CFLAGS=${CFLAGS+set}
3068 ac_save_CFLAGS=$CFLAGS
3069 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3070 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cc_g+set}" = set; then
3072 echo $ECHO_N "(cached
) $ECHO_C" >&6
3074 ac_save_c_werror_flag=$ac_c_werror_flag
3075 ac_c_werror_flag=yes
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3126 (exit $ac_status); }; }; then
3129 echo "$as_me: failed program was
:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 echo "$as_me: failed program was
:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
3226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_try") 2>&5
3236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3237 (exit $ac_status); }; }; then
3240 echo "$as_me: failed program was
:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3255 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3257 if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259 elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3266 if test "$GCC" = yes; then
3272 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3273 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cc_c89+set}" = set; then
3275 echo $ECHO_N "(cached
) $ECHO_C" >&6
3277 ac_cv_prog_cc_c89=no
3279 cat >conftest.$ac_ext <<_ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3287 #include <sys/types.h>
3288 #include <sys/stat.h>
3289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3290 struct buf { int x; };
3291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292 static char *e (p, i)
3298 static char *f (char * (*g) (char **, int), char **p, ...)
3303 s = g (p, va_arg (v,int));
3308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3309 function prototypes and stuff, but not '\xHH' hex character constants.
3310 These don't provoke an error unfortunately, instead are silently treated
3311 as 'x'. The following induces an error, until -std is added to get
3312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3313 array size at least. It's necessary to write '\x00'==0 to get something
3314 that's true only with -std. */
3315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3318 inside strings and character constants. */
3320 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3322 int test (int i, double x);
3323 struct s1 {int (*f) (int a);};
3324 struct s2 {int (*f) (double a);};
3325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3331 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3336 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3339 CC="$ac_save_CC $ac_arg"
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
3362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_try") 2>&5
3372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_cv_prog_cc_c89=$ac_arg
3376 echo "$as_me: failed program was
:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -f core conftest.err conftest.$ac_objext
3383 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3385 rm -f conftest.$ac_ext
3390 case "x
$ac_cv_prog_cc_c89" in
3392 { echo "$as_me:$LINENO: result
: none needed
" >&5
3393 echo "${ECHO_T}none needed
" >&6; } ;;
3395 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3396 echo "${ECHO_T}unsupported
" >&6; } ;;
3398 CC="$CC $ac_cv_prog_cc_c89"
3399 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3400 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3417 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3418 # On Suns, sometimes $CPP names a directory.
3419 if test -n "$CPP" && test -d "$CPP"; then
3422 if test -z "$CPP"; then
3423 if test "${ac_cv_prog_CPP+set}" = set; then
3424 echo $ECHO_N "(cached
) $ECHO_C" >&6
3426 # Double quotes because CPP needs to be expanded
3427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3430 for ac_c_preproc_warn_flag in '' yes
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 # <limits.h> exists even on freestanding compilers.
3436 # On the NeXT, cc -E runs the code through the compiler's parser,
3437 # not just through cpp. "Syntax error
" is here to catch this case.
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3445 # include <limits.h>
3447 # include <assert.h>
3451 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3463 (exit $ac_status); } >/dev/null; then
3464 if test -s conftest.err; then
3465 ac_cpp_err=$ac_c_preproc_warn_flag
3466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3473 if test -z "$ac_cpp_err"; then
3476 echo "$as_me: failed program was
:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 # Broken: fails on valid input.
3483 rm -f conftest.err conftest.$ac_ext
3485 # OK, works on sane cases. Now check whether nonexistent headers
3486 # can be detected and how.
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493 #include <ac_nonexistent.h>
3495 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3507 (exit $ac_status); } >/dev/null; then
3508 if test -s conftest.err; then
3509 ac_cpp_err=$ac_c_preproc_warn_flag
3510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517 if test -z "$ac_cpp_err"; then
3518 # Broken: success on invalid input.
3521 echo "$as_me: failed program was
:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 # Passes both tests.
3529 rm -f conftest.err conftest.$ac_ext
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3546 { echo "$as_me:$LINENO: result
: $CPP" >&5
3547 echo "${ECHO_T}$CPP" >&6; }
3549 for ac_c_preproc_warn_flag in '' yes
3551 # Use a header file that comes with gcc, so configuring glibc
3552 # with a fresh cross-compiler works.
3553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554 # <limits.h> exists even on freestanding compilers.
3555 # On the NeXT, cc -E runs the code through the compiler's parser,
3556 # not just through cpp. "Syntax error
" is here to catch this case.
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3564 # include <limits.h>
3566 # include <assert.h>
3570 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3582 (exit $ac_status); } >/dev/null; then
3583 if test -s conftest.err; then
3584 ac_cpp_err=$ac_c_preproc_warn_flag
3585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592 if test -z "$ac_cpp_err"; then
3595 echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 # Broken: fails on valid input.
3602 rm -f conftest.err conftest.$ac_ext
3604 # OK, works on sane cases. Now check whether nonexistent headers
3605 # can be detected and how.
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <ac_nonexistent.h>
3614 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3626 (exit $ac_status); } >/dev/null; then
3627 if test -s conftest.err; then
3628 ac_cpp_err=$ac_c_preproc_warn_flag
3629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3640 echo "$as_me: failed program was
:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 # Passes both tests.
3648 rm -f conftest.err conftest.$ac_ext
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3656 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3657 See \
`config.log' for more details." >&5
3658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log
' for more details." >&2;}
3660 { (exit 1); exit 1; }; }
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3666 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy grep ggrep; ac_prog_name=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_path_GREP_found=false
3682 # Loop through the user's path and
test for each of PROGNAME-LIST
3683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3687 test -z "$as_dir" && as_dir
=.
3688 for ac_prog
in grep ggrep
; do
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3696 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3707 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3708 ac_count
=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP
="$ac_path_GREP"
3712 ac_path_GREP_max
=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3717 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3721 $ac_path_GREP_found && break 3
3731 GREP
="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cv_path_GREP
=$GREP
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP
="$ac_cv_path_GREP"
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3755 then ac_cv_path_EGREP
="$GREP -E"
3757 # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy
egrep; ac_prog_name
=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 ac_path_EGREP_found
=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3766 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3769 test -z "$as_dir" && as_dir
=.
3770 for ac_prog
in egrep; do
3771 for ac_exec_ext
in '' $ac_executable_extensions; do
3772 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3778 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3789 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3790 ac_count
=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP
="$ac_path_EGREP"
3794 ac_path_EGREP_max
=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3799 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3803 $ac_path_EGREP_found && break 3
3813 EGREP
="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3821 ac_cv_path_EGREP
=$EGREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP
="$ac_cv_path_EGREP"
3832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3834 if test "${ac_cv_header_stdc+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3856 rm -f conftest.
$ac_objext
3857 if { (ac_try
="$ac_compile"
3859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3873 *) ac_try_echo
=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try
='test -s conftest.$ac_objext'
3881 { (case "(($ac_try" in
3882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_try") 2>&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_cv_header_stdc=yes
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 ac_cv_header_stdc=no
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 if test $ac_cv_header_stdc = yes; then
3901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 $EGREP "memchr" >/dev/null 2>&1; then
3915 ac_cv_header_stdc=no
3921 if test $ac_cv_header_stdc = yes; then
3922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933 $EGREP "free" >/dev/null 2>&1; then
3936 ac_cv_header_stdc=no
3942 if test $ac_cv_header_stdc = yes; then
3943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3944 if test "$cross_compiling" = yes; then
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3955 #if ((' ' & 0x0FF) == 0x020)
3956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959 # define ISLOWER(c) \
3960 (('a' <= (c) && (c) <= 'i') \
3961 || ('j' <= (c) && (c) <= 'r') \
3962 || ('s' <= (c) && (c) <= 'z'))
3963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3971 for (i = 0; i < 256; i++)
3972 if (XOR (islower (i), ISLOWER (i))
3973 || toupper (i) != TOUPPER (i))
3978 rm -f conftest$ac_exeext
3979 if { (ac_try="$ac_link"
3981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3982 *) ac_try_echo
=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_link") 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3989 { (case "(($ac_try" in
3990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_try") 2>&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
4000 echo "$as_me: program exited with status $ac_status" >&5
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4005 ac_cv_header_stdc=no
4007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4015 if test $ac_cv_header_stdc = yes; then
4017 cat >>confdefs.h <<\_ACEOF
4018 #define STDC_HEADERS 1
4023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4033 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4034 inttypes.h stdint.h unistd.h
4036 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4050 #include <$ac_header>
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4056 *) ac_try_echo
=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1
>conftest.err
4063 cat conftest.err
>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (case "(($ac_try" in
4068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4079 *) ac_try_echo
=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 eval "$as_ac_Header=yes"
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.
$ac_ext >&5
4091 eval "$as_ac_Header=no"
4094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4096 ac_res
=`eval echo '${'$as_ac_Header'}'`
4097 { echo "$as_me:$LINENO: result: $ac_res" >&5
4098 echo "${ECHO_T}$ac_res" >&6; }
4099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4100 cat >>confdefs.h
<<_ACEOF
4101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4109 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4110 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4111 if test "${ac_cv_c_bigendian+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 # See if sys/param.h defines the BYTE_ORDER macro.
4115 cat >conftest.
$ac_ext <<_ACEOF
4118 cat confdefs.h
>>conftest.
$ac_ext
4119 cat >>conftest.
$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <sys/types.h>
4122 #include <sys/param.h>
4127 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4135 rm -f conftest.
$ac_objext
4136 if { (ac_try
="$ac_compile"
4138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4152 *) ac_try_echo
=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try
='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 # It does; now see whether it defined to BIG_ENDIAN or not.
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 #include <sys/param.h>
4182 #if BYTE_ORDER != BIG_ENDIAN
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4194 *) ac_try_echo
=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1
>conftest.err
4201 cat conftest.err
>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (case "(($ac_try" in
4206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_try") 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (case "(($ac_try" in
4216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4217 *) ac_try_echo
=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_try") 2>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_c_bigendian
=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4229 ac_cv_c_bigendian
=no
4232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.
$ac_ext >&5
4237 # It does not; compile a test program.
4238 if test "$cross_compiling" = yes; then
4239 # try to guess the endianness by grepping values into an object file
4240 ac_cv_c_bigendian
=unknown
4241 cat >conftest.
$ac_ext <<_ACEOF
4244 cat confdefs.h
>>conftest.
$ac_ext
4245 cat >>conftest.
$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4248 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4249 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4250 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4251 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4252 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4256 _ascii (); _ebcdic ();
4261 rm -f conftest.
$ac_objext
4262 if { (ac_try
="$ac_compile"
4264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4278 *) ac_try_echo
=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try
='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4296 ac_cv_c_bigendian=yes
4298 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4299 if test "$ac_cv_c_bigendian" = unknown; then
4300 ac_cv_c_bigendian=no
4302 # finding both strings is unlikely to happen, but who knows?
4303 ac_cv_c_bigendian=unknown
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4321 $ac_includes_default
4326 /* Are we little or big endian? From Harbison&Steele. */
4330 char c[sizeof (long int)];
4333 return u.c[sizeof (long int) - 1] == 1;
4339 rm -f conftest$ac_exeext
4340 if { (ac_try="$ac_link"
4342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4343 *) ac_try_echo
=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_link") 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4350 { (case "(($ac_try" in
4351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_try") 2>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_c_bigendian=no
4361 echo "$as_me: program exited with status $ac_status" >&5
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4366 ac_cv_c_bigendian=yes
4368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4377 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4378 case $ac_cv_c_bigendian in
4386 { { echo "$as_me:$LINENO: error: unknown endianness
4387 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4388 echo "$as_me: error: unknown endianness
4389 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4390 { (exit 1); exit 1; }; } ;;
4394 if test "$cross_compiling" = yes; then
4395 LLVM_CROSS_COMPILING=1
4398 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4399 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4400 if test "${ac_cv_build_exeext+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4404 ac_cv_build_exeext=.exe
4406 ac_build_prefix=${build_alias}-
4408 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4409 set dummy ${ac_build_prefix}gcc; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$BUILD_CC"; then
4416 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 BUILD_CC=$ac_cv_prog_BUILD_CC
4436 if test -n "$BUILD_CC"; then
4437 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4438 echo "${ECHO_T}$BUILD_CC" >&6; }
4440 { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4445 if test -z "$BUILD_CC"; then
4446 # Extract the first word of "gcc", so it can be a program name with args.
4447 set dummy gcc; ac_word=$2
4448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$BUILD_CC"; then
4454 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_BUILD_CC="gcc"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 BUILD_CC=$ac_cv_prog_BUILD_CC
4474 if test -n "$BUILD_CC"; then
4475 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4476 echo "${ECHO_T}$BUILD_CC" >&6; }
4478 { echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6; }
4483 if test -z "$BUILD_CC"; then
4484 # Extract the first word of "cc", so it can be a program name with args.
4485 set dummy cc; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 if test -n "$BUILD_CC"; then
4492 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503 ac_prog_rejected=yes
4506 ac_cv_prog_BUILD_CC="cc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 if test $ac_prog_rejected = yes; then
4515 # We found a bogon in the path, so make sure we never use it.
4516 set dummy $ac_cv_prog_BUILD_CC
4518 if test $# != 0; then
4519 # We chose a different compiler from the bogus one.
4520 # However, it has the same basename, so the bogon will be chosen
4521 # first if we set BUILD_CC to just the basename; use the full file name.
4523 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4528 BUILD_CC=$ac_cv_prog_BUILD_CC
4529 if test -n "$BUILD_CC"; then
4530 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4531 echo "${ECHO_T}$BUILD_CC" >&6; }
4533 { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4540 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4541 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4542 { (exit 1); exit 1; }; }
4543 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4545 echo 'int main () { return 0; }' > conftest.$ac_ext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4548 (eval $ac_build_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; then
4552 for file in conftest.*; do
4554 *.c | *.o | *.obj | *.dSYM) ;;
4555 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4559 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4560 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4561 { (exit 1); exit 1; }; }
4564 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4569 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4570 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4571 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4572 ac_build_exeext=$BUILD_EXEEXT
4574 ac_build_prefix=${build_alias}-
4575 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4576 set dummy ${ac_build_prefix}g++; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test -n "$BUILD_CXX"; then
4583 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4603 if test -n "$BUILD_CXX"; then
4604 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4605 echo "${ECHO_T}$BUILD_CXX" >&6; }
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4612 if test -z "$BUILD_CXX"; then
4613 # Extract the first word of "g++", so it can be a program name with args.
4614 set dummy g++; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$BUILD_CXX"; then
4621 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_BUILD_CXX="g++"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4641 if test -n "$BUILD_CXX"; then
4642 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4643 echo "${ECHO_T}$BUILD_CXX" >&6; }
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4650 if test -z "$BUILD_CXX"; then
4651 # Extract the first word of "c++", so it can be a program name with args.
4652 set dummy c++; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$BUILD_CXX"; then
4659 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4670 ac_prog_rejected=yes
4673 ac_cv_prog_BUILD_CXX="c++"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 if test $ac_prog_rejected = yes; then
4682 # We found a bogon in the path, so make sure we never use it.
4683 set dummy $ac_cv_prog_BUILD_CXX
4685 if test $# != 0; then
4686 # We chose a different compiler from the bogus one.
4687 # However, it has the same basename, so the bogon will be chosen
4688 # first if we set BUILD_CXX to just the basename; use the full file name.
4690 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4695 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4696 if test -n "$BUILD_CXX"; then
4697 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4698 echo "${ECHO_T}$BUILD_CXX" >&6; }
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4708 LLVM_CROSS_COMPILING=0
4712 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4723 # Check whether --enable-optimized was given.
4724 if test "${enable_optimized+set}" = set; then
4725 enableval=$enable_optimized;
4730 if test ${enableval} = "no" ; then
4734 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4738 # Check whether --enable-assertions was given.
4739 if test "${enable_assertions+set}" = set; then
4740 enableval=$enable_assertions;
4745 if test ${enableval} = "yes" ; then
4749 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4753 # Check whether --enable-expensive-checks was given.
4754 if test "${enable_expensive_checks+set}" = set; then
4755 enableval=$enable_expensive_checks;
4760 if test ${enableval} = "yes" ; then
4761 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4763 EXPENSIVE_CHECKS=yes
4766 ENABLE_EXPENSIVE_CHECKS=
4772 # Check whether --enable-debug-runtime was given.
4773 if test "${enable_debug_runtime+set}" = set; then
4774 enableval=$enable_debug_runtime;
4779 if test ${enableval} = "no" ; then
4783 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4787 # Check whether --enable-jit was given.
4788 if test "${enable_jit+set}" = set; then
4789 enableval=$enable_jit;
4794 if test ${enableval} = "no"
4799 case "$llvm_cv_target_arch" in
4800 x86) TARGET_HAS_JIT=1
4802 Sparc) TARGET_HAS_JIT=0
4804 PowerPC) TARGET_HAS_JIT=1
4806 x86_64) TARGET_HAS_JIT=1
4808 Alpha) TARGET_HAS_JIT=1
4810 IA64) TARGET_HAS_JIT=0
4812 ARM) TARGET_HAS_JIT=0
4814 Mips) TARGET_HAS_JIT=0
4816 PIC16) TARGET_HAS_JIT=0
4818 XCore) TARGET_HAS_JIT=0
4825 # Check whether --enable-doxygen was given.
4826 if test "${enable_doxygen+set}" = set; then
4827 enableval=$enable_doxygen;
4832 case "$enableval" in
4833 yes) ENABLE_DOXYGEN=1
4835 no) ENABLE_DOXYGEN=0
4837 default) ENABLE_DOXYGEN=0
4839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4844 # Check whether --enable-threads was given.
4845 if test "${enable_threads+set}" = set; then
4846 enableval=$enable_threads;
4851 case "$enableval" in
4852 yes) ENABLE_THREADS=1
4854 no) ENABLE_THREADS=0
4856 default) ENABLE_THREADS=1
4858 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4859 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4860 { (exit 1); exit 1; }; } ;;
4863 cat >>confdefs.h <<_ACEOF
4864 #define ENABLE_THREADS $ENABLE_THREADS
4868 # Check whether --enable-pic was given.
4869 if test "${enable_pic+set}" = set; then
4870 enableval=$enable_pic;
4875 case "$enableval" in
4880 default) ENABLE_PIC=0
4882 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4883 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4884 { (exit 1); exit 1; }; } ;;
4887 cat >>confdefs.h <<_ACEOF
4888 #define ENABLE_PIC $ENABLE_PIC
4893 # Check whether --enable-targets was given.
4894 if test "${enable_targets+set}" = set; then
4895 enableval=$enable_targets;
4900 case "$enableval" in
4901 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4903 case "$llvm_cv_target_arch" in
4904 x86) TARGETS_TO_BUILD="X86" ;;
4905 x86_64) TARGETS_TO_BUILD="X86" ;;
4906 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4907 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4908 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4909 IA64) TARGETS_TO_BUILD="IA64" ;;
4910 ARM) TARGETS_TO_BUILD="ARM" ;;
4911 Mips) TARGETS_TO_BUILD="Mips" ;;
4912 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4913 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4914 XCore) TARGETS_TO_BUILD="XCore" ;;
4915 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4916 echo "$as_me: error: Can not set target to build" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4920 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4922 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4923 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4925 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4926 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4927 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4928 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4929 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4930 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4931 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4932 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4933 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4934 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4935 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4936 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4937 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4943 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4946 # Check whether --enable-cbe-printf-a was given.
4947 if test "${enable_cbe_printf_a+set}" = set; then
4948 enableval=$enable_cbe_printf_a;
4953 case "$enableval" in
4954 yes) ENABLE_CBE_PRINTF_A=1
4956 no) ENABLE_CBE_PRINTF_A=0
4958 default) ENABLE_CBE_PRINTF_A=1
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4965 cat >>confdefs.h <<_ACEOF
4966 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4971 # Check whether --with-llvmgccdir was given.
4972 if test "${with_llvmgccdir+set}" = set; then
4973 withval=$with_llvmgccdir;
4979 default) WITH_LLVMGCCDIR=default ;;
4980 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4981 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4982 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4987 # Check whether --with-llvmgcc was given.
4988 if test "${with_llvmgcc+set}" = set; then
4989 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4995 # Check whether --with-llvmgxx was given.
4996 if test "${with_llvmgxx+set}" = set; then
4997 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5002 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5003 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5004 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5005 { (exit 1); exit 1; }; };
5008 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5009 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5010 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5011 { (exit 1); exit 1; }; };
5015 # Check whether --with-extra-options was given.
5016 if test "${with_extra_options+set}" = set; then
5017 withval=$with_extra_options;
5023 default) EXTRA_OPTIONS= ;;
5024 *) EXTRA_OPTIONS=$withval ;;
5026 EXTRA_OPTIONS=$EXTRA_OPTIONS
5029 # Check whether --enable-bindings was given.
5030 if test "${enable_bindings+set}" = set; then
5031 enableval=$enable_bindings;
5036 BINDINGS_TO_BUILD=""
5037 case "$enableval" in
5038 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5039 all ) BINDINGS_TO_BUILD="ocaml" ;;
5040 none | no) BINDINGS_TO_BUILD="" ;;
5041 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5042 case "$a_binding" in
5043 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5044 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5045 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5053 # Check whether --with-ocaml-libdir was given.
5054 if test "${with_ocaml_libdir+set}" = set; then
5055 withval=$with_ocaml_libdir;
5061 auto) with_ocaml_libdir="$withval" ;;
5062 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5063 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5064 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5065 { (exit 1); exit 1; }; } ;;
5069 # Check whether --with-binutils-include was given.
5070 if test "${with_binutils_include+set}" = set; then
5071 withval=$with_binutils_include;
5077 default) WITH_BINUTILS_INCDIR=default ;;
5078 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5079 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5080 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5081 { (exit 1); exit 1; }; } ;;
5083 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5084 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5086 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5087 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5088 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5089 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5090 { (exit 1); exit 1; }; };
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5102 # On Suns, sometimes $CPP names a directory.
5103 if test -n "$CPP" && test -d "$CPP"; then
5106 if test -z "$CPP"; then
5107 if test "${ac_cv_prog_CPP+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 # Double quotes because CPP needs to be expanded
5111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5114 for ac_c_preproc_warn_flag in '' yes
5116 # Use a header file that comes with gcc, so configuring glibc
5117 # with a fresh cross-compiler works.
5118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 # <limits.h> exists even on freestanding compilers.
5120 # On the NeXT, cc -E runs the code through the compiler's parser,
5121 # not just through cpp. "Syntax error" is here to catch this case.
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5129 # include <limits.h>
5131 # include <assert.h>
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5138 *) ac_try_echo
=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143 grep -v '^ *+' conftest.er1
>conftest.err
5145 cat conftest.err
>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev
/null
; then
5148 if test -s conftest.err
; then
5149 ac_cpp_err
=$ac_c_preproc_warn_flag
5150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5157 if test -z "$ac_cpp_err"; then
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.
$ac_ext >&5
5163 # Broken: fails on valid input.
5167 rm -f conftest.err conftest.
$ac_ext
5169 # OK, works on sane cases. Now check whether nonexistent headers
5170 # can be detected and how.
5171 cat >conftest.
$ac_ext <<_ACEOF
5174 cat confdefs.h
>>conftest.
$ac_ext
5175 cat >>conftest.
$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <ac_nonexistent.h>
5179 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null; then
5192 if test -s conftest.err; then
5193 ac_cpp_err=$ac_c_preproc_warn_flag
5194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5201 if test -z "$ac_cpp_err"; then
5202 # Broken: success on invalid input.
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 # Passes both tests.
5213 rm -f conftest.err conftest.$ac_ext
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.
$ac_ext
5218 if $ac_preproc_ok; then
5230 { echo "$as_me:$LINENO: result: $CPP" >&5
5231 echo "${ECHO_T}$CPP" >&6; }
5233 for ac_c_preproc_warn_flag
in '' yes
5235 # Use a header file that comes with gcc, so configuring glibc
5236 # with a fresh cross-compiler works.
5237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238 # <limits.h> exists even on freestanding compilers.
5239 # On the NeXT, cc -E runs the code through the compiler's parser,
5240 # not just through cpp. "Syntax error" is here to catch this case.
5241 cat >conftest.
$ac_ext <<_ACEOF
5244 cat confdefs.h
>>conftest.
$ac_ext
5245 cat >>conftest.
$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5248 # include <limits.h>
5250 # include <assert.h>
5254 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 grep -v '^ *+' conftest.er1 >conftest.err
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } >/dev/null; then
5267 if test -s conftest.err; then
5268 ac_cpp_err=$ac_c_preproc_warn_flag
5269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5276 if test -z "$ac_cpp_err"; then
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 # Broken: fails on valid input.
5286 rm -f conftest.err conftest.$ac_ext
5288 # OK, works on sane cases. Now check whether nonexistent headers
5289 # can be detected and how.
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 #include <ac_nonexistent.h>
5298 if { (ac_try="$ac_cpp conftest.$ac_ext"
5300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5301 *) ac_try_echo
=$ac_try;;
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5306 grep -v '^ *+' conftest.er1
>conftest.err
5308 cat conftest.err
>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } >/dev
/null
; then
5311 if test -s conftest.err
; then
5312 ac_cpp_err
=$ac_c_preproc_warn_flag
5313 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5320 if test -z "$ac_cpp_err"; then
5321 # Broken: success on invalid input.
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.
$ac_ext >&5
5327 # Passes both tests.
5332 rm -f conftest.err conftest.
$ac_ext
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.err conftest.
$ac_ext
5337 if $ac_preproc_ok; then
5340 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5341 See \`config.log' for more details." >&5
5342 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5343 See \`config.log' for more details." >&2;}
5344 { (exit 1); exit 1; }; }
5348 ac_cpp
='$CPP $CPPFLAGS'
5349 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5354 ac_cpp
='$CPP $CPPFLAGS'
5355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5358 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5365 if test "${ac_cv_prog_CC+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 if test -n "$CC"; then
5369 ac_cv_prog_CC
="$CC" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$CC"; then
5390 { echo "$as_me:$LINENO: result: $CC" >&5
5391 echo "${ECHO_T}$CC" >&6; }
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5398 test -n "$CC" && break
5401 if test -z "$CC"; then
5405 # Extract the first word of "$ac_prog", so it can be a program name with args.
5406 set dummy
$ac_prog; ac_word
=$2
5407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 if test -n "$ac_ct_CC"; then
5413 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_ac_ct_CC
="$ac_prog"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5433 if test -n "$ac_ct_CC"; then
5434 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5435 echo "${ECHO_T}$ac_ct_CC" >&6; }
5437 { echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6; }
5442 test -n "$ac_ct_CC" && break
5445 if test "x$ac_ct_CC" = x
; then
5448 case $cross_compiling:$ac_tool_warned in
5450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5451 whose name does not start with the host triplet. If you think this
5452 configuration is useful to you, please write to autoconf@gnu.org." >&5
5453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5454 whose name does not start with the host triplet. If you think this
5455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5456 ac_tool_warned
=yes ;;
5463 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: no acceptable C compiler found in \$PATH
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5469 # Provide some information about the compiler.
5470 echo "$as_me:$LINENO: checking for C compiler version" >&5
5471 ac_compiler
=`set X $ac_compile; echo $2`
5472 { (ac_try
="$ac_compiler --version >&5"
5474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compiler --version >&5") 2>&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }
5482 { (ac_try="$ac_compiler -v >&5"
5484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5485 *) ac_try_echo
=$ac_try;;
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compiler -v >&5") 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }
5492 { (ac_try
="$ac_compiler -V >&5"
5494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compiler -V >&5") 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }
5503 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5504 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5505 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5530 *) ac_try_echo
=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1
>conftest.err
5537 cat conftest.err
>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5541 { (case "(($ac_try" in
5542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_try") 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (case "(($ac_try" in
5552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5553 *) ac_try_echo
=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_try") 2>&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.
$ac_ext >&5
5568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5569 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5574 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5575 ac_test_CFLAGS
=${CFLAGS+set}
5576 ac_save_CFLAGS
=$CFLAGS
5577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_cc_g+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 ac_save_c_werror_flag
=$ac_c_werror_flag
5583 ac_c_werror_flag
=yes
5586 cat >conftest.
$ac_ext <<_ACEOF
5589 cat confdefs.h
>>conftest.
$ac_ext
5590 cat >>conftest.
$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5601 rm -f conftest.
$ac_objext
5602 if { (ac_try
="$ac_compile"
5604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5616 { (case "(($ac_try" in
5617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5618 *) ac_try_echo
=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_try") 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try
='test -s conftest.$ac_objext'
5626 { (case "(($ac_try" in
5627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_try") 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5660 *) ac_try_echo
=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5671 { (case "(($ac_try" in
5672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (case "(($ac_try" in
5682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5683 *) ac_try_echo
=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_try") 2>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.
$ac_ext >&5
5695 ac_c_werror_flag
=$ac_save_c_werror_flag
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5712 rm -f conftest.
$ac_objext
5713 if { (ac_try
="$ac_compile"
5715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5727 { (case "(($ac_try" in
5728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5729 *) ac_try_echo
=$ac_try;;
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_try") 2>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try
='test -s conftest.$ac_objext'
5737 { (case "(($ac_try" in
5738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_try") 2>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 ac_c_werror_flag=$ac_save_c_werror_flag
5763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5764 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5765 if test "$ac_test_CFLAGS" = set; then
5766 CFLAGS=$ac_save_CFLAGS
5767 elif test $ac_cv_prog_cc_g = yes; then
5768 if test "$GCC" = yes; then
5774 if test "$GCC" = yes; then
5780 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5781 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5782 if test "${ac_cv_prog_cc_c89+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 ac_cv_prog_cc_c89=no
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5795 #include <sys/types.h>
5796 #include <sys/stat.h>
5797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5798 struct buf { int x; };
5799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5800 static char *e (p, i)
5806 static char *f (char * (*g) (char **, int), char **p, ...)
5811 s = g (p, va_arg (v,int));
5816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5817 function prototypes and stuff, but not '\xHH' hex character constants.
5818 These don't provoke an error unfortunately, instead are silently treated
5819 as 'x'. The following induces an error, until -std is added to get
5820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5821 array size at least. It's necessary to write '\x00'==0 to get something
5822 that's true only with -std. */
5823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5826 inside strings and character constants. */
5828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5830 int test (int i, double x);
5831 struct s1 {int (*f) (int a);};
5832 struct s2 {int (*f) (double a);};
5833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5847 CC="$ac_save_CC $ac_arg"
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5852 *) ac_try_echo
=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1
>conftest.err
5859 cat conftest.err
>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5863 { (case "(($ac_try" in
5864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5875 *) ac_try_echo
=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_cv_prog_cc_c89
=$ac_arg
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5890 rm -f core conftest.err conftest.
$ac_objext
5891 test "x$ac_cv_prog_cc_c89" != "xno" && break
5893 rm -f conftest.
$ac_ext
5898 case "x$ac_cv_prog_cc_c89" in
5900 { echo "$as_me:$LINENO: result: none needed" >&5
5901 echo "${ECHO_T}none needed" >&6; } ;;
5903 { echo "$as_me:$LINENO: result: unsupported" >&5
5904 echo "${ECHO_T}unsupported" >&6; } ;;
5906 CC
="$CC $ac_cv_prog_cc_c89"
5907 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5908 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5913 ac_cpp
='$CPP $CPPFLAGS'
5914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5919 ac_cpp
='$CXXCPP $CPPFLAGS'
5920 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5923 if test -z "$CXX"; then
5924 if test -n "$CCC"; then
5927 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5931 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_prog_CXX+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 if test -n "$CXX"; then
5938 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir
=.
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 if test -n "$CXX"; then
5959 { echo "$as_me:$LINENO: result: $CXX" >&5
5960 echo "${ECHO_T}$CXX" >&6; }
5962 { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5967 test -n "$CXX" && break
5970 if test -z "$CXX"; then
5974 # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy
$ac_prog; ac_word
=$2
5976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 if test -n "$ac_ct_CXX"; then
5982 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir
=.
5989 for ac_exec_ext
in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6002 if test -n "$ac_ct_CXX"; then
6003 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6004 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6011 test -n "$ac_ct_CXX" && break
6014 if test "x$ac_ct_CXX" = x
; then
6017 case $cross_compiling:$ac_tool_warned in
6019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6020 whose name does not start with the host triplet. If you think this
6021 configuration is useful to you, please write to autoconf@gnu.org." >&5
6022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6023 whose name does not start with the host triplet. If you think this
6024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6025 ac_tool_warned
=yes ;;
6033 # Provide some information about the compiler.
6034 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6035 ac_compiler
=`set X $ac_compile; echo $2`
6036 { (ac_try
="$ac_compiler --version >&5"
6038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compiler --version >&5") 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }
6046 { (ac_try="$ac_compiler -v >&5"
6048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6049 *) ac_try_echo
=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compiler -v >&5") 2>&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }
6056 { (ac_try
="$ac_compiler -V >&5"
6058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compiler -V >&5") 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }
6067 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6068 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6069 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 cat >conftest.$ac_ext <<_ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6094 *) ac_try_echo
=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1
>conftest.err
6101 cat conftest.err
>&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6105 { (case "(($ac_try" in
6106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_try") 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (case "(($ac_try" in
6116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6117 *) ac_try_echo
=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_try") 2>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.
$ac_ext >&5
6132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6133 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6136 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6137 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6138 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6139 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6140 ac_save_CXXFLAGS
=$CXXFLAGS
6141 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_cxx_g+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6147 ac_cxx_werror_flag
=yes
6150 cat >conftest.
$ac_ext <<_ACEOF
6153 cat confdefs.h
>>conftest.
$ac_ext
6154 cat >>conftest.
$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6165 rm -f conftest.
$ac_objext
6166 if { (ac_try
="$ac_compile"
6168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6180 { (case "(($ac_try" in
6181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6182 *) ac_try_echo
=$ac_try;;
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_try") 2>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try
='test -s conftest.$ac_objext'
6190 { (case "(($ac_try" in
6191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_try") 2>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_prog_cxx_g=yes
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6224 *) ac_try_echo
=$ac_try;;
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6229 grep -v '^ *+' conftest.er1
>conftest.err
6231 cat conftest.err
>&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (case "(($ac_try" in
6246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6247 *) ac_try_echo
=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_try") 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.
$ac_ext >&5
6259 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6261 cat >conftest.
$ac_ext <<_ACEOF
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6276 rm -f conftest.
$ac_objext
6277 if { (ac_try
="$ac_compile"
6279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6291 { (case "(($ac_try" in
6292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6293 *) ac_try_echo
=$ac_try;;
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_try") 2>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try
='test -s conftest.$ac_objext'
6301 { (case "(($ac_try" in
6302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_try") 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 ac_cv_prog_cxx_g=yes
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6327 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6328 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6329 if test "$ac_test_CXXFLAGS" = set; then
6330 CXXFLAGS=$ac_save_CXXFLAGS
6331 elif test $ac_cv_prog_cxx_g = yes; then
6332 if test "$GXX" = yes; then
6338 if test "$GXX" = yes; then
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6350 { echo "$as_me:$LINENO: checking " >&5
6351 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6352 if test "${ac_cv_has_flex+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 for ac_prog in flex lex
6357 # Extract the first word of "$ac_prog", so it can be a program name with args.
6358 set dummy $ac_prog; ac_word=$2
6359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361 if test "${ac_cv_prog_LEX+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 if test -n "$LEX"; then
6365 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_LEX="$ac_prog"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 if test -n "$LEX"; then
6386 { echo "$as_me:$LINENO: result: $LEX" >&5
6387 echo "${ECHO_T}$LEX" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6394 test -n "$LEX" && break
6396 test -n "$LEX" || LEX=":"
6398 if test -z "$LEXLIB"
6400 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6401 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6402 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 ac_check_lib_save_LIBS=$LIBS
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (ac_try="$ac_link"
6432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6433 *) ac_try_echo
=$ac_try;;
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_link") 2>conftest.er1
6438 grep -v '^ *+' conftest.er1
>conftest.err
6440 cat conftest.err
>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6444 { (case "(($ac_try" in
6445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_try") 2>&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest$ac_exeext'
6454 { (case "(($ac_try" in
6455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6456 *) ac_try_echo
=$ac_try;;
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_try") 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_cv_lib_fl_yywrap
=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6468 ac_cv_lib_fl_yywrap
=no
6471 rm -f core conftest.err conftest.
$ac_objext \
6472 conftest
$ac_exeext conftest.
$ac_ext
6473 LIBS
=$ac_check_lib_save_LIBS
6475 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6476 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6477 if test $ac_cv_lib_fl_yywrap = yes; then
6480 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6481 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6482 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 ac_check_lib_save_LIBS
=$LIBS
6487 cat >conftest.
$ac_ext <<_ACEOF
6490 cat confdefs.h
>>conftest.
$ac_ext
6491 cat >>conftest.
$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6494 /* Override any GCC internal prototype to avoid an error.
6495 Use char because int might match the return type of a GCC
6496 builtin and then its argument prototype would still apply. */
6509 rm -f conftest.
$ac_objext conftest
$ac_exeext
6510 if { (ac_try
="$ac_link"
6512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6526 *) ac_try_echo
=$ac_try;;
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try
='test -s conftest$ac_exeext'
6534 { (case "(($ac_try" in
6535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_lib_l_yywrap=yes
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_cv_lib_l_yywrap=no
6551 rm -f core conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553 LIBS=$ac_check_lib_save_LIBS
6555 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6556 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6557 if test $ac_cv_lib_l_yywrap = yes; then
6565 if test "x$LEX" != "x:"; then
6566 { echo "$as_me:$LINENO: checking lex output file root" >&5
6567 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_lex_root+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 # The minimal lex program is just a single line: %%. But some broken lexes
6572 # (Solaris, I think it was) want two %% lines, so accommodate them.
6573 cat >conftest.l <<_ACEOF
6577 { (ac_try="$LEX conftest.l"
6579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6580 *) ac_try_echo
=$ac_try;;
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$LEX conftest.l") 2>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }
6587 if test -f lex.yy.c
; then
6588 ac_cv_prog_lex_root
=lex.yy
6589 elif test -f lexyy.c
; then
6590 ac_cv_prog_lex_root
=lexyy
6592 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6593 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6594 { (exit 1); exit 1; }; }
6597 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6598 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6600 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6602 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6603 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 # POSIX says lex can declare yytext either as a pointer or an array; the
6608 # default is implementation-dependent. Figure out which it is, since
6609 # not all implementations provide the %pointer and %array declarations.
6610 ac_cv_prog_lex_yytext_pointer
=no
6611 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6613 LIBS
="$LIBS $LEXLIB"
6614 cat >conftest.
$ac_ext <<_ACEOF
6615 `cat $LEX_OUTPUT_ROOT.c`
6617 rm -f conftest.
$ac_objext conftest
$ac_exeext
6618 if { (ac_try
="$ac_link"
6620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_link") 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6632 { (case "(($ac_try" in
6633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6634 *) ac_try_echo
=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_try") 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try
='test -s conftest$ac_exeext'
6642 { (case "(($ac_try" in
6643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_try") 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_cv_prog_lex_yytext_pointer=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6659 rm -f core conftest.err conftest.$ac_objext \
6660 conftest$ac_exeext conftest.$ac_ext
6662 rm -f "${LEX_OUTPUT_ROOT}.c"
6665 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6666 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6667 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6669 cat >>confdefs.h <<\_ACEOF
6670 #define YYTEXT_POINTER 1
6678 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6679 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6680 if test "$LEX" != "flex"; then
6681 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6682 echo "$as_me: error: flex not found but required" >&2;}
6683 { (exit 1); exit 1; }; }
6689 { echo "$as_me:$LINENO: checking " >&5
6690 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6691 if test "${llvm_cv_has_bison+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 for ac_prog in 'bison -y' byacc
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_prog_YACC+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 if test -n "$YACC"; then
6704 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_YACC="$ac_prog"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 YACC=$ac_cv_prog_YACC
6724 if test -n "$YACC"; then
6725 { echo "$as_me:$LINENO: result: $YACC" >&5
6726 echo "${ECHO_T}$YACC" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6733 test -n "$YACC" && break
6735 test -n "$YACC" || YACC="yacc"
6738 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6739 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6740 if test "$YACC" != "bison -y"; then
6742 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6743 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6749 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6750 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6751 if test "${lt_cv_path_NM+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 if test -n "$NM"; then
6755 # Let the user override the test.
6758 lt_nm_to_check="${ac_tool_prefix}nm"
6759 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6760 lt_nm_to_check="$lt_nm_to_check nm"
6762 for lt_tmp_nm in $lt_nm_to_check; do
6763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6764 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6766 test -z "$ac_dir" && ac_dir=.
6767 tmp_nm="$ac_dir/$lt_tmp_nm"
6768 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6769 # Check to see if the nm accepts a BSD-compat flag.
6770 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6771 # nm: unknown option "B" ignored
6772 # Tru64's nm complains that
/dev
/null is an invalid object
file
6773 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6774 */dev
/null
* |
*'Invalid file or object type'*)
6775 lt_cv_path_NM
="$tmp_nm -B"
6779 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6781 lt_cv_path_NM
="$tmp_nm -p"
6785 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6786 continue # so that we can try to find one that supports BSD flags
6795 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6798 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6799 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6804 { echo "$as_me:$LINENO: checking for GNU make" >&5
6805 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6806 if test "${llvm_cv_gnu_make_command+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 llvm_cv_gnu_make_command
=''
6810 for a
in "$MAKE" make gmake gnumake
; do
6811 if test -z "$a" ; then continue ; fi ;
6812 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6814 llvm_cv_gnu_make_command
=$a ;
6819 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6820 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6821 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6825 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6826 echo "${ECHO_T}\"Not found\"" >&6; };
6830 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6831 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6833 if test "$LN_S" = "ln -s"; then
6834 { echo "$as_me:$LINENO: result: yes" >&5
6835 echo "${ECHO_T}yes" >&6; }
6837 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6838 echo "${ECHO_T}no, using $LN_S" >&6; }
6841 # Extract the first word of "cmp", so it can be a program name with args.
6842 set dummy
cmp; ac_word
=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_CMP+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir
=.
6858 for ac_exec_ext
in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6873 if test -n "$CMP"; then
6874 { echo "$as_me:$LINENO: result: $CMP" >&5
6875 echo "${ECHO_T}$CMP" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 # Extract the first word of "cp", so it can be a program name with args.
6883 set dummy
cp; ac_word
=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_CP+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir
=.
6899 for ac_exec_ext
in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6914 if test -n "$CP"; then
6915 { echo "$as_me:$LINENO: result: $CP" >&5
6916 echo "${ECHO_T}$CP" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 # Extract the first word of "date", so it can be a program name with args.
6924 set dummy
date; ac_word
=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_DATE+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir
=.
6940 for ac_exec_ext
in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6954 DATE
=$ac_cv_path_DATE
6955 if test -n "$DATE"; then
6956 { echo "$as_me:$LINENO: result: $DATE" >&5
6957 echo "${ECHO_T}$DATE" >&6; }
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6964 # Extract the first word of "find", so it can be a program name with args.
6965 set dummy
find; ac_word
=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_FIND+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir
=.
6981 for ac_exec_ext
in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6995 FIND
=$ac_cv_path_FIND
6996 if test -n "$FIND"; then
6997 { echo "$as_me:$LINENO: result: $FIND" >&5
6998 echo "${ECHO_T}$FIND" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7005 # Extract the first word of "grep", so it can be a program name with args.
7006 set dummy
grep; ac_word
=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_GREP+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
7017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir
=.
7022 for ac_exec_ext
in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
7036 GREP
=$ac_cv_path_GREP
7037 if test -n "$GREP"; then
7038 { echo "$as_me:$LINENO: result: $GREP" >&5
7039 echo "${ECHO_T}$GREP" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "mkdir", so it can be a program name with args.
7047 set dummy mkdir
; ac_word
=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_MKDIR+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
7058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir
=.
7063 for ac_exec_ext
in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
7077 MKDIR
=$ac_cv_path_MKDIR
7078 if test -n "$MKDIR"; then
7079 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7080 echo "${ECHO_T}$MKDIR" >&6; }
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7087 # Extract the first word of "mv", so it can be a program name with args.
7088 set dummy
mv; ac_word
=$2
7089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7091 if test "${ac_cv_path_MV+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7103 test -z "$as_dir" && as_dir
=.
7104 for ac_exec_ext
in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7119 if test -n "$MV"; then
7120 { echo "$as_me:$LINENO: result: $MV" >&5
7121 echo "${ECHO_T}$MV" >&6; }
7123 { echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6; }
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7130 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_prog_RANLIB+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 if test -n "$RANLIB"; then
7137 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir
=.
7144 for ac_exec_ext
in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 RANLIB
=$ac_cv_prog_RANLIB
7157 if test -n "$RANLIB"; then
7158 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7159 echo "${ECHO_T}$RANLIB" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7167 if test -z "$ac_cv_prog_RANLIB"; then
7168 ac_ct_RANLIB
=$RANLIB
7169 # Extract the first word of "ranlib", so it can be a program name with args.
7170 set dummy ranlib
; ac_word
=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 if test -n "$ac_ct_RANLIB"; then
7177 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir
=.
7184 for ac_exec_ext
in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7197 if test -n "$ac_ct_RANLIB"; then
7198 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7199 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7205 if test "x$ac_ct_RANLIB" = x
; then
7208 case $cross_compiling:$ac_tool_warned in
7210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7211 whose name does not start with the host triplet. If you think this
7212 configuration is useful to you, please write to autoconf@gnu.org." >&5
7213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7214 whose name does not start with the host triplet. If you think this
7215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7216 ac_tool_warned
=yes ;;
7218 RANLIB
=$ac_ct_RANLIB
7221 RANLIB
="$ac_cv_prog_RANLIB"
7224 # Extract the first word of "rm", so it can be a program name with args.
7225 set dummy
rm; ac_word
=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_RM+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir
=.
7241 for ac_exec_ext
in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7256 if test -n "$RM"; then
7257 { echo "$as_me:$LINENO: result: $RM" >&5
7258 echo "${ECHO_T}$RM" >&6; }
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7265 # Extract the first word of "sed", so it can be a program name with args.
7266 set dummy
sed; ac_word
=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_SED+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir
=.
7282 for ac_exec_ext
in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7297 if test -n "$SED"; then
7298 { echo "$as_me:$LINENO: result: $SED" >&5
7299 echo "${ECHO_T}$SED" >&6; }
7301 { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7306 # Extract the first word of "tar", so it can be a program name with args.
7307 set dummy
tar; ac_word
=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_path_TAR+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir
=.
7323 for ac_exec_ext
in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7338 if test -n "$TAR"; then
7339 { echo "$as_me:$LINENO: result: $TAR" >&5
7340 echo "${ECHO_T}$TAR" >&6; }
7342 { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7347 # Extract the first word of "pwd", so it can be a program name with args.
7348 set dummy
pwd; ac_word
=$2
7349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351 if test "${ac_cv_path_BINPWD+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir
=.
7364 for ac_exec_ext
in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7378 BINPWD
=$ac_cv_path_BINPWD
7379 if test -n "$BINPWD"; then
7380 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7381 echo "${ECHO_T}$BINPWD" >&6; }
7383 { echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6; }
7389 # Extract the first word of "Graphviz", so it can be a program name with args.
7390 set dummy Graphviz
; ac_word
=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir
=.
7406 for ac_exec_ext
in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7420 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7421 if test -n "$GRAPHVIZ"; then
7422 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7423 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7425 { echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6; }
7430 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7432 cat >>confdefs.h
<<\_ACEOF
7433 #define HAVE_GRAPHVIZ 1
7436 if test "$llvm_cv_os_type" = "MingW" ; then
7437 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7440 cat >>confdefs.h
<<_ACEOF
7441 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7445 # Extract the first word of "dot", so it can be a program name with args.
7446 set dummy dot
; ac_word
=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_DOT+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir
=.
7462 for ac_exec_ext
in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7477 if test -n "$DOT"; then
7478 { echo "$as_me:$LINENO: result: $DOT" >&5
7479 echo "${ECHO_T}$DOT" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 if test "$DOT" != "echo dot" ; then
7488 cat >>confdefs.h
<<\_ACEOF
7492 if test "$llvm_cv_os_type" = "MingW" ; then
7493 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7496 cat >>confdefs.h
<<_ACEOF
7497 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7501 for ac_prog
in gv gsview32
7503 # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy
$ac_prog; ac_word
=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GV+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir
=.
7520 for ac_exec_ext
in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 if test -n "$GV"; then
7535 { echo "$as_me:$LINENO: result: $GV" >&5
7536 echo "${ECHO_T}$GV" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 test -n "$GV" && break
7545 test -n "$GV" || GV
="echo gv"
7547 if test "$GV" != "echo gv" ; then
7549 cat >>confdefs.h
<<\_ACEOF
7553 if test "$llvm_cv_os_type" = "MingW" ; then
7554 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7557 cat >>confdefs.h
<<_ACEOF
7558 #define LLVM_PATH_GV "$GV${EXEEXT}"
7562 # Extract the first word of "dotty", so it can be a program name with args.
7563 set dummy dotty
; ac_word
=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_path_DOTTY+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir
=.
7579 for ac_exec_ext
in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7593 DOTTY
=$ac_cv_path_DOTTY
7594 if test -n "$DOTTY"; then
7595 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7596 echo "${ECHO_T}$DOTTY" >&6; }
7598 { echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6; }
7603 if test "$DOTTY" != "echo dotty" ; then
7605 cat >>confdefs.h
<<\_ACEOF
7606 #define HAVE_DOTTY 1
7609 if test "$llvm_cv_os_type" = "MingW" ; then
7610 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7613 cat >>confdefs.h
<<_ACEOF
7614 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7620 # Extract the first word of "perl", so it can be a program name with args.
7621 set dummy perl
; ac_word
=$2
7622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624 if test "${ac_cv_path_PERL+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir
=.
7637 for ac_exec_ext
in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7651 PERL
=$ac_cv_path_PERL
7652 if test -n "$PERL"; then
7653 { echo "$as_me:$LINENO: result: $PERL" >&5
7654 echo "${ECHO_T}$PERL" >&6; }
7656 { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7661 if test "$PERL" != "none"; then
7662 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7663 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7664 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7665 { echo "$as_me:$LINENO: result: yes" >&5
7666 echo "${ECHO_T}yes" >&6; }
7669 { echo "$as_me:$LINENO: result: not found" >&5
7670 echo "${ECHO_T}not found" >&6; }
7675 if test x
"$PERL" = xnone
; then
7678 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7679 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7680 { (exit 1); exit 1; }; }
7686 # Find a good install program. We prefer a C program (faster),
7687 # so one script is as good as another. But avoid the broken or
7688 # incompatible versions:
7689 # SysV /etc/install, /usr/sbin/install
7690 # SunOS /usr/etc/install
7691 # IRIX /sbin/install
7693 # AmigaOS /C/install, which installs bootblocks on floppy discs
7694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7697 # OS/2's system install, which has a completely different semantic
7698 # ./install, which can be erroneously created by make from ./install.sh.
7699 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7700 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7701 if test -z "$INSTALL"; then
7702 if test "${ac_cv_path_install+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir
=.
7710 # Account for people who put trailing slashes in PATH elements.
7712 .
/ | .
// |
/cC
/* | \
7713 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7714 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7717 # OSF1 and SCO ODT 3.0 have their own names for install.
7718 # Don't use installbsd from OSF since it installs stuff as root
7720 for ac_prog
in ginstall scoinst
install; do
7721 for ac_exec_ext
in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7723 if test $ac_prog = install &&
7724 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7725 # AIX install. It has an incompatible calling convention.
7727 elif test $ac_prog = install &&
7728 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7729 # program-specific install script used by HP pwplus--don't use.
7732 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7745 if test "${ac_cv_path_install+set}" = set; then
7746 INSTALL
=$ac_cv_path_install
7748 # As a last resort, use the slow shell script. Don't cache a
7749 # value for INSTALL within a source directory, because that will
7750 # break other packages using the cache if that directory is
7751 # removed, or if the value is a relative name.
7752 INSTALL
=$ac_install_sh
7755 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7756 echo "${ECHO_T}$INSTALL" >&6; }
7758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7759 # It thinks the first close brace ends the variable substitution.
7760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7762 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7764 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7767 # Extract the first word of "bzip2", so it can be a program name with args.
7768 set dummy
bzip2; ac_word
=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_path_BZIP2+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir
=.
7784 for ac_exec_ext
in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 BZIP2
=$ac_cv_path_BZIP2
7798 if test -n "$BZIP2"; then
7799 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7800 echo "${ECHO_T}$BZIP2" >&6; }
7802 { echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6; }
7807 # Extract the first word of "doxygen", so it can be a program name with args.
7808 set dummy doxygen
; ac_word
=$2
7809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir
=.
7824 for ac_exec_ext
in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 DOXYGEN
=$ac_cv_path_DOXYGEN
7838 if test -n "$DOXYGEN"; then
7839 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7840 echo "${ECHO_T}$DOXYGEN" >&6; }
7842 { echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6; }
7847 # Extract the first word of "groff", so it can be a program name with args.
7848 set dummy
groff; ac_word
=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_GROFF+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir
=.
7864 for ac_exec_ext
in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 GROFF
=$ac_cv_path_GROFF
7878 if test -n "$GROFF"; then
7879 { echo "$as_me:$LINENO: result: $GROFF" >&5
7880 echo "${ECHO_T}$GROFF" >&6; }
7882 { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7887 # Extract the first word of "gzip", so it can be a program name with args.
7888 set dummy
gzip; ac_word
=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_path_GZIP+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir
=.
7904 for ac_exec_ext
in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 GZIP
=$ac_cv_path_GZIP
7918 if test -n "$GZIP"; then
7919 { echo "$as_me:$LINENO: result: $GZIP" >&5
7920 echo "${ECHO_T}$GZIP" >&6; }
7922 { echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6; }
7927 # Extract the first word of "pod2html", so it can be a program name with args.
7928 set dummy pod2html
; ac_word
=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_POD2HTML+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir
=.
7944 for ac_exec_ext
in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 POD2HTML
=$ac_cv_path_POD2HTML
7958 if test -n "$POD2HTML"; then
7959 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7960 echo "${ECHO_T}$POD2HTML" >&6; }
7962 { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7967 # Extract the first word of "pod2man", so it can be a program name with args.
7968 set dummy pod2man
; ac_word
=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_POD2MAN+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir
=.
7984 for ac_exec_ext
in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 POD2MAN
=$ac_cv_path_POD2MAN
7998 if test -n "$POD2MAN"; then
7999 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8000 echo "${ECHO_T}$POD2MAN" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8007 # Extract the first word of "runtest", so it can be a program name with args.
8008 set dummy runtest
; ac_word
=$2
8009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8011 if test "${ac_cv_path_RUNTEST+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir
=.
8024 for ac_exec_ext
in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 RUNTEST
=$ac_cv_path_RUNTEST
8038 if test -n "$RUNTEST"; then
8039 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8040 echo "${ECHO_T}$RUNTEST" >&6; }
8042 { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8049 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8050 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8052 # Check whether --with-tclinclude was given.
8053 if test "${with_tclinclude+set}" = set; then
8054 withval
=$with_tclinclude; with_tclinclude
=${withval}
8059 if test "${ac_cv_path_tclsh+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 if test x
"${with_tclinclude}" != x
; then
8064 if test -f ${with_tclinclude}/tclsh
; then
8065 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8066 elif test -f ${with_tclinclude}/src
/tclsh
; then
8067 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8069 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8070 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8071 { (exit 1); exit 1; }; }
8075 if test x
"${ac_cv_path_tclsh}" = x
; then
8076 { echo "$as_me:$LINENO: result: none" >&5
8077 echo "${ECHO_T}none" >&6; }
8078 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
8080 # Extract the first word of "$ac_prog", so it can be a program name with args.
8081 set dummy
$ac_prog; ac_word
=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_path_TCLSH+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir
=.
8097 for ac_exec_ext
in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 TCLSH
=$ac_cv_path_TCLSH
8111 if test -n "$TCLSH"; then
8112 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8113 echo "${ECHO_T}$TCLSH" >&6; }
8115 { echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6; }
8120 test -n "$TCLSH" && break
8123 if test x
"${TCLSH}" = x
; then
8124 ac_cv_path_tclsh
='';
8126 ac_cv_path_tclsh
="${TCLSH}";
8129 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8130 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8131 TCLSH="${ac_cv_path_tclsh}"
8137 # Extract the first word of "zip", so it can be a program name with args.
8138 set dummy zip; ac_word=$2
8139 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8140 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8141 if test "${ac_cv_path_ZIP+set}" = set; then
8142 echo $ECHO_N "(cached
) $ECHO_C" >&6
8146 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8168 if test -n "$ZIP"; then
8169 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8170 echo "${ECHO_T}$ZIP" >&6; }
8172 { echo "$as_me:$LINENO: result
: no
" >&5
8173 echo "${ECHO_T}no
" >&6; }
8177 for ac_prog in ocamlc
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_OCAMLC+set}" = set; then
8184 echo $ECHO_N "(cached
) $ECHO_C" >&6
8188 ac_cv_path_OCAMLC="$OCAMLC" # 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_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8209 OCAMLC=$ac_cv_path_OCAMLC
8210 if test -n "$OCAMLC"; then
8211 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8212 echo "${ECHO_T}$OCAMLC" >&6; }
8214 { echo "$as_me:$LINENO: result
: no
" >&5
8215 echo "${ECHO_T}no
" >&6; }
8219 test -n "$OCAMLC" && break
8222 for ac_prog in ocamlopt
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_OCAMLOPT+set}" = set; then
8229 echo $ECHO_N "(cached
) $ECHO_C" >&6
8233 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8254 OCAMLOPT=$ac_cv_path_OCAMLOPT
8255 if test -n "$OCAMLOPT"; then
8256 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8257 echo "${ECHO_T}$OCAMLOPT" >&6; }
8259 { echo "$as_me:$LINENO: result
: no
" >&5
8260 echo "${ECHO_T}no
" >&6; }
8264 test -n "$OCAMLOPT" && break
8267 for ac_prog in ocamldep
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_OCAMLDEP+set}" = set; then
8274 echo $ECHO_N "(cached
) $ECHO_C" >&6
8278 ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8289 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8299 OCAMLDEP=$ac_cv_path_OCAMLDEP
8300 if test -n "$OCAMLDEP"; then
8301 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8302 echo "${ECHO_T}$OCAMLDEP" >&6; }
8304 { echo "$as_me:$LINENO: result
: no
" >&5
8305 echo "${ECHO_T}no
" >&6; }
8309 test -n "$OCAMLDEP" && break
8312 for ac_prog in ocamldoc
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_OCAMLDOC+set}" = set; then
8319 echo $ECHO_N "(cached
) $ECHO_C" >&6
8323 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8334 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8344 OCAMLDOC=$ac_cv_path_OCAMLDOC
8345 if test -n "$OCAMLDOC"; then
8346 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8347 echo "${ECHO_T}$OCAMLDOC" >&6; }
8349 { echo "$as_me:$LINENO: result
: no
" >&5
8350 echo "${ECHO_T}no
" >&6; }
8354 test -n "$OCAMLDOC" && break
8357 for ac_prog in gas as
8359 # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8362 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8363 if test "${ac_cv_path_GAS+set}" = set; then
8364 echo $ECHO_N "(cached
) $ECHO_C" >&6
8368 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8379 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8390 if test -n "$GAS"; then
8391 { echo "$as_me:$LINENO: result
: $GAS" >&5
8392 echo "${ECHO_T}$GAS" >&6; }
8394 { echo "$as_me:$LINENO: result
: no
" >&5
8395 echo "${ECHO_T}no
" >&6; }
8399 test -n "$GAS" && break
8403 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8404 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8405 if test "${llvm_cv_link_use_r+set}" = set; then
8406 echo $ECHO_N "(cached
) $ECHO_C" >&6
8409 ac_cpp='$CPP $CPPFLAGS'
8410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415 CFLAGS="$CFLAGS -Wl,-R.
"
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8426 int main() { return 0; }
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (ac_try="$ac_link"
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_link") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 llvm_cv_link_use_r=yes
8467 echo "$as_me: failed program was
:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 llvm_cv_link_use_r=no
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8484 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8485 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8486 if test "$llvm_cv_link_use_r" = yes ; then
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_LINK_R 1
8497 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8498 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8499 if test "${ac_cv_c_const+set}" = set; then
8500 echo $ECHO_N "(cached
) $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8512 /* FIXME: Include the comments suggested by Paul. */
8514 /* Ultrix mips cc rejects this. */
8515 typedef int charset[2];
8517 /* SunOS 4.1.1 cc rejects this. */
8518 char const *const *ccp;
8520 /* NEC SVR4.0.2 mips cc rejects this. */
8521 struct point {int x, y;};
8522 static struct point const zero = {0,0};
8523 /* AIX XL C 1.02.0.0 rejects this.
8524 It does not let you subtract one const X* pointer from another in
8525 an arm of an if-expression whose if-part is not a constant
8527 const char *g = "string
";
8528 ccp = &g + (g ? g-g : 0);
8529 /* HPUX 7.0 cc rejects these. */
8532 ccp = (char const *const *) p;
8533 { /* SCO 3.2v4 cc rejects this. */
8535 char const *s = 0 ? (char *) 0 : (char const *) 0;
8540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8542 const int *foo = &x[0];
8545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8546 typedef const int *iptr;
8550 { /* AIX XL C 1.02.0.0 rejects this saying
8551 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8552 struct s { int j; const int *ap[3]; };
8553 struct s *b; b->j = 5;
8555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8559 return !x[0] && !zero.x;
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8575 grep -v '^ *+' conftest.er1 >conftest.err
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8581 { (case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_try") 2>&5
8588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest.$ac_objext'
8591 { (case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_try") 2>&5
8598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8599 (exit $ac_status); }; }; then
8602 echo "$as_me: failed program was
:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8611 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8612 if test $ac_cv_c_const = no; then
8614 cat >>confdefs.h <<\_ACEOF
8626 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8627 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8628 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8629 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8631 echo $ECHO_N "(cached
) $ECHO_C" >&6
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 #include <sys/types.h>
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666 { (case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_try") 2>&5
8673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_try") 2>&5
8683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 eval "$as_ac_Header=yes"
8687 echo "$as_me: failed program was
:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 eval "$as_ac_Header=no
"
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 ac_res=`eval echo '${'$as_ac_Header'}'`
8696 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8697 echo "${ECHO_T}$ac_res" >&6; }
8698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8703 ac_header_dirent=$ac_hdr; break
8707 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8708 if test $ac_header_dirent = dirent.h; then
8709 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8710 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8711 if test "${ac_cv_search_opendir+set}" = set; then
8712 echo $ECHO_N "(cached
) $ECHO_C" >&6
8714 ac_func_search_save_LIBS=$LIBS
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8722 /* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
8737 for ac_lib in '' dir; do
8738 if test -z "$ac_lib"; then
8739 ac_res="none required
"
8742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_link") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_search_opendir=$ac_res
8780 echo "$as_me: failed program was
:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -f core conftest.err conftest.$ac_objext \
8788 if test "${ac_cv_search_opendir+set}" = set; then
8792 if test "${ac_cv_search_opendir+set}" = set; then
8795 ac_cv_search_opendir=no
8798 LIBS=$ac_func_search_save_LIBS
8800 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8801 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8802 ac_res=$ac_cv_search_opendir
8803 if test "$ac_res" != no; then
8804 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8809 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8810 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8811 if test "${ac_cv_search_opendir+set}" = set; then
8812 echo $ECHO_N "(cached
) $ECHO_C" >&6
8814 ac_func_search_save_LIBS=$LIBS
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8822 /* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8837 for ac_lib in '' x; do
8838 if test -z "$ac_lib"; then
8839 ac_res="none required
"
8842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (ac_try="$ac_link"
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_link") 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_try") 2>&5
8876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_search_opendir=$ac_res
8880 echo "$as_me: failed program was
:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8886 rm -f core conftest.err conftest.$ac_objext \
8888 if test "${ac_cv_search_opendir+set}" = set; then
8892 if test "${ac_cv_search_opendir+set}" = set; then
8895 ac_cv_search_opendir=no
8898 LIBS=$ac_func_search_save_LIBS
8900 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8901 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8902 ac_res=$ac_cv_search_opendir
8903 if test "$ac_res" != no; then
8904 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8911 for ac_header in dlfcn.h
8913 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8914 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8915 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8916 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8917 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8918 echo $ECHO_N "(cached
) $ECHO_C" >&6
8920 ac_res=`eval echo '${'$as_ac_Header'}'`
8921 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8922 echo "${ECHO_T}$ac_res" >&6; }
8924 # Is the header compilable?
8925 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8926 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 $ac_includes_default
8934 #include <$ac_header>
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest.$ac_objext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_header_compiler=yes
8972 echo "$as_me: failed program was
:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_header_compiler=no
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8980 echo "${ECHO_T}$ac_header_compiler" >&6; }
8982 # Is the header present?
8983 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8984 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 #include <$ac_header>
8993 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9005 (exit $ac_status); } >/dev/null; then
9006 if test -s conftest.err; then
9007 ac_cpp_err=$ac_c_preproc_warn_flag
9008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9015 if test -z "$ac_cpp_err"; then
9016 ac_header_preproc=yes
9018 echo "$as_me: failed program was
:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_header_preproc=no
9024 rm -f conftest.err conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6; }
9028 # So? What about this header?
9029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9031 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9032 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9033 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9035 ac_header_preproc=yes
9038 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9039 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9040 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9041 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9042 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9043 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9044 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9045 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9046 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9048 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9049 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9051 ## ----------------------------------- ##
9052 ## Report this to llvmbugs@cs.uiuc.edu ##
9053 ## ----------------------------------- ##
9055 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9058 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9059 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9060 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9061 echo $ECHO_N "(cached
) $ECHO_C" >&6
9063 eval "$as_ac_Header=\
$ac_header_preproc"
9065 ac_res=`eval echo '${'$as_ac_Header'}'`
9066 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9067 echo "${ECHO_T}$ac_res" >&6; }
9070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9071 cat >>confdefs.h <<_ACEOF
9072 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9079 # Check whether --enable-ltdl-install was given.
9080 if test "${enable_ltdl_install+set}" = set; then
9081 enableval=$enable_ltdl_install;
9087 if test x"${enable_ltdl_install-no}" != xno; then
9089 INSTALL_LTDL_FALSE='#'
9091 INSTALL_LTDL_TRUE='#'
9097 if test x"${enable_ltdl_convenience-no}" != xno; then
9098 CONVENIENCE_LTDL_TRUE=
9099 CONVENIENCE_LTDL_FALSE='#'
9101 CONVENIENCE_LTDL_TRUE='#'
9102 CONVENIENCE_LTDL_FALSE=
9106 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9107 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9109 libname_spec='lib$name'
9117 shlibpath_overrides_runpath=unknown
9119 dynamic_linker="$host_os ld.so
"
9120 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9121 if test "$GCC" = yes; then
9122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9123 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9124 # if the path contains ";" then we assume it to be the separator
9125 # otherwise default to the standard path separator (i.e. ":") - it is
9126 # assumed that no part of a normal pathname contains ";" but that should
9127 # okay in the real world where ";" in dirpaths is itself problematic.
9128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9133 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9135 need_lib_prefix=unknown
9136 hardcode_into_libs=no
9138 # when you set need_version to no, make sure it does not cause -set_version
9139 # flags to be left without arguments
9140 need_version=unknown
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9146 shlibpath_var=LIBPATH
9148 # AIX 3 has no versioning support, so we append a major version to the name.
9149 soname_spec='${libname}${release}${shared_ext}$major'
9156 hardcode_into_libs=yes
9157 if test "$host_cpu" = ia64; then
9158 # AIX 5 supports IA64
9159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9160 shlibpath_var=LD_LIBRARY_PATH
9162 # With GCC up to 2.95.x, collect2 would create an import file
9163 # for dependence libraries. The import file would start with
9164 # the line `#! .'. This would cause the generated library to
9165 # depend on `.', always an invalid library. This was fixed in
9166 # development snapshots of GCC prior to 3.0.
9168 aix4 | aix4.[01] | aix4.[01].*)
9169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9171 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9179 # soname into executable. Probably we can add versioning support to
9180 # collect2, so additional links can be useful in future.
9181 if test "$aix_use_runtimelinking" = yes; then
9182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9183 # instead of lib<name>.a to let people know that these are not
9184 # typical AIX shared libraries.
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 # We preserve .a as extension for shared libraries through AIX4.2
9188 # and later when we are not doing run time linking.
9189 library_names_spec='${libname}${release}.a $libname.a'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LIBPATH
9197 library_names_spec='$libname.ixlibrary $libname.a'
9198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9199 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'
9203 library_names_spec='${libname}${shared_ext}'
9204 dynamic_linker="$host_os ld.so
"
9205 shlibpath_var=LIBRARY_PATH
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9216 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9217 # the default ld.so.conf also contains /usr/contrib/lib and
9218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9219 # libtool to hard-code these into programs
9222 cygwin* | mingw* | pw32*)
9223 version_type=windows
9228 case $GCC,$host_os in
9229 yes,cygwin* | yes,mingw* | yes,pw32*)
9230 library_names_spec='$libname.dll.a'
9231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9232 postinstall_cmds='base_file=`basename \${file}`~
9233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9234 dldir=$destdir/`dirname \$dlpath`~
9235 test -d \$dldir || mkdir -p \$dldir~
9236 $install_prog $dir/$dlname \$dldir/$dlname~
9237 chmod a+x \$dldir/$dlname'
9238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9239 dlpath=$dir/\$dldll~
9241 shlibpath_overrides_runpath=yes
9245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9250 # MinGW DLLs use traditional 'lib' prefix
9251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9254 # It is most probably a Windows format PATH printed by
9255 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9256 # path with ; separators, and with drive letters. We can handle the
9257 # drive letters (cygwin fileutils understands them), so leave them,
9258 # especially as we might pass files found there to a mingw objdump,
9259 # which wouldn't understand a cygwinified path. Ahh.
9260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9266 # pw32 DLLs use 'pw' prefix rather than 'lib'
9267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9276 dynamic_linker='Win32 ld.exe'
9277 # FIXME: first we should search . and the directory the executable is in
9281 darwin* | rhapsody*)
9282 dynamic_linker="$host_os dyld
"
9286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9287 soname_spec='${libname}${release}${major}$shared_ext'
9288 shlibpath_overrides_runpath=yes
9289 shlibpath_var=DYLD_LIBRARY_PATH
9290 shrext_cmds='.dylib'
9291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9292 if test "$GCC" = yes; then
9293 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
"`
9295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=no
9321 hardcode_into_libs=yes
9322 dynamic_linker='GNU ld.so'
9325 freebsd* | dragonfly*)
9326 # DragonFly does not have aout. When/if they implement a new
9327 # versioning mechanism, adjust this.
9328 if test -x /usr/bin/objformat; then
9329 objformat=`/usr/bin/objformat`
9332 freebsd[123]*) objformat=aout ;;
9336 version_type=freebsd-$objformat
9337 case $version_type in
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9348 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=yes
9353 freebsd3.[01]* | freebsdelf3.[01]*)
9354 shlibpath_overrides_runpath=yes
9355 hardcode_into_libs=yes
9357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9359 shlibpath_overrides_runpath=no
9360 hardcode_into_libs=yes
9362 freebsd*) # from 4.6 on
9363 shlibpath_overrides_runpath=yes
9364 hardcode_into_libs=yes
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 hardcode_into_libs=yes
9379 hpux9* | hpux10* | hpux11*)
9380 # Give a soname corresponding to the major version so that dld.sl refuses to
9381 # link against other versions.
9388 hardcode_into_libs=yes
9389 dynamic_linker="$host_os dld.so
"
9390 shlibpath_var=LD_LIBRARY_PATH
9391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 if test "X
$HPUX_IA64_MODE" = X32; then
9395 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9397 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403 hardcode_into_libs=yes
9404 dynamic_linker="$host_os dld.sl
"
9405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9414 dynamic_linker="$host_os dld.sl
"
9415 shlibpath_var=SHLIB_PATH
9416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9422 postinstall_cmds='chmod 555 $lib'
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 shlibpath_overrides_runpath=no
9434 hardcode_into_libs=yes
9437 irix5* | irix6* | nonstopux*)
9439 nonstopux*) version_type=nonstopux ;;
9441 if test "$lt_cv_prog_gnu_ld" = yes; then
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9452 irix5* | nonstopux*)
9456 case $LD in # libtool.m4 will add one of these switches to LD
9457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9458 libsuff= shlibsuff= libmagic=32-bit;;
9459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9460 libsuff=32 shlibsuff=N32 libmagic=N32;;
9461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9463 *) libsuff= shlibsuff= libmagic=never-match;;
9467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9468 shlibpath_overrides_runpath=no
9469 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9470 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9471 hardcode_into_libs=yes
9474 # No shared lib support for Linux oldld, aout, or coff.
9475 linux*oldld* | linux*aout* | linux*coff*)
9479 # This must be Linux ELF.
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=no
9489 # This implies no fast_install, which is unacceptable.
9490 # Some rework will be needed to allow for fast_install
9491 # before this can be enabled.
9492 hardcode_into_libs=yes
9494 # Append ld.so.conf contents to the search path
9495 if test -f /etc/ld.so.conf; then
9496 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' ' '`
9497 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9500 # We used to test for /lib/ld.so.1 and disable shared libraries on
9501 # powerpc, because MkLinux only supported shared libraries with the
9502 # GNU dynamic linker. Since this was broken with cross compilers,
9503 # most powerpc-linux boxes support dynamic linking these days and
9504 # people can always --disable-shared, the test was removed, and we
9505 # assume the GNU/Linux dynamic linker is in use.
9506 dynamic_linker='GNU/Linux ld.so'
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=no
9517 hardcode_into_libs=yes
9518 dynamic_linker='GNU ld.so'
9525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9528 dynamic_linker='NetBSD (a.out) ld.so'
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 dynamic_linker='NetBSD ld.elf_so'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=yes
9536 hardcode_into_libs=yes
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 shlibpath_overrides_runpath=yes
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=yes
9558 sys_lib_dlsearch_path_spec="/usr
/lib
"
9560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9563 *) need_version=no ;;
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9570 openbsd2.[89] | openbsd2.[89].*)
9571 shlibpath_overrides_runpath=no
9574 shlibpath_overrides_runpath=yes
9578 shlibpath_overrides_runpath=yes
9583 libname_spec='$name'
9586 library_names_spec='$libname${shared_ext} $libname.a'
9587 dynamic_linker='OS/2 ld.exe'
9588 shlibpath_var=LIBPATH
9591 osf3* | osf4* | osf5*)
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath=yes
9610 hardcode_into_libs=yes
9611 # ldd complains unless libraries are executable
9612 postinstall_cmds='chmod +x $lib'
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 shlibpath_overrides_runpath=yes
9621 if test "$with_gnu_ld" = yes; then
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 case $host_vendor in
9634 shlibpath_overrides_runpath=no
9636 export_dynamic_flag_spec='${wl}-Blargedynsym'
9637 runpath_var=LD_RUN_PATH
9645 shlibpath_overrides_runpath=no
9646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9652 if test -d /usr/nec ;then
9654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9655 soname_spec='$libname${shared_ext}.$major'
9656 shlibpath_var=LD_LIBRARY_PATH
9660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9661 version_type=freebsd-elf
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 hardcode_into_libs=yes
9668 if test "$with_gnu_ld" = yes; then
9669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9670 shlibpath_overrides_runpath=no
9672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9673 shlibpath_overrides_runpath=yes
9676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9680 sys_lib_dlsearch_path_spec='/usr/lib'
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9694 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9695 echo "${ECHO_T}$dynamic_linker" >&6; }
9696 test "$dynamic_linker" = no && can_build_shared=no
9698 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9699 if test "$GCC" = yes; then
9700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9704 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9705 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9706 if test "${libltdl_cv_shlibext+set}" = set; then
9707 echo $ECHO_N "(cached
) $ECHO_C" >&6
9711 eval libltdl_cv_shlibext=$shrext_cmds
9714 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9715 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9716 if test -n "$libltdl_cv_shlibext"; then
9718 cat >>confdefs.h <<_ACEOF
9719 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9725 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9726 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9727 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9728 echo $ECHO_N "(cached
) $ECHO_C" >&6
9730 libltdl_cv_shlibpath_var="$shlibpath_var"
9732 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9733 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9734 if test -n "$libltdl_cv_shlibpath_var"; then
9736 cat >>confdefs.h <<_ACEOF
9737 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9743 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9744 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9745 if test "${libltdl_cv_sys_search_path+set}" = set; then
9746 echo $ECHO_N "(cached
) $ECHO_C" >&6
9748 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9750 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9751 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9752 if test -n "$libltdl_cv_sys_search_path"; then
9754 for dir in $libltdl_cv_sys_search_path; do
9755 if test -z "$sys_search_path"; then
9756 sys_search_path="$dir"
9758 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9762 cat >>confdefs.h <<_ACEOF
9763 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9768 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9769 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9770 if test "${libltdl_cv_objdir+set}" = set; then
9771 echo $ECHO_N "(cached
) $ECHO_C" >&6
9773 libltdl_cv_objdir="$objdir"
9774 if test -n "$objdir"; then
9777 rm -f .libs 2>/dev/null
9778 mkdir .libs 2>/dev/null
9779 if test -d .libs; then
9780 libltdl_cv_objdir=.libs
9782 # MS-DOS does not allow filenames that begin with a dot.
9783 libltdl_cv_objdir=_libs
9785 rmdir .libs 2>/dev/null
9789 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9790 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9792 cat >>confdefs.h <<_ACEOF
9793 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9801 # Check for command to grab the raw symbol name followed by C symbol from nm.
9802 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9803 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9804 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9805 echo $ECHO_N "(cached
) $ECHO_C" >&6
9808 # These are sane defaults that work on at least a few old systems.
9809 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9811 # Character class describing NM global symbol codes.
9812 symcode='[BCDEGRST]'
9814 # Regexp to match symbols that can be accessed directly from C.
9815 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9817 # Transform an extracted symbol line into a proper C declaration
9818 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9820 # Transform an extracted symbol line into symbol name and symbol address
9821 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'"
9823 # Define system-specific variables.
9828 cygwin* | mingw* | pw32*)
9829 symcode='[ABCDGISTW]'
9831 hpux*) # Its linker distinguishes data from code symbols
9832 if test "$host_cpu" = ia64; then
9833 symcode='[ABCDEGRST]'
9835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9836 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'"
9839 if test "$host_cpu" = ia64; then
9840 symcode='[ABCDGIRSTW]'
9841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9842 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'"
9846 symcode='[BCDEGRST]'
9849 symcode='[BCDEGQRST]'
9860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9868 # Handle CRLF in mingw tool chain
9872 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9876 # If we're using GNU nm, then use its standard symbol codes.
9877 case `$NM -V 2>&1` in
9878 *GNU* | *'with BFD'*)
9879 symcode='[ABCDGIRSTW]' ;;
9882 # Try without a prefix undercore, then with it.
9883 for ac_symprfx in "" "_
"; do
9885 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9886 symxfrm="\\1 $ac_symprfx\\2 \\2"
9888 # Write the raw and C identifiers.
9889 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9891 # Check to see that the pipe works correctly.
9895 cat > conftest.$ac_ext <<EOF
9900 void nm_test_func(){}
9904 int main(){nm_test_var='a';nm_test_func();return(0);}
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>&5
9910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9911 (exit $ac_status); }; then
9912 # Now try to grab the symbols.
9914 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9915 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9918 (exit $ac_status); } && test -s "$nlist"; then
9919 # Try sorting and uniquifying the output.
9920 if sort "$nlist" | uniq > "$nlist"T; then
9921 mv -f "$nlist"T "$nlist"
9926 # Make sure that we snagged all the symbols we need.
9927 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9928 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9929 cat <<EOF > conftest.$ac_ext
9935 # Now generate the symbol file.
9936 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9938 cat <<EOF >> conftest.$ac_ext
9939 #if defined (__STDC__) && __STDC__
9940 # define lt_ptr_t void *
9942 # define lt_ptr_t char *
9946 /* The mapping between symbol names and symbols. */
9951 lt_preloaded_symbols[] =
9954 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9955 cat <<\EOF >> conftest.$ac_ext
9963 # Now try linking the two files.
9964 mv conftest.$ac_objext conftstm.$ac_objext
9965 lt_save_LIBS="$LIBS"
9966 lt_save_CFLAGS="$CFLAGS"
9967 LIBS="conftstm.
$ac_objext"
9968 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9973 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9976 LIBS="$lt_save_LIBS"
9977 CFLAGS="$lt_save_CFLAGS"
9979 echo "cannot
find nm_test_func
in $nlist" >&5
9982 echo "cannot
find nm_test_var
in $nlist" >&5
9985 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
9988 echo "$progname: failed program was
:" >&5
9989 cat conftest.$ac_ext >&5
9991 rm -f conftest* conftst*
9993 # Do not use the global_symbol_pipe unless it works.
9994 if test "$pipe_works" = yes; then
9997 lt_cv_sys_global_symbol_pipe=
10003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10004 lt_cv_sys_global_symbol_to_cdecl=
10006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10007 { echo "$as_me:$LINENO: result
: failed
" >&5
10008 echo "${ECHO_T}failed
" >&6; }
10010 { echo "$as_me:$LINENO: result
: ok
" >&5
10011 echo "${ECHO_T}ok
" >&6; }
10015 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10016 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10017 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10018 echo $ECHO_N "(cached
) $ECHO_C" >&6
10020 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10021 libltdl_cv_preloaded_symbols=yes
10023 libltdl_cv_preloaded_symbols=no
10027 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10028 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10029 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10031 cat >>confdefs.h <<\_ACEOF
10032 #define HAVE_PRELOADED_SYMBOLS 1
10040 ac_cpp='$CPP $CPPFLAGS'
10041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10046 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10047 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10048 if test "${ac_cv_func_shl_load+set}" = set; then
10049 echo $ECHO_N "(cached
) $ECHO_C" >&6
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059 #define shl_load innocuous_shl_load
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char shl_load (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10067 # include <limits.h>
10069 # include <assert.h>
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10081 /* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
10084 #if defined __stub_shl_load || defined __stub___shl_load
10091 return shl_load ();
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10111 { (case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_try") 2>&5
10118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 ac_cv_func_shl_load=yes
10132 echo "$as_me: failed program was
:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_cv_func_shl_load=no
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10141 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10142 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10143 if test $ac_cv_func_shl_load = yes; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_SHL_LOAD 1
10150 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10151 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10152 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10153 echo $ECHO_N "(cached
) $ECHO_C" >&6
10155 ac_check_lib_save_LIBS=$LIBS
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10174 return shl_load ();
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_dld_shl_load=yes
10215 echo "$as_me: failed program was
:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_dld_shl_load=no
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_lib_save_LIBS
10225 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10226 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10227 if test $ac_cv_lib_dld_shl_load = yes; then
10229 cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_SHL_LOAD 1
10233 LIBADD_DL="$LIBADD_DL -ldld"
10235 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10236 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10238 echo $ECHO_N "(cached
) $ECHO_C" >&6
10240 ac_check_lib_save_LIBS=$LIBS
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_link") 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10287 (exit $ac_status); }; } &&
10288 { ac_try='test -s conftest$ac_exeext'
10289 { (case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_try") 2>&5
10296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_lib_dl_dlopen=yes
10300 echo "$as_me: failed program was
:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10303 ac_cv_lib_dl_dlopen=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10310 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10312 if test $ac_cv_lib_dl_dlopen = yes; then
10314 cat >>confdefs.h <<\_ACEOF
10315 #define HAVE_LIBDL 1
10318 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10327 # include <dlfcn.h>
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10371 (exit $ac_status); }; }; then
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_LIBDL 1
10376 libltdl_cv_func_dlopen="yes"
10378 echo "$as_me: failed program was
:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10382 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10384 echo $ECHO_N "(cached
) $ECHO_C" >&6
10386 ac_check_lib_save_LIBS=$LIBS
10387 LIBS="-lsvld $LIBS"
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10395 /* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (ac_try="$ac_link"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_link") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_try") 2>&5
10442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 ac_cv_lib_svld_dlopen=yes
10446 echo "$as_me: failed program was
:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_lib_svld_dlopen=no
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10456 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10457 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10458 if test $ac_cv_lib_svld_dlopen = yes; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_LIBDL 1
10464 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10466 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10467 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10468 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10469 echo $ECHO_N "(cached
) $ECHO_C" >&6
10471 ac_check_lib_save_LIBS=$LIBS
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 /* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
10490 return dld_link ();
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_lib_dld_dld_link=yes
10531 echo "$as_me: failed program was
:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10534 ac_cv_lib_dld_dld_link=no
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10541 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10542 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10543 if test $ac_cv_lib_dld_dld_link = yes; then
10545 cat >>confdefs.h <<\_ACEOF
10549 LIBADD_DL="$LIBADD_DL -ldld"
10551 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10552 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10553 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10554 echo $ECHO_N "(cached
) $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10564 #define _dyld_func_lookup innocuous__dyld_func_lookup
10566 /* System header to define __stub macros and hopefully few prototypes,
10567 which can conflict with char _dyld_func_lookup (); below.
10568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569 <limits.h> exists even on freestanding compilers. */
10572 # include <limits.h>
10574 # include <assert.h>
10577 #undef _dyld_func_lookup
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10585 char _dyld_func_lookup ();
10586 /* The GNU C library defines this for functions which it implements
10587 to always fail with ENOSYS. Some functions are actually named
10588 something starting with __ and the normal name is an alias. */
10589 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10596 return _dyld_func_lookup ();
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_func__dyld_func_lookup=yes
10637 echo "$as_me: failed program was
:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_func__dyld_func_lookup=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10646 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10647 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10648 if test $ac_cv_func__dyld_func_lookup = yes; then
10650 cat >>confdefs.h <<\_ACEOF
10651 #define HAVE_DYLD 1
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10677 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10679 lt_save_LIBS="$LIBS"
10680 LIBS="$LIBS $LIBADD_DL"
10682 for ac_func in dlerror
10684 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10685 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10686 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10687 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10688 echo $ECHO_N "(cached
) $ECHO_C" >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10698 #define $ac_func innocuous_$ac_func
10700 /* System header to define __stub macros and hopefully few prototypes,
10701 which can conflict with char $ac_func (); below.
10702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703 <limits.h> exists even on freestanding compilers. */
10706 # include <limits.h>
10708 # include <assert.h>
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10720 /* The GNU C library defines this for functions which it implements
10721 to always fail with ENOSYS. Some functions are actually named
10722 something starting with __ and the normal name is an alias. */
10723 #if defined __stub_$ac_func || defined __stub___$ac_func
10730 return $ac_func ();
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (ac_try="$ac_link"
10737 case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_link") 2>conftest.er1
10744 grep -v '^ *+' conftest.er1 >conftest.err
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10750 { (case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_try") 2>&5
10757 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 eval "$as_ac_var=yes"
10771 echo "$as_me: failed program was
:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 eval "$as_ac_var=no
"
10777 rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10780 ac_res=`eval echo '${'$as_ac_var'}'`
10781 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 if test `eval echo '${'$as_ac_var'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10791 LIBS="$lt_save_LIBS"
10794 ac_cpp='$CPP $CPPFLAGS'
10795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10801 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10802 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10803 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10804 echo $ECHO_N "(cached
) $ECHO_C" >&6
10806 ac_cv_sys_symbol_underscore=no
10807 cat > conftest.$ac_ext <<EOF
10808 void nm_test_func(){}
10809 int main(){nm_test_func;return 0;}
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10815 (exit $ac_status); }; then
10816 # Now try to grab the symbols.
10817 ac_nlist=conftest.nm
10818 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10819 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10822 (exit $ac_status); } && test -s "$ac_nlist"; then
10823 # See whether the symbols have a leading underscore.
10824 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10825 ac_cv_sys_symbol_underscore=yes
10827 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10830 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10834 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10837 echo "configure
: failed program was
:" >&5
10843 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10844 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10847 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10848 if test x"$libltdl_cv_func_dlopen" = xyes ||
10849 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10850 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10851 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10852 if test "${libltdl_cv_need_uscore+set}" = set; then
10853 echo $ECHO_N "(cached
) $ECHO_C" >&6
10855 libltdl_cv_need_uscore=unknown
10857 LIBS="$LIBS $LIBADD_DL"
10858 if test "$cross_compiling" = yes; then :
10859 libltdl_cv_need_uscore=cross
10861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862 lt_status=$lt_dlunknown
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10864 "configure
"
10865 #include "confdefs.h
"
10874 # define LT_DLGLOBAL RTLD_GLOBAL
10877 # define LT_DLGLOBAL DL_GLOBAL
10879 # define LT_DLGLOBAL 0
10883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10884 find out it does not work in some platform. */
10885 #ifndef LT_DLLAZY_OR_NOW
10887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10890 # define LT_DLLAZY_OR_NOW DL_LAZY
10893 # define LT_DLLAZY_OR_NOW RTLD_NOW
10896 # define LT_DLLAZY_OR_NOW DL_NOW
10898 # define LT_DLLAZY_OR_NOW 0
10906 extern "C
" void exit (int);
10909 void fnord() { int i=42;}
10912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10913 int status = $lt_dlunknown;
10917 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10918 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10919 /* dlclose (self); */
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10932 (./conftest; exit; ) >&5 2>/dev/null
10934 case x$lt_status in
10935 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10936 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10937 x$lt_dlunknown|x*) ;;
10940 # compilation failed
10949 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10950 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10954 if test x"$libltdl_cv_need_uscore" = xyes; then
10956 cat >>confdefs.h <<\_ACEOF
10957 #define NEED_USCORE 1
10963 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
10964 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
10965 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10966 echo $ECHO_N "(cached
) $ECHO_C" >&6
10968 # PORTME does your system automatically load deplibs for dlopen?
10969 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10970 # For now, we just catch OSes we know something about -- in the
10971 # future, we'll try test this programmatically.
10972 libltdl_cv_sys_dlopen_deplibs=unknown
10974 aix3*|aix4.1.*|aix4.2.*)
10975 # Unknown whether this is true for these versions of AIX, but
10976 # we want this `case' here to explicitly catch those versions.
10977 libltdl_cv_sys_dlopen_deplibs=unknown
10980 libltdl_cv_sys_dlopen_deplibs=yes
10983 # Assuming the user has installed a libdl from somewhere, this is true
10984 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10985 libltdl_cv_sys_dlopen_deplibs=yes
10987 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10988 # GNU and its variants, using gnu ld.so (Glibc)
10989 libltdl_cv_sys_dlopen_deplibs=yes
10992 libltdl_cv_sys_dlopen_deplibs=yes
10995 libltdl_cv_sys_dlopen_deplibs=yes
10997 irix[12345]*|irix6.[01]*)
10998 # Catch all versions of IRIX before 6.2, and indicate that we don't
10999 # know how it worked for any of those versions.
11000 libltdl_cv_sys_dlopen_deplibs=unknown
11003 # The case above catches anything before 6.2, and it's known that
11004 # at 6.2 and later dlopen does load deplibs.
11005 libltdl_cv_sys_dlopen_deplibs=yes
11008 libltdl_cv_sys_dlopen_deplibs=yes
11011 libltdl_cv_sys_dlopen_deplibs=yes
11014 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11015 # it did *not* use an RPATH in a shared library to find objects the
11016 # library depends on, so we explictly say `no'.
11017 libltdl_cv_sys_dlopen_deplibs=no
11019 osf5.0|osf5.0a|osf5.1)
11020 # dlopen *does* load deplibs and with the right loader patch applied
11021 # it even uses RPATH in a shared library to search for shared objects
11022 # that the library depends on, but there's no easy way to know if that
11023 # patch is installed. Since this is the case, all we can really
11024 # say is unknown -- it depends on the patch being installed. If
11025 # it is, this changes to `yes'. Without it, it would be `no'.
11026 libltdl_cv_sys_dlopen_deplibs=unknown
11029 # the two cases above should catch all versions of osf <= 5.1. Read
11030 # the comments above for what we know about them.
11031 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11032 # is used to find them so we can finally say `yes'.
11033 libltdl_cv_sys_dlopen_deplibs=yes
11036 libltdl_cv_sys_dlopen_deplibs=yes
11038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11039 libltdl_cv_sys_dlopen_deplibs=yes
11044 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11045 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11046 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define LTDL_DLOPEN_DEPLIBS 1
11055 for ac_header in argz.h
11057 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11058 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11059 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11060 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11061 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11062 echo $ECHO_N "(cached
) $ECHO_C" >&6
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11068 # Is the header compilable?
11069 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11070 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 $ac_includes_default
11078 #include <$ac_header>
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_header_compiler=yes
11116 echo "$as_me: failed program was
:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_compiler=no
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
11126 # Is the header present?
11127 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11128 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <$ac_header>
11137 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11149 (exit $ac_status); } >/dev/null; then
11150 if test -s conftest.err; then
11151 ac_cpp_err=$ac_c_preproc_warn_flag
11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11159 if test -z "$ac_cpp_err"; then
11160 ac_header_preproc=yes
11162 echo "$as_me: failed program was
:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ac_header_preproc=no
11168 rm -f conftest.err conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11170 echo "${ECHO_T}$ac_header_preproc" >&6; }
11172 # So? What about this header?
11173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11176 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11179 ac_header_preproc=yes
11182 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11183 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11184 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11185 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11186 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11187 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11188 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11189 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11192 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11193 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11195 ## ----------------------------------- ##
11196 ## Report this to llvmbugs@cs.uiuc.edu ##
11197 ## ----------------------------------- ##
11199 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11202 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11203 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached
) $ECHO_C" >&6
11207 eval "$as_ac_Header=\
$ac_header_preproc"
11209 ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11224 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11225 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11226 if test "${ac_cv_type_error_t+set}" = set; then
11227 echo $ECHO_N "(cached
) $ECHO_C" >&6
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11239 typedef error_t ac__type_new_;
11243 if ((ac__type_new_ *) 0)
11245 if (sizeof (ac__type_new_))
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_type_error_t=yes
11287 echo "$as_me: failed program was
:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_cv_type_error_t=no
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11296 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11297 if test $ac_cv_type_error_t = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_ERROR_T 1
11306 cat >>confdefs.h <<\_ACEOF
11307 #define error_t int
11318 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11320 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11322 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached
) $ECHO_C" >&6
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334 #define $ac_func innocuous_$ac_func
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11342 # include <limits.h>
11344 # include <assert.h>
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11366 return $ac_func ();
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 eval "$as_ac_var=yes"
11407 echo "$as_me: failed program was
:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 eval "$as_ac_var=no
"
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11416 ac_res=`eval echo '${'$as_ac_var'}'`
11417 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11454 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11457 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11459 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11460 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11462 echo $ECHO_N "(cached
) $ECHO_C" >&6
11464 ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11468 # Is the header compilable?
11469 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11470 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 $ac_includes_default
11478 #include <$ac_header>
11480 rm -f conftest.$ac_objext
11481 if { (ac_try="$ac_compile"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_compile") 2>conftest.er1
11489 grep -v '^ *+' conftest.er1 >conftest.err
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
11512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_header_compiler=yes
11516 echo "$as_me: failed program was
:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_compiler=no
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11524 echo "${ECHO_T}$ac_header_compiler" >&6; }
11526 # Is the header present?
11527 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11528 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <$ac_header>
11537 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11549 (exit $ac_status); } >/dev/null; then
11550 if test -s conftest.err; then
11551 ac_cpp_err=$ac_c_preproc_warn_flag
11552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11559 if test -z "$ac_cpp_err"; then
11560 ac_header_preproc=yes
11562 echo "$as_me: failed program was
:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_header_preproc=no
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11576 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11579 ac_header_preproc=yes
11582 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11583 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11584 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11585 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11586 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11587 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11588 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11589 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11592 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11593 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11595 ## ----------------------------------- ##
11596 ## Report this to llvmbugs@cs.uiuc.edu ##
11597 ## ----------------------------------- ##
11599 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11602 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11603 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11605 echo $ECHO_N "(cached
) $ECHO_C" >&6
11607 eval "$as_ac_Header=\
$ac_header_preproc"
11609 ac_res=`eval echo '${'$as_ac_Header'}'`
11610 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11627 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11629 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11632 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached
) $ECHO_C" >&6
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11640 # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11642 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11650 #include <$ac_header>
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_header_compiler=yes
11688 echo "$as_me: failed program was
:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_header_compiler=no
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11696 echo "${ECHO_T}$ac_header_compiler" >&6; }
11698 # Is the header present?
11699 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11700 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 #include <$ac_header>
11709 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11717 grep -v '^ *+' conftest.er1 >conftest.err
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11721 (exit $ac_status); } >/dev/null; then
11722 if test -s conftest.err; then
11723 ac_cpp_err=$ac_c_preproc_warn_flag
11724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11731 if test -z "$ac_cpp_err"; then
11732 ac_header_preproc=yes
11734 echo "$as_me: failed program was
:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ac_header_preproc=no
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11744 # So? What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11748 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11751 ac_header_preproc=yes
11754 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11755 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11756 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11757 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11758 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11759 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11760 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11761 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11764 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11765 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11767 ## ----------------------------------- ##
11768 ## Report this to llvmbugs@cs.uiuc.edu ##
11769 ## ----------------------------------- ##
11771 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11777 echo $ECHO_N "(cached
) $ECHO_C" >&6
11779 eval "$as_ac_Header=\
$ac_header_preproc"
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11797 for ac_header in string.h strings.h
11799 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11800 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11801 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11802 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11804 echo $ECHO_N "(cached
) $ECHO_C" >&6
11806 ac_res=`eval echo '${'$as_ac_Header'}'`
11807 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11810 # Is the header compilable?
11811 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11812 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 $ac_includes_default
11820 #include <$ac_header>
11822 rm -f conftest.$ac_objext
11823 if { (ac_try="$ac_compile"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_compile") 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_try") 2>&5
11844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest.$ac_objext'
11847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
11854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 ac_header_compiler=yes
11858 echo "$as_me: failed program was
:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 ac_header_compiler=no
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11866 echo "${ECHO_T}$ac_header_compiler" >&6; }
11868 # Is the header present?
11869 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11870 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 #include <$ac_header>
11879 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11880 case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11891 (exit $ac_status); } >/dev/null; then
11892 if test -s conftest.err; then
11893 ac_cpp_err=$ac_c_preproc_warn_flag
11894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11901 if test -z "$ac_cpp_err"; then
11902 ac_header_preproc=yes
11904 echo "$as_me: failed program was
:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_header_preproc=no
11910 rm -f conftest.err conftest.$ac_ext
11911 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11912 echo "${ECHO_T}$ac_header_preproc" >&6; }
11914 # So? What about this header?
11915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11918 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11919 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11921 ac_header_preproc=yes
11924 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11925 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11926 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11927 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11928 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11929 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11930 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11931 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11932 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11934 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11935 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11937 ## ----------------------------------- ##
11938 ## Report this to llvmbugs@cs.uiuc.edu ##
11939 ## ----------------------------------- ##
11941 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11944 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11945 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11947 echo $ECHO_N "(cached
) $ECHO_C" >&6
11949 eval "$as_ac_Header=\
$ac_header_preproc"
11951 ac_res=`eval echo '${'$as_ac_Header'}'`
11952 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11953 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11968 for ac_func in strchr index
11970 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11971 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11972 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11973 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11974 echo $ECHO_N "(cached
) $ECHO_C" >&6
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11984 #define $ac_func innocuous_$ac_func
11986 /* System header to define __stub macros and hopefully few prototypes,
11987 which can conflict with char $ac_func (); below.
11988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989 <limits.h> exists even on freestanding compilers. */
11992 # include <limits.h>
11994 # include <assert.h>
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12006 /* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009 #if defined __stub_$ac_func || defined __stub___$ac_func
12016 return $ac_func ();
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (ac_try="$ac_link"
12023 case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_link") 2>conftest.er1
12030 grep -v '^ *+' conftest.er1 >conftest.err
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_try") 2>&5
12053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 eval "$as_ac_var=yes"
12057 echo "$as_me: failed program was
:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 eval "$as_ac_var=no
"
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12066 ac_res=`eval echo '${'$as_ac_var'}'`
12067 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12068 echo "${ECHO_T}$ac_res" >&6; }
12069 if test `eval echo '${'$as_ac_var'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12079 for ac_func in strrchr rindex
12081 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12082 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12083 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12084 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached
) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095 #define $ac_func innocuous_$ac_func
12097 /* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12103 # include <limits.h>
12105 # include <assert.h>
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12117 /* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
12120 #if defined __stub_$ac_func || defined __stub___$ac_func
12127 return $ac_func ();
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1 >conftest.err
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12168 echo "$as_me: failed program was
:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 eval "$as_ac_var=no
"
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12177 ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12190 for ac_func in memcpy bcopy
12192 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12193 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12194 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12195 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached
) $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206 #define $ac_func innocuous_$ac_func
12208 /* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char $ac_func (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12214 # include <limits.h>
12216 # include <assert.h>
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined __stub_$ac_func || defined __stub___$ac_func
12238 return $ac_func ();
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 eval "$as_ac_var=yes"
12279 echo "$as_me: failed program was
:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 eval "$as_ac_var=no
"
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12288 ac_res=`eval echo '${'$as_ac_var'}'`
12289 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12290 echo "${ECHO_T}$ac_res" >&6; }
12291 if test `eval echo '${'$as_ac_var'}'` = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12301 for ac_func in memmove strcmp
12303 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12304 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12305 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12306 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12307 echo $ECHO_N "(cached
) $ECHO_C" >&6
12309 cat >conftest.$ac_ext <<_ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12317 #define $ac_func innocuous_$ac_func
12319 /* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12325 # include <limits.h>
12327 # include <assert.h>
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12339 /* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
12342 #if defined __stub_$ac_func || defined __stub___$ac_func
12349 return $ac_func ();
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 eval "$as_ac_var=yes"
12390 echo "$as_me: failed program was
:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 eval "$as_ac_var=no
"
12396 rm -f core conftest.err conftest.$ac_objext \
12397 conftest$ac_exeext conftest.$ac_ext
12399 ac_res=`eval echo '${'$as_ac_var'}'`
12400 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12401 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12413 for ac_func in closedir opendir readdir
12415 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12416 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12417 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12418 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12419 echo $ECHO_N "(cached
) $ECHO_C" >&6
12421 cat >conftest.$ac_ext <<_ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12429 #define $ac_func innocuous_$ac_func
12431 /* System header to define __stub macros and hopefully few prototypes,
12432 which can conflict with char $ac_func (); below.
12433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12434 <limits.h> exists even on freestanding compilers. */
12437 # include <limits.h>
12439 # include <assert.h>
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12451 /* The GNU C library defines this for functions which it implements
12452 to always fail with ENOSYS. Some functions are actually named
12453 something starting with __ and the normal name is an alias. */
12454 #if defined __stub_$ac_func || defined __stub___$ac_func
12461 return $ac_func ();
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (ac_try="$ac_link"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_link") 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12481 { (case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_try") 2>&5
12488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12489 (exit $ac_status); }; } &&
12490 { ac_try='test -s conftest$ac_exeext'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 eval "$as_ac_var=yes"
12502 echo "$as_me: failed program was
:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 eval "$as_ac_var=no
"
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12511 ac_res=`eval echo '${'$as_ac_var'}'`
12512 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12513 echo "${ECHO_T}$ac_res" >&6; }
12514 if test `eval echo '${'$as_ac_var'}'` = yes; then
12515 cat >>confdefs.h <<_ACEOF
12516 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12523 # Check whether --enable-shared was given.
12524 if test "${enable_shared+set}" = set; then
12525 enableval=$enable_shared; p=${PACKAGE-default}
12527 yes) enable_shared=yes ;;
12528 no) enable_shared=no ;;
12531 # Look at the argument we got. We use all the common list separators.
12532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12533 for pkg in $enableval; do
12535 if test "X
$pkg" = "X
$p"; then
12547 # Check whether --enable-static was given.
12548 if test "${enable_static+set}" = set; then
12549 enableval=$enable_static; p=${PACKAGE-default}
12551 yes) enable_static=yes ;;
12552 no) enable_static=no ;;
12555 # Look at the argument we got. We use all the common list separators.
12556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12557 for pkg in $enableval; do
12559 if test "X
$pkg" = "X
$p"; then
12571 # Check whether --enable-fast-install was given.
12572 if test "${enable_fast_install+set}" = set; then
12573 enableval=$enable_fast_install; p=${PACKAGE-default}
12575 yes) enable_fast_install=yes ;;
12576 no) enable_fast_install=no ;;
12578 enable_fast_install=no
12579 # Look at the argument we got. We use all the common list separators.
12580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12581 for pkg in $enableval; do
12583 if test "X
$pkg" = "X
$p"; then
12584 enable_fast_install=yes
12591 enable_fast_install=yes
12595 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12596 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12597 if test "${lt_cv_path_SED+set}" = set; then
12598 echo $ECHO_N "(cached
) $ECHO_C" >&6
12600 # Loop through the user's path and test for sed and gsed.
12601 # Then use that list of sed's as ones to test for truncation.
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12606 test -z "$as_dir" && as_dir=.
12607 for lt_ac_prog in sed gsed; do
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12610 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12617 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12618 # along with /bin/sed that truncates output.
12619 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12620 test ! -f $lt_ac_sed && continue
12621 cat /dev/null > conftest.in
12623 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12624 # Check for GNU sed and select it if it is found.
12625 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12626 lt_cv_path_SED=$lt_ac_sed
12630 cat conftest.in conftest.in >conftest.tmp
12631 mv conftest.tmp conftest.in
12632 cp conftest.in conftest.nl
12634 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12635 cmp -s conftest.out conftest.nl || break
12636 # 10000 chars as input seems more than enough
12637 test $lt_ac_count -gt 10 && break
12638 lt_ac_count=`expr $lt_ac_count + 1`
12639 if test $lt_ac_count -gt $lt_ac_max; then
12640 lt_ac_max=$lt_ac_count
12641 lt_cv_path_SED=$lt_ac_sed
12648 SED=$lt_cv_path_SED
12649 { echo "$as_me:$LINENO: result
: $SED" >&5
12650 echo "${ECHO_T}$SED" >&6; }
12653 # Check whether --with-gnu-ld was given.
12654 if test "${with_gnu_ld+set}" = set; then
12655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12661 if test "$GCC" = yes; then
12662 # Check if gcc -print-prog-name=ld gives a path.
12663 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12664 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12667 # gcc leaves a trailing carriage return which upsets mingw
12668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12673 # Accept absolute paths.
12675 re_direlt='/[^/][^/]*/\.\./'
12676 # Canonicalize the pathname of ld
12677 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12678 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12679 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12681 test -z "$LD" && LD="$ac_prog"
12684 # If it fails, then pretend we aren't using GCC.
12688 # If it is relative, then search for the first ld in PATH.
12689 with_gnu_ld=unknown
12692 elif test "$with_gnu_ld" = yes; then
12693 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12694 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12696 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12697 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12699 if test "${lt_cv_path_LD+set}" = set; then
12700 echo $ECHO_N "(cached
) $ECHO_C" >&6
12702 if test -z "$LD"; then
12703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH; do
12706 test -z "$ac_dir" && ac_dir=.
12707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708 lt_cv_path_LD="$ac_dir/$ac_prog"
12709 # Check to see if the program is GNU ld. I'd rather use --version,
12710 # but apparently some variants of GNU ld only accept -v.
12711 # Break only if it was the GNU/non-GNU ld that we prefer.
12712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713 *GNU* | *'with BFD'*)
12714 test "$with_gnu_ld" != no && break
12717 test "$with_gnu_ld" != yes && break
12724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12728 LD="$lt_cv_path_LD"
12729 if test -n "$LD"; then
12730 { echo "$as_me:$LINENO: result
: $LD" >&5
12731 echo "${ECHO_T}$LD" >&6; }
12733 { echo "$as_me:$LINENO: result
: no
" >&5
12734 echo "${ECHO_T}no
" >&6; }
12736 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12737 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12738 { (exit 1); exit 1; }; }
12739 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12740 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12741 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12742 echo $ECHO_N "(cached
) $ECHO_C" >&6
12744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12745 case `$LD -v 2>&1 </dev/null` in
12746 *GNU* | *'with BFD'*)
12747 lt_cv_prog_gnu_ld=yes
12750 lt_cv_prog_gnu_ld=no
12754 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12755 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12756 with_gnu_ld=$lt_cv_prog_gnu_ld
12759 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12760 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12761 if test "${lt_cv_ld_reload_flag+set}" = set; then
12762 echo $ECHO_N "(cached
) $ECHO_C" >&6
12764 lt_cv_ld_reload_flag='-r'
12766 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12767 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12768 reload_flag=$lt_cv_ld_reload_flag
12769 case $reload_flag in
12771 *) reload_flag=" $reload_flag" ;;
12773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12776 if test "$GCC" = yes; then
12777 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12784 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12785 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12786 if test "${lt_cv_deplibs_check_method+set}" = set; then
12787 echo $ECHO_N "(cached
) $ECHO_C" >&6
12789 lt_cv_file_magic_cmd='$MAGIC_CMD'
12790 lt_cv_file_magic_test_file=
12791 lt_cv_deplibs_check_method='unknown'
12792 # Need to set the preceding variable on all platforms that support
12793 # interlibrary dependencies.
12794 # 'none' -- dependencies not supported.
12795 # `unknown' -- same as none, but documents that we really don't know.
12796 # 'pass_all' -- all dependencies passed with no checks.
12797 # 'test_compile' -- check by making test program.
12798 # 'file_magic [[regex]]' -- check by looking for files in library path
12799 # which responds to the $file_magic_cmd with a given extended regex.
12800 # If you have `file' or equivalent on your system and you're not sure
12801 # whether `pass_all' will *always* work, you probably want this one.
12805 lt_cv_deplibs_check_method=pass_all
12809 lt_cv_deplibs_check_method=pass_all
12813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12814 lt_cv_file_magic_cmd='/usr/bin/file -L'
12815 lt_cv_file_magic_test_file=/shlib/libc.so
12819 # func_win32_libid is a shell function defined in ltmain.sh
12820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12821 lt_cv_file_magic_cmd='func_win32_libid'
12825 # Base MSYS/MinGW do not provide the 'file' command needed by
12826 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12828 lt_cv_file_magic_cmd='$OBJDUMP -f'
12831 darwin* | rhapsody*)
12832 lt_cv_deplibs_check_method=pass_all
12835 freebsd* | kfreebsd*-gnu | dragonfly*)
12836 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12839 # Not sure whether the presence of OpenBSD here was a mistake.
12840 # Let's accept both of them until this is cleared up.
12841 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12842 lt_cv_file_magic_cmd=/usr/bin/file
12843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12847 lt_cv_deplibs_check_method=pass_all
12852 lt_cv_deplibs_check_method=pass_all
12855 hpux10.20* | hpux11*)
12856 lt_cv_file_magic_cmd=/usr/bin/file
12859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12863 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]'
12864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12868 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12874 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12878 irix5* | irix6* | nonstopux*)
12880 *-32|*"-32 ") libmagic=32-bit;;
12881 *-n32|*"-n32 ") libmagic=N32;;
12882 *-64|*"-64 ") libmagic=64-bit;;
12883 *) libmagic=never-match;;
12885 lt_cv_deplibs_check_method=pass_all
12888 # This must be Linux ELF.
12890 lt_cv_deplibs_check_method=pass_all
12894 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12903 lt_cv_file_magic_cmd=/usr/bin/file
12904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12908 lt_cv_deplibs_check_method=unknown
12912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12919 osf3* | osf4* | osf5*)
12920 lt_cv_deplibs_check_method=pass_all
12924 lt_cv_deplibs_check_method=pass_all
12928 case $host_vendor in
12930 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]'
12931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12934 lt_cv_deplibs_check_method=pass_all
12937 lt_cv_file_magic_cmd='/bin/file'
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12941 lt_cv_file_magic_cmd='/bin/file'
12942 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12943 lt_cv_file_magic_test_file=/lib/libc.so
12946 lt_cv_deplibs_check_method=pass_all
12949 lt_cv_deplibs_check_method=pass_all
12954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12955 lt_cv_deplibs_check_method=pass_all
12960 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
12961 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12962 file_magic_cmd=$lt_cv_file_magic_cmd
12963 deplibs_check_method=$lt_cv_deplibs_check_method
12964 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12968 # If no C compiler was specified, use CC.
12971 # If no C compiler flags were specified, use CFLAGS.
12972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974 # Allow CC to be a program name with arguments.
12977 # Check whether --enable-libtool-lock was given.
12978 if test "${enable_libtool_lock+set}" = set; then
12979 enableval=$enable_libtool_lock;
12982 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12984 # Some flags need to be propagated to the compiler or linker for good
12988 # Find out which ABI we are using.
12989 echo 'int i;' > conftest.$ac_ext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12994 (exit $ac_status); }; then
12995 case `/usr/bin/file conftest.$ac_objext` in
12997 HPUX_IA64_MODE="32"
13000 HPUX_IA64_MODE="64"
13007 # Find out which ABI we are using.
13008 echo '#line 13008 "configure
"' > conftest.$ac_ext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>&5
13012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13013 (exit $ac_status); }; then
13014 if test "$lt_cv_prog_gnu_ld" = yes; then
13015 case `/usr/bin/file conftest.$ac_objext` in
13017 LD="${LD-ld} -melf32bsmip"
13020 LD="${LD-ld} -melf32bmipn32"
13023 LD="${LD-ld} -melf64bmip"
13027 case `/usr/bin/file conftest.$ac_objext` in
13043 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13044 # Find out which ABI we are using.
13045 echo 'int i;' > conftest.$ac_ext
13046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047 (eval $ac_compile) 2>&5
13049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13050 (exit $ac_status); }; then
13051 case `/usr/bin/file conftest.o` in
13055 LD="${LD-ld} -m elf_i386
"
13057 ppc64-*linux*|powerpc64-*linux*)
13058 LD="${LD-ld} -m elf32ppclinux
"
13061 LD="${LD-ld} -m elf_s390
"
13064 LD="${LD-ld} -m elf32_sparc
"
13071 LD="${LD-ld} -m elf_x86_64
"
13073 ppc*-*linux*|powerpc*-*linux*)
13074 LD="${LD-ld} -m elf64ppc
"
13077 LD="${LD-ld} -m elf64_s390
"
13080 LD="${LD-ld} -m elf64_sparc
"
13090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13091 SAVE_CFLAGS="$CFLAGS"
13092 CFLAGS="$CFLAGS -belf"
13093 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13094 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13095 if test "${lt_cv_cc_needs_belf+set}" = set; then
13096 echo $ECHO_N "(cached
) $ECHO_C" >&6
13099 ac_cpp='$CPP $CPPFLAGS'
13100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (ac_try="$ac_link"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_link") 2>conftest.er1
13128 grep -v '^ *+' conftest.er1 >conftest.err
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13134 { (case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_try") 2>&5
13141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_try") 2>&5
13151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 lt_cv_cc_needs_belf=yes
13155 echo "$as_me: failed program was
:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 lt_cv_cc_needs_belf=no
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13164 ac_cpp='$CPP $CPPFLAGS'
13165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13170 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13171 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13172 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13173 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13174 CFLAGS="$SAVE_CFLAGS"
13178 # Find out which ABI we are using.
13179 echo 'int i;' > conftest.$ac_ext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>&5
13183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13184 (exit $ac_status); }; then
13185 case `/usr/bin/file conftest.o` in
13187 case $lt_cv_prog_gnu_ld in
13188 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13189 *) LD="${LD-ld} -64" ;;
13200 need_locks="$enable_libtool_lock"
13205 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13206 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13207 (test "X
$CXX" != "Xg
++"))) ; then
13209 ac_cpp='$CXXCPP $CPPFLAGS'
13210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13213 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13214 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13215 if test -z "$CXXCPP"; then
13216 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13217 echo $ECHO_N "(cached
) $ECHO_C" >&6
13219 # Double quotes because CXXCPP needs to be expanded
13220 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13222 ac_preproc_ok=false
13223 for ac_cxx_preproc_warn_flag in '' yes
13225 # Use a header file that comes with gcc, so configuring glibc
13226 # with a fresh cross-compiler works.
13227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13228 # <limits.h> exists even on freestanding compilers.
13229 # On the NeXT, cc -E runs the code through the compiler's parser,
13230 # not just through cpp. "Syntax error
" is here to catch this case.
13231 cat >conftest.$ac_ext <<_ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13238 # include <limits.h>
13240 # include <assert.h>
13244 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13252 grep -v '^ *+' conftest.er1 >conftest.err
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13256 (exit $ac_status); } >/dev/null; then
13257 if test -s conftest.err; then
13258 ac_cpp_err=$ac_cxx_preproc_warn_flag
13259 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13266 if test -z "$ac_cpp_err"; then
13269 echo "$as_me: failed program was
:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 # Broken: fails on valid input.
13276 rm -f conftest.err conftest.$ac_ext
13278 # OK, works on sane cases. Now check whether nonexistent headers
13279 # can be detected and how.
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <ac_nonexistent.h>
13288 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13296 grep -v '^ *+' conftest.er1 >conftest.err
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13300 (exit $ac_status); } >/dev/null; then
13301 if test -s conftest.err; then
13302 ac_cpp_err=$ac_cxx_preproc_warn_flag
13303 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13310 if test -z "$ac_cpp_err"; then
13311 # Broken: success on invalid input.
13314 echo "$as_me: failed program was
:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 # Passes both tests.
13322 rm -f conftest.err conftest.$ac_ext
13325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13326 rm -f conftest.err conftest.$ac_ext
13327 if $ac_preproc_ok; then
13332 ac_cv_prog_CXXCPP=$CXXCPP
13335 CXXCPP=$ac_cv_prog_CXXCPP
13337 ac_cv_prog_CXXCPP=$CXXCPP
13339 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13340 echo "${ECHO_T}$CXXCPP" >&6; }
13341 ac_preproc_ok=false
13342 for ac_cxx_preproc_warn_flag in '' yes
13344 # Use a header file that comes with gcc, so configuring glibc
13345 # with a fresh cross-compiler works.
13346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13347 # <limits.h> exists even on freestanding compilers.
13348 # On the NeXT, cc -E runs the code through the compiler's parser,
13349 # not just through cpp. "Syntax error
" is here to catch this case.
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13357 # include <limits.h>
13359 # include <assert.h>
13363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13375 (exit $ac_status); } >/dev/null; then
13376 if test -s conftest.err; then
13377 ac_cpp_err=$ac_cxx_preproc_warn_flag
13378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13385 if test -z "$ac_cpp_err"; then
13388 echo "$as_me: failed program was
:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 # Broken: fails on valid input.
13395 rm -f conftest.err conftest.$ac_ext
13397 # OK, works on sane cases. Now check whether nonexistent headers
13398 # can be detected and how.
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <ac_nonexistent.h>
13407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13419 (exit $ac_status); } >/dev/null; then
13420 if test -s conftest.err; then
13421 ac_cpp_err=$ac_cxx_preproc_warn_flag
13422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13429 if test -z "$ac_cpp_err"; then
13430 # Broken: success on invalid input.
13433 echo "$as_me: failed program was
:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 # Passes both tests.
13441 rm -f conftest.err conftest.$ac_ext
13444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13445 rm -f conftest.err conftest.$ac_ext
13446 if $ac_preproc_ok; then
13449 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13450 See \
`config.log' for more details." >&5
13451 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13452 See \`config.log
' for more details." >&2;}
13453 { (exit 1); exit 1; }; }
13457 ac_cpp='$CXXCPP $CPPFLAGS'
13458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13459 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13467 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13468 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13469 if test -n "$ac_tool_prefix"; then
13470 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
13472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13476 if test "${ac_cv_prog_F77+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 if test -n "$F77"; then
13480 ac_cv_prog_F77="$F77" # Let the user override the test.
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13489 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 F77=$ac_cv_prog_F77
13500 if test -n "$F77"; then
13501 { echo "$as_me:$LINENO: result: $F77" >&5
13502 echo "${ECHO_T}$F77" >&6; }
13504 { echo "$as_me:$LINENO: result: no" >&5
13505 echo "${ECHO_T}no" >&6; }
13509 test -n "$F77" && break
13512 if test -z "$F77"; then
13514 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
13516 # Extract the first word of "$ac_prog", so it can be a program name with args.
13517 set dummy $ac_prog; ac_word=$2
13518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13520 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 if test -n "$ac_ct_F77"; then
13524 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13533 ac_cv_prog_ac_ct_F77="$ac_prog"
13534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13544 if test -n "$ac_ct_F77"; then
13545 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13546 echo "${ECHO_T}$ac_ct_F77" >&6; }
13548 { echo "$as_me:$LINENO: result: no" >&5
13549 echo "${ECHO_T}no" >&6; }
13553 test -n "$ac_ct_F77" && break
13556 if test "x$ac_ct_F77" = x; then
13559 case $cross_compiling:$ac_tool_warned in
13561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13562 whose name does not start with the host triplet. If you think this
13563 configuration is useful to you, please write to autoconf@gnu.org." >&5
13564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13565 whose name does not start with the host triplet. If you think this
13566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13567 ac_tool_warned=yes ;;
13574 # Provide some information about the compiler.
13575 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13576 ac_compiler=`set X $ac_compile; echo $2`
13577 { (ac_try="$ac_compiler --version >&5"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compiler --version >&5") 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }
13587 { (ac_try="$ac_compiler -v >&5"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compiler -v >&5") 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }
13597 { (ac_try="$ac_compiler -V >&5"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_compiler -V >&5") 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }
13609 # If we don't use
`.F' as extension, the preprocessor is not run on the
13610 # input file. (Note that this only needs to work for GNU compilers.)
13611 ac_save_ext=$ac_ext
13613 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13614 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13615 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 cat >conftest.$ac_ext <<_ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13630 *) ac_try_echo
=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
13635 grep -v '^ *+' conftest.er1
>conftest.err
13637 cat conftest.err
>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13641 { (case "(($ac_try" in
13642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_try") 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest.$ac_objext'
13651 { (case "(($ac_try" in
13652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13653 *) ac_try_echo
=$ac_try;;
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_try") 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_compiler_gnu
=yes
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.
$ac_ext >&5
13668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13669 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13672 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13673 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13674 ac_ext
=$ac_save_ext
13675 ac_test_FFLAGS
=${FFLAGS+set}
13676 ac_save_FFLAGS
=$FFLAGS
13678 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13679 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13680 if test "${ac_cv_prog_f77_g+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.
$ac_ext <<_ACEOF
13689 rm -f conftest.
$ac_objext
13690 if { (ac_try
="$ac_compile"
13691 case "(($ac_try" in
13692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_compile") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13706 *) ac_try_echo
=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try
='test -s conftest.$ac_objext'
13714 { (case "(($ac_try" in
13715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_try") 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_prog_f77_g=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_cv_prog_f77_g=no
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13735 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13736 if test "$ac_test_FFLAGS" = set; then
13737 FFLAGS=$ac_save_FFLAGS
13738 elif test $ac_cv_prog_f77_g = yes; then
13739 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13745 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13752 G77=`test $ac_compiler_gnu = yes && echo yes`
13754 ac_cpp='$CPP $CPPFLAGS'
13755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13761 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13763 # find the maximum length of command line arguments
13764 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13765 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13766 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 # On DJGPP, this test can blow up pretty badly due to problems in libc
13775 # (any single argument exceeding 2000 bytes causes a buffer overrun
13776 # during glob expansion). Even if it were fixed, the result of this
13777 # check would be larger than it should be.
13778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13782 # Under GNU Hurd, this test is not required because there is
13783 # no limit to the length of command line arguments.
13784 # Libtool will interpret -1 as no limit whatsoever
13785 lt_cv_sys_max_cmd_len=-1;
13789 # On Win9x/ME, this test blows up -- it succeeds, but takes
13790 # about 5 minutes as the teststring grows exponentially.
13791 # Worse, since 9x/ME are not pre-emptively multitasking,
13792 # you end up with a "frozen" computer, even though with patience
13793 # the test eventually succeeds (with a max line length of 256k).
13794 # Instead, let's just punt: use the minimum linelength reported by
13795 # all of the supported platforms: 8192 (on NT/2K/XP).
13796 lt_cv_sys_max_cmd_len=8192;
13800 # On AmigaOS with pdksh, this test takes hours, literally.
13801 # So we just punt and use a minimum line length of 8192.
13802 lt_cv_sys_max_cmd_len=8192;
13805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13806 # This has been around since 386BSD, at least. Likely further.
13807 if test -x /sbin/sysctl; then
13808 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13809 elif test -x /usr/sbin/sysctl; then
13810 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13814 # And add a safety zone
13815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13821 lt_cv_sys_max_cmd_len=196608
13825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13827 # nice to cause kernel panics so lets avoid the loop below.
13828 # First set a reasonable default.
13829 lt_cv_sys_max_cmd_len=16384
13831 if test -x /sbin/sysconfig; then
13832 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13838 lt_cv_sys_max_cmd_len=102400
13840 sysv5* | sco5v6* | sysv4.2uw2*)
13841 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13842 if test -n "$kargmax"; then
13843 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13845 lt_cv_sys_max_cmd_len=32768
13849 # If test is not a shell built-in, we'll probably end up computing a
13850 # maximum length that is only half of the actual maximum length, but
13852 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13853 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13854 = "XX$teststring") >/dev/null 2>&1 &&
13855 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13856 lt_cv_sys_max_cmd_len=$new_result &&
13857 test $i != 17 # 1/2 MB should be enough
13860 teststring=$teststring$teststring
13863 # Add a significant safety factor because C++ compilers can tack on massive
13864 # amounts of additional arguments before passing them to the linker.
13865 # It appears as though 1/2 is a usable value.
13866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13872 if test -n $lt_cv_sys_max_cmd_len ; then
13873 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13874 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13876 { echo "$as_me:$LINENO: result: none" >&5
13877 echo "${ECHO_T}none" >&6; }
13883 # Check for command to grab the raw symbol name followed by C symbol from nm.
13884 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 # These are sane defaults that work on at least a few old systems.
13891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13893 # Character class describing NM global symbol codes.
13894 symcode='[BCDEGRST]'
13896 # Regexp to match symbols that can be accessed directly from C.
13897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13899 # Transform an extracted symbol line into a proper C declaration
13900 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13902 # Transform an extracted symbol line into symbol name and symbol address
13903 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'"
13905 # Define system-specific variables.
13910 cygwin* | mingw* | pw32*)
13911 symcode='[ABCDGISTW]'
13913 hpux*) # Its linker distinguishes data from code symbols
13914 if test "$host_cpu" = ia64; then
13915 symcode='[ABCDEGRST]'
13917 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13918 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'"
13921 if test "$host_cpu" = ia64; then
13922 symcode='[ABCDGIRSTW]'
13923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13924 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'"
13927 irix* | nonstopux*)
13928 symcode='[BCDEGRST]'
13931 symcode='[BCDEGQRST]'
13942 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13950 # Handle CRLF in mingw tool chain
13954 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
13958 # If we're using GNU nm, then use its standard symbol codes.
13959 case `$NM -V 2>&1` in
13960 *GNU* | *'with BFD'*)
13961 symcode='[ABCDGIRSTW]' ;;
13964 # Try without a prefix undercore, then with it.
13965 for ac_symprfx in "" "_"; do
13967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13968 symxfrm="\\1 $ac_symprfx\\2 \\2"
13970 # Write the raw and C identifiers.
13971 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13973 # Check to see that the pipe works correctly.
13977 cat > conftest.$ac_ext <<EOF
13982 void nm_test_func(){}
13986 int main(){nm_test_var='a';nm_test_func();return(0);}
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; then
13994 # Now try to grab the symbols.
13996 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13997 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && test -s "$nlist"; then
14001 # Try sorting and uniquifying the output.
14002 if sort "$nlist" | uniq > "$nlist"T; then
14003 mv -f "$nlist"T "$nlist"
14008 # Make sure that we snagged all the symbols we need.
14009 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14010 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14011 cat <<EOF > conftest.$ac_ext
14017 # Now generate the symbol file.
14018 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14020 cat <<EOF >> conftest.$ac_ext
14021 #if defined (__STDC__) && __STDC__
14022 # define lt_ptr_t void *
14024 # define lt_ptr_t char *
14028 /* The mapping between symbol names and symbols. */
14033 lt_preloaded_symbols[] =
14036 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14037 cat <<\EOF >> conftest.$ac_ext
14045 # Now try linking the two files.
14046 mv conftest.$ac_objext conftstm.$ac_objext
14047 lt_save_LIBS="$LIBS"
14048 lt_save_CFLAGS="$CFLAGS"
14049 LIBS="conftstm.$ac_objext"
14050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14052 (eval $ac_link) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14058 LIBS="$lt_save_LIBS"
14059 CFLAGS="$lt_save_CFLAGS"
14061 echo "cannot find nm_test_func in $nlist" >&5
14064 echo "cannot find nm_test_var in $nlist" >&5
14067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14070 echo "$progname: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14073 rm -f conftest* conftst*
14075 # Do not use the global_symbol_pipe unless it works.
14076 if test "$pipe_works" = yes; then
14079 lt_cv_sys_global_symbol_pipe=
14085 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14086 lt_cv_sys_global_symbol_to_cdecl=
14088 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14089 { echo "$as_me:$LINENO: result: failed" >&5
14090 echo "${ECHO_T}failed" >&6; }
14092 { echo "$as_me:$LINENO: result: ok" >&5
14093 echo "${ECHO_T}ok" >&6; }
14096 { echo "$as_me:$LINENO: checking for objdir" >&5
14097 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14098 if test "${lt_cv_objdir+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 rm -f .libs 2>/dev/null
14102 mkdir .libs 2>/dev/null
14103 if test -d .libs; then
14106 # MS-DOS does not allow filenames that begin with a dot.
14109 rmdir .libs 2>/dev/null
14111 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14112 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14113 objdir=$lt_cv_objdir
14121 # AIX sometimes has problems with the GCC collect2 program. For some
14122 # reason, if we set the COLLECT_NAMES environment variable, the problems
14123 # vanish in a puff of smoke.
14124 if test "X${COLLECT_NAMES+set}" != Xset; then
14126 export COLLECT_NAMES
14131 # Sed substitution that helps us do robust quoting. It backslashifies
14132 # metacharacters that are still active within double-quoted strings.
14133 Xsed='sed -e 1s/^X//'
14134 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14136 # Same as above, but do not quote variable references.
14137 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14139 # Sed substitution to delay expansion of an escaped shell variable in a
14140 # double_quote_subst'ed string.
14141 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14143 # Sed substitution to avoid accidental globbing in evaled expressions
14144 no_glob_subst='s/\*/\\\*/g'
14149 # Global variables:
14150 default_ofile=mklib
14151 can_build_shared=yes
14153 # All known linkers require a `.a' archive for static linking (except MSVC,
14154 # which needs '.lib').
14156 ltmain="$ac_aux_dir/ltmain.sh
"
14157 ofile="$default_ofile"
14158 with_gnu_ld="$lt_cv_prog_gnu_ld"
14160 if test -n "$ac_tool_prefix"; then
14161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14162 set dummy ${ac_tool_prefix}ar; ac_word=$2
14163 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14164 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14165 if test "${ac_cv_prog_AR+set}" = set; then
14166 echo $ECHO_N "(cached
) $ECHO_C" >&6
14168 if test -n "$AR"; then
14169 ac_cv_prog_AR="$AR" # Let the user override the test.
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14178 ac_cv_prog_AR="${ac_tool_prefix}ar"
14179 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14189 if test -n "$AR"; then
14190 { echo "$as_me:$LINENO: result
: $AR" >&5
14191 echo "${ECHO_T}$AR" >&6; }
14193 { echo "$as_me:$LINENO: result
: no
" >&5
14194 echo "${ECHO_T}no
" >&6; }
14199 if test -z "$ac_cv_prog_AR"; then
14201 # Extract the first word of "ar", so it can be a program name with args.
14202 set dummy ar; ac_word=$2
14203 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14204 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14206 echo $ECHO_N "(cached
) $ECHO_C" >&6
14208 if test -n "$ac_ct_AR"; then
14209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14218 ac_cv_prog_ac_ct_AR="ar"
14219 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14229 if test -n "$ac_ct_AR"; then
14230 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14231 echo "${ECHO_T}$ac_ct_AR" >&6; }
14233 { echo "$as_me:$LINENO: result
: no
" >&5
14234 echo "${ECHO_T}no
" >&6; }
14237 if test "x
$ac_ct_AR" = x; then
14240 case $cross_compiling:$ac_tool_warned in
14242 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14243 whose name does not start with the
host triplet. If you think this
14244 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14245 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14246 whose name does not start with the
host triplet. If you think this
14247 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14248 ac_tool_warned=yes ;;
14253 AR="$ac_cv_prog_AR"
14256 if test -n "$ac_tool_prefix"; then
14257 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14259 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14260 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14261 if test "${ac_cv_prog_RANLIB+set}" = set; then
14262 echo $ECHO_N "(cached
) $ECHO_C" >&6
14264 if test -n "$RANLIB"; then
14265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14275 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14284 RANLIB=$ac_cv_prog_RANLIB
14285 if test -n "$RANLIB"; then
14286 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14287 echo "${ECHO_T}$RANLIB" >&6; }
14289 { echo "$as_me:$LINENO: result
: no
" >&5
14290 echo "${ECHO_T}no
" >&6; }
14295 if test -z "$ac_cv_prog_RANLIB"; then
14296 ac_ct_RANLIB=$RANLIB
14297 # Extract the first word of "ranlib
", so it can be a program name with args.
14298 set dummy ranlib; ac_word=$2
14299 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14300 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14302 echo $ECHO_N "(cached
) $ECHO_C" >&6
14304 if test -n "$ac_ct_RANLIB"; then
14305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14311 test -z "$as_dir" && as_dir=.
14312 for ac_exec_ext in '' $ac_executable_extensions; do
14313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14314 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14315 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14325 if test -n "$ac_ct_RANLIB"; then
14326 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14327 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14329 { echo "$as_me:$LINENO: result
: no
" >&5
14330 echo "${ECHO_T}no
" >&6; }
14333 if test "x
$ac_ct_RANLIB" = x; then
14336 case $cross_compiling:$ac_tool_warned in
14338 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14339 whose name does not start with the
host triplet. If you think this
14340 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14341 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14342 whose name does not start with the
host triplet. If you think this
14343 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14344 ac_tool_warned=yes ;;
14346 RANLIB=$ac_ct_RANLIB
14349 RANLIB="$ac_cv_prog_RANLIB"
14352 if test -n "$ac_tool_prefix"; then
14353 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14354 set dummy ${ac_tool_prefix}strip; ac_word=$2
14355 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14356 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14357 if test "${ac_cv_prog_STRIP+set}" = set; then
14358 echo $ECHO_N "(cached
) $ECHO_C" >&6
14360 if test -n "$STRIP"; then
14361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364 for as_dir in $PATH
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
14369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14370 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14371 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14380 STRIP=$ac_cv_prog_STRIP
14381 if test -n "$STRIP"; then
14382 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14383 echo "${ECHO_T}$STRIP" >&6; }
14385 { echo "$as_me:$LINENO: result
: no
" >&5
14386 echo "${ECHO_T}no
" >&6; }
14391 if test -z "$ac_cv_prog_STRIP"; then
14393 # Extract the first word of "strip
", so it can be a program name with args.
14394 set dummy strip; ac_word=$2
14395 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14396 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14398 echo $ECHO_N "(cached
) $ECHO_C" >&6
14400 if test -n "$ac_ct_STRIP"; then
14401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404 for as_dir in $PATH
14407 test -z "$as_dir" && as_dir=.
14408 for ac_exec_ext in '' $ac_executable_extensions; do
14409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14410 ac_cv_prog_ac_ct_STRIP="strip
"
14411 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14421 if test -n "$ac_ct_STRIP"; then
14422 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14423 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14425 { echo "$as_me:$LINENO: result
: no
" >&5
14426 echo "${ECHO_T}no
" >&6; }
14429 if test "x
$ac_ct_STRIP" = x; then
14432 case $cross_compiling:$ac_tool_warned in
14434 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14435 whose name does not start with the
host triplet. If you think this
14436 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14437 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14438 whose name does not start with the
host triplet. If you think this
14439 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14440 ac_tool_warned=yes ;;
14445 STRIP="$ac_cv_prog_STRIP"
14450 old_CFLAGS="$CFLAGS"
14452 # Set sane defaults for various variables
14453 test -z "$AR" && AR=ar
14454 test -z "$AR_FLAGS" && AR_FLAGS=cru
14455 test -z "$AS" && AS=as
14456 test -z "$CC" && CC=cc
14457 test -z "$LTCC" && LTCC=$CC
14458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14459 test -z "$DLLTOOL" && DLLTOOL=dlltool
14460 test -z "$LD" && LD=ld
14461 test -z "$LN_S" && LN_S="ln -s"
14462 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14463 test -z "$NM" && NM=nm
14464 test -z "$SED" && SED=sed
14465 test -z "$OBJDUMP" && OBJDUMP=objdump
14466 test -z "$RANLIB" && RANLIB=:
14467 test -z "$STRIP" && STRIP=:
14468 test -z "$ac_objext" && ac_objext=o
14470 # Determine commands to create old-style static archives.
14471 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14472 old_postinstall_cmds='chmod 644 $oldlib'
14473 old_postuninstall_cmds=
14475 if test -n "$RANLIB"; then
14478 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14481 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14484 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14487 for cc_temp in $compiler""; do
14489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14495 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14498 # Only perform the check for file, if the check method requires it
14499 case $deplibs_check_method in
14501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14502 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14503 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14504 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14505 echo $ECHO_N "(cached
) $ECHO_C" >&6
14509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14512 lt_save_MAGIC_CMD="$MAGIC_CMD"
14513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14514 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14515 for ac_dir in $ac_dummy; do
14517 test -z "$ac_dir" && ac_dir=.
14518 if test -f $ac_dir/${ac_tool_prefix}file; then
14519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14520 if test -n "$file_magic_test_file"; then
14521 case $deplibs_check_method in
14523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14526 $EGREP "$file_magic_regex" > /dev/null; then
14531 *** Warning: the command libtool uses to detect shared libraries,
14532 *** $file_magic_cmd, produces output that libtool cannot recognize.
14533 *** The result is that libtool may fail to recognize shared libraries
14534 *** as such. This will affect the creation of libtool libraries that
14535 *** depend on shared libraries, but programs linked with such libtool
14536 *** libraries will work regardless of this problem. Nevertheless, you
14537 *** may want to report the problem to your system manager and/or to
14538 *** bug-libtool@gnu.org
14548 MAGIC_CMD="$lt_save_MAGIC_CMD"
14553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14554 if test -n "$MAGIC_CMD"; then
14555 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14556 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14558 { echo "$as_me:$LINENO: result
: no
" >&5
14559 echo "${ECHO_T}no
" >&6; }
14562 if test -z "$lt_cv_path_MAGIC_CMD"; then
14563 if test -n "$ac_tool_prefix"; then
14564 { echo "$as_me:$LINENO: checking
for file" >&5
14565 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14567 echo $ECHO_N "(cached
) $ECHO_C" >&6
14571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14574 lt_save_MAGIC_CMD="$MAGIC_CMD"
14575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14576 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14577 for ac_dir in $ac_dummy; do
14579 test -z "$ac_dir" && ac_dir=.
14580 if test -f $ac_dir/file; then
14581 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14582 if test -n "$file_magic_test_file"; then
14583 case $deplibs_check_method in
14585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14588 $EGREP "$file_magic_regex" > /dev/null; then
14593 *** Warning: the command libtool uses to detect shared libraries,
14594 *** $file_magic_cmd, produces output that libtool cannot recognize.
14595 *** The result is that libtool may fail to recognize shared libraries
14596 *** as such. This will affect the creation of libtool libraries that
14597 *** depend on shared libraries, but programs linked with such libtool
14598 *** libraries will work regardless of this problem. Nevertheless, you
14599 *** may want to report the problem to your system manager and/or to
14600 *** bug-libtool@gnu.org
14610 MAGIC_CMD="$lt_save_MAGIC_CMD"
14615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14616 if test -n "$MAGIC_CMD"; then
14617 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14618 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14620 { echo "$as_me:$LINENO: result
: no
" >&5
14621 echo "${ECHO_T}no
" >&6; }
14634 enable_win32_dll=no
14636 # Check whether --enable-libtool-lock was given.
14637 if test "${enable_libtool_lock+set}" = set; then
14638 enableval=$enable_libtool_lock;
14641 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14644 # Check whether --with-pic was given.
14645 if test "${with_pic+set}" = set; then
14646 withval=$with_pic; pic_mode="$withval"
14651 test -z "$pic_mode" && pic_mode=default
14653 # Use C for the default configuration in the libtool script
14657 ac_cpp='$CPP $CPPFLAGS'
14658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14663 # Source file extension for C test sources.
14666 # Object file extension for compiled C test sources.
14670 # Code to be used in simple compile tests
14671 lt_simple_compile_test_code="int some_variable
= 0;\n"
14673 # Code to be used in simple link tests
14674 lt_simple_link_test_code='int main(){return(0);}\n'
14677 # If no C compiler was specified, use CC.
14680 # If no C compiler flags were specified, use CFLAGS.
14681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14683 # Allow CC to be a program name with arguments.
14687 # save warnings/boilerplate of simple test code
14688 ac_outfile=conftest.$ac_objext
14689 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14690 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14691 _lt_compiler_boilerplate=`cat conftest.err`
14694 ac_outfile=conftest.$ac_objext
14695 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14696 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14697 _lt_linker_boilerplate=`cat conftest.err`
14702 lt_prog_compiler_no_builtin_flag=
14704 if test "$GCC" = yes; then
14705 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14708 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14709 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14711 echo $ECHO_N "(cached
) $ECHO_C" >&6
14713 lt_cv_prog_compiler_rtti_exceptions=no
14714 ac_outfile=conftest.$ac_objext
14715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14716 lt_compiler_flag="-fno-rtti -fno-exceptions"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.
", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 # The option is referenced via a variable to avoid confusing sed.
14722 lt_compile=`echo "$ac_compile" | $SED \
14723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
14726 (eval echo "\"\
$as_me:14726: $lt_compile\"" >&5)
14727 (eval "$lt_compile" 2>conftest.err)
14729 cat conftest.err >&5
14730 echo "$as_me:14730: \$?
= $ac_status" >&5
14731 if (exit $ac_status) && test -s "$ac_outfile"; then
14732 # The compiler can only warn and ignore the option if not recognized
14733 # So say no if there are warnings other than the usual output.
14734 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14737 lt_cv_prog_compiler_rtti_exceptions=yes
14743 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14744 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14746 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14747 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14754 lt_prog_compiler_wl=
14755 lt_prog_compiler_pic=
14756 lt_prog_compiler_static=
14758 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14759 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14761 if test "$GCC" = yes; then
14762 lt_prog_compiler_wl='-Wl,'
14763 lt_prog_compiler_static='-static'
14767 # All AIX code is PIC.
14768 if test "$host_cpu" = ia64; then
14769 # AIX 5 now supports IA64 processor
14770 lt_prog_compiler_static='-Bstatic'
14775 # FIXME: we need at least 68020 code to build shared libraries, but
14776 # adding the `-m68020' flag to GCC prevents building anything better,
14778 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14782 # PIC is the default for these OSes.
14785 mingw* | pw32* | os2*)
14786 # This hack is so that the source file can tell whether it is being
14787 # built for inclusion in a dll (and should export symbols for example).
14788 lt_prog_compiler_pic='-DDLL_EXPORT'
14791 darwin* | rhapsody*)
14792 # PIC is the default on this platform
14793 # Common symbols not allowed in MH_DYLIB files
14794 lt_prog_compiler_pic='-fno-common'
14798 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14799 # Instead, we relocate shared libraries at runtime.
14803 # Just because we use GCC doesn't mean we suddenly get shared libraries
14804 # on systems that don't support them.
14805 lt_prog_compiler_can_build_shared=no
14810 if test -d /usr/nec; then
14811 lt_prog_compiler_pic=-Kconform_pic
14816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14817 # not for PA HP-UX.
14823 lt_prog_compiler_pic='-fPIC'
14829 lt_prog_compiler_pic='-fPIC'
14833 # PORTME Check for flag to pass linker flags through the system compiler.
14836 lt_prog_compiler_wl='-Wl,'
14837 if test "$host_cpu" = ia64; then
14838 # AIX 5 now supports IA64 processor
14839 lt_prog_compiler_static='-Bstatic'
14841 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14845 # PIC is the default on this platform
14846 # Common symbols not allowed in MH_DYLIB files
14847 case $cc_basename in
14849 lt_prog_compiler_pic='-qnocommon'
14850 lt_prog_compiler_wl='-Wl,'
14855 mingw* | pw32* | os2*)
14856 # This hack is so that the source file can tell whether it is being
14857 # built for inclusion in a dll (and should export symbols for example).
14858 lt_prog_compiler_pic='-DDLL_EXPORT'
14861 hpux9* | hpux10* | hpux11*)
14862 lt_prog_compiler_wl='-Wl,'
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='+Z'
14873 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14874 lt_prog_compiler_static='${wl}-a ${wl}archive'
14877 irix5* | irix6* | nonstopux*)
14878 lt_prog_compiler_wl='-Wl,'
14879 # PIC (with -KPIC) is the default.
14880 lt_prog_compiler_static='-non_shared'
14884 lt_prog_compiler_pic='-KPIC'
14885 lt_prog_compiler_static='-Bstatic'
14889 case $cc_basename in
14891 lt_prog_compiler_wl='-Wl,'
14892 lt_prog_compiler_pic='-KPIC'
14893 lt_prog_compiler_static='-static'
14895 pgcc* | pgf77* | pgf90* | pgf95*)
14896 # Portland Group compilers (*not* the Pentium gcc compiler,
14897 # which looks to be a dead project)
14898 lt_prog_compiler_wl='-Wl,'
14899 lt_prog_compiler_pic='-fpic'
14900 lt_prog_compiler_static='-Bstatic'
14903 lt_prog_compiler_wl='-Wl,'
14904 # All Alpha code is PIC.
14905 lt_prog_compiler_static='-non_shared'
14910 osf3* | osf4* | osf5*)
14911 lt_prog_compiler_wl='-Wl,'
14912 # All OSF/1 code is PIC.
14913 lt_prog_compiler_static='-non_shared'
14917 lt_prog_compiler_pic='-KPIC'
14918 lt_prog_compiler_static='-Bstatic'
14919 case $cc_basename in
14920 f77* | f90* | f95*)
14921 lt_prog_compiler_wl='-Qoption ld ';;
14923 lt_prog_compiler_wl='-Wl,';;
14928 lt_prog_compiler_wl='-Qoption ld '
14929 lt_prog_compiler_pic='-PIC'
14930 lt_prog_compiler_static='-Bstatic'
14933 sysv4 | sysv4.2uw2* | sysv4.3*)
14934 lt_prog_compiler_wl='-Wl,'
14935 lt_prog_compiler_pic='-KPIC'
14936 lt_prog_compiler_static='-Bstatic'
14940 if test -d /usr/nec ;then
14941 lt_prog_compiler_pic='-Kconform_pic'
14942 lt_prog_compiler_static='-Bstatic'
14946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14947 lt_prog_compiler_wl='-Wl,'
14948 lt_prog_compiler_pic='-KPIC'
14949 lt_prog_compiler_static='-Bstatic'
14953 lt_prog_compiler_wl='-Wl,'
14954 lt_prog_compiler_can_build_shared=no
14958 lt_prog_compiler_pic='-pic'
14959 lt_prog_compiler_static='-Bstatic'
14963 lt_prog_compiler_can_build_shared=no
14968 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
14969 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14972 # Check to make sure the PIC flag actually works.
14974 if test -n "$lt_prog_compiler_pic"; then
14976 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14977 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
14978 if test "${lt_prog_compiler_pic_works+set}" = set; then
14979 echo $ECHO_N "(cached
) $ECHO_C" >&6
14981 lt_prog_compiler_pic_works=no
14982 ac_outfile=conftest.$ac_objext
14983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14984 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14985 # Insert the option either (1) after the last *FLAGS variable, or
14986 # (2) before a word containing "conftest.
", or (3) at the end.
14987 # Note that $ac_compile itself does not contain backslashes and begins
14988 # with a dollar sign (not a hyphen), so the echo should work correctly.
14989 # The option is referenced via a variable to avoid confusing sed.
14990 lt_compile=`echo "$ac_compile" | $SED \
14991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14993 -e 's:$: $lt_compiler_flag:'`
14994 (eval echo "\"\
$as_me:14994: $lt_compile\"" >&5)
14995 (eval "$lt_compile" 2>conftest.err)
14997 cat conftest.err >&5
14998 echo "$as_me:14998: \$?
= $ac_status" >&5
14999 if (exit $ac_status) && test -s "$ac_outfile"; then
15000 # The compiler can only warn and ignore the option if not recognized
15001 # So say no if there are warnings other than the usual output.
15002 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15005 lt_prog_compiler_pic_works=yes
15011 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15014 if test x"$lt_prog_compiler_pic_works" = xyes; then
15015 case $lt_prog_compiler_pic in
15017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15020 lt_prog_compiler_pic=
15021 lt_prog_compiler_can_build_shared=no
15026 # For platforms which do not support PIC, -DPIC is meaningless:
15028 lt_prog_compiler_pic=
15031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15036 # Check to make sure the static flag actually works.
15038 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15039 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15040 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15041 if test "${lt_prog_compiler_static_works+set}" = set; then
15042 echo $ECHO_N "(cached
) $ECHO_C" >&6
15044 lt_prog_compiler_static_works=no
15045 save_LDFLAGS="$LDFLAGS"
15046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15047 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15049 # The linker can only warn and ignore the option if not recognized
15050 # So say no if there are warnings
15051 if test -s conftest.err; then
15052 # Append any errors to the config.log.
15053 cat conftest.err 1>&5
15054 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15056 if diff conftest.exp conftest.er2 >/dev/null; then
15057 lt_prog_compiler_static_works=yes
15060 lt_prog_compiler_static_works=yes
15064 LDFLAGS="$save_LDFLAGS"
15067 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15068 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15070 if test x"$lt_prog_compiler_static_works" = xyes; then
15073 lt_prog_compiler_static=
15077 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15078 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15079 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15080 echo $ECHO_N "(cached
) $ECHO_C" >&6
15082 lt_cv_prog_compiler_c_o=no
15083 $rm -r conftest 2>/dev/null
15087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15089 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15090 # Insert the option either (1) after the last *FLAGS variable, or
15091 # (2) before a word containing "conftest.
", or (3) at the end.
15092 # Note that $ac_compile itself does not contain backslashes and begins
15093 # with a dollar sign (not a hyphen), so the echo should work correctly.
15094 lt_compile=`echo "$ac_compile" | $SED \
15095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
15098 (eval echo "\"\
$as_me:15098: $lt_compile\"" >&5)
15099 (eval "$lt_compile" 2>out/conftest.err)
15101 cat out/conftest.err >&5
15102 echo "$as_me:15102: \$?
= $ac_status" >&5
15103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15105 # The compiler can only warn and ignore the option if not recognized
15106 # So say no if there are warnings
15107 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15110 lt_cv_prog_compiler_c_o=yes
15115 # SGI C++ compiler will create directory out/ii_files/ for
15116 # template instantiation
15117 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15118 $rm out/* && rmdir out
15124 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15128 hard_links="nottested
"
15129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15130 # do not overwrite the value of need_locks provided by the user
15131 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15132 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15137 ln conftest.a conftest.b 2>&5 || hard_links=no
15138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15139 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15140 echo "${ECHO_T}$hard_links" >&6; }
15141 if test "$hard_links" = no; then
15142 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15143 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15150 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15151 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15154 allow_undefined_flag=
15155 enable_shared_with_static_runtimes=no
15157 archive_expsym_cmds=
15158 old_archive_From_new_cmds=
15159 old_archive_from_expsyms_cmds=
15160 export_dynamic_flag_spec=
15161 whole_archive_flag_spec=
15162 thread_safe_flag_spec=
15163 hardcode_libdir_flag_spec=
15164 hardcode_libdir_flag_spec_ld=
15165 hardcode_libdir_separator=
15167 hardcode_minus_L=no
15168 hardcode_shlibpath_var=unsupported
15169 link_all_deplibs=unknown
15170 hardcode_automatic=no
15172 module_expsym_cmds=
15173 always_export_symbols=no
15174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15175 # include_expsyms should be a list of space-separated symbols to be *always*
15176 # included in the symbol list
15178 # exclude_expsyms can be an extended regexp of symbols to exclude
15179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15181 # as well as any symbol that contains `d'.
15182 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15184 # platforms (ab)use it in PIC code, but their linkers get confused if
15185 # the symbol is explicitly referenced. Since portable code cannot
15186 # rely on this symbol name, it's probably fine to never include it in
15187 # preloaded symbol tables.
15188 extract_expsyms_cmds=
15189 # Just being paranoid about ensuring that cc_basename is set.
15190 for cc_temp in $compiler""; do
15192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15198 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15201 cygwin* | mingw* | pw32*)
15202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15203 # When not using gcc, we currently assume that we are using
15204 # Microsoft Visual C++.
15205 if test "$GCC" != yes; then
15210 # we just hope/assume this is gcc and not c89 (= MSVC++)
15219 if test "$with_gnu_ld" = yes; then
15220 # If archive_cmds runs LD, not CC, wlarc should be empty
15223 # Set some defaults for GNU ld with shared library support. These
15224 # are reset later if shared libraries are not supported. Putting them
15225 # here allows them to be overridden if necessary.
15226 runpath_var=LD_RUN_PATH
15227 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15228 export_dynamic_flag_spec='${wl}--export-dynamic'
15229 # ancient GNU ld didn't support --whole-archive et. al.
15230 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15231 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233 whole_archive_flag_spec=
15235 supports_anon_versioning=no
15236 case `$LD -v 2>/dev/null` in
15237 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15238 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15239 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15240 *\ 2.11.*) ;; # other 2.11 versions
15241 *) supports_anon_versioning=yes ;;
15244 # See if GNU ld supports shared libraries.
15246 aix3* | aix4* | aix5*)
15247 # On AIX/PPC, the GNU linker is very broken
15248 if test "$host_cpu" != ia64; then
15252 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15253 *** to be unable to reliably create shared libraries on AIX.
15254 *** Therefore, libtool is disabling shared libraries support. If you
15255 *** really care for shared libraries, you may want to modify your PATH
15256 *** so that a non-GNU linker is found, and then restart.
15263 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)'
15264 hardcode_libdir_flag_spec
='-L$libdir'
15265 hardcode_minus_L
=yes
15267 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15268 # that the semantics of dynamic libraries on AmigaOS, at least up
15269 # to version 4, is to share data among multiple programs linked
15270 # with the same dynamic library. Since this doesn't match the
15271 # behavior of shared libraries on other platforms, we can't use
15277 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15278 allow_undefined_flag
=unsupported
15279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15280 # support --undefined. This deserves some investigation. FIXME
15281 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287 cygwin
* | mingw
* | pw32
*)
15288 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15289 # as there is no search path for DLLs.
15290 hardcode_libdir_flag_spec
='-L$libdir'
15291 allow_undefined_flag
=unsupported
15292 always_export_symbols
=no
15293 enable_shared_with_static_runtimes
=yes
15294 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15296 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15297 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15298 # If the export-symbols file already is a .def file (1st line
15299 # is EXPORTS), use it as is; otherwise, prepend...
15300 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15301 cp $export_symbols $output_objdir/$soname.def;
15303 echo EXPORTS > $output_objdir/$soname.def;
15304 cat $export_symbols >> $output_objdir/$soname.def;
15306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15314 hardcode_shlibpath_var
=no
15315 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15316 export_dynamic_flag_spec
='${wl}-E'
15317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15318 # Instead, shared libraries are loaded at an image base (0x10000000 by
15319 # default) and relocated if they conflict, which is a slow very memory
15320 # consuming and fragmenting process. To avoid this, we pick a random,
15321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15323 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15324 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'
15328 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15330 case $cc_basename,$host_cpu in
15331 pgcc
*) # Portland Group C compiler
15332 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'
15333 tmp_addflag
=' $pic_flag'
15335 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15336 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'
15337 tmp_addflag
=' $pic_flag -Mnomain' ;;
15338 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15339 tmp_addflag
=' -i_dynamic' ;;
15340 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15341 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15342 ifc
* | ifort
*) # Intel Fortran compiler
15343 tmp_addflag
=' -nofor_main' ;;
15345 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347 if test $supports_anon_versioning = yes; then
15348 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15350 $echo "local: *; };" >> $output_objdir/$libname.ver~
15351 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15359 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15360 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15363 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15369 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15374 *** create shared libraries on Solaris systems. Therefore, libtool
15375 *** is disabling shared libraries support. We urge you to upgrade GNU
15376 *** binutils to release 2.9.1 or newer. Another option is to modify
15377 *** your PATH or compiler configuration so that the native linker is
15378 *** used, and then restart.
15381 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15382 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15383 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15389 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15390 case `$LD -v 2>&1` in
15391 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15396 *** reliably create shared libraries on SCO systems. Therefore, libtool
15397 *** is disabling shared libraries support. We urge you to upgrade GNU
15398 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15399 *** your PATH or compiler configuration so that the native linker is
15400 *** used, and then restart.
15405 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15406 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15407 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15408 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15417 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_direct
=yes
15420 hardcode_shlibpath_var
=no
15424 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15425 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15433 if test "$ld_shlibs" = no
; then
15435 hardcode_libdir_flag_spec
=
15436 export_dynamic_flag_spec
=
15437 whole_archive_flag_spec
=
15440 # PORTME fill in a description of your system's linker (not GNU ld)
15443 allow_undefined_flag
=unsupported
15444 always_export_symbols
=yes
15445 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'
15446 # Note: this linker hardcodes the directories in LIBPATH if there
15447 # are no directories specified by -L.
15448 hardcode_minus_L
=yes
15449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15450 # Neither direct hardcoding nor static linking is supported with a
15452 hardcode_direct
=unsupported
15457 if test "$host_cpu" = ia64
; then
15458 # On IA64, the linker does run time linking by default, so we don't
15459 # have to do anything special.
15460 aix_use_runtimelinking
=no
15461 exp_sym_flag
='-Bexport'
15464 # If we're using GNU nm, then we don't want the "-C" option.
15465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15466 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15467 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'
15469 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'
15471 aix_use_runtimelinking
=no
15473 # Test if we are trying to use run time linking or normal
15474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15475 # need to do runtime linking.
15476 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15477 for ld_flag
in $LDFLAGS; do
15478 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15479 aix_use_runtimelinking
=yes
15486 exp_sym_flag
='-bexport'
15487 no_entry_flag
='-bnoentry'
15490 # When large executables or shared objects are built, AIX ld can
15491 # have problems creating the table of contents. If linking a library
15492 # or program results in "error TOC overflow" add -mminimal-toc to
15493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15497 hardcode_direct
=yes
15498 hardcode_libdir_separator
=':'
15499 link_all_deplibs
=yes
15501 if test "$GCC" = yes; then
15502 case $host_os in aix4.
[012]|aix4.
[012].
*)
15503 # We only want to do this on AIX 4.2 and lower, the check
15504 # below for broken collect2 doesn't work under 4.3+
15505 collect2name
=`${CC} -print-prog-name=collect2`
15506 if test -f "$collect2name" && \
15507 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15509 # We have reworked collect2
15510 hardcode_direct
=yes
15512 # We have old collect2
15513 hardcode_direct
=unsupported
15514 # It fails to find uninstalled libraries when the uninstalled
15515 # path is not listed in the libpath. Setting hardcode_minus_L
15516 # to unsupported forces relinking
15517 hardcode_minus_L
=yes
15518 hardcode_libdir_flag_spec
='-L$libdir'
15519 hardcode_libdir_separator
=
15523 shared_flag
='-shared'
15524 if test "$aix_use_runtimelinking" = yes; then
15525 shared_flag
="$shared_flag "'${wl}-G'
15529 if test "$host_cpu" = ia64
; then
15530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15531 # chokes on -Wl,-G. The following line is correct:
15534 if test "$aix_use_runtimelinking" = yes; then
15535 shared_flag
='${wl}-G'
15537 shared_flag
='${wl}-bM:SRE'
15542 # It seems that -bexpall does not export symbols beginning with
15543 # underscore (_), so it is better to generate a list of symbols to export.
15544 always_export_symbols
=yes
15545 if test "$aix_use_runtimelinking" = yes; then
15546 # Warning - without using the other runtime loading flags (-brtl),
15547 # -berok will link without error, but may produce a broken library.
15548 allow_undefined_flag
='-berok'
15549 # Determine the default libpath from the value encoded in an empty executable.
15550 cat >conftest.
$ac_ext <<_ACEOF
15553 cat confdefs.h
>>conftest.
$ac_ext
15554 cat >>conftest.
$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15565 rm -f conftest.
$ac_objext conftest
$ac_exeext
15566 if { (ac_try
="$ac_link"
15567 case "(($ac_try" in
15568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_link") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580 { (case "(($ac_try" in
15581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15582 *) ac_try_echo
=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try
='test -s conftest$ac_exeext'
15590 { (case "(($ac_try" in
15591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_try") 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15600 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15602 # Check for a 64-bit object if we didn't find anything.
15603 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; }
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15617 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"
15619 if test "$host_cpu" = ia64; then
15620 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15621 allow_undefined_flag="-z nodefs"
15622 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"
15624 # Determine the default libpath from the value encoded in an empty executable.
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (ac_try="$ac_link"
15642 case "(($ac_try" in
15643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15644 *) ac_try_echo
=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_link") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1
>conftest.err
15651 cat conftest.err
>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655 { (case "(($ac_try" in
15656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (case "(($ac_try" in
15666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15667 *) ac_try_echo
=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_try") 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15675 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15677 # Check for a 64-bit object if we didn't find anything.
15678 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; }
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.
$ac_ext >&5
15687 rm -f core conftest.err conftest.
$ac_objext \
15688 conftest
$ac_exeext conftest.
$ac_ext
15689 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15691 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15692 # Warning - without using the other run time loading flags,
15693 # -berok will link without error, but may produce a broken library.
15694 no_undefined_flag
=' ${wl}-bernotok'
15695 allow_undefined_flag
=' ${wl}-berok'
15696 # Exported symbols can be pulled into shared objects from archives
15697 whole_archive_flag_spec
='$convenience'
15698 archive_cmds_need_lc
=yes
15699 # This is similar to how AIX traditionally builds its shared libraries.
15700 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'
15706 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)'
15707 hardcode_libdir_flag_spec
='-L$libdir'
15708 hardcode_minus_L
=yes
15709 # see comment about different semantics on the GNU ld section
15714 export_dynamic_flag_spec
=-rdynamic
15717 cygwin
* | mingw
* | pw32
*)
15718 # When not using gcc, we currently assume that we are using
15719 # Microsoft Visual C++.
15720 # hardcode_libdir_flag_spec is actually meaningless, as there is
15721 # no search path for DLLs.
15722 hardcode_libdir_flag_spec
=' '
15723 allow_undefined_flag
=unsupported
15724 # Tell ltmain to make .lib files, not .a files.
15726 # Tell ltmain to make .dll files, not .so files.
15728 # FIXME: Setting linknames here is a bad hack.
15729 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15730 # The linker will automatically build a .lib file if we build a DLL.
15731 old_archive_From_new_cmds
='true'
15732 # FIXME: Should let the user specify the lib program.
15733 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15734 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15735 enable_shared_with_static_runtimes
=yes
15738 darwin
* | rhapsody
*)
15740 rhapsody
* | darwin1.
[012])
15741 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15744 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15745 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15747 case ${MACOSX_DEPLOYMENT_TARGET} in
15749 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15752 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15758 archive_cmds_need_lc
=no
15760 hardcode_automatic
=yes
15761 hardcode_shlibpath_var
=unsupported
15762 whole_archive_flag_spec
=''
15763 link_all_deplibs
=yes
15764 if test "$GCC" = yes ; then
15765 output_verbose_link_cmd
='echo'
15766 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15767 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15768 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15769 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}'
15770 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}'
15772 case $cc_basename in
15774 output_verbose_link_cmd
='echo'
15775 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15776 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15777 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15778 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}'
15779 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}'
15789 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790 hardcode_libdir_flag_spec
='-L$libdir'
15791 hardcode_shlibpath_var
=no
15798 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15799 # support. Future versions do this automatically, but an explicit c++rt0.o
15800 # does not break anything, and helps significantly (at the cost of a little
15803 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15804 hardcode_libdir_flag_spec
='-R$libdir'
15805 hardcode_direct
=yes
15806 hardcode_shlibpath_var
=no
15809 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15811 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15812 hardcode_direct
=yes
15813 hardcode_minus_L
=yes
15814 hardcode_shlibpath_var
=no
15817 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15818 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15819 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15820 hardcode_libdir_flag_spec
='-R$libdir'
15821 hardcode_direct
=yes
15822 hardcode_shlibpath_var
=no
15826 if test "$GCC" = yes; then
15827 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'
15829 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'
15831 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15832 hardcode_libdir_separator
=:
15833 hardcode_direct
=yes
15835 # hardcode_minus_L: Not really in the search PATH,
15836 # but as the default location of the library.
15837 hardcode_minus_L
=yes
15838 export_dynamic_flag_spec
='${wl}-E'
15842 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15843 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15845 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15847 if test "$with_gnu_ld" = no
; then
15848 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15849 hardcode_libdir_separator
=:
15851 hardcode_direct
=yes
15852 export_dynamic_flag_spec
='${wl}-E'
15854 # hardcode_minus_L: Not really in the search PATH,
15855 # but as the default location of the library.
15856 hardcode_minus_L
=yes
15861 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15864 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15867 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15870 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15876 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15879 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15882 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15886 if test "$with_gnu_ld" = no
; then
15887 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15888 hardcode_libdir_separator
=:
15892 hardcode_libdir_flag_spec_ld
='+b $libdir'
15894 hardcode_shlibpath_var
=no
15897 hardcode_direct
=yes
15898 export_dynamic_flag_spec
='${wl}-E'
15900 # hardcode_minus_L: Not really in the search PATH,
15901 # but as the default location of the library.
15902 hardcode_minus_L
=yes
15908 irix5
* | irix6
* | nonstopux
*)
15909 if test "$GCC" = yes; then
15910 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'
15912 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'
15913 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15915 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15916 hardcode_libdir_separator
=:
15917 link_all_deplibs
=yes
15921 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15922 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15924 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15926 hardcode_libdir_flag_spec
='-R$libdir'
15927 hardcode_direct
=yes
15928 hardcode_shlibpath_var
=no
15932 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15933 hardcode_direct
=yes
15934 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15935 hardcode_libdir_separator
=:
15936 hardcode_shlibpath_var
=no
15940 hardcode_direct
=yes
15941 hardcode_shlibpath_var
=no
15942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15943 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15944 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15945 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15946 export_dynamic_flag_spec
='${wl}-E'
15949 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15950 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15951 hardcode_libdir_flag_spec
='-R$libdir'
15954 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15962 hardcode_libdir_flag_spec
='-L$libdir'
15963 hardcode_minus_L
=yes
15964 allow_undefined_flag
=unsupported
15965 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'
15966 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15970 if test "$GCC" = yes; then
15971 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15972 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'
15974 allow_undefined_flag
=' -expect_unresolved \*'
15975 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'
15977 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator
=:
15981 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15982 if test "$GCC" = yes; then
15983 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15984 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'
15985 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15987 allow_undefined_flag
=' -expect_unresolved \*'
15988 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'
15989 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15990 $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'
15992 # Both c and cxx compiler support -rpath directly
15993 hardcode_libdir_flag_spec
='-rpath $libdir'
15995 hardcode_libdir_separator
=:
15999 no_undefined_flag
=' -z text'
16000 if test "$GCC" = yes; then
16002 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16004 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16007 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16011 hardcode_libdir_flag_spec
='-R$libdir'
16012 hardcode_shlibpath_var
=no
16014 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16016 # The compiler driver will combine linker options so we
16017 # cannot just pass the convience library names through
16018 # without $wl, iff we do not link with $LD.
16019 # Luckily, gcc supports the same syntax we need for Sun Studio.
16020 # Supported since Solaris 2.6 (maybe 2.5.1?)
16023 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16025 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' ;;
16028 link_all_deplibs
=yes
16032 if test "x$host_vendor" = xsequent
; then
16033 # Use $CC to link under sequent, because it throws in some extra .o
16034 # files that make .init and .fini sections work.
16035 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16037 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16039 hardcode_libdir_flag_spec
='-L$libdir'
16040 hardcode_direct
=yes
16041 hardcode_minus_L
=yes
16042 hardcode_shlibpath_var
=no
16046 case $host_vendor in
16048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_direct
=yes # is this really true???
16052 ## LD is ld it makes a PLAMLIB
16053 ## CC just makes a GrossModule.
16054 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16055 reload_cmds
='$CC -r -o $output$reload_objs'
16059 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16063 runpath_var
='LD_RUN_PATH'
16064 hardcode_shlibpath_var
=no
16068 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_shlibpath_var
=no
16070 export_dynamic_flag_spec
='-Bexport'
16074 if test -d /usr
/nec
; then
16075 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_shlibpath_var
=no
16077 runpath_var
=LD_RUN_PATH
16078 hardcode_runpath_var
=yes
16083 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16084 no_undefined_flag
='${wl}-z,text'
16085 archive_cmds_need_lc
=no
16086 hardcode_shlibpath_var
=no
16087 runpath_var
='LD_RUN_PATH'
16089 if test "$GCC" = yes; then
16090 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16093 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16098 sysv5
* | sco3.2v5
* | sco5v6
*)
16099 # Note: We can NOT use -z defs as we might desire, because we do not
16100 # link with -lc, and that would cause any symbols used from libc to
16101 # always be unresolved, which means just about no library would
16102 # ever link correctly. If we're not using GNU ld we use -z text
16103 # though, which does catch some bad symbols but isn't as heavy-handed
16105 no_undefined_flag
='${wl}-z,text'
16106 allow_undefined_flag
='${wl}-z,nodefs'
16107 archive_cmds_need_lc
=no
16108 hardcode_shlibpath_var
=no
16109 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16110 hardcode_libdir_separator
=':'
16111 link_all_deplibs
=yes
16112 export_dynamic_flag_spec
='${wl}-Bexport'
16113 runpath_var
='LD_RUN_PATH'
16115 if test "$GCC" = yes; then
16116 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_libdir_flag_spec
='-L$libdir'
16127 hardcode_shlibpath_var
=no
16136 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16137 echo "${ECHO_T}$ld_shlibs" >&6; }
16138 test "$ld_shlibs" = no
&& can_build_shared
=no
16141 # Do we need to explicitly link libc?
16143 case "x$archive_cmds_need_lc" in
16145 # Assume -lc should be added
16146 archive_cmds_need_lc
=yes
16148 if test "$enable_shared" = yes && test "$GCC" = yes; then
16149 case $archive_cmds in
16151 # FIXME: we may have to deal with multi-command sequences.
16154 # Test whether the compiler implicitly links with -lc since on some
16155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16156 # to ld, don't add -lc before -lgcc.
16157 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16158 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16160 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163 (eval $ac_compile) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } 2>conftest.err
; then
16169 libobjs
=conftest.
$ac_objext
16171 wl
=$lt_prog_compiler_wl
16172 pic_flag
=$lt_prog_compiler_pic
16178 lt_save_allow_undefined_flag
=$allow_undefined_flag
16179 allow_undefined_flag
=
16180 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16181 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }
16186 archive_cmds_need_lc
=no
16188 archive_cmds_need_lc
=yes
16190 allow_undefined_flag
=$lt_save_allow_undefined_flag
16192 cat conftest.err
1>&5
16195 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16196 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16203 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16204 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16205 library_names_spec
=
16206 libname_spec
='lib$name'
16210 postuninstall_cmds
=
16214 shlibpath_overrides_runpath
=unknown
16216 dynamic_linker
="$host_os ld.so"
16217 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16218 if test "$GCC" = yes; then
16219 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16220 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16221 # if the path contains ";" then we assume it to be the separator
16222 # otherwise default to the standard path separator (i.e. ":") - it is
16223 # assumed that no part of a normal pathname contains ";" but that should
16224 # okay in the real world where ";" in dirpaths is itself problematic.
16225 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16227 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16230 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16232 need_lib_prefix
=unknown
16233 hardcode_into_libs
=no
16235 # when you set need_version to no, make sure it does not cause -set_version
16236 # flags to be left without arguments
16237 need_version
=unknown
16242 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16243 shlibpath_var
=LIBPATH
16245 # AIX 3 has no versioning support, so we append a major version to the name.
16246 soname_spec
='${libname}${release}${shared_ext}$major'
16253 hardcode_into_libs
=yes
16254 if test "$host_cpu" = ia64
; then
16255 # AIX 5 supports IA64
16256 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16257 shlibpath_var
=LD_LIBRARY_PATH
16259 # With GCC up to 2.95.x, collect2 would create an import file
16260 # for dependence libraries. The import file would start with
16261 # the line `#! .'. This would cause the generated library to
16262 # depend on `.', always an invalid library. This was fixed in
16263 # development snapshots of GCC prior to 3.0.
16265 aix4 | aix4.
[01] | aix4.
[01].
*)
16266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16268 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16271 can_build_shared
=no
16275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16276 # soname into executable. Probably we can add versioning support to
16277 # collect2, so additional links can be useful in future.
16278 if test "$aix_use_runtimelinking" = yes; then
16279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16280 # instead of lib<name>.a to let people know that these are not
16281 # typical AIX shared libraries.
16282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 # We preserve .a as extension for shared libraries through AIX4.2
16285 # and later when we are not doing run time linking.
16286 library_names_spec
='${libname}${release}.a $libname.a'
16287 soname_spec
='${libname}${release}${shared_ext}$major'
16289 shlibpath_var
=LIBPATH
16294 library_names_spec
='$libname.ixlibrary $libname.a'
16295 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16296 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'
16300 library_names_spec
='${libname}${shared_ext}'
16301 dynamic_linker
="$host_os ld.so"
16302 shlibpath_var
=LIBRARY_PATH
16308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec
='${libname}${release}${shared_ext}$major'
16310 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16311 shlibpath_var
=LD_LIBRARY_PATH
16312 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16313 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16314 # the default ld.so.conf also contains /usr/contrib/lib and
16315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16316 # libtool to hard-code these into programs
16319 cygwin
* | mingw
* | pw32
*)
16320 version_type
=windows
16325 case $GCC,$host_os in
16326 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16327 library_names_spec
='$libname.dll.a'
16328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16329 postinstall_cmds
='base_file=`basename \${file}`~
16330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16331 dldir=$destdir/`dirname \$dlpath`~
16332 test -d \$dldir || mkdir -p \$dldir~
16333 $install_prog $dir/$dlname \$dldir/$dlname~
16334 chmod a+x \$dldir/$dlname'
16335 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16336 dlpath=$dir/\$dldll~
16338 shlibpath_overrides_runpath
=yes
16342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16343 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16344 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16347 # MinGW DLLs use traditional 'lib' prefix
16348 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16349 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16350 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16351 # It is most probably a Windows format PATH printed by
16352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16353 # path with ; separators, and with drive letters. We can handle the
16354 # drive letters (cygwin fileutils understands them), so leave them,
16355 # especially as we might pass files found there to a mingw objdump,
16356 # which wouldn't understand a cygwinified path. Ahh.
16357 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16363 # pw32 DLLs use 'pw' prefix rather than 'lib'
16364 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16370 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16373 dynamic_linker
='Win32 ld.exe'
16374 # FIXME: first we should search . and the directory the executable is in
16378 darwin
* | rhapsody
*)
16379 dynamic_linker
="$host_os dyld"
16380 version_type
=darwin
16383 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16384 soname_spec
='${libname}${release}${major}$shared_ext'
16385 shlibpath_overrides_runpath
=yes
16386 shlibpath_var
=DYLD_LIBRARY_PATH
16387 shrext_cmds
='.dylib'
16388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16389 if test "$GCC" = yes; then
16390 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"`
16392 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16394 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16402 soname_spec
='${libname}${release}${shared_ext}$major'
16403 shlibpath_var
=LD_LIBRARY_PATH
16414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415 soname_spec
='${libname}${release}${shared_ext}$major'
16416 shlibpath_var
=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath
=no
16418 hardcode_into_libs
=yes
16419 dynamic_linker
='GNU ld.so'
16422 freebsd
* | dragonfly
*)
16423 # DragonFly does not have aout. When/if they implement a new
16424 # versioning mechanism, adjust this.
16425 if test -x /usr
/bin
/objformat
; then
16426 objformat
=`/usr/bin/objformat`
16429 freebsd
[123]*) objformat
=aout
;;
16430 *) objformat
=elf
;;
16433 version_type
=freebsd-
$objformat
16434 case $version_type in
16436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16441 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16445 shlibpath_var
=LD_LIBRARY_PATH
16448 shlibpath_overrides_runpath
=yes
16450 freebsd3.
[01]* | freebsdelf3.
[01]*)
16451 shlibpath_overrides_runpath
=yes
16452 hardcode_into_libs
=yes
16454 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16455 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16456 shlibpath_overrides_runpath
=no
16457 hardcode_into_libs
=yes
16459 freebsd
*) # from 4.6 on
16460 shlibpath_overrides_runpath
=yes
16461 hardcode_into_libs
=yes
16470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16471 soname_spec
='${libname}${release}${shared_ext}$major'
16472 shlibpath_var
=LD_LIBRARY_PATH
16473 hardcode_into_libs
=yes
16476 hpux9
* | hpux10
* | hpux11
*)
16477 # Give a soname corresponding to the major version so that dld.sl refuses to
16478 # link against other versions.
16485 hardcode_into_libs
=yes
16486 dynamic_linker
="$host_os dld.so"
16487 shlibpath_var
=LD_LIBRARY_PATH
16488 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec
='${libname}${release}${shared_ext}$major'
16491 if test "X$HPUX_IA64_MODE" = X32
; then
16492 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16494 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16496 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16500 hardcode_into_libs
=yes
16501 dynamic_linker
="$host_os dld.sl"
16502 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16503 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 soname_spec
='${libname}${release}${shared_ext}$major'
16506 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16507 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16511 dynamic_linker
="$host_os dld.sl"
16512 shlibpath_var
=SHLIB_PATH
16513 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec
='${libname}${release}${shared_ext}$major'
16518 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16519 postinstall_cmds
='chmod 555 $lib'
16526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527 soname_spec
='${libname}${release}${shared_ext}$major'
16528 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16529 shlibpath_var
=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath
=no
16531 hardcode_into_libs
=yes
16534 irix5
* | irix6
* | nonstopux
*)
16536 nonstopux
*) version_type
=nonstopux
;;
16538 if test "$lt_cv_prog_gnu_ld" = yes; then
16546 soname_spec
='${libname}${release}${shared_ext}$major'
16547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16549 irix5
* | nonstopux
*)
16550 libsuff
= shlibsuff
=
16553 case $LD in # libtool.m4 will add one of these switches to LD
16554 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16555 libsuff
= shlibsuff
= libmagic
=32-bit;;
16556 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16557 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16558 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16559 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16560 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16564 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16565 shlibpath_overrides_runpath
=no
16566 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16567 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16568 hardcode_into_libs
=yes
16571 # No shared lib support for Linux oldld, aout, or coff.
16572 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16576 # This must be Linux ELF.
16581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582 soname_spec
='${libname}${release}${shared_ext}$major'
16583 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16584 shlibpath_var
=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath
=no
16586 # This implies no fast_install, which is unacceptable.
16587 # Some rework will be needed to allow for fast_install
16588 # before this can be enabled.
16589 hardcode_into_libs
=yes
16591 # Append ld.so.conf contents to the search path
16592 if test -f /etc
/ld.so.conf
; then
16593 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' ' '`
16594 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16597 # We used to test for /lib/ld.so.1 and disable shared libraries on
16598 # powerpc, because MkLinux only supported shared libraries with the
16599 # GNU dynamic linker. Since this was broken with cross compilers,
16600 # most powerpc-linux boxes support dynamic linking these days and
16601 # people can always --disable-shared, the test was removed, and we
16602 # assume the GNU/Linux dynamic linker is in use.
16603 dynamic_linker
='GNU/Linux ld.so'
16610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16611 soname_spec
='${libname}${release}${shared_ext}$major'
16612 shlibpath_var
=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath
=no
16614 hardcode_into_libs
=yes
16615 dynamic_linker
='GNU ld.so'
16622 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16624 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16625 dynamic_linker
='NetBSD (a.out) ld.so'
16627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16628 soname_spec
='${libname}${release}${shared_ext}$major'
16629 dynamic_linker
='NetBSD ld.elf_so'
16631 shlibpath_var
=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath
=yes
16633 hardcode_into_libs
=yes
16638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639 shlibpath_var
=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath
=yes
16647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec
='${libname}${release}${shared_ext}$major'
16649 shlibpath_var
=LD_LIBRARY_PATH
16650 shlibpath_overrides_runpath
=yes
16655 sys_lib_dlsearch_path_spec
="/usr/lib"
16657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16659 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16660 *) need_version
=no
;;
16662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16663 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16664 shlibpath_var
=LD_LIBRARY_PATH
16665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16667 openbsd2.
[89] | openbsd2.
[89].
*)
16668 shlibpath_overrides_runpath
=no
16671 shlibpath_overrides_runpath
=yes
16675 shlibpath_overrides_runpath
=yes
16680 libname_spec
='$name'
16683 library_names_spec
='$libname${shared_ext} $libname.a'
16684 dynamic_linker
='OS/2 ld.exe'
16685 shlibpath_var
=LIBPATH
16688 osf3
* | osf4
* | osf5
*)
16692 soname_spec
='${libname}${release}${shared_ext}$major'
16693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694 shlibpath_var
=LD_LIBRARY_PATH
16695 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16696 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704 soname_spec
='${libname}${release}${shared_ext}$major'
16705 shlibpath_var
=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath
=yes
16707 hardcode_into_libs
=yes
16708 # ldd complains unless libraries are executable
16709 postinstall_cmds
='chmod +x $lib'
16714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16715 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16716 shlibpath_var
=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath
=yes
16718 if test "$with_gnu_ld" = yes; then
16726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec
='${libname}${release}${shared_ext}$major'
16728 shlibpath_var
=LD_LIBRARY_PATH
16729 case $host_vendor in
16731 shlibpath_overrides_runpath
=no
16733 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16734 runpath_var
=LD_RUN_PATH
16742 shlibpath_overrides_runpath
=no
16743 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16749 if test -d /usr
/nec
;then
16751 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16752 soname_spec
='$libname${shared_ext}.$major'
16753 shlibpath_var
=LD_LIBRARY_PATH
16757 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16758 version_type
=freebsd-elf
16761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16762 soname_spec
='${libname}${release}${shared_ext}$major'
16763 shlibpath_var
=LD_LIBRARY_PATH
16764 hardcode_into_libs
=yes
16765 if test "$with_gnu_ld" = yes; then
16766 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16767 shlibpath_overrides_runpath
=no
16769 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16770 shlibpath_overrides_runpath
=yes
16773 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16777 sys_lib_dlsearch_path_spec
='/usr/lib'
16782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec
='${libname}${release}${shared_ext}$major'
16784 shlibpath_var
=LD_LIBRARY_PATH
16791 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16792 echo "${ECHO_T}$dynamic_linker" >&6; }
16793 test "$dynamic_linker" = no
&& can_build_shared
=no
16795 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16796 if test "$GCC" = yes; then
16797 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16800 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16803 if test -n "$hardcode_libdir_flag_spec" || \
16804 test -n "$runpath_var" || \
16805 test "X$hardcode_automatic" = "Xyes" ; then
16807 # We can hardcode non-existant directories.
16808 if test "$hardcode_direct" != no
&&
16809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16810 # have to relink, otherwise we might link with an installed library
16811 # when we should be linking with a yet-to-be-installed one
16812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16813 test "$hardcode_minus_L" != no
; then
16814 # Linking always hardcodes the temporary library directory.
16815 hardcode_action
=relink
16817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16818 hardcode_action
=immediate
16821 # We cannot hardcode anything, or else we can only hardcode existing
16823 hardcode_action
=unsupported
16825 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16826 echo "${ECHO_T}$hardcode_action" >&6; }
16828 if test "$hardcode_action" = relink
; then
16829 # Fast installation is not supported
16830 enable_fast_install
=no
16831 elif test "$shlibpath_overrides_runpath" = yes ||
16832 test "$enable_shared" = no
; then
16833 # Fast installation is not necessary
16834 enable_fast_install
=needless
16839 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16840 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16841 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16842 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16843 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16844 { echo "$as_me:$LINENO: result: yes" >&5
16845 echo "${ECHO_T}yes" >&6; }
16847 # FIXME - insert some real tests, host_os isn't really good enough
16850 if test -n "$STRIP" ; then
16851 striplib
="$STRIP -x"
16852 { echo "$as_me:$LINENO: result: yes" >&5
16853 echo "${ECHO_T}yes" >&6; }
16855 { echo "$as_me:$LINENO: result: no" >&5
16856 echo "${ECHO_T}no" >&6; }
16860 { echo "$as_me:$LINENO: result: no" >&5
16861 echo "${ECHO_T}no" >&6; }
16866 if test "x$enable_dlopen" != xyes
; then
16867 enable_dlopen
=unknown
16868 enable_dlopen_self
=unknown
16869 enable_dlopen_self_static
=unknown
16876 lt_cv_dlopen
="load_add_on"
16878 lt_cv_dlopen_self
=yes
16882 lt_cv_dlopen
="LoadLibrary"
16887 lt_cv_dlopen
="dlopen"
16892 # if libdl is installed we need to link against it
16893 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 ac_check_lib_save_LIBS
=$LIBS
16900 cat >conftest.
$ac_ext <<_ACEOF
16903 cat confdefs.h
>>conftest.
$ac_ext
16904 cat >>conftest.
$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16922 rm -f conftest.
$ac_objext conftest
$ac_exeext
16923 if { (ac_try
="$ac_link"
16924 case "(($ac_try" in
16925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16939 *) ac_try_echo
=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try
='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_lib_dl_dlopen=yes
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 ac_cv_lib_dl_dlopen=no
16964 rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16966 LIBS=$ac_check_lib_save_LIBS
16968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16970 if test $ac_cv_lib_dl_dlopen = yes; then
16971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16974 lt_cv_dlopen="dyld"
16976 lt_cv_dlopen_self=yes
16983 { echo "$as_me:$LINENO: checking for shl_load" >&5
16984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16985 if test "${ac_cv_func_shl_load+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996 #define shl_load innocuous_shl_load
16998 /* System header to define __stub macros and hopefully few prototypes,
16999 which can conflict with char shl_load (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
17004 # include <limits.h>
17006 # include <assert.h>
17011 /* Override any GCC internal prototype to avoid an error.
17012 Use char because int might match the return type of a GCC
17013 builtin and then its argument prototype would still apply. */
17018 /* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
17021 #if defined __stub_shl_load || defined __stub___shl_load
17028 return shl_load ();
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17037 *) ac_try_echo
=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17042 grep -v '^ *+' conftest.er1
>conftest.err
17044 cat conftest.err
>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048 { (case "(($ac_try" in
17049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17060 *) ac_try_echo
=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_func_shl_load
=yes
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.
$ac_ext >&5
17072 ac_cv_func_shl_load
=no
17075 rm -f core conftest.err conftest.
$ac_objext \
17076 conftest
$ac_exeext conftest.
$ac_ext
17078 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17079 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17080 if test $ac_cv_func_shl_load = yes; then
17081 lt_cv_dlopen
="shl_load"
17083 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17084 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17085 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 ac_check_lib_save_LIBS
=$LIBS
17090 cat >conftest.
$ac_ext <<_ACEOF
17093 cat confdefs.h
>>conftest.
$ac_ext
17094 cat >>conftest.
$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17097 /* Override any GCC internal prototype to avoid an error.
17098 Use char because int might match the return type of a GCC
17099 builtin and then its argument prototype would still apply. */
17107 return shl_load ();
17112 rm -f conftest.
$ac_objext conftest
$ac_exeext
17113 if { (ac_try
="$ac_link"
17114 case "(($ac_try" in
17115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_link") 2>conftest.er1
17121 grep -v '^ *+' conftest.er1 >conftest.err
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17127 { (case "(($ac_try" in
17128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17129 *) ac_try_echo
=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_try") 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try
='test -s conftest$ac_exeext'
17137 { (case "(($ac_try" in
17138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_try") 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_cv_lib_dld_shl_load=yes
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 ac_cv_lib_dld_shl_load=no
17154 rm -f core conftest.err conftest.$ac_objext \
17155 conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17160 if test $ac_cv_lib_dld_shl_load = yes; then
17161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17163 { echo "$as_me:$LINENO: checking for dlopen" >&5
17164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17165 if test "${ac_cv_func_dlopen+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17176 #define dlopen innocuous_dlopen
17178 /* System header to define __stub macros and hopefully few prototypes,
17179 which can conflict with char dlopen (); below.
17180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181 <limits.h> exists even on freestanding compilers. */
17184 # include <limits.h>
17186 # include <assert.h>
17191 /* Override any GCC internal prototype to avoid an error.
17192 Use char because int might match the return type of a GCC
17193 builtin and then its argument prototype would still apply. */
17198 /* The GNU C library defines this for functions which it implements
17199 to always fail with ENOSYS. Some functions are actually named
17200 something starting with __ and the normal name is an alias. */
17201 #if defined __stub_dlopen || defined __stub___dlopen
17213 rm -f conftest.$ac_objext conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17217 *) ac_try_echo
=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_link") 2>conftest.er1
17222 grep -v '^ *+' conftest.er1
>conftest.err
17224 cat conftest.err
>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
17227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17228 { (case "(($ac_try" in
17229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; } &&
17237 { ac_try='test -s conftest$ac_exeext'
17238 { (case "(($ac_try" in
17239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17240 *) ac_try_echo
=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_try") 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 ac_cv_func_dlopen
=yes
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.
$ac_ext >&5
17252 ac_cv_func_dlopen
=no
17255 rm -f core conftest.err conftest.
$ac_objext \
17256 conftest
$ac_exeext conftest.
$ac_ext
17258 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17259 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17260 if test $ac_cv_func_dlopen = yes; then
17261 lt_cv_dlopen
="dlopen"
17263 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 ac_check_lib_save_LIBS
=$LIBS
17270 cat >conftest.
$ac_ext <<_ACEOF
17273 cat confdefs.h
>>conftest.
$ac_ext
17274 cat >>conftest.
$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 /* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17292 rm -f conftest.
$ac_objext conftest
$ac_exeext
17293 if { (ac_try
="$ac_link"
17294 case "(($ac_try" in
17295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17309 *) ac_try_echo
=$ac_try;;
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try
='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_lib_dl_dlopen=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_lib_dl_dlopen=no
17334 rm -f core conftest.err conftest.$ac_objext \
17335 conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17338 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17340 if test $ac_cv_lib_dl_dlopen = yes; then
17341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17343 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17344 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lsvld $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17376 *) ac_try_echo
=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17381 grep -v '^ *+' conftest.er1
>conftest.err
17383 cat conftest.err
>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17399 *) ac_try_echo
=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_cv_lib_svld_dlopen
=yes
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.
$ac_ext >&5
17411 ac_cv_lib_svld_dlopen
=no
17414 rm -f core conftest.err conftest.
$ac_objext \
17415 conftest
$ac_exeext conftest.
$ac_ext
17416 LIBS
=$ac_check_lib_save_LIBS
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17419 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17420 if test $ac_cv_lib_svld_dlopen = yes; then
17421 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17423 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17424 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 ac_check_lib_save_LIBS
=$LIBS
17430 cat >conftest.
$ac_ext <<_ACEOF
17433 cat confdefs.h
>>conftest.
$ac_ext
17434 cat >>conftest.
$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17437 /* Override any GCC internal prototype to avoid an error.
17438 Use char because int might match the return type of a GCC
17439 builtin and then its argument prototype would still apply. */
17447 return dld_link ();
17452 rm -f conftest.
$ac_objext conftest
$ac_exeext
17453 if { (ac_try
="$ac_link"
17454 case "(($ac_try" in
17455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_link") 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17469 *) ac_try_echo
=$ac_try;;
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try
='test -s conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 ac_cv_lib_dld_dld_link=yes
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 ac_cv_lib_dld_dld_link=no
17494 rm -f core conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17496 LIBS=$ac_check_lib_save_LIBS
17498 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17499 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17500 if test $ac_cv_lib_dld_dld_link = yes; then
17501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17522 if test "x$lt_cv_dlopen" != xno; then
17528 case $lt_cv_dlopen in
17530 save_CPPFLAGS="$CPPFLAGS"
17531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17533 save_LDFLAGS="$LDFLAGS"
17534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17537 LIBS="$lt_cv_dlopen_libs $LIBS"
17539 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17540 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17541 if test "${lt_cv_dlopen_self+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 if test "$cross_compiling" = yes; then :
17545 lt_cv_dlopen_self=cross
17547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17548 lt_status=$lt_dlunknown
17549 cat > conftest.$ac_ext <<EOF
17550 #line 17550 "configure"
17551 #include "confdefs.h"
17560 # define LT_DLGLOBAL RTLD_GLOBAL
17563 # define LT_DLGLOBAL DL_GLOBAL
17565 # define LT_DLGLOBAL 0
17569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17570 find out it does not work in some platform. */
17571 #ifndef LT_DLLAZY_OR_NOW
17573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17576 # define LT_DLLAZY_OR_NOW DL_LAZY
17579 # define LT_DLLAZY_OR_NOW RTLD_NOW
17582 # define LT_DLLAZY_OR_NOW DL_NOW
17584 # define LT_DLLAZY_OR_NOW 0
17592 extern "C" void exit (int);
17595 void fnord() { int i=42;}
17598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17599 int status = $lt_dlunknown;
17603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17605 /* dlclose (self); */
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17618 (./conftest; exit; ) >&5 2>/dev/null
17620 case x$lt_status in
17621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17623 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17626 # compilation failed
17627 lt_cv_dlopen_self=no
17634 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17635 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17637 if test "x$lt_cv_dlopen_self" = xyes; then
17638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17639 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17640 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17641 if test "${lt_cv_dlopen_self_static+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 if test "$cross_compiling" = yes; then :
17645 lt_cv_dlopen_self_static=cross
17647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17648 lt_status=$lt_dlunknown
17649 cat > conftest.$ac_ext <<EOF
17650 #line 17650 "configure"
17651 #include "confdefs.h"
17660 # define LT_DLGLOBAL RTLD_GLOBAL
17663 # define LT_DLGLOBAL DL_GLOBAL
17665 # define LT_DLGLOBAL 0
17669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17670 find out it does not work in some platform. */
17671 #ifndef LT_DLLAZY_OR_NOW
17673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17676 # define LT_DLLAZY_OR_NOW DL_LAZY
17679 # define LT_DLLAZY_OR_NOW RTLD_NOW
17682 # define LT_DLLAZY_OR_NOW DL_NOW
17684 # define LT_DLLAZY_OR_NOW 0
17692 extern "C" void exit (int);
17695 void fnord() { int i=42;}
17698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17699 int status = $lt_dlunknown;
17703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17705 /* dlclose (self); */
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714 (eval $ac_link) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17718 (./conftest; exit; ) >&5 2>/dev/null
17720 case x$lt_status in
17721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17726 # compilation failed
17727 lt_cv_dlopen_self_static=no
17734 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17738 CPPFLAGS="$save_CPPFLAGS"
17739 LDFLAGS="$save_LDFLAGS"
17744 case $lt_cv_dlopen_self in
17745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17746 *) enable_dlopen_self=unknown ;;
17749 case $lt_cv_dlopen_self_static in
17750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17751 *) enable_dlopen_self_static=unknown ;;
17756 # Report which library types will actually be built
17757 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17758 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17759 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17760 echo "${ECHO_T}$can_build_shared" >&6; }
17762 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17763 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17764 test "$can_build_shared" = "no" && enable_shared=no
17766 # On AIX, shared libraries and static libraries use the same namespace, and
17767 # are all built from PIC.
17770 test "$enable_shared" = yes && enable_static=no
17771 if test -n "$RANLIB"; then
17772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17773 postinstall_cmds='$RANLIB $lib'
17778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17779 test "$enable_shared" = yes && enable_static=no
17783 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17784 echo "${ECHO_T}$enable_shared" >&6; }
17786 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17787 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17788 # Make sure either enable_shared or enable_static is yes.
17789 test "$enable_shared" = yes || enable_static=yes
17790 { echo "$as_me:$LINENO: result: $enable_static" >&5
17791 echo "${ECHO_T}$enable_static" >&6; }
17793 # The else clause should only fire when bootstrapping the
17794 # libtool distribution, otherwise you forgot to ship ltmain.sh
17795 # with your package, and you will get complaints that there are
17796 # no rules to generate ltmain.sh.
17797 if test -f "$ltmain"; then
17798 # See if we are running on zsh, and set the options which allow our commands through
17799 # without removal of \ escapes.
17800 if test -n "${ZSH_VERSION+set}" ; then
17801 setopt NO_GLOB_SUBST
17803 # Now quote all the things that may contain metacharacters while being
17804 # careful not to overquote the AC_SUBSTed values. We take copies of the
17805 # variables and quote the copies for generation of the libtool script.
17806 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17810 deplibs_check_method reload_flag reload_cmds need_locks \
17811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17812 lt_cv_sys_global_symbol_to_c_name_address \
17813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17814 old_postinstall_cmds old_postuninstall_cmds \
17818 lt_prog_compiler_wl \
17819 lt_prog_compiler_pic \
17820 lt_prog_compiler_static \
17821 lt_prog_compiler_no_builtin_flag \
17822 export_dynamic_flag_spec \
17823 thread_safe_flag_spec \
17824 whole_archive_flag_spec \
17825 enable_shared_with_static_runtimes \
17827 old_archive_from_new_cmds \
17832 compiler_lib_search_path \
17834 archive_expsym_cmds \
17836 postuninstall_cmds \
17837 old_archive_from_expsyms_cmds \
17838 allow_undefined_flag \
17839 no_undefined_flag \
17840 export_symbols_cmds \
17841 hardcode_libdir_flag_spec \
17842 hardcode_libdir_flag_spec_ld \
17843 hardcode_libdir_separator \
17844 hardcode_automatic \
17846 module_expsym_cmds \
17847 lt_cv_prog_compiler_c_o \
17849 include_expsyms; do
17852 old_archive_cmds | \
17853 old_archive_from_new_cmds | \
17855 archive_expsym_cmds | \
17857 module_expsym_cmds | \
17858 old_archive_from_expsyms_cmds | \
17859 export_symbols_cmds | \
17860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17861 postinstall_cmds | postuninstall_cmds | \
17862 old_postinstall_cmds | old_postuninstall_cmds | \
17863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17864 # Double-quote double-evaled strings.
17865 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17868 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17874 *'\$0 --fallback-echo"')
17875 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17879 cfgfile="${ofile}T"
17880 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17882 { echo "$as_me:$LINENO: creating $ofile" >&5
17883 echo "$as_me: creating $ofile" >&6;}
17885 cat <<__EOF__ >> "$cfgfile"
17888 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17889 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17892 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17893 # Free Software Foundation, Inc.
17895 # This file is part of GNU Libtool:
17896 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17898 # This program is free software; you can redistribute it and/or modify
17899 # it under the terms of the GNU General Public License as published by
17900 # the Free Software Foundation; either version 2 of the License, or
17901 # (at your option) any later version.
17903 # This program is distributed in the hope that it will be useful, but
17904 # WITHOUT ANY WARRANTY; without even the implied warranty of
17905 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17906 # General Public License for more details.
17908 # You should have received a copy of the GNU General Public License
17909 # along with this program; if not, write to the Free Software
17910 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17912 # As a special exception to the GNU General Public License, if you
17913 # distribute this file as part of a program that contains a
17914 # configuration script generated by Autoconf, you may include it under
17915 # the same distribution terms that you use for the rest of that program.
17917 # A sed program that does not truncate output.
17920 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17921 Xsed="$SED -e 1s/^X//"
17923 # The HP-UX ksh and POSIX shell print the target directory to stdout
17924 # if CDPATH is set.
17925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17927 # The names of the tagged configurations supported by this script.
17930 # ### BEGIN LIBTOOL CONFIG
17932 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17934 # Shell to use when invoking shell scripts.
17937 # Whether or not to build shared libraries.
17938 build_libtool_libs=$enable_shared
17940 # Whether or not to build static libraries.
17941 build_old_libs=$enable_static
17943 # Whether or not to add -lc for building shared libraries.
17944 build_libtool_need_lc=$archive_cmds_need_lc
17946 # Whether or not to disallow shared libs when runtime libs are static
17947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17949 # Whether or not to optimize for fast installation.
17950 fast_install=$enable_fast_install
17953 host_alias=$host_alias
17957 # The build system.
17958 build_alias=$build_alias
17962 # An echo program that does not interpret backslashes.
17967 AR_FLAGS=$lt_AR_FLAGS
17972 # LTCC compiler flags.
17973 LTCFLAGS=$lt_LTCFLAGS
17975 # A language-specific compiler.
17978 # Is the compiler the GNU C compiler?
17984 # The linker used to build libraries.
17987 # Whether we need hard or soft links.
17990 # A BSD-compatible nm program.
17993 # A symbol stripping program
17996 # Used to examine libraries when file_magic_cmd begins "file"
17997 MAGIC_CMD=$MAGIC_CMD
17999 # Used on cygwin: DLL creation program.
18002 # Used on cygwin: object dumper.
18005 # Used on cygwin: assembler.
18008 # The name of the directory that contains temporary libtool files.
18011 # How to create reloadable object files.
18012 reload_flag=$lt_reload_flag
18013 reload_cmds=$lt_reload_cmds
18015 # How to pass a linker flag through the compiler.
18016 wl=$lt_lt_prog_compiler_wl
18018 # Object file suffix (normally "o").
18019 objext="$ac_objext"
18021 # Old archive suffix (normally "a").
18024 # Shared library suffix (normally ".so").
18025 shrext_cmds='$shrext_cmds'
18027 # Executable file suffix (normally "").
18030 # Additional compiler flags for building library objects.
18031 pic_flag=$lt_lt_prog_compiler_pic
18034 # What is the maximum length of a command?
18035 max_cmd_len=$lt_cv_sys_max_cmd_len
18037 # Does compiler simultaneously support -c and -o options?
18038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18040 # Must we lock files when doing compilation?
18041 need_locks=$lt_need_locks
18043 # Do we need the lib prefix for modules?
18044 need_lib_prefix=$need_lib_prefix
18046 # Do we need a version for libraries?
18047 need_version=$need_version
18049 # Whether dlopen is supported.
18050 dlopen_support=$enable_dlopen
18052 # Whether dlopen of programs is supported.
18053 dlopen_self=$enable_dlopen_self
18055 # Whether dlopen of statically linked programs is supported.
18056 dlopen_self_static=$enable_dlopen_self_static
18058 # Compiler flag to prevent dynamic linking.
18059 link_static_flag=$lt_lt_prog_compiler_static
18061 # Compiler flag to turn off builtin functions.
18062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18064 # Compiler flag to allow reflexive dlopens.
18065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18067 # Compiler flag to generate shared objects directly from archives.
18068 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18070 # Compiler flag to generate thread-safe objects.
18071 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18073 # Library versioning type.
18074 version_type=$version_type
18076 # Format of library name prefix.
18077 libname_spec=$lt_libname_spec
18079 # List of archive names. First name is the real one, the rest are links.
18080 # The last name is the one that the linker finds with -lNAME.
18081 library_names_spec=$lt_library_names_spec
18083 # The coded name of the library, if different from the real name.
18084 soname_spec=$lt_soname_spec
18086 # Commands used to build and install an old-style archive.
18088 old_archive_cmds=$lt_old_archive_cmds
18089 old_postinstall_cmds=$lt_old_postinstall_cmds
18090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18092 # Create an old-style archive from a shared archive.
18093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18095 # Create a temporary old-style archive to link instead of a shared archive.
18096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18098 # Commands used to build and install a shared archive.
18099 archive_cmds=$lt_archive_cmds
18100 archive_expsym_cmds=$lt_archive_expsym_cmds
18101 postinstall_cmds=$lt_postinstall_cmds
18102 postuninstall_cmds=$lt_postuninstall_cmds
18104 # Commands used to build a loadable module (assumed same as above if empty)
18105 module_cmds=$lt_module_cmds
18106 module_expsym_cmds=$lt_module_expsym_cmds
18108 # Commands to strip libraries.
18109 old_striplib=$lt_old_striplib
18110 striplib=$lt_striplib
18112 # Dependencies to place before the objects being linked to create a
18114 predep_objects=$lt_predep_objects
18116 # Dependencies to place after the objects being linked to create a
18118 postdep_objects=$lt_postdep_objects
18120 # Dependencies to place before the objects being linked to create a
18122 predeps=$lt_predeps
18124 # Dependencies to place after the objects being linked to create a
18126 postdeps=$lt_postdeps
18128 # The library search path used internally by the compiler when linking
18129 # a shared library.
18130 compiler_lib_search_path=$lt_compiler_lib_search_path
18132 # Method to check whether dependent libraries are shared objects.
18133 deplibs_check_method=$lt_deplibs_check_method
18135 # Command to use when deplibs_check_method == file_magic.
18136 file_magic_cmd=$lt_file_magic_cmd
18138 # Flag that allows shared libraries with undefined symbols to be built.
18139 allow_undefined_flag=$lt_allow_undefined_flag
18141 # Flag that forces no undefined symbols.
18142 no_undefined_flag=$lt_no_undefined_flag
18144 # Commands used to finish a libtool library installation in a directory.
18145 finish_cmds=$lt_finish_cmds
18147 # Same as above, but a single script fragment to be evaled but not shown.
18148 finish_eval=$lt_finish_eval
18150 # Take the output of nm and produce a listing of raw symbols and C names.
18151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18153 # Transform the output of nm in a proper C declaration
18154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18156 # Transform the output of nm in a C name address pair
18157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18159 # This is the shared library runtime path variable.
18160 runpath_var=$runpath_var
18162 # This is the shared library path variable.
18163 shlibpath_var=$shlibpath_var
18165 # Is shlibpath searched before the hard-coded library search path?
18166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18168 # How to hardcode a shared library path into an executable.
18169 hardcode_action=$hardcode_action
18171 # Whether we should hardcode library paths into libraries.
18172 hardcode_into_libs=$hardcode_into_libs
18174 # Flag to hardcode \$libdir into a binary during linking.
18175 # This must work even if \$libdir does not exist.
18176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18178 # If ld is used when linking, flag to hardcode \$libdir into
18179 # a binary during linking. This must work even if \$libdir does
18181 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18183 # Whether we need a single -rpath flag with a separated argument.
18184 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18186 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18187 # resulting binary.
18188 hardcode_direct=$hardcode_direct
18190 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18191 # resulting binary.
18192 hardcode_minus_L=$hardcode_minus_L
18194 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18195 # the resulting binary.
18196 hardcode_shlibpath_var=$hardcode_shlibpath_var
18198 # Set to yes if building a shared library automatically hardcodes DIR into the library
18199 # and all subsequent libraries and executables linked against it.
18200 hardcode_automatic=$hardcode_automatic
18202 # Variables whose values should be saved in libtool wrapper scripts and
18203 # restored at relink time.
18204 variables_saved_for_relink="$variables_saved_for_relink"
18206 # Whether libtool must link a program against all its dependency libraries.
18207 link_all_deplibs=$link_all_deplibs
18209 # Compile-time system search path for libraries
18210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18212 # Run-time system search path for libraries
18213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18215 # Fix the shell variable \$srcfile for the compiler.
18216 fix_srcfile_path="$fix_srcfile_path"
18218 # Set to yes if exported symbols are required.
18219 always_export_symbols=$always_export_symbols
18221 # The commands to list exported symbols.
18222 export_symbols_cmds=$lt_export_symbols_cmds
18224 # The commands to extract the exported symbol list from a shared archive.
18225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18227 # Symbols that should not be listed in the preloaded symbols.
18228 exclude_expsyms=$lt_exclude_expsyms
18230 # Symbols that must always be exported.
18231 include_expsyms=$lt_include_expsyms
18233 # ### END LIBTOOL CONFIG
18240 cat <<\EOF >> "$cfgfile"
18242 # AIX sometimes has problems with the GCC collect2 program. For some
18243 # reason, if we set the COLLECT_NAMES environment variable, the problems
18244 # vanish in a puff of smoke.
18245 if test "X${COLLECT_NAMES+set}" != Xset; then
18247 export COLLECT_NAMES
18253 # We use sed instead of cat because bash on DJGPP gets confused if
18254 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18255 # text mode, it properly converts lines to CR/LF. This bash problem
18256 # is reportedly fixed, but why not run on old versions too?
18257 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18259 mv -f "$cfgfile" "$ofile" || \
18260 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18264 # If there is no Makefile yet, we rely on a make rule to execute
18265 # `config.status
--recheck' to rerun these tests and create the
18266 # libtool script then.
18267 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18268 if test -f "$ltmain_in"; then
18269 test -f Makefile && make "$ltmain"
18275 ac_cpp='$CPP $CPPFLAGS'
18276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18277 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18283 # Check whether --with-tags was given.
18284 if test "${with_tags+set}" = set; then
18285 withval=$with_tags; tagnames="$withval"
18289 if test -f "$ltmain" && test -n "$tagnames"; then
18290 if test ! -f "${ofile}"; then
18291 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18292 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18295 if test -z "$LTCC"; then
18296 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18297 if test -z "$LTCC"; then
18298 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18299 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18301 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18302 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18305 if test -z "$LTCFLAGS"; then
18306 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18309 # Extract list of available tagged configurations in $ofile.
18310 # Note that this assumes the entire list is on one line.
18311 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18314 for tagname in $tagnames; do
18316 # Check whether tagname contains only valid characters
18317 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18319 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18320 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18321 { (exit 1); exit 1; }; }
18325 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18327 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18328 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18329 { (exit 1); exit 1; }; }
18332 # Update the list of available tags.
18333 if test -n "$tagname"; then
18334 echo appending configuration tag \"$tagname\" to $ofile
18338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18339 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18340 (test "X$CXX" != "Xg++"))) ; then
18342 ac_cpp='$CXXCPP $CPPFLAGS'
18343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18350 archive_cmds_need_lc_CXX=no
18351 allow_undefined_flag_CXX=
18352 always_export_symbols_CXX=no
18353 archive_expsym_cmds_CXX=
18354 export_dynamic_flag_spec_CXX=
18355 hardcode_direct_CXX=no
18356 hardcode_libdir_flag_spec_CXX=
18357 hardcode_libdir_flag_spec_ld_CXX=
18358 hardcode_libdir_separator_CXX=
18359 hardcode_minus_L_CXX=no
18360 hardcode_shlibpath_var_CXX=unsupported
18361 hardcode_automatic_CXX=no
18363 module_expsym_cmds_CXX=
18364 link_all_deplibs_CXX=unknown
18365 old_archive_cmds_CXX=$old_archive_cmds
18366 no_undefined_flag_CXX=
18367 whole_archive_flag_spec_CXX=
18368 enable_shared_with_static_runtimes_CXX=no
18370 # Dependencies to place before and after the object being linked:
18371 predep_objects_CXX=
18372 postdep_objects_CXX=
18375 compiler_lib_search_path_CXX=
18377 # Source file extension for C++ test sources.
18380 # Object file extension for compiled C++ test sources.
18384 # Code to be used in simple compile tests
18385 lt_simple_compile_test_code="int some_variable = 0;\n"
18387 # Code to be used in simple link tests
18388 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18390 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18392 # If no C compiler was specified, use CC.
18395 # If no C compiler flags were specified, use CFLAGS.
18396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18398 # Allow CC to be a program name with arguments.
18402 # save warnings/boilerplate of simple test code
18403 ac_outfile=conftest.$ac_objext
18404 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18406 _lt_compiler_boilerplate=`cat conftest.err
`
18409 ac_outfile=conftest.$ac_objext
18410 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18412 _lt_linker_boilerplate=`cat conftest.err
`
18416 # Allow CC to be a program name with arguments.
18421 lt_save_with_gnu_ld=$with_gnu_ld
18422 lt_save_path_LD=$lt_cv_path_LD
18423 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18424 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18426 $as_unset lt_cv_prog_gnu_ld
18428 if test -n "${lt_cv_path_LDCXX+set}"; then
18429 lt_cv_path_LD=$lt_cv_path_LDCXX
18431 $as_unset lt_cv_path_LD
18433 test -z "${LDCXX+set}" || LD=$LDCXX
18437 for cc_temp in $compiler""; do
18439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18445 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18448 # We don't want -fno-exception wen compiling C++ code, so set the
18449 # no_builtin_flag separately
18450 if test "$GXX" = yes; then
18451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18453 lt_prog_compiler_no_builtin_flag_CXX=
18456 if test "$GXX" = yes; then
18457 # Set up default GNU C++ configuration
18460 # Check whether --with-gnu-ld was given.
18461 if test "${with_gnu_ld+set}" = set; then
18462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18468 if test "$GCC" = yes; then
18469 # Check if gcc -print-prog-name=ld gives a path.
18470 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18471 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18474 # gcc leaves a trailing carriage return which upsets mingw
18475 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18477 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18480 # Accept absolute paths.
18482 re_direlt='/[^/][^/]*/\.\./'
18483 # Canonicalize the pathname of ld
18484 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18486 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18488 test -z "$LD" && LD="$ac_prog"
18491 # If it fails, then pretend we aren't using GCC.
18495 # If it is relative, then search for the first ld in PATH.
18496 with_gnu_ld=unknown
18499 elif test "$with_gnu_ld" = yes; then
18500 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18503 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18506 if test "${lt_cv_path_LD+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 if test -z "$LD"; then
18510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18511 for ac_dir in $PATH; do
18513 test -z "$ac_dir" && ac_dir=.
18514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18515 lt_cv_path_LD="$ac_dir/$ac_prog"
18516 # Check to see if the program is GNU ld. I'd rather use --version,
18517 # but apparently some variants of GNU ld only accept -v.
18518 # Break only if it was the GNU/non-GNU ld that we prefer.
18519 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18520 *GNU* | *'with BFD'*)
18521 test "$with_gnu_ld" != no && break
18524 test "$with_gnu_ld" != yes && break
18531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18535 LD="$lt_cv_path_LD"
18536 if test -n "$LD"; then
18537 { echo "$as_me:$LINENO: result: $LD" >&5
18538 echo "${ECHO_T}$LD" >&6; }
18540 { echo "$as_me:$LINENO: result: no" >&5
18541 echo "${ECHO_T}no" >&6; }
18543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18545 { (exit 1); exit 1; }; }
18546 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18552 case `$LD -v 2>&1 </dev
/null
` in
18553 *GNU* | *'with BFD'*)
18554 lt_cv_prog_gnu_ld=yes
18557 lt_cv_prog_gnu_ld=no
18561 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18562 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18563 with_gnu_ld=$lt_cv_prog_gnu_ld
18567 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18568 # archiving commands below assume that GNU ld is being used.
18569 if test "$with_gnu_ld" = yes; then
18570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18571 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'
18573 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18576 # If archive_cmds runs LD, not CC, wlarc should be empty
18577 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18578 # investigate it a little bit more. (MM)
18581 # ancient GNU ld didn't support --whole-archive et. al.
18582 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18583 grep 'no-whole-archive' > /dev/null; then
18584 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18586 whole_archive_flag_spec_CXX=
18592 # A generic and very simple default shared library creation
18593 # command for GNU C++ for the case where it uses the native
18594 # linker, instead of GNU ld. If possible, this setting should
18595 # overridden to take advantage of the native linker features on
18596 # the platform it is being used on.
18597 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18600 # Commands to make compiler produce verbose output that lists
18601 # what "hidden" libraries, object files and flags are used when
18602 # linking a shared library.
18603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18611 # PORTME: fill in a description of your system's C++ link characteristics
18612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18617 # FIXME: insert proper C++ library support
18621 if test "$host_cpu" = ia64; then
18622 # On IA64, the linker does run time linking by default, so we don't
18623 # have to do anything special.
18624 aix_use_runtimelinking=no
18625 exp_sym_flag='-Bexport'
18628 aix_use_runtimelinking=no
18630 # Test if we are trying to use run time linking or normal
18631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18632 # need to do runtime linking.
18633 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18634 for ld_flag in $LDFLAGS; do
18637 aix_use_runtimelinking=yes
18645 exp_sym_flag='-bexport'
18646 no_entry_flag='-bnoentry'
18649 # When large executables or shared objects are built, AIX ld can
18650 # have problems creating the table of contents. If linking a library
18651 # or program results in "error TOC overflow" add -mminimal-toc to
18652 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18653 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18655 archive_cmds_CXX=''
18656 hardcode_direct_CXX=yes
18657 hardcode_libdir_separator_CXX=':'
18658 link_all_deplibs_CXX=yes
18660 if test "$GXX" = yes; then
18661 case $host_os in aix4.[012]|aix4.[012].*)
18662 # We only want to do this on AIX 4.2 and lower, the check
18663 # below for broken collect2 doesn't work under 4.3+
18664 collect2name=`${CC} -print-prog-name=collect2
`
18665 if test -f "$collect2name" && \
18666 strings "$collect2name" | grep resolve_lib_name >/dev/null
18668 # We have reworked collect2
18669 hardcode_direct_CXX=yes
18671 # We have old collect2
18672 hardcode_direct_CXX=unsupported
18673 # It fails to find uninstalled libraries when the uninstalled
18674 # path is not listed in the libpath. Setting hardcode_minus_L
18675 # to unsupported forces relinking
18676 hardcode_minus_L_CXX=yes
18677 hardcode_libdir_flag_spec_CXX='-L$libdir'
18678 hardcode_libdir_separator_CXX=
18682 shared_flag='-shared'
18683 if test "$aix_use_runtimelinking" = yes; then
18684 shared_flag="$shared_flag "'${wl}-G'
18688 if test "$host_cpu" = ia64; then
18689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18690 # chokes on -Wl,-G. The following line is correct:
18693 if test "$aix_use_runtimelinking" = yes; then
18694 shared_flag='${wl}-G'
18696 shared_flag='${wl}-bM:SRE'
18701 # It seems that -bexpall does not export symbols beginning with
18702 # underscore (_), so it is better to generate a list of symbols to export.
18703 always_export_symbols_CXX=yes
18704 if test "$aix_use_runtimelinking" = yes; then
18705 # Warning - without using the other runtime loading flags (-brtl),
18706 # -berok will link without error, but may produce a broken library.
18707 allow_undefined_flag_CXX='-berok'
18708 # Determine the default libpath from the value encoded in an empty executable.
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18728 *) ac_try_echo
=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18733 grep -v '^ *+' conftest.er1
>conftest.err
18735 cat conftest.err
>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18739 { (case "(($ac_try" in
18740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18751 *) ac_try_echo
=$ac_try;;
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18759 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18761 # Check for a 64-bit object if we didn't find anything.
18762 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; }
18765 echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.
$ac_ext >&5
18771 rm -f core conftest.err conftest.
$ac_objext \
18772 conftest
$ac_exeext conftest.
$ac_ext
18773 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18775 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18777 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"
18779 if test "$host_cpu" = ia64
; then
18780 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18781 allow_undefined_flag_CXX
="-z nodefs"
18782 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"
18784 # Determine the default libpath from the value encoded in an empty executable.
18785 cat >conftest.
$ac_ext <<_ACEOF
18788 cat confdefs.h
>>conftest.
$ac_ext
18789 cat >>conftest.
$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18800 rm -f conftest.
$ac_objext conftest
$ac_exeext
18801 if { (ac_try
="$ac_link"
18802 case "(($ac_try" in
18803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18817 *) ac_try_echo
=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try
='test -s conftest$ac_exeext'
18825 { (case "(($ac_try" in
18826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18835 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18837 # Check for a 64-bit object if we didn't find anything.
18838 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; }
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18847 rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18851 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18852 # Warning - without using the other run time loading flags,
18853 # -berok will link without error, but may produce a broken library.
18854 no_undefined_flag_CXX=' ${wl}-bernotok'
18855 allow_undefined_flag_CXX=' ${wl}-berok'
18856 # Exported symbols can be pulled into shared objects from archives
18857 whole_archive_flag_spec_CXX='$convenience'
18858 archive_cmds_need_lc_CXX=yes
18859 # This is similar to how AIX traditionally builds its shared libraries.
18860 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'
18866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18867 allow_undefined_flag_CXX=unsupported
18868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18869 # support --undefined. This deserves some investigation. FIXME
18870 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18877 case $cc_basename in
18879 # FIXME: insert proper C++ library support
18885 cygwin* | mingw* | pw32*)
18886 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18887 # as there is no search path for DLLs.
18888 hardcode_libdir_flag_spec_CXX='-L$libdir'
18889 allow_undefined_flag_CXX=unsupported
18890 always_export_symbols_CXX=no
18891 enable_shared_with_static_runtimes_CXX=yes
18893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18894 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'
18895 # If the export-symbols file already is a .def file (1st line
18896 # is EXPORTS), use it as is; otherwise, prepend...
18897 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18898 cp $export_symbols $output_objdir/$soname.def;
18900 echo EXPORTS > $output_objdir/$soname.def;
18901 cat $export_symbols >> $output_objdir/$soname.def;
18903 $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'
18908 darwin* | rhapsody*)
18910 rhapsody* | darwin1.[012])
18911 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18914 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18915 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18917 case ${MACOSX_DEPLOYMENT_TARGET} in
18919 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18922 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18928 archive_cmds_need_lc_CXX=no
18929 hardcode_direct_CXX=no
18930 hardcode_automatic_CXX=yes
18931 hardcode_shlibpath_var_CXX=unsupported
18932 whole_archive_flag_spec_CXX=''
18933 link_all_deplibs_CXX=yes
18935 if test "$GXX" = yes ; then
18936 lt_int_apple_cc_single_mod=no
18937 output_verbose_link_cmd='echo'
18938 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18939 lt_int_apple_cc_single_mod=yes
18941 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18942 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18944 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'
18946 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18947 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18948 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18949 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}'
18951 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}'
18953 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}'
18955 case $cc_basename in
18957 output_verbose_link_cmd='echo'
18958 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'
18959 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18960 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18961 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}'
18962 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}'
18972 case $cc_basename in
18974 # FIXME: insert proper C++ library support
18978 # Green Hills C++ Compiler
18979 # FIXME: insert proper C++ library support
18983 # FIXME: insert proper C++ library support
18989 # C++ shared libraries reported to be fairly broken before switch to ELF
18993 archive_cmds_need_lc_CXX=no
18995 freebsd* | kfreebsd*-gnu | dragonfly*)
18996 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19003 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19004 hardcode_libdir_separator_CXX=:
19005 export_dynamic_flag_spec_CXX='${wl}-E'
19006 hardcode_direct_CXX=yes
19007 hardcode_minus_L_CXX=yes # Not in the search PATH,
19008 # but as the default
19009 # location of the library.
19011 case $cc_basename in
19013 # FIXME: insert proper C++ library support
19017 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'
19018 # Commands to make compiler produce verbose output that lists
19019 # what "hidden" libraries, object files and flags are used when
19020 # linking a shared library.
19022 # There doesn't appear to be a way to prevent this compiler from
19023 # explicitly linking system object files so we need to strip them
19024 # from the output so that they don't get included in the library
19026 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'
19029 if test "$GXX" = yes; then
19030 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'
19032 # FIXME: insert proper C++ library support
19039 if test $with_gnu_ld = no; then
19040 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19041 hardcode_libdir_separator_CXX=:
19045 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19048 export_dynamic_flag_spec_CXX='${wl}-E'
19054 hardcode_direct_CXX=no
19055 hardcode_shlibpath_var_CXX=no
19058 hardcode_direct_CXX=yes
19059 hardcode_minus_L_CXX=yes # Not in the search PATH,
19060 # but as the default
19061 # location of the library.
19065 case $cc_basename in
19067 # FIXME: insert proper C++ library support
19073 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19076 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19079 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19082 # Commands to make compiler produce verbose output that lists
19083 # what "hidden" libraries, object files and flags are used when
19084 # linking a shared library.
19086 # There doesn't appear to be a way to prevent this compiler from
19087 # explicitly linking system object files so we need to strip them
19088 # from the output so that they don't get included in the library
19090 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'
19093 if test "$GXX" = yes; then
19094 if test $with_gnu_ld = no; then
19097 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19100 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19103 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'
19108 # FIXME: insert proper C++ library support
19115 hardcode_direct_CXX=no
19116 hardcode_shlibpath_var_CXX=no
19117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19118 export_dynamic_flag_spec_CXX='${wl}-E'
19119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19120 # Instead, shared libraries are loaded at an image base (0x10000000 by
19121 # default) and relocated if they conflict, which is a slow very memory
19122 # consuming and fragmenting process. To avoid this, we pick a random,
19123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19124 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19125 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'
19126 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'
19129 case $cc_basename in
19132 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'
19134 # Archives containing C++ object files must be created using
19135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19136 # necessary to make sure instantiated templates are included
19138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19141 if test "$GXX" = yes; then
19142 if test "$with_gnu_ld" = no; then
19143 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'
19145 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'
19148 link_all_deplibs_CXX=yes
19151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19152 hardcode_libdir_separator_CXX=:
19155 case $cc_basename in
19157 # Kuck and Associates, Inc. (KAI) C++ Compiler
19159 # KCC will only create a shared library if the output file
19160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19161 # to its proper name (with version) after linking.
19162 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'
19163 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'
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19168 # There doesn't appear to be a way to prevent this compiler from
19169 # explicitly linking system object files so we need to strip them
19170 # from the output so that they don't get included in the library
19172 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'
19174 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19175 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19177 # Archives containing C++ object files must be created using
19178 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19179 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19184 # version 8.0 and above of icpc choke on multiply defined symbols
19185 # if we add $predep_objects and $postdep_objects, however 7.1 and
19186 # earlier do not add the objects themselves.
19187 case `$CC -V 2>&1` in
19189 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19190 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'
19192 *) # Version 8.0 or newer
19195 ia64
*) tmp_idyn
=' -i_dynamic';;
19197 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19198 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'
19201 archive_cmds_need_lc_CXX
=no
19202 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19203 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19204 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19207 # Portland Group C++ compiler
19208 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19209 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'
19211 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19212 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19213 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'
19217 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 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'
19220 runpath_var
=LD_RUN_PATH
19221 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19222 hardcode_libdir_separator_CXX
=:
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19228 # There doesn't appear to be a way to prevent this compiler from
19229 # explicitly linking system object files so we need to strip them
19230 # from the output so that they don't get included in the library
19232 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'
19237 # FIXME: insert proper C++ library support
19241 # FIXME: insert proper C++ library support
19245 case $cc_basename in
19247 # FIXME: insert proper C++ library support
19251 # FIXME: insert proper C++ library support
19257 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19258 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19260 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19261 hardcode_direct_CXX
=yes
19262 hardcode_shlibpath_var_CXX
=no
19264 # Workaround some broken pre-1.5 toolchains
19265 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19268 # C++ shared libraries are fairly broken
19272 hardcode_direct_CXX
=yes
19273 hardcode_shlibpath_var_CXX
=no
19274 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19275 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19277 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19278 export_dynamic_flag_spec_CXX
='${wl}-E'
19279 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19281 output_verbose_link_cmd
='echo'
19284 case $cc_basename in
19286 # Kuck and Associates, Inc. (KAI) C++ Compiler
19288 # KCC will only create a shared library if the output file
19289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19290 # to its proper name (with version) after linking.
19291 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'
19293 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19294 hardcode_libdir_separator_CXX
=:
19296 # Archives containing C++ object files must be created using
19297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19298 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19302 # Rational C++ 2.4.1
19303 # FIXME: insert proper C++ library support
19307 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19308 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'
19310 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19311 hardcode_libdir_separator_CXX
=:
19313 # Commands to make compiler produce verbose output that lists
19314 # what "hidden" libraries, object files and flags are used when
19315 # linking a shared library.
19317 # There doesn't appear to be a way to prevent this compiler from
19318 # explicitly linking system object files so we need to strip them
19319 # from the output so that they don't get included in the library
19321 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'
19324 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19325 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19326 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'
19328 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19329 hardcode_libdir_separator_CXX
=:
19331 # Commands to make compiler produce verbose output that lists
19332 # what "hidden" libraries, object files and flags are used when
19333 # linking a shared library.
19334 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19337 # FIXME: insert proper C++ library support
19344 case $cc_basename in
19346 # Kuck and Associates, Inc. (KAI) C++ Compiler
19348 # KCC will only create a shared library if the output file
19349 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19350 # to its proper name (with version) after linking.
19351 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'
19353 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19354 hardcode_libdir_separator_CXX
=:
19356 # Archives containing C++ object files must be created using
19357 # the KAI C++ compiler.
19358 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19361 # Rational C++ 2.4.1
19362 # FIXME: insert proper C++ library support
19366 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19367 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'
19368 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19369 echo "-hidden">> $lib.exp~
19370 $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~
19373 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19374 hardcode_libdir_separator_CXX
=:
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19384 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'
19387 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19388 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19389 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'
19391 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19392 hardcode_libdir_separator_CXX
=:
19394 # Commands to make compiler produce verbose output that lists
19395 # what "hidden" libraries, object files and flags are used when
19396 # linking a shared library.
19397 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19400 # FIXME: insert proper C++ library support
19407 # FIXME: insert proper C++ library support
19411 case $cc_basename in
19414 # FIXME: insert proper C++ library support
19419 # FIXME: insert proper C++ library support
19423 # FIXME: insert proper C++ library support
19429 case $cc_basename in
19431 # Sun C++ 4.2, 5.x and Centerline C++
19432 archive_cmds_need_lc_CXX
=yes
19433 no_undefined_flag_CXX
=' -zdefs'
19434 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19435 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19436 $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'
19438 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19439 hardcode_shlibpath_var_CXX
=no
19441 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19443 # The C++ compiler is used as linker so we must use $wl
19444 # flag to pass the commands to the underlying system
19445 # linker. We must also pass each convience library through
19446 # to the system linker between allextract/defaultextract.
19447 # The C++ compiler will combine linker options so we
19448 # cannot just pass the convience library names through
19450 # Supported since Solaris 2.6 (maybe 2.5.1?)
19451 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'
19454 link_all_deplibs_CXX
=yes
19456 output_verbose_link_cmd
='echo'
19458 # Archives containing C++ object files must be created using
19459 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19460 # necessary to make sure instantiated templates are included
19462 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19465 # Green Hills C++ Compiler
19466 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19468 # The C++ compiler must be used to create the archive.
19469 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19472 # GNU C++ compiler with Solaris linker
19473 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19474 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19475 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19476 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19477 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19478 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19480 # Commands to make compiler produce verbose output that lists
19481 # what "hidden" libraries, object files and flags are used when
19482 # linking a shared library.
19483 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19485 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19487 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19488 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19489 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19491 # Commands to make compiler produce verbose output that lists
19492 # what "hidden" libraries, object files and flags are used when
19493 # linking a shared library.
19494 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19497 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19502 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19503 no_undefined_flag_CXX
='${wl}-z,text'
19504 archive_cmds_need_lc_CXX
=no
19505 hardcode_shlibpath_var_CXX
=no
19506 runpath_var
='LD_RUN_PATH'
19508 case $cc_basename in
19510 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19514 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 sysv5
* | sco3.2v5
* | sco5v6
*)
19520 # Note: We can NOT use -z defs as we might desire, because we do not
19521 # link with -lc, and that would cause any symbols used from libc to
19522 # always be unresolved, which means just about no library would
19523 # ever link correctly. If we're not using GNU ld we use -z text
19524 # though, which does catch some bad symbols but isn't as heavy-handed
19526 # For security reasons, it is highly recommended that you always
19527 # use absolute paths for naming shared libraries, and exclude the
19528 # DT_RUNPATH tag from executables and libraries. But doing so
19529 # requires that you compile everything twice, which is a pain.
19530 # So that behaviour is only enabled if SCOABSPATH is set to a
19531 # non-empty value in the environment. Most likely only useful for
19532 # creating official distributions of packages.
19533 # This is a hack until libtool officially supports absolute path
19534 # names for shared libraries.
19535 no_undefined_flag_CXX
='${wl}-z,text'
19536 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19537 archive_cmds_need_lc_CXX
=no
19538 hardcode_shlibpath_var_CXX
=no
19539 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19540 hardcode_libdir_separator_CXX
=':'
19541 link_all_deplibs_CXX
=yes
19542 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19543 runpath_var
='LD_RUN_PATH'
19545 case $cc_basename in
19547 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19551 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19557 case $cc_basename in
19559 # NonStop-UX NCC 3.20
19560 # FIXME: insert proper C++ library support
19564 # FIXME: insert proper C++ library support
19570 # FIXME: insert proper C++ library support
19574 # FIXME: insert proper C++ library support
19578 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19579 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19580 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19586 cat > conftest.
$ac_ext <<EOF
19590 Foo (void) { a = 0; }
19596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597 (eval $ac_compile) 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; then
19601 # Parse the compiler output and extract the necessary
19602 # objects, libraries and library flags.
19604 # Sentinel used to keep track of whether or not we are before
19605 # the conftest object file.
19606 pre_test_object_deps_done
=no
19608 # The `*' in the case matches for architectures that use `case' in
19609 # $output_verbose_cmd can trigger glob expansion during the loop
19610 # eval without this substitution.
19611 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19613 for p
in `eval $output_verbose_link_cmd`; do
19617 # Some compilers place space between "-{L,R}" and the path.
19618 # Remove the space.
19619 if test $p = "-L" \
19620 ||
test $p = "-R"; then
19627 if test "$pre_test_object_deps_done" = no
; then
19630 # Internal compiler library paths should come after those
19631 # provided the user. The postdeps already come after the
19632 # user supplied libs so there is no need to process them.
19633 if test -z "$compiler_lib_search_path_CXX"; then
19634 compiler_lib_search_path_CXX
="${prev}${p}"
19636 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19639 # The "-l" case would never come before the object being
19640 # linked, so don't bother handling this case.
19643 if test -z "$postdeps_CXX"; then
19644 postdeps_CXX
="${prev}${p}"
19646 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19652 # This assumes that the test object file only shows up
19653 # once in the compiler output.
19654 if test "$p" = "conftest.$objext"; then
19655 pre_test_object_deps_done
=yes
19659 if test "$pre_test_object_deps_done" = no
; then
19660 if test -z "$predep_objects_CXX"; then
19661 predep_objects_CXX
="$p"
19663 predep_objects_CXX
="$predep_objects_CXX $p"
19666 if test -z "$postdep_objects_CXX"; then
19667 postdep_objects_CXX
="$p"
19669 postdep_objects_CXX
="$postdep_objects_CXX $p"
19674 *) ;; # Ignore the rest.
19682 echo "libtool.m4: error: problem compiling CXX test program"
19685 $rm -f confest.
$objext
19687 # PORTME: override above test on systems where it is broken
19690 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19691 # hack all around it, let's just trust "g++" to DTRT.
19692 predep_objects_CXX
=
19693 postdep_objects_CXX
=
19698 case $cc_basename in
19700 # Adding this requires a known-good setup of shared libraries for
19701 # Sun compiler versions before 5.6, else PIC objects from an old
19702 # archive will be linked into the output, leading to subtle bugs.
19703 postdeps_CXX
='-lCstd -lCrun'
19710 case " $postdeps_CXX " in
19711 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19714 lt_prog_compiler_wl_CXX
=
19715 lt_prog_compiler_pic_CXX
=
19716 lt_prog_compiler_static_CXX
=
19718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19721 # C++ specific cases for pic, static, wl, etc.
19722 if test "$GXX" = yes; then
19723 lt_prog_compiler_wl_CXX
='-Wl,'
19724 lt_prog_compiler_static_CXX
='-static'
19728 # All AIX code is PIC.
19729 if test "$host_cpu" = ia64
; then
19730 # AIX 5 now supports IA64 processor
19731 lt_prog_compiler_static_CXX
='-Bstatic'
19735 # FIXME: we need at least 68020 code to build shared libraries, but
19736 # adding the `-m68020' flag to GCC prevents building anything better,
19738 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19740 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19741 # PIC is the default for these OSes.
19743 mingw
* | os2
* | pw32
*)
19744 # This hack is so that the source file can tell whether it is being
19745 # built for inclusion in a dll (and should export symbols for example).
19746 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19748 darwin
* | rhapsody
*)
19749 # PIC is the default on this platform
19750 # Common symbols not allowed in MH_DYLIB files
19751 lt_prog_compiler_pic_CXX
='-fno-common'
19754 # DJGPP does not support shared libraries at all
19755 lt_prog_compiler_pic_CXX
=
19758 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19759 # Instead, we relocate shared libraries at runtime.
19762 if test -d /usr
/nec
; then
19763 lt_prog_compiler_pic_CXX
=-Kconform_pic
19767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19768 # not for PA HP-UX.
19773 lt_prog_compiler_pic_CXX
='-fPIC'
19778 lt_prog_compiler_pic_CXX
='-fPIC'
19784 # All AIX code is PIC.
19785 if test "$host_cpu" = ia64
; then
19786 # AIX 5 now supports IA64 processor
19787 lt_prog_compiler_static_CXX
='-Bstatic'
19789 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19793 case $cc_basename in
19795 # Green Hills C++ Compiler
19796 # _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"
19801 # PIC is the default on this platform
19802 # Common symbols not allowed in MH_DYLIB files
19803 case $cc_basename in
19805 lt_prog_compiler_pic_CXX
='-qnocommon'
19806 lt_prog_compiler_wl_CXX
='-Wl,'
19811 case $cc_basename in
19813 lt_prog_compiler_pic_CXX
='-KPIC'
19816 # Green Hills C++ Compiler
19817 lt_prog_compiler_pic_CXX
='-pic'
19823 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19824 # FreeBSD uses GNU C++
19826 hpux9
* | hpux10
* | hpux11
*)
19827 case $cc_basename in
19829 lt_prog_compiler_wl_CXX
='-Wl,'
19830 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19831 if test "$host_cpu" != ia64
; then
19832 lt_prog_compiler_pic_CXX
='+Z'
19836 lt_prog_compiler_wl_CXX
='-Wl,'
19837 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19843 lt_prog_compiler_pic_CXX
='+Z'
19852 # This is c89, which is MS Visual C++ (no shared libs)
19853 # Anyone wants to do a port?
19855 irix5
* | irix6
* | nonstopux
*)
19856 case $cc_basename in
19858 lt_prog_compiler_wl_CXX
='-Wl,'
19859 lt_prog_compiler_static_CXX
='-non_shared'
19860 # CC pic flag -KPIC is the default.
19867 case $cc_basename in
19870 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19871 lt_prog_compiler_pic_CXX
='-fPIC'
19875 lt_prog_compiler_wl_CXX
='-Wl,'
19876 lt_prog_compiler_pic_CXX
='-KPIC'
19877 lt_prog_compiler_static_CXX
='-static'
19880 # Portland Group C++ compiler.
19881 lt_prog_compiler_wl_CXX
='-Wl,'
19882 lt_prog_compiler_pic_CXX
='-fpic'
19883 lt_prog_compiler_static_CXX
='-Bstatic'
19887 # Make sure the PIC flag is empty. It appears that all Alpha
19888 # Linux and Compaq Tru64 Unix objects are PIC.
19889 lt_prog_compiler_pic_CXX
=
19890 lt_prog_compiler_static_CXX
='-non_shared'
19901 case $cc_basename in
19903 lt_prog_compiler_pic_CXX
='-W c,exportall'
19911 osf3
* | osf4
* | osf5
*)
19912 case $cc_basename in
19914 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19917 # Rational C++ 2.4.1
19918 lt_prog_compiler_pic_CXX
='-pic'
19921 # Digital/Compaq C++
19922 lt_prog_compiler_wl_CXX
='-Wl,'
19923 # Make sure the PIC flag is empty. It appears that all Alpha
19924 # Linux and Compaq Tru64 Unix objects are PIC.
19925 lt_prog_compiler_pic_CXX
=
19926 lt_prog_compiler_static_CXX
='-non_shared'
19935 case $cc_basename in
19937 # Sun C++ 4.2, 5.x and Centerline C++
19938 lt_prog_compiler_pic_CXX
='-KPIC'
19939 lt_prog_compiler_static_CXX
='-Bstatic'
19940 lt_prog_compiler_wl_CXX
='-Qoption ld '
19943 # Green Hills C++ Compiler
19944 lt_prog_compiler_pic_CXX
='-PIC'
19951 case $cc_basename in
19954 lt_prog_compiler_pic_CXX
='-pic'
19955 lt_prog_compiler_static_CXX
='-Bstatic'
19959 lt_prog_compiler_pic_CXX
='-pic'
19966 case $cc_basename in
19968 # NonStop-UX NCC 3.20
19969 lt_prog_compiler_pic_CXX
='-KPIC'
19975 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19976 case $cc_basename in
19978 lt_prog_compiler_wl_CXX
='-Wl,'
19979 lt_prog_compiler_pic_CXX
='-KPIC'
19980 lt_prog_compiler_static_CXX
='-Bstatic'
19987 lt_prog_compiler_can_build_shared_CXX
=no
19992 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19993 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19996 # Check to make sure the PIC flag actually works.
19998 if test -n "$lt_prog_compiler_pic_CXX"; then
20000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20002 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 lt_prog_compiler_pic_works_CXX
=no
20006 ac_outfile
=conftest.
$ac_objext
20007 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20008 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20009 # Insert the option either (1) after the last *FLAGS variable, or
20010 # (2) before a word containing "conftest.", or (3) at the end.
20011 # Note that $ac_compile itself does not contain backslashes and begins
20012 # with a dollar sign (not a hyphen), so the echo should work correctly.
20013 # The option is referenced via a variable to avoid confusing sed.
20014 lt_compile
=`echo "$ac_compile" | $SED \
20015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20017 -e 's:$: $lt_compiler_flag:'`
20018 (eval echo "\"\$as_me:20018: $lt_compile\"" >&5)
20019 (eval "$lt_compile" 2>conftest.err
)
20021 cat conftest.err
>&5
20022 echo "$as_me:20022: \$? = $ac_status" >&5
20023 if (exit $ac_status) && test -s "$ac_outfile"; then
20024 # The compiler can only warn and ignore the option if not recognized
20025 # So say no if there are warnings other than the usual output.
20026 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20027 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20028 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20029 lt_prog_compiler_pic_works_CXX
=yes
20035 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20036 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20038 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20039 case $lt_prog_compiler_pic_CXX in
20041 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20044 lt_prog_compiler_pic_CXX
=
20045 lt_prog_compiler_can_build_shared_CXX
=no
20050 # For platforms which do not support PIC, -DPIC is meaningless:
20052 lt_prog_compiler_pic_CXX
=
20055 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20060 # Check to make sure the static flag actually works.
20062 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20063 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20064 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20065 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 lt_prog_compiler_static_works_CXX
=no
20069 save_LDFLAGS
="$LDFLAGS"
20070 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20071 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20072 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20073 # The linker can only warn and ignore the option if not recognized
20074 # So say no if there are warnings
20075 if test -s conftest.err
; then
20076 # Append any errors to the config.log.
20077 cat conftest.err
1>&5
20078 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20079 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20080 if diff conftest.exp conftest.er2
>/dev
/null
; then
20081 lt_prog_compiler_static_works_CXX
=yes
20084 lt_prog_compiler_static_works_CXX
=yes
20088 LDFLAGS
="$save_LDFLAGS"
20091 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20092 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20094 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20097 lt_prog_compiler_static_CXX
=
20101 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20103 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 lt_cv_prog_compiler_c_o_CXX
=no
20107 $rm -r conftest
2>/dev
/null
20111 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20113 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20114 # Insert the option either (1) after the last *FLAGS variable, or
20115 # (2) before a word containing "conftest.", or (3) at the end.
20116 # Note that $ac_compile itself does not contain backslashes and begins
20117 # with a dollar sign (not a hyphen), so the echo should work correctly.
20118 lt_compile
=`echo "$ac_compile" | $SED \
20119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20121 -e 's:$: $lt_compiler_flag:'`
20122 (eval echo "\"\$as_me:20122: $lt_compile\"" >&5)
20123 (eval "$lt_compile" 2>out
/conftest.err
)
20125 cat out
/conftest.err
>&5
20126 echo "$as_me:20126: \$? = $ac_status" >&5
20127 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20129 # The compiler can only warn and ignore the option if not recognized
20130 # So say no if there are warnings
20131 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20132 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20133 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20134 lt_cv_prog_compiler_c_o_CXX
=yes
20139 # SGI C++ compiler will create directory out/ii_files/ for
20140 # template instantiation
20141 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20142 $rm out
/* && rmdir out
20148 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20152 hard_links
="nottested"
20153 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20154 # do not overwrite the value of need_locks provided by the user
20155 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20159 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20161 ln conftest.a conftest.b
2>&5 || hard_links
=no
20162 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20163 { echo "$as_me:$LINENO: result: $hard_links" >&5
20164 echo "${ECHO_T}$hard_links" >&6; }
20165 if test "$hard_links" = no
; then
20166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20174 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20177 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20180 # If we're using GNU nm, then we don't want the "-C" option.
20181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20182 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20183 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'
20185 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'
20189 export_symbols_cmds_CXX
="$ltdll_cmds"
20192 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'
20195 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20199 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20200 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20201 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20204 # Do we need to explicitly link libc?
20206 case "x$archive_cmds_need_lc_CXX" in
20208 # Assume -lc should be added
20209 archive_cmds_need_lc_CXX
=yes
20211 if test "$enable_shared" = yes && test "$GCC" = yes; then
20212 case $archive_cmds_CXX in
20214 # FIXME: we may have to deal with multi-command sequences.
20217 # Test whether the compiler implicitly links with -lc since on some
20218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20219 # to ld, don't add -lc before -lgcc.
20220 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20223 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } 2>conftest.err
; then
20232 libobjs
=conftest.
$ac_objext
20234 wl
=$lt_prog_compiler_wl_CXX
20235 pic_flag
=$lt_prog_compiler_pic_CXX
20241 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20242 allow_undefined_flag_CXX
=
20243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20244 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }
20249 archive_cmds_need_lc_CXX
=no
20251 archive_cmds_need_lc_CXX
=yes
20253 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20255 cat conftest.err
1>&5
20258 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20259 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20266 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20267 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20268 library_names_spec
=
20269 libname_spec
='lib$name'
20273 postuninstall_cmds
=
20277 shlibpath_overrides_runpath
=unknown
20279 dynamic_linker
="$host_os ld.so"
20280 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20281 if test "$GCC" = yes; then
20282 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20283 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20284 # if the path contains ";" then we assume it to be the separator
20285 # otherwise default to the standard path separator (i.e. ":") - it is
20286 # assumed that no part of a normal pathname contains ";" but that should
20287 # okay in the real world where ";" in dirpaths is itself problematic.
20288 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20290 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20293 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20295 need_lib_prefix
=unknown
20296 hardcode_into_libs
=no
20298 # when you set need_version to no, make sure it does not cause -set_version
20299 # flags to be left without arguments
20300 need_version
=unknown
20305 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20306 shlibpath_var
=LIBPATH
20308 # AIX 3 has no versioning support, so we append a major version to the name.
20309 soname_spec
='${libname}${release}${shared_ext}$major'
20316 hardcode_into_libs
=yes
20317 if test "$host_cpu" = ia64
; then
20318 # AIX 5 supports IA64
20319 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20320 shlibpath_var
=LD_LIBRARY_PATH
20322 # With GCC up to 2.95.x, collect2 would create an import file
20323 # for dependence libraries. The import file would start with
20324 # the line `#! .'. This would cause the generated library to
20325 # depend on `.', always an invalid library. This was fixed in
20326 # development snapshots of GCC prior to 3.0.
20328 aix4 | aix4.
[01] | aix4.
[01].
*)
20329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20331 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20334 can_build_shared
=no
20338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20339 # soname into executable. Probably we can add versioning support to
20340 # collect2, so additional links can be useful in future.
20341 if test "$aix_use_runtimelinking" = yes; then
20342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20343 # instead of lib<name>.a to let people know that these are not
20344 # typical AIX shared libraries.
20345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 # We preserve .a as extension for shared libraries through AIX4.2
20348 # and later when we are not doing run time linking.
20349 library_names_spec
='${libname}${release}.a $libname.a'
20350 soname_spec
='${libname}${release}${shared_ext}$major'
20352 shlibpath_var
=LIBPATH
20357 library_names_spec
='$libname.ixlibrary $libname.a'
20358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20359 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'
20363 library_names_spec
='${libname}${shared_ext}'
20364 dynamic_linker
="$host_os ld.so"
20365 shlibpath_var
=LIBRARY_PATH
20371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 soname_spec
='${libname}${release}${shared_ext}$major'
20373 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20374 shlibpath_var
=LD_LIBRARY_PATH
20375 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20376 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20377 # the default ld.so.conf also contains /usr/contrib/lib and
20378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20379 # libtool to hard-code these into programs
20382 cygwin
* | mingw
* | pw32
*)
20383 version_type
=windows
20388 case $GCC,$host_os in
20389 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20390 library_names_spec
='$libname.dll.a'
20391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20392 postinstall_cmds
='base_file=`basename \${file}`~
20393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20394 dldir=$destdir/`dirname \$dlpath`~
20395 test -d \$dldir || mkdir -p \$dldir~
20396 $install_prog $dir/$dlname \$dldir/$dlname~
20397 chmod a+x \$dldir/$dlname'
20398 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20399 dlpath=$dir/\$dldll~
20401 shlibpath_overrides_runpath
=yes
20405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20406 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20407 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20410 # MinGW DLLs use traditional 'lib' prefix
20411 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20412 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20413 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20414 # It is most probably a Windows format PATH printed by
20415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20416 # path with ; separators, and with drive letters. We can handle the
20417 # drive letters (cygwin fileutils understands them), so leave them,
20418 # especially as we might pass files found there to a mingw objdump,
20419 # which wouldn't understand a cygwinified path. Ahh.
20420 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20426 # pw32 DLLs use 'pw' prefix rather than 'lib'
20427 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20433 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20436 dynamic_linker
='Win32 ld.exe'
20437 # FIXME: first we should search . and the directory the executable is in
20441 darwin
* | rhapsody
*)
20442 dynamic_linker
="$host_os dyld"
20443 version_type
=darwin
20446 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20447 soname_spec
='${libname}${release}${major}$shared_ext'
20448 shlibpath_overrides_runpath
=yes
20449 shlibpath_var
=DYLD_LIBRARY_PATH
20450 shrext_cmds
='.dylib'
20451 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20452 if test "$GCC" = yes; then
20453 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"`
20455 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20457 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20465 soname_spec
='${libname}${release}${shared_ext}$major'
20466 shlibpath_var
=LD_LIBRARY_PATH
20477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20478 soname_spec
='${libname}${release}${shared_ext}$major'
20479 shlibpath_var
=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath
=no
20481 hardcode_into_libs
=yes
20482 dynamic_linker
='GNU ld.so'
20485 freebsd
* | dragonfly
*)
20486 # DragonFly does not have aout. When/if they implement a new
20487 # versioning mechanism, adjust this.
20488 if test -x /usr
/bin
/objformat
; then
20489 objformat
=`/usr/bin/objformat`
20492 freebsd
[123]*) objformat
=aout
;;
20493 *) objformat
=elf
;;
20496 version_type
=freebsd-
$objformat
20497 case $version_type in
20499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20504 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20508 shlibpath_var
=LD_LIBRARY_PATH
20511 shlibpath_overrides_runpath
=yes
20513 freebsd3.
[01]* | freebsdelf3.
[01]*)
20514 shlibpath_overrides_runpath
=yes
20515 hardcode_into_libs
=yes
20517 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20518 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20519 shlibpath_overrides_runpath
=no
20520 hardcode_into_libs
=yes
20522 freebsd
*) # from 4.6 on
20523 shlibpath_overrides_runpath
=yes
20524 hardcode_into_libs
=yes
20533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20534 soname_spec
='${libname}${release}${shared_ext}$major'
20535 shlibpath_var
=LD_LIBRARY_PATH
20536 hardcode_into_libs
=yes
20539 hpux9
* | hpux10
* | hpux11
*)
20540 # Give a soname corresponding to the major version so that dld.sl refuses to
20541 # link against other versions.
20548 hardcode_into_libs
=yes
20549 dynamic_linker
="$host_os dld.so"
20550 shlibpath_var
=LD_LIBRARY_PATH
20551 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 soname_spec
='${libname}${release}${shared_ext}$major'
20554 if test "X$HPUX_IA64_MODE" = X32
; then
20555 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20557 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20559 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20563 hardcode_into_libs
=yes
20564 dynamic_linker
="$host_os dld.sl"
20565 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20566 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec
='${libname}${release}${shared_ext}$major'
20569 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20570 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20574 dynamic_linker
="$host_os dld.sl"
20575 shlibpath_var
=SHLIB_PATH
20576 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578 soname_spec
='${libname}${release}${shared_ext}$major'
20581 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20582 postinstall_cmds
='chmod 555 $lib'
20589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20590 soname_spec
='${libname}${release}${shared_ext}$major'
20591 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20592 shlibpath_var
=LD_LIBRARY_PATH
20593 shlibpath_overrides_runpath
=no
20594 hardcode_into_libs
=yes
20597 irix5
* | irix6
* | nonstopux
*)
20599 nonstopux
*) version_type
=nonstopux
;;
20601 if test "$lt_cv_prog_gnu_ld" = yes; then
20609 soname_spec
='${libname}${release}${shared_ext}$major'
20610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20612 irix5
* | nonstopux
*)
20613 libsuff
= shlibsuff
=
20616 case $LD in # libtool.m4 will add one of these switches to LD
20617 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20618 libsuff
= shlibsuff
= libmagic
=32-bit;;
20619 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20620 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20621 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20622 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20623 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20627 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20628 shlibpath_overrides_runpath
=no
20629 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20630 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20631 hardcode_into_libs
=yes
20634 # No shared lib support for Linux oldld, aout, or coff.
20635 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20639 # This must be Linux ELF.
20644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 soname_spec
='${libname}${release}${shared_ext}$major'
20646 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20647 shlibpath_var
=LD_LIBRARY_PATH
20648 shlibpath_overrides_runpath
=no
20649 # This implies no fast_install, which is unacceptable.
20650 # Some rework will be needed to allow for fast_install
20651 # before this can be enabled.
20652 hardcode_into_libs
=yes
20654 # Append ld.so.conf contents to the search path
20655 if test -f /etc
/ld.so.conf
; then
20656 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' ' '`
20657 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20660 # We used to test for /lib/ld.so.1 and disable shared libraries on
20661 # powerpc, because MkLinux only supported shared libraries with the
20662 # GNU dynamic linker. Since this was broken with cross compilers,
20663 # most powerpc-linux boxes support dynamic linking these days and
20664 # people can always --disable-shared, the test was removed, and we
20665 # assume the GNU/Linux dynamic linker is in use.
20666 dynamic_linker
='GNU/Linux ld.so'
20673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20674 soname_spec
='${libname}${release}${shared_ext}$major'
20675 shlibpath_var
=LD_LIBRARY_PATH
20676 shlibpath_overrides_runpath
=no
20677 hardcode_into_libs
=yes
20678 dynamic_linker
='GNU ld.so'
20685 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20687 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20688 dynamic_linker
='NetBSD (a.out) ld.so'
20690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20691 soname_spec
='${libname}${release}${shared_ext}$major'
20692 dynamic_linker
='NetBSD ld.elf_so'
20694 shlibpath_var
=LD_LIBRARY_PATH
20695 shlibpath_overrides_runpath
=yes
20696 hardcode_into_libs
=yes
20701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702 shlibpath_var
=LD_LIBRARY_PATH
20703 shlibpath_overrides_runpath
=yes
20710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec
='${libname}${release}${shared_ext}$major'
20712 shlibpath_var
=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath
=yes
20718 sys_lib_dlsearch_path_spec
="/usr/lib"
20720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20722 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20723 *) need_version
=no
;;
20725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20726 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20727 shlibpath_var
=LD_LIBRARY_PATH
20728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20730 openbsd2.
[89] | openbsd2.
[89].
*)
20731 shlibpath_overrides_runpath
=no
20734 shlibpath_overrides_runpath
=yes
20738 shlibpath_overrides_runpath
=yes
20743 libname_spec
='$name'
20746 library_names_spec
='$libname${shared_ext} $libname.a'
20747 dynamic_linker
='OS/2 ld.exe'
20748 shlibpath_var
=LIBPATH
20751 osf3
* | osf4
* | osf5
*)
20755 soname_spec
='${libname}${release}${shared_ext}$major'
20756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 shlibpath_var
=LD_LIBRARY_PATH
20758 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20759 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20767 soname_spec
='${libname}${release}${shared_ext}$major'
20768 shlibpath_var
=LD_LIBRARY_PATH
20769 shlibpath_overrides_runpath
=yes
20770 hardcode_into_libs
=yes
20771 # ldd complains unless libraries are executable
20772 postinstall_cmds
='chmod +x $lib'
20777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20778 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20779 shlibpath_var
=LD_LIBRARY_PATH
20780 shlibpath_overrides_runpath
=yes
20781 if test "$with_gnu_ld" = yes; then
20789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 soname_spec
='${libname}${release}${shared_ext}$major'
20791 shlibpath_var
=LD_LIBRARY_PATH
20792 case $host_vendor in
20794 shlibpath_overrides_runpath
=no
20796 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20797 runpath_var
=LD_RUN_PATH
20805 shlibpath_overrides_runpath
=no
20806 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20812 if test -d /usr
/nec
;then
20814 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20815 soname_spec
='$libname${shared_ext}.$major'
20816 shlibpath_var
=LD_LIBRARY_PATH
20820 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20821 version_type
=freebsd-elf
20824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20825 soname_spec
='${libname}${release}${shared_ext}$major'
20826 shlibpath_var
=LD_LIBRARY_PATH
20827 hardcode_into_libs
=yes
20828 if test "$with_gnu_ld" = yes; then
20829 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20830 shlibpath_overrides_runpath
=no
20832 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20833 shlibpath_overrides_runpath
=yes
20836 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20840 sys_lib_dlsearch_path_spec
='/usr/lib'
20845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846 soname_spec
='${libname}${release}${shared_ext}$major'
20847 shlibpath_var
=LD_LIBRARY_PATH
20854 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20855 echo "${ECHO_T}$dynamic_linker" >&6; }
20856 test "$dynamic_linker" = no
&& can_build_shared
=no
20858 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20859 if test "$GCC" = yes; then
20860 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20863 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20865 hardcode_action_CXX
=
20866 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20867 test -n "$runpath_var_CXX" || \
20868 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20870 # We can hardcode non-existant directories.
20871 if test "$hardcode_direct_CXX" != no
&&
20872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20873 # have to relink, otherwise we might link with an installed library
20874 # when we should be linking with a yet-to-be-installed one
20875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20876 test "$hardcode_minus_L_CXX" != no
; then
20877 # Linking always hardcodes the temporary library directory.
20878 hardcode_action_CXX
=relink
20880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20881 hardcode_action_CXX
=immediate
20884 # We cannot hardcode anything, or else we can only hardcode existing
20886 hardcode_action_CXX
=unsupported
20888 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20889 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20891 if test "$hardcode_action_CXX" = relink
; then
20892 # Fast installation is not supported
20893 enable_fast_install
=no
20894 elif test "$shlibpath_overrides_runpath" = yes ||
20895 test "$enable_shared" = no
; then
20896 # Fast installation is not necessary
20897 enable_fast_install
=needless
20901 # The else clause should only fire when bootstrapping the
20902 # libtool distribution, otherwise you forgot to ship ltmain.sh
20903 # with your package, and you will get complaints that there are
20904 # no rules to generate ltmain.sh.
20905 if test -f "$ltmain"; then
20906 # See if we are running on zsh, and set the options which allow our commands through
20907 # without removal of \ escapes.
20908 if test -n "${ZSH_VERSION+set}" ; then
20909 setopt NO_GLOB_SUBST
20911 # Now quote all the things that may contain metacharacters while being
20912 # careful not to overquote the AC_SUBSTed values. We take copies of the
20913 # variables and quote the copies for generation of the libtool script.
20914 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20916 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20917 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20918 deplibs_check_method reload_flag reload_cmds need_locks \
20919 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20920 lt_cv_sys_global_symbol_to_c_name_address \
20921 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20922 old_postinstall_cmds old_postuninstall_cmds \
20926 lt_prog_compiler_wl_CXX \
20927 lt_prog_compiler_pic_CXX \
20928 lt_prog_compiler_static_CXX \
20929 lt_prog_compiler_no_builtin_flag_CXX \
20930 export_dynamic_flag_spec_CXX \
20931 thread_safe_flag_spec_CXX \
20932 whole_archive_flag_spec_CXX \
20933 enable_shared_with_static_runtimes_CXX \
20934 old_archive_cmds_CXX \
20935 old_archive_from_new_cmds_CXX \
20936 predep_objects_CXX \
20937 postdep_objects_CXX \
20940 compiler_lib_search_path_CXX \
20942 archive_expsym_cmds_CXX \
20943 postinstall_cmds_CXX \
20944 postuninstall_cmds_CXX \
20945 old_archive_from_expsyms_cmds_CXX \
20946 allow_undefined_flag_CXX \
20947 no_undefined_flag_CXX \
20948 export_symbols_cmds_CXX \
20949 hardcode_libdir_flag_spec_CXX \
20950 hardcode_libdir_flag_spec_ld_CXX \
20951 hardcode_libdir_separator_CXX \
20952 hardcode_automatic_CXX \
20954 module_expsym_cmds_CXX \
20955 lt_cv_prog_compiler_c_o_CXX \
20956 exclude_expsyms_CXX \
20957 include_expsyms_CXX
; do
20960 old_archive_cmds_CXX | \
20961 old_archive_from_new_cmds_CXX | \
20962 archive_cmds_CXX | \
20963 archive_expsym_cmds_CXX | \
20964 module_cmds_CXX | \
20965 module_expsym_cmds_CXX | \
20966 old_archive_from_expsyms_cmds_CXX | \
20967 export_symbols_cmds_CXX | \
20968 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20969 postinstall_cmds | postuninstall_cmds | \
20970 old_postinstall_cmds | old_postuninstall_cmds | \
20971 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
20972 # Double-quote double-evaled strings.
20973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20982 *'\$0 --fallback-echo"')
20983 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20989 cat <<__EOF__ >> "$cfgfile"
20990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20994 # Shell to use when invoking shell scripts.
20997 # Whether or not to build shared libraries.
20998 build_libtool_libs=$enable_shared
21000 # Whether or not to build static libraries.
21001 build_old_libs=$enable_static
21003 # Whether or not to add -lc for building shared libraries.
21004 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21006 # Whether or not to disallow shared libs when runtime libs are static
21007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21009 # Whether or not to optimize for fast installation.
21010 fast_install=$enable_fast_install
21013 host_alias=$host_alias
21017 # The build system.
21018 build_alias=$build_alias
21022 # An echo program that does not interpret backslashes.
21027 AR_FLAGS=$lt_AR_FLAGS
21032 # LTCC compiler flags.
21033 LTCFLAGS=$lt_LTCFLAGS
21035 # A language-specific compiler.
21036 CC=$lt_compiler_CXX
21038 # Is the compiler the GNU C compiler?
21044 # The linker used to build libraries.
21047 # Whether we need hard or soft links.
21050 # A BSD-compatible nm program.
21053 # A symbol stripping program
21056 # Used to examine libraries when file_magic_cmd begins "file"
21057 MAGIC_CMD=$MAGIC_CMD
21059 # Used on cygwin: DLL creation program.
21062 # Used on cygwin: object dumper.
21065 # Used on cygwin: assembler.
21068 # The name of the directory that contains temporary libtool files.
21071 # How to create reloadable object files.
21072 reload_flag=$lt_reload_flag
21073 reload_cmds=$lt_reload_cmds
21075 # How to pass a linker flag through the compiler.
21076 wl=$lt_lt_prog_compiler_wl_CXX
21078 # Object file suffix (normally "o").
21079 objext="$ac_objext"
21081 # Old archive suffix (normally "a").
21084 # Shared library suffix (normally ".so").
21085 shrext_cmds='$shrext_cmds'
21087 # Executable file suffix (normally "").
21090 # Additional compiler flags for building library objects.
21091 pic_flag=$lt_lt_prog_compiler_pic_CXX
21094 # What is the maximum length of a command?
21095 max_cmd_len=$lt_cv_sys_max_cmd_len
21097 # Does compiler simultaneously support -c and -o options?
21098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21100 # Must we lock files when doing compilation?
21101 need_locks=$lt_need_locks
21103 # Do we need the lib prefix for modules?
21104 need_lib_prefix=$need_lib_prefix
21106 # Do we need a version for libraries?
21107 need_version=$need_version
21109 # Whether dlopen is supported.
21110 dlopen_support=$enable_dlopen
21112 # Whether dlopen of programs is supported.
21113 dlopen_self=$enable_dlopen_self
21115 # Whether dlopen of statically linked programs is supported.
21116 dlopen_self_static=$enable_dlopen_self_static
21118 # Compiler flag to prevent dynamic linking.
21119 link_static_flag=$lt_lt_prog_compiler_static_CXX
21121 # Compiler flag to turn off builtin functions.
21122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21124 # Compiler flag to allow reflexive dlopens.
21125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21127 # Compiler flag to generate shared objects directly from archives.
21128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21130 # Compiler flag to generate thread-safe objects.
21131 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21133 # Library versioning type.
21134 version_type=$version_type
21136 # Format of library name prefix.
21137 libname_spec=$lt_libname_spec
21139 # List of archive names. First name is the real one, the rest are links.
21140 # The last name is the one that the linker finds with -lNAME.
21141 library_names_spec=$lt_library_names_spec
21143 # The coded name of the library, if different from the real name.
21144 soname_spec=$lt_soname_spec
21146 # Commands used to build and install an old-style archive.
21148 old_archive_cmds=$lt_old_archive_cmds_CXX
21149 old_postinstall_cmds=$lt_old_postinstall_cmds
21150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21152 # Create an old-style archive from a shared archive.
21153 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21155 # Create a temporary old-style archive to link instead of a shared archive.
21156 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21158 # Commands used to build and install a shared archive.
21159 archive_cmds=$lt_archive_cmds_CXX
21160 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21161 postinstall_cmds=$lt_postinstall_cmds
21162 postuninstall_cmds=$lt_postuninstall_cmds
21164 # Commands used to build a loadable module (assumed same as above if empty)
21165 module_cmds=$lt_module_cmds_CXX
21166 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21168 # Commands to strip libraries.
21169 old_striplib=$lt_old_striplib
21170 striplib=$lt_striplib
21172 # Dependencies to place before the objects being linked to create a
21174 predep_objects=$lt_predep_objects_CXX
21176 # Dependencies to place after the objects being linked to create a
21178 postdep_objects=$lt_postdep_objects_CXX
21180 # Dependencies to place before the objects being linked to create a
21182 predeps=$lt_predeps_CXX
21184 # Dependencies to place after the objects being linked to create a
21186 postdeps=$lt_postdeps_CXX
21188 # The library search path used internally by the compiler when linking
21189 # a shared library.
21190 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21192 # Method to check whether dependent libraries are shared objects.
21193 deplibs_check_method=$lt_deplibs_check_method
21195 # Command to use when deplibs_check_method == file_magic.
21196 file_magic_cmd=$lt_file_magic_cmd
21198 # Flag that allows shared libraries with undefined symbols to be built.
21199 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21201 # Flag that forces no undefined symbols.
21202 no_undefined_flag=$lt_no_undefined_flag_CXX
21204 # Commands used to finish a libtool library installation in a directory.
21205 finish_cmds=$lt_finish_cmds
21207 # Same as above, but a single script fragment to be evaled but not shown.
21208 finish_eval=$lt_finish_eval
21210 # Take the output of nm and produce a listing of raw symbols and C names.
21211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21213 # Transform the output of nm in a proper C declaration
21214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21216 # Transform the output of nm in a C name address pair
21217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21219 # This is the shared library runtime path variable.
21220 runpath_var=$runpath_var
21222 # This is the shared library path variable.
21223 shlibpath_var=$shlibpath_var
21225 # Is shlibpath searched before the hard-coded library search path?
21226 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21228 # How to hardcode a shared library path into an executable.
21229 hardcode_action=$hardcode_action_CXX
21231 # Whether we should hardcode library paths into libraries.
21232 hardcode_into_libs=$hardcode_into_libs
21234 # Flag to hardcode \$libdir into a binary during linking.
21235 # This must work even if \$libdir does not exist.
21236 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21238 # If ld is used when linking, flag to hardcode \$libdir into
21239 # a binary during linking. This must work even if \$libdir does
21241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21243 # Whether we need a single -rpath flag with a separated argument.
21244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21246 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21247 # resulting binary.
21248 hardcode_direct=$hardcode_direct_CXX
21250 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21251 # resulting binary.
21252 hardcode_minus_L=$hardcode_minus_L_CXX
21254 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21255 # the resulting binary.
21256 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21258 # Set to yes if building a shared library automatically hardcodes DIR into the library
21259 # and all subsequent libraries and executables linked against it.
21260 hardcode_automatic=$hardcode_automatic_CXX
21262 # Variables whose values should be saved in libtool wrapper scripts and
21263 # restored at relink time.
21264 variables_saved_for_relink="$variables_saved_for_relink"
21266 # Whether libtool must link a program against all its dependency libraries.
21267 link_all_deplibs=$link_all_deplibs_CXX
21269 # Compile-time system search path for libraries
21270 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21272 # Run-time system search path for libraries
21273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21275 # Fix the shell variable \$srcfile for the compiler.
21276 fix_srcfile_path="$fix_srcfile_path_CXX"
21278 # Set to yes if exported symbols are required.
21279 always_export_symbols=$always_export_symbols_CXX
21281 # The commands to list exported symbols.
21282 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21284 # The commands to extract the exported symbol list from a shared archive.
21285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21287 # Symbols that should not be listed in the preloaded symbols.
21288 exclude_expsyms=$lt_exclude_expsyms_CXX
21290 # Symbols that must always be exported.
21291 include_expsyms=$lt_include_expsyms_CXX
21293 # ### END LIBTOOL TAG CONFIG: $tagname
21299 # If there is no Makefile yet, we rely on a make rule to execute
21300 # `config.status --recheck' to rerun these tests and create the
21301 # libtool script then.
21302 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21303 if test -f "$ltmain_in"; then
21304 test -f Makefile
&& make "$ltmain"
21310 ac_cpp
='$CPP $CPPFLAGS'
21311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21319 with_gnu_ldcxx
=$with_gnu_ld
21320 with_gnu_ld
=$lt_save_with_gnu_ld
21321 lt_cv_path_LDCXX
=$lt_cv_path_LD
21322 lt_cv_path_LD
=$lt_save_path_LD
21323 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21324 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21332 if test -n "$F77" && test "X$F77" != "Xno"; then
21335 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21336 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21340 archive_cmds_need_lc_F77
=no
21341 allow_undefined_flag_F77
=
21342 always_export_symbols_F77
=no
21343 archive_expsym_cmds_F77
=
21344 export_dynamic_flag_spec_F77
=
21345 hardcode_direct_F77
=no
21346 hardcode_libdir_flag_spec_F77
=
21347 hardcode_libdir_flag_spec_ld_F77
=
21348 hardcode_libdir_separator_F77
=
21349 hardcode_minus_L_F77
=no
21350 hardcode_automatic_F77
=no
21352 module_expsym_cmds_F77
=
21353 link_all_deplibs_F77
=unknown
21354 old_archive_cmds_F77
=$old_archive_cmds
21355 no_undefined_flag_F77
=
21356 whole_archive_flag_spec_F77
=
21357 enable_shared_with_static_runtimes_F77
=no
21359 # Source file extension for f77 test sources.
21362 # Object file extension for compiled f77 test sources.
21366 # Code to be used in simple compile tests
21367 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21369 # Code to be used in simple link tests
21370 lt_simple_link_test_code
=" program t\n end\n"
21372 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21374 # If no C compiler was specified, use CC.
21377 # If no C compiler flags were specified, use CFLAGS.
21378 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21380 # Allow CC to be a program name with arguments.
21384 # save warnings/boilerplate of simple test code
21385 ac_outfile
=conftest.
$ac_objext
21386 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21387 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21388 _lt_compiler_boilerplate
=`cat conftest.err`
21391 ac_outfile
=conftest.
$ac_objext
21392 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21393 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21394 _lt_linker_boilerplate
=`cat conftest.err`
21398 # Allow CC to be a program name with arguments.
21403 for cc_temp
in $compiler""; do
21405 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21406 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21411 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21414 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21416 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21417 echo "${ECHO_T}$can_build_shared" >&6; }
21419 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21421 test "$can_build_shared" = "no" && enable_shared
=no
21423 # On AIX, shared libraries and static libraries use the same namespace, and
21424 # are all built from PIC.
21427 test "$enable_shared" = yes && enable_static
=no
21428 if test -n "$RANLIB"; then
21429 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21430 postinstall_cmds
='$RANLIB $lib'
21434 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21435 test "$enable_shared" = yes && enable_static
=no
21439 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21440 echo "${ECHO_T}$enable_shared" >&6; }
21442 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21443 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21444 # Make sure either enable_shared or enable_static is yes.
21445 test "$enable_shared" = yes || enable_static
=yes
21446 { echo "$as_me:$LINENO: result: $enable_static" >&5
21447 echo "${ECHO_T}$enable_static" >&6; }
21452 lt_prog_compiler_wl_F77
=
21453 lt_prog_compiler_pic_F77
=
21454 lt_prog_compiler_static_F77
=
21456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21459 if test "$GCC" = yes; then
21460 lt_prog_compiler_wl_F77
='-Wl,'
21461 lt_prog_compiler_static_F77
='-static'
21465 # All AIX code is PIC.
21466 if test "$host_cpu" = ia64
; then
21467 # AIX 5 now supports IA64 processor
21468 lt_prog_compiler_static_F77
='-Bstatic'
21473 # FIXME: we need at least 68020 code to build shared libraries, but
21474 # adding the `-m68020' flag to GCC prevents building anything better,
21476 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21479 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21480 # PIC is the default for these OSes.
21483 mingw
* | pw32
* | os2
*)
21484 # This hack is so that the source file can tell whether it is being
21485 # built for inclusion in a dll (and should export symbols for example).
21486 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21489 darwin
* | rhapsody
*)
21490 # PIC is the default on this platform
21491 # Common symbols not allowed in MH_DYLIB files
21492 lt_prog_compiler_pic_F77
='-fno-common'
21496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21497 # Instead, we relocate shared libraries at runtime.
21501 # Just because we use GCC doesn't mean we suddenly get shared libraries
21502 # on systems that don't support them.
21503 lt_prog_compiler_can_build_shared_F77
=no
21508 if test -d /usr
/nec
; then
21509 lt_prog_compiler_pic_F77
=-Kconform_pic
21514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21515 # not for PA HP-UX.
21521 lt_prog_compiler_pic_F77
='-fPIC'
21527 lt_prog_compiler_pic_F77
='-fPIC'
21531 # PORTME Check for flag to pass linker flags through the system compiler.
21534 lt_prog_compiler_wl_F77
='-Wl,'
21535 if test "$host_cpu" = ia64
; then
21536 # AIX 5 now supports IA64 processor
21537 lt_prog_compiler_static_F77
='-Bstatic'
21539 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21543 # PIC is the default on this platform
21544 # Common symbols not allowed in MH_DYLIB files
21545 case $cc_basename in
21547 lt_prog_compiler_pic_F77
='-qnocommon'
21548 lt_prog_compiler_wl_F77
='-Wl,'
21553 mingw
* | pw32
* | os2
*)
21554 # This hack is so that the source file can tell whether it is being
21555 # built for inclusion in a dll (and should export symbols for example).
21556 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21559 hpux9
* | hpux10
* | hpux11
*)
21560 lt_prog_compiler_wl_F77
='-Wl,'
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
='+Z'
21571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21572 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21575 irix5
* | irix6
* | nonstopux
*)
21576 lt_prog_compiler_wl_F77
='-Wl,'
21577 # PIC (with -KPIC) is the default.
21578 lt_prog_compiler_static_F77
='-non_shared'
21582 lt_prog_compiler_pic_F77
='-KPIC'
21583 lt_prog_compiler_static_F77
='-Bstatic'
21587 case $cc_basename in
21589 lt_prog_compiler_wl_F77
='-Wl,'
21590 lt_prog_compiler_pic_F77
='-KPIC'
21591 lt_prog_compiler_static_F77
='-static'
21593 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21594 # Portland Group compilers (*not* the Pentium gcc compiler,
21595 # which looks to be a dead project)
21596 lt_prog_compiler_wl_F77
='-Wl,'
21597 lt_prog_compiler_pic_F77
='-fpic'
21598 lt_prog_compiler_static_F77
='-Bstatic'
21601 lt_prog_compiler_wl_F77
='-Wl,'
21602 # All Alpha code is PIC.
21603 lt_prog_compiler_static_F77
='-non_shared'
21608 osf3
* | osf4
* | osf5
*)
21609 lt_prog_compiler_wl_F77
='-Wl,'
21610 # All OSF/1 code is PIC.
21611 lt_prog_compiler_static_F77
='-non_shared'
21615 lt_prog_compiler_pic_F77
='-KPIC'
21616 lt_prog_compiler_static_F77
='-Bstatic'
21617 case $cc_basename in
21618 f77
* | f90
* | f95
*)
21619 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21621 lt_prog_compiler_wl_F77
='-Wl,';;
21626 lt_prog_compiler_wl_F77
='-Qoption ld '
21627 lt_prog_compiler_pic_F77
='-PIC'
21628 lt_prog_compiler_static_F77
='-Bstatic'
21631 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21632 lt_prog_compiler_wl_F77
='-Wl,'
21633 lt_prog_compiler_pic_F77
='-KPIC'
21634 lt_prog_compiler_static_F77
='-Bstatic'
21638 if test -d /usr
/nec
;then
21639 lt_prog_compiler_pic_F77
='-Kconform_pic'
21640 lt_prog_compiler_static_F77
='-Bstatic'
21644 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21645 lt_prog_compiler_wl_F77
='-Wl,'
21646 lt_prog_compiler_pic_F77
='-KPIC'
21647 lt_prog_compiler_static_F77
='-Bstatic'
21651 lt_prog_compiler_wl_F77
='-Wl,'
21652 lt_prog_compiler_can_build_shared_F77
=no
21656 lt_prog_compiler_pic_F77
='-pic'
21657 lt_prog_compiler_static_F77
='-Bstatic'
21661 lt_prog_compiler_can_build_shared_F77
=no
21666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21667 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21670 # Check to make sure the PIC flag actually works.
21672 if test -n "$lt_prog_compiler_pic_F77"; then
21674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21676 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 lt_prog_compiler_pic_works_F77
=no
21680 ac_outfile
=conftest.
$ac_objext
21681 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21682 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21683 # Insert the option either (1) after the last *FLAGS variable, or
21684 # (2) before a word containing "conftest.", or (3) at the end.
21685 # Note that $ac_compile itself does not contain backslashes and begins
21686 # with a dollar sign (not a hyphen), so the echo should work correctly.
21687 # The option is referenced via a variable to avoid confusing sed.
21688 lt_compile
=`echo "$ac_compile" | $SED \
21689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21691 -e 's:$: $lt_compiler_flag:'`
21692 (eval echo "\"\$as_me:21692: $lt_compile\"" >&5)
21693 (eval "$lt_compile" 2>conftest.err
)
21695 cat conftest.err
>&5
21696 echo "$as_me:21696: \$? = $ac_status" >&5
21697 if (exit $ac_status) && test -s "$ac_outfile"; then
21698 # The compiler can only warn and ignore the option if not recognized
21699 # So say no if there are warnings other than the usual output.
21700 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21701 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21702 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21703 lt_prog_compiler_pic_works_F77
=yes
21709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21710 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21712 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21713 case $lt_prog_compiler_pic_F77 in
21715 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21718 lt_prog_compiler_pic_F77
=
21719 lt_prog_compiler_can_build_shared_F77
=no
21724 # For platforms which do not support PIC, -DPIC is meaningless:
21726 lt_prog_compiler_pic_F77
=
21729 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21734 # Check to make sure the static flag actually works.
21736 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21739 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 lt_prog_compiler_static_works_F77
=no
21743 save_LDFLAGS
="$LDFLAGS"
21744 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21745 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21746 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21747 # The linker can only warn and ignore the option if not recognized
21748 # So say no if there are warnings
21749 if test -s conftest.err
; then
21750 # Append any errors to the config.log.
21751 cat conftest.err
1>&5
21752 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21753 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21754 if diff conftest.exp conftest.er2
>/dev
/null
; then
21755 lt_prog_compiler_static_works_F77
=yes
21758 lt_prog_compiler_static_works_F77
=yes
21762 LDFLAGS
="$save_LDFLAGS"
21765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21766 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21768 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21771 lt_prog_compiler_static_F77
=
21775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21777 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 lt_cv_prog_compiler_c_o_F77
=no
21781 $rm -r conftest
2>/dev
/null
21785 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21787 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21788 # Insert the option either (1) after the last *FLAGS variable, or
21789 # (2) before a word containing "conftest.", or (3) at the end.
21790 # Note that $ac_compile itself does not contain backslashes and begins
21791 # with a dollar sign (not a hyphen), so the echo should work correctly.
21792 lt_compile
=`echo "$ac_compile" | $SED \
21793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21795 -e 's:$: $lt_compiler_flag:'`
21796 (eval echo "\"\$as_me:21796: $lt_compile\"" >&5)
21797 (eval "$lt_compile" 2>out
/conftest.err
)
21799 cat out
/conftest.err
>&5
21800 echo "$as_me:21800: \$? = $ac_status" >&5
21801 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21803 # The compiler can only warn and ignore the option if not recognized
21804 # So say no if there are warnings
21805 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21806 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21807 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21808 lt_cv_prog_compiler_c_o_F77
=yes
21813 # SGI C++ compiler will create directory out/ii_files/ for
21814 # template instantiation
21815 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21816 $rm out
/* && rmdir out
21822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21826 hard_links
="nottested"
21827 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21828 # do not overwrite the value of need_locks provided by the user
21829 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21833 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21835 ln conftest.a conftest.b
2>&5 || hard_links
=no
21836 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21837 { echo "$as_me:$LINENO: result: $hard_links" >&5
21838 echo "${ECHO_T}$hard_links" >&6; }
21839 if test "$hard_links" = no
; then
21840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21852 allow_undefined_flag_F77
=
21853 enable_shared_with_static_runtimes_F77
=no
21855 archive_expsym_cmds_F77
=
21856 old_archive_From_new_cmds_F77
=
21857 old_archive_from_expsyms_cmds_F77
=
21858 export_dynamic_flag_spec_F77
=
21859 whole_archive_flag_spec_F77
=
21860 thread_safe_flag_spec_F77
=
21861 hardcode_libdir_flag_spec_F77
=
21862 hardcode_libdir_flag_spec_ld_F77
=
21863 hardcode_libdir_separator_F77
=
21864 hardcode_direct_F77
=no
21865 hardcode_minus_L_F77
=no
21866 hardcode_shlibpath_var_F77
=unsupported
21867 link_all_deplibs_F77
=unknown
21868 hardcode_automatic_F77
=no
21870 module_expsym_cmds_F77
=
21871 always_export_symbols_F77
=no
21872 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21873 # include_expsyms should be a list of space-separated symbols to be *always*
21874 # included in the symbol list
21875 include_expsyms_F77
=
21876 # exclude_expsyms can be an extended regexp of symbols to exclude
21877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21879 # as well as any symbol that contains `d'.
21880 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21882 # platforms (ab)use it in PIC code, but their linkers get confused if
21883 # the symbol is explicitly referenced. Since portable code cannot
21884 # rely on this symbol name, it's probably fine to never include it in
21885 # preloaded symbol tables.
21886 extract_expsyms_cmds
=
21887 # Just being paranoid about ensuring that cc_basename is set.
21888 for cc_temp
in $compiler""; do
21890 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21891 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21896 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21899 cygwin
* | mingw
* | pw32
*)
21900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21901 # When not using gcc, we currently assume that we are using
21902 # Microsoft Visual C++.
21903 if test "$GCC" != yes; then
21908 # we just hope/assume this is gcc and not c89 (= MSVC++)
21917 if test "$with_gnu_ld" = yes; then
21918 # If archive_cmds runs LD, not CC, wlarc should be empty
21921 # Set some defaults for GNU ld with shared library support. These
21922 # are reset later if shared libraries are not supported. Putting them
21923 # here allows them to be overridden if necessary.
21924 runpath_var
=LD_RUN_PATH
21925 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21926 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21927 # ancient GNU ld didn't support --whole-archive et. al.
21928 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21929 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21931 whole_archive_flag_spec_F77
=
21933 supports_anon_versioning
=no
21934 case `$LD -v 2>/dev/null` in
21935 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21936 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21937 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21938 *\
2.11.
*) ;; # other 2.11 versions
21939 *) supports_anon_versioning
=yes ;;
21942 # See if GNU ld supports shared libraries.
21944 aix3
* | aix4
* | aix5
*)
21945 # On AIX/PPC, the GNU linker is very broken
21946 if test "$host_cpu" != ia64
; then
21950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21951 *** to be unable to reliably create shared libraries on AIX.
21952 *** Therefore, libtool is disabling shared libraries support. If you
21953 *** really care for shared libraries, you may want to modify your PATH
21954 *** so that a non-GNU linker is found, and then restart.
21961 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)'
21962 hardcode_libdir_flag_spec_F77
='-L$libdir'
21963 hardcode_minus_L_F77
=yes
21965 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21966 # that the semantics of dynamic libraries on AmigaOS, at least up
21967 # to version 4, is to share data among multiple programs linked
21968 # with the same dynamic library. Since this doesn't match the
21969 # behavior of shared libraries on other platforms, we can't use
21975 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21976 allow_undefined_flag_F77
=unsupported
21977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21978 # support --undefined. This deserves some investigation. FIXME
21979 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21985 cygwin
* | mingw
* | pw32
*)
21986 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21987 # as there is no search path for DLLs.
21988 hardcode_libdir_flag_spec_F77
='-L$libdir'
21989 allow_undefined_flag_F77
=unsupported
21990 always_export_symbols_F77
=no
21991 enable_shared_with_static_runtimes_F77
=yes
21992 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21994 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
21995 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21996 # If the export-symbols file already is a .def file (1st line
21997 # is EXPORTS), use it as is; otherwise, prepend...
21998 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21999 cp $export_symbols $output_objdir/$soname.def;
22001 echo EXPORTS > $output_objdir/$soname.def;
22002 cat $export_symbols >> $output_objdir/$soname.def;
22004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22011 hardcode_direct_F77
=no
22012 hardcode_shlibpath_var_F77
=no
22013 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22014 export_dynamic_flag_spec_F77
='${wl}-E'
22015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22016 # Instead, shared libraries are loaded at an image base (0x10000000 by
22017 # default) and relocated if they conflict, which is a slow very memory
22018 # consuming and fragmenting process. To avoid this, we pick a random,
22019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22021 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'
22022 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'
22026 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22028 case $cc_basename,$host_cpu in
22029 pgcc
*) # Portland Group C compiler
22030 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'
22031 tmp_addflag
=' $pic_flag'
22033 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22034 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'
22035 tmp_addflag
=' $pic_flag -Mnomain' ;;
22036 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22037 tmp_addflag
=' -i_dynamic' ;;
22038 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22039 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22040 ifc
* | ifort
*) # Intel Fortran compiler
22041 tmp_addflag
=' -nofor_main' ;;
22043 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22045 if test $supports_anon_versioning = yes; then
22046 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22048 $echo "local: *; };" >> $output_objdir/$libname.ver~
22049 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22057 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22058 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22061 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22062 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22067 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22072 *** create shared libraries on Solaris systems. Therefore, libtool
22073 *** is disabling shared libraries support. We urge you to upgrade GNU
22074 *** binutils to release 2.9.1 or newer. Another option is to modify
22075 *** your PATH or compiler configuration so that the native linker is
22076 *** used, and then restart.
22079 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22080 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22081 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22087 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22088 case `$LD -v 2>&1` in
22089 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22094 *** reliably create shared libraries on SCO systems. Therefore, libtool
22095 *** is disabling shared libraries support. We urge you to upgrade GNU
22096 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22097 *** your PATH or compiler configuration so that the native linker is
22098 *** used, and then restart.
22103 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22104 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22105 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22106 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22115 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22117 hardcode_direct_F77
=yes
22118 hardcode_shlibpath_var_F77
=no
22122 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22123 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22124 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22131 if test "$ld_shlibs_F77" = no
; then
22133 hardcode_libdir_flag_spec_F77
=
22134 export_dynamic_flag_spec_F77
=
22135 whole_archive_flag_spec_F77
=
22138 # PORTME fill in a description of your system's linker (not GNU ld)
22141 allow_undefined_flag_F77
=unsupported
22142 always_export_symbols_F77
=yes
22143 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'
22144 # Note: this linker hardcodes the directories in LIBPATH if there
22145 # are no directories specified by -L.
22146 hardcode_minus_L_F77
=yes
22147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22148 # Neither direct hardcoding nor static linking is supported with a
22150 hardcode_direct_F77
=unsupported
22155 if test "$host_cpu" = ia64
; then
22156 # On IA64, the linker does run time linking by default, so we don't
22157 # have to do anything special.
22158 aix_use_runtimelinking
=no
22159 exp_sym_flag
='-Bexport'
22162 # If we're using GNU nm, then we don't want the "-C" option.
22163 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22164 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22165 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'
22167 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'
22169 aix_use_runtimelinking
=no
22171 # Test if we are trying to use run time linking or normal
22172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22173 # need to do runtime linking.
22174 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22175 for ld_flag
in $LDFLAGS; do
22176 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22177 aix_use_runtimelinking
=yes
22184 exp_sym_flag
='-bexport'
22185 no_entry_flag
='-bnoentry'
22188 # When large executables or shared objects are built, AIX ld can
22189 # have problems creating the table of contents. If linking a library
22190 # or program results in "error TOC overflow" add -mminimal-toc to
22191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22194 archive_cmds_F77
=''
22195 hardcode_direct_F77
=yes
22196 hardcode_libdir_separator_F77
=':'
22197 link_all_deplibs_F77
=yes
22199 if test "$GCC" = yes; then
22200 case $host_os in aix4.
[012]|aix4.
[012].
*)
22201 # We only want to do this on AIX 4.2 and lower, the check
22202 # below for broken collect2 doesn't work under 4.3+
22203 collect2name
=`${CC} -print-prog-name=collect2`
22204 if test -f "$collect2name" && \
22205 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22207 # We have reworked collect2
22208 hardcode_direct_F77
=yes
22210 # We have old collect2
22211 hardcode_direct_F77
=unsupported
22212 # It fails to find uninstalled libraries when the uninstalled
22213 # path is not listed in the libpath. Setting hardcode_minus_L
22214 # to unsupported forces relinking
22215 hardcode_minus_L_F77
=yes
22216 hardcode_libdir_flag_spec_F77
='-L$libdir'
22217 hardcode_libdir_separator_F77
=
22221 shared_flag
='-shared'
22222 if test "$aix_use_runtimelinking" = yes; then
22223 shared_flag
="$shared_flag "'${wl}-G'
22227 if test "$host_cpu" = ia64
; then
22228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22229 # chokes on -Wl,-G. The following line is correct:
22232 if test "$aix_use_runtimelinking" = yes; then
22233 shared_flag
='${wl}-G'
22235 shared_flag
='${wl}-bM:SRE'
22240 # It seems that -bexpall does not export symbols beginning with
22241 # underscore (_), so it is better to generate a list of symbols to export.
22242 always_export_symbols_F77
=yes
22243 if test "$aix_use_runtimelinking" = yes; then
22244 # Warning - without using the other runtime loading flags (-brtl),
22245 # -berok will link without error, but may produce a broken library.
22246 allow_undefined_flag_F77
='-berok'
22247 # Determine the default libpath from the value encoded in an empty executable.
22248 cat >conftest.
$ac_ext <<_ACEOF
22253 rm -f conftest.
$ac_objext conftest
$ac_exeext
22254 if { (ac_try
="$ac_link"
22255 case "(($ac_try" in
22256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_link") 2>conftest.er1
22262 grep -v '^ *+' conftest.er1 >conftest.err
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
22267 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22268 { (case "(($ac_try" in
22269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22270 *) ac_try_echo
=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try
='test -s conftest$ac_exeext'
22278 { (case "(($ac_try" in
22279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_try") 2>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
22288 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22290 # Check for a 64-bit object if we didn't find anything.
22291 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; }
22294 echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22300 rm -f core conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22304 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22305 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"
22307 if test "$host_cpu" = ia64; then
22308 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22309 allow_undefined_flag_F77="-z nodefs"
22310 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"
22312 # Determine the default libpath from the value encoded in an empty executable.
22313 cat >conftest.$ac_ext <<_ACEOF
22318 rm -f conftest.$ac_objext conftest$ac_exeext
22319 if { (ac_try="$ac_link"
22320 case "(($ac_try" in
22321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22322 *) ac_try_echo
=$ac_try;;
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_link") 2>conftest.er1
22327 grep -v '^ *+' conftest.er1
>conftest.err
22329 cat conftest.err
>&5
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } &&
22332 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22333 { (case "(($ac_try" in
22334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_try") 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; } &&
22342 { ac_try='test -s conftest$ac_exeext'
22343 { (case "(($ac_try" in
22344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22345 *) ac_try_echo
=$ac_try;;
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_try") 2>&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22353 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22355 # Check for a 64-bit object if we didn't find anything.
22356 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; }
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.
$ac_ext >&5
22365 rm -f core conftest.err conftest.
$ac_objext \
22366 conftest
$ac_exeext conftest.
$ac_ext
22367 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22369 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22370 # Warning - without using the other run time loading flags,
22371 # -berok will link without error, but may produce a broken library.
22372 no_undefined_flag_F77
=' ${wl}-bernotok'
22373 allow_undefined_flag_F77
=' ${wl}-berok'
22374 # Exported symbols can be pulled into shared objects from archives
22375 whole_archive_flag_spec_F77
='$convenience'
22376 archive_cmds_need_lc_F77
=yes
22377 # This is similar to how AIX traditionally builds its shared libraries.
22378 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'
22384 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)'
22385 hardcode_libdir_flag_spec_F77
='-L$libdir'
22386 hardcode_minus_L_F77
=yes
22387 # see comment about different semantics on the GNU ld section
22392 export_dynamic_flag_spec_F77
=-rdynamic
22395 cygwin
* | mingw
* | pw32
*)
22396 # When not using gcc, we currently assume that we are using
22397 # Microsoft Visual C++.
22398 # hardcode_libdir_flag_spec is actually meaningless, as there is
22399 # no search path for DLLs.
22400 hardcode_libdir_flag_spec_F77
=' '
22401 allow_undefined_flag_F77
=unsupported
22402 # Tell ltmain to make .lib files, not .a files.
22404 # Tell ltmain to make .dll files, not .so files.
22406 # FIXME: Setting linknames here is a bad hack.
22407 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22408 # The linker will automatically build a .lib file if we build a DLL.
22409 old_archive_From_new_cmds_F77
='true'
22410 # FIXME: Should let the user specify the lib program.
22411 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22412 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22413 enable_shared_with_static_runtimes_F77
=yes
22416 darwin
* | rhapsody
*)
22418 rhapsody
* | darwin1.
[012])
22419 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22422 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22423 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22425 case ${MACOSX_DEPLOYMENT_TARGET} in
22427 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22430 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22436 archive_cmds_need_lc_F77
=no
22437 hardcode_direct_F77
=no
22438 hardcode_automatic_F77
=yes
22439 hardcode_shlibpath_var_F77
=unsupported
22440 whole_archive_flag_spec_F77
=''
22441 link_all_deplibs_F77
=yes
22442 if test "$GCC" = yes ; then
22443 output_verbose_link_cmd
='echo'
22444 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22445 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22447 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}'
22448 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}'
22450 case $cc_basename in
22452 output_verbose_link_cmd
='echo'
22453 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22454 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22456 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}'
22457 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}'
22467 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468 hardcode_libdir_flag_spec_F77
='-L$libdir'
22469 hardcode_shlibpath_var_F77
=no
22476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22477 # support. Future versions do this automatically, but an explicit c++rt0.o
22478 # does not break anything, and helps significantly (at the cost of a little
22481 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22482 hardcode_libdir_flag_spec_F77
='-R$libdir'
22483 hardcode_direct_F77
=yes
22484 hardcode_shlibpath_var_F77
=no
22487 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22489 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22490 hardcode_direct_F77
=yes
22491 hardcode_minus_L_F77
=yes
22492 hardcode_shlibpath_var_F77
=no
22495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22496 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22497 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22498 hardcode_libdir_flag_spec_F77
='-R$libdir'
22499 hardcode_direct_F77
=yes
22500 hardcode_shlibpath_var_F77
=no
22504 if test "$GCC" = yes; then
22505 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'
22507 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'
22509 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22510 hardcode_libdir_separator_F77
=:
22511 hardcode_direct_F77
=yes
22513 # hardcode_minus_L: Not really in the search PATH,
22514 # but as the default location of the library.
22515 hardcode_minus_L_F77
=yes
22516 export_dynamic_flag_spec_F77
='${wl}-E'
22520 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22521 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22523 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22525 if test "$with_gnu_ld" = no
; then
22526 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22527 hardcode_libdir_separator_F77
=:
22529 hardcode_direct_F77
=yes
22530 export_dynamic_flag_spec_F77
='${wl}-E'
22532 # hardcode_minus_L: Not really in the search PATH,
22533 # but as the default location of the library.
22534 hardcode_minus_L_F77
=yes
22539 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22542 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22545 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22548 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22554 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22557 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22560 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22564 if test "$with_gnu_ld" = no
; then
22565 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22566 hardcode_libdir_separator_F77
=:
22570 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22571 hardcode_direct_F77
=no
22572 hardcode_shlibpath_var_F77
=no
22575 hardcode_direct_F77
=yes
22576 export_dynamic_flag_spec_F77
='${wl}-E'
22578 # hardcode_minus_L: Not really in the search PATH,
22579 # but as the default location of the library.
22580 hardcode_minus_L_F77
=yes
22586 irix5
* | irix6
* | nonstopux
*)
22587 if test "$GCC" = yes; then
22588 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'
22590 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'
22591 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22593 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22594 hardcode_libdir_separator_F77
=:
22595 link_all_deplibs_F77
=yes
22599 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22600 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22602 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22604 hardcode_libdir_flag_spec_F77
='-R$libdir'
22605 hardcode_direct_F77
=yes
22606 hardcode_shlibpath_var_F77
=no
22610 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22611 hardcode_direct_F77
=yes
22612 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22613 hardcode_libdir_separator_F77
=:
22614 hardcode_shlibpath_var_F77
=no
22618 hardcode_direct_F77
=yes
22619 hardcode_shlibpath_var_F77
=no
22620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22621 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22622 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22623 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22624 export_dynamic_flag_spec_F77
='${wl}-E'
22627 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22628 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22629 hardcode_libdir_flag_spec_F77
='-R$libdir'
22632 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22633 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22640 hardcode_libdir_flag_spec_F77
='-L$libdir'
22641 hardcode_minus_L_F77
=yes
22642 allow_undefined_flag_F77
=unsupported
22643 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'
22644 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22648 if test "$GCC" = yes; then
22649 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22650 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'
22652 allow_undefined_flag_F77
=' -expect_unresolved \*'
22653 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'
22655 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22656 hardcode_libdir_separator_F77
=:
22659 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22660 if test "$GCC" = yes; then
22661 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22662 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'
22663 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22665 allow_undefined_flag_F77
=' -expect_unresolved \*'
22666 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'
22667 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~
22668 $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'
22670 # Both c and cxx compiler support -rpath directly
22671 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22673 hardcode_libdir_separator_F77
=:
22677 no_undefined_flag_F77
=' -z text'
22678 if test "$GCC" = yes; then
22680 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22681 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22682 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22685 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22686 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22689 hardcode_libdir_flag_spec_F77
='-R$libdir'
22690 hardcode_shlibpath_var_F77
=no
22692 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22694 # The compiler driver will combine linker options so we
22695 # cannot just pass the convience library names through
22696 # without $wl, iff we do not link with $LD.
22697 # Luckily, gcc supports the same syntax we need for Sun Studio.
22698 # Supported since Solaris 2.6 (maybe 2.5.1?)
22701 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22703 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' ;;
22706 link_all_deplibs_F77
=yes
22710 if test "x$host_vendor" = xsequent
; then
22711 # Use $CC to link under sequent, because it throws in some extra .o
22712 # files that make .init and .fini sections work.
22713 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22715 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22717 hardcode_libdir_flag_spec_F77
='-L$libdir'
22718 hardcode_direct_F77
=yes
22719 hardcode_minus_L_F77
=yes
22720 hardcode_shlibpath_var_F77
=no
22724 case $host_vendor in
22726 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 hardcode_direct_F77
=yes # is this really true???
22730 ## LD is ld it makes a PLAMLIB
22731 ## CC just makes a GrossModule.
22732 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22733 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22734 hardcode_direct_F77
=no
22737 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22741 runpath_var
='LD_RUN_PATH'
22742 hardcode_shlibpath_var_F77
=no
22746 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22747 hardcode_shlibpath_var_F77
=no
22748 export_dynamic_flag_spec_F77
='-Bexport'
22752 if test -d /usr
/nec
; then
22753 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22754 hardcode_shlibpath_var_F77
=no
22755 runpath_var
=LD_RUN_PATH
22756 hardcode_runpath_var
=yes
22761 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22762 no_undefined_flag_F77
='${wl}-z,text'
22763 archive_cmds_need_lc_F77
=no
22764 hardcode_shlibpath_var_F77
=no
22765 runpath_var
='LD_RUN_PATH'
22767 if test "$GCC" = yes; then
22768 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22771 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22772 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22776 sysv5
* | sco3.2v5
* | sco5v6
*)
22777 # Note: We can NOT use -z defs as we might desire, because we do not
22778 # link with -lc, and that would cause any symbols used from libc to
22779 # always be unresolved, which means just about no library would
22780 # ever link correctly. If we're not using GNU ld we use -z text
22781 # though, which does catch some bad symbols but isn't as heavy-handed
22783 no_undefined_flag_F77
='${wl}-z,text'
22784 allow_undefined_flag_F77
='${wl}-z,nodefs'
22785 archive_cmds_need_lc_F77
=no
22786 hardcode_shlibpath_var_F77
=no
22787 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22788 hardcode_libdir_separator_F77
=':'
22789 link_all_deplibs_F77
=yes
22790 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22791 runpath_var
='LD_RUN_PATH'
22793 if test "$GCC" = yes; then
22794 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22795 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22797 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22803 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22804 hardcode_libdir_flag_spec_F77
='-L$libdir'
22805 hardcode_shlibpath_var_F77
=no
22814 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22815 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22816 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22819 # Do we need to explicitly link libc?
22821 case "x$archive_cmds_need_lc_F77" in
22823 # Assume -lc should be added
22824 archive_cmds_need_lc_F77
=yes
22826 if test "$enable_shared" = yes && test "$GCC" = yes; then
22827 case $archive_cmds_F77 in
22829 # FIXME: we may have to deal with multi-command sequences.
22832 # Test whether the compiler implicitly links with -lc since on some
22833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22834 # to ld, don't add -lc before -lgcc.
22835 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22838 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22841 (eval $ac_compile) 2>&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } 2>conftest.err
; then
22847 libobjs
=conftest.
$ac_objext
22849 wl
=$lt_prog_compiler_wl_F77
22850 pic_flag
=$lt_prog_compiler_pic_F77
22856 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22857 allow_undefined_flag_F77
=
22858 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22859 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }
22864 archive_cmds_need_lc_F77
=no
22866 archive_cmds_need_lc_F77
=yes
22868 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22870 cat conftest.err
1>&5
22873 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22874 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22881 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22883 library_names_spec
=
22884 libname_spec
='lib$name'
22888 postuninstall_cmds
=
22892 shlibpath_overrides_runpath
=unknown
22894 dynamic_linker
="$host_os ld.so"
22895 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22896 if test "$GCC" = yes; then
22897 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22898 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22899 # if the path contains ";" then we assume it to be the separator
22900 # otherwise default to the standard path separator (i.e. ":") - it is
22901 # assumed that no part of a normal pathname contains ";" but that should
22902 # okay in the real world where ";" in dirpaths is itself problematic.
22903 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22905 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22908 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22910 need_lib_prefix
=unknown
22911 hardcode_into_libs
=no
22913 # when you set need_version to no, make sure it does not cause -set_version
22914 # flags to be left without arguments
22915 need_version
=unknown
22920 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22921 shlibpath_var
=LIBPATH
22923 # AIX 3 has no versioning support, so we append a major version to the name.
22924 soname_spec
='${libname}${release}${shared_ext}$major'
22931 hardcode_into_libs
=yes
22932 if test "$host_cpu" = ia64
; then
22933 # AIX 5 supports IA64
22934 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22935 shlibpath_var
=LD_LIBRARY_PATH
22937 # With GCC up to 2.95.x, collect2 would create an import file
22938 # for dependence libraries. The import file would start with
22939 # the line `#! .'. This would cause the generated library to
22940 # depend on `.', always an invalid library. This was fixed in
22941 # development snapshots of GCC prior to 3.0.
22943 aix4 | aix4.
[01] | aix4.
[01].
*)
22944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22946 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22949 can_build_shared
=no
22953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22954 # soname into executable. Probably we can add versioning support to
22955 # collect2, so additional links can be useful in future.
22956 if test "$aix_use_runtimelinking" = yes; then
22957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22958 # instead of lib<name>.a to let people know that these are not
22959 # typical AIX shared libraries.
22960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 # We preserve .a as extension for shared libraries through AIX4.2
22963 # and later when we are not doing run time linking.
22964 library_names_spec
='${libname}${release}.a $libname.a'
22965 soname_spec
='${libname}${release}${shared_ext}$major'
22967 shlibpath_var
=LIBPATH
22972 library_names_spec
='$libname.ixlibrary $libname.a'
22973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22974 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'
22978 library_names_spec
='${libname}${shared_ext}'
22979 dynamic_linker
="$host_os ld.so"
22980 shlibpath_var
=LIBRARY_PATH
22986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987 soname_spec
='${libname}${release}${shared_ext}$major'
22988 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22989 shlibpath_var
=LD_LIBRARY_PATH
22990 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22991 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22992 # the default ld.so.conf also contains /usr/contrib/lib and
22993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22994 # libtool to hard-code these into programs
22997 cygwin
* | mingw
* | pw32
*)
22998 version_type
=windows
23003 case $GCC,$host_os in
23004 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23005 library_names_spec
='$libname.dll.a'
23006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23007 postinstall_cmds
='base_file=`basename \${file}`~
23008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23009 dldir=$destdir/`dirname \$dlpath`~
23010 test -d \$dldir || mkdir -p \$dldir~
23011 $install_prog $dir/$dlname \$dldir/$dlname~
23012 chmod a+x \$dldir/$dlname'
23013 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23014 dlpath=$dir/\$dldll~
23016 shlibpath_overrides_runpath
=yes
23020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23021 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23022 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23025 # MinGW DLLs use traditional 'lib' prefix
23026 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23027 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23028 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23029 # It is most probably a Windows format PATH printed by
23030 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23031 # path with ; separators, and with drive letters. We can handle the
23032 # drive letters (cygwin fileutils understands them), so leave them,
23033 # especially as we might pass files found there to a mingw objdump,
23034 # which wouldn't understand a cygwinified path. Ahh.
23035 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23041 # pw32 DLLs use 'pw' prefix rather than 'lib'
23042 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23048 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23051 dynamic_linker
='Win32 ld.exe'
23052 # FIXME: first we should search . and the directory the executable is in
23056 darwin
* | rhapsody
*)
23057 dynamic_linker
="$host_os dyld"
23058 version_type
=darwin
23061 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23062 soname_spec
='${libname}${release}${major}$shared_ext'
23063 shlibpath_overrides_runpath
=yes
23064 shlibpath_var
=DYLD_LIBRARY_PATH
23065 shrext_cmds
='.dylib'
23066 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23067 if test "$GCC" = yes; then
23068 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"`
23070 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23072 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23080 soname_spec
='${libname}${release}${shared_ext}$major'
23081 shlibpath_var
=LD_LIBRARY_PATH
23092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23093 soname_spec
='${libname}${release}${shared_ext}$major'
23094 shlibpath_var
=LD_LIBRARY_PATH
23095 shlibpath_overrides_runpath
=no
23096 hardcode_into_libs
=yes
23097 dynamic_linker
='GNU ld.so'
23100 freebsd
* | dragonfly
*)
23101 # DragonFly does not have aout. When/if they implement a new
23102 # versioning mechanism, adjust this.
23103 if test -x /usr
/bin
/objformat
; then
23104 objformat
=`/usr/bin/objformat`
23107 freebsd
[123]*) objformat
=aout
;;
23108 *) objformat
=elf
;;
23111 version_type
=freebsd-
$objformat
23112 case $version_type in
23114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23119 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23123 shlibpath_var
=LD_LIBRARY_PATH
23126 shlibpath_overrides_runpath
=yes
23128 freebsd3.
[01]* | freebsdelf3.
[01]*)
23129 shlibpath_overrides_runpath
=yes
23130 hardcode_into_libs
=yes
23132 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23133 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23134 shlibpath_overrides_runpath
=no
23135 hardcode_into_libs
=yes
23137 freebsd
*) # from 4.6 on
23138 shlibpath_overrides_runpath
=yes
23139 hardcode_into_libs
=yes
23148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23149 soname_spec
='${libname}${release}${shared_ext}$major'
23150 shlibpath_var
=LD_LIBRARY_PATH
23151 hardcode_into_libs
=yes
23154 hpux9
* | hpux10
* | hpux11
*)
23155 # Give a soname corresponding to the major version so that dld.sl refuses to
23156 # link against other versions.
23163 hardcode_into_libs
=yes
23164 dynamic_linker
="$host_os dld.so"
23165 shlibpath_var
=LD_LIBRARY_PATH
23166 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23168 soname_spec
='${libname}${release}${shared_ext}$major'
23169 if test "X$HPUX_IA64_MODE" = X32
; then
23170 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23172 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23174 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23178 hardcode_into_libs
=yes
23179 dynamic_linker
="$host_os dld.sl"
23180 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23181 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183 soname_spec
='${libname}${release}${shared_ext}$major'
23184 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23185 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23189 dynamic_linker
="$host_os dld.sl"
23190 shlibpath_var
=SHLIB_PATH
23191 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23193 soname_spec
='${libname}${release}${shared_ext}$major'
23196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23197 postinstall_cmds
='chmod 555 $lib'
23204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23205 soname_spec
='${libname}${release}${shared_ext}$major'
23206 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23207 shlibpath_var
=LD_LIBRARY_PATH
23208 shlibpath_overrides_runpath
=no
23209 hardcode_into_libs
=yes
23212 irix5
* | irix6
* | nonstopux
*)
23214 nonstopux
*) version_type
=nonstopux
;;
23216 if test "$lt_cv_prog_gnu_ld" = yes; then
23224 soname_spec
='${libname}${release}${shared_ext}$major'
23225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23227 irix5
* | nonstopux
*)
23228 libsuff
= shlibsuff
=
23231 case $LD in # libtool.m4 will add one of these switches to LD
23232 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23233 libsuff
= shlibsuff
= libmagic
=32-bit;;
23234 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23235 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23236 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23237 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23238 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23242 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23243 shlibpath_overrides_runpath
=no
23244 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23245 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23246 hardcode_into_libs
=yes
23249 # No shared lib support for Linux oldld, aout, or coff.
23250 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23254 # This must be Linux ELF.
23259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23260 soname_spec
='${libname}${release}${shared_ext}$major'
23261 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23262 shlibpath_var
=LD_LIBRARY_PATH
23263 shlibpath_overrides_runpath
=no
23264 # This implies no fast_install, which is unacceptable.
23265 # Some rework will be needed to allow for fast_install
23266 # before this can be enabled.
23267 hardcode_into_libs
=yes
23269 # Append ld.so.conf contents to the search path
23270 if test -f /etc
/ld.so.conf
; then
23271 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' ' '`
23272 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23275 # We used to test for /lib/ld.so.1 and disable shared libraries on
23276 # powerpc, because MkLinux only supported shared libraries with the
23277 # GNU dynamic linker. Since this was broken with cross compilers,
23278 # most powerpc-linux boxes support dynamic linking these days and
23279 # people can always --disable-shared, the test was removed, and we
23280 # assume the GNU/Linux dynamic linker is in use.
23281 dynamic_linker
='GNU/Linux ld.so'
23288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23289 soname_spec
='${libname}${release}${shared_ext}$major'
23290 shlibpath_var
=LD_LIBRARY_PATH
23291 shlibpath_overrides_runpath
=no
23292 hardcode_into_libs
=yes
23293 dynamic_linker
='GNU ld.so'
23300 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23302 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23303 dynamic_linker
='NetBSD (a.out) ld.so'
23305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23306 soname_spec
='${libname}${release}${shared_ext}$major'
23307 dynamic_linker
='NetBSD ld.elf_so'
23309 shlibpath_var
=LD_LIBRARY_PATH
23310 shlibpath_overrides_runpath
=yes
23311 hardcode_into_libs
=yes
23316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23317 shlibpath_var
=LD_LIBRARY_PATH
23318 shlibpath_overrides_runpath
=yes
23325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec
='${libname}${release}${shared_ext}$major'
23327 shlibpath_var
=LD_LIBRARY_PATH
23328 shlibpath_overrides_runpath
=yes
23333 sys_lib_dlsearch_path_spec
="/usr/lib"
23335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23337 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23338 *) need_version
=no
;;
23340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23341 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23342 shlibpath_var
=LD_LIBRARY_PATH
23343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23345 openbsd2.
[89] | openbsd2.
[89].
*)
23346 shlibpath_overrides_runpath
=no
23349 shlibpath_overrides_runpath
=yes
23353 shlibpath_overrides_runpath
=yes
23358 libname_spec
='$name'
23361 library_names_spec
='$libname${shared_ext} $libname.a'
23362 dynamic_linker
='OS/2 ld.exe'
23363 shlibpath_var
=LIBPATH
23366 osf3
* | osf4
* | osf5
*)
23370 soname_spec
='${libname}${release}${shared_ext}$major'
23371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23372 shlibpath_var
=LD_LIBRARY_PATH
23373 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23374 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23382 soname_spec
='${libname}${release}${shared_ext}$major'
23383 shlibpath_var
=LD_LIBRARY_PATH
23384 shlibpath_overrides_runpath
=yes
23385 hardcode_into_libs
=yes
23386 # ldd complains unless libraries are executable
23387 postinstall_cmds
='chmod +x $lib'
23392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23393 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23394 shlibpath_var
=LD_LIBRARY_PATH
23395 shlibpath_overrides_runpath
=yes
23396 if test "$with_gnu_ld" = yes; then
23404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23405 soname_spec
='${libname}${release}${shared_ext}$major'
23406 shlibpath_var
=LD_LIBRARY_PATH
23407 case $host_vendor in
23409 shlibpath_overrides_runpath
=no
23411 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23412 runpath_var
=LD_RUN_PATH
23420 shlibpath_overrides_runpath
=no
23421 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23427 if test -d /usr
/nec
;then
23429 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23430 soname_spec
='$libname${shared_ext}.$major'
23431 shlibpath_var
=LD_LIBRARY_PATH
23435 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23436 version_type
=freebsd-elf
23439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23440 soname_spec
='${libname}${release}${shared_ext}$major'
23441 shlibpath_var
=LD_LIBRARY_PATH
23442 hardcode_into_libs
=yes
23443 if test "$with_gnu_ld" = yes; then
23444 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23445 shlibpath_overrides_runpath
=no
23447 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23448 shlibpath_overrides_runpath
=yes
23451 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23455 sys_lib_dlsearch_path_spec
='/usr/lib'
23460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23461 soname_spec
='${libname}${release}${shared_ext}$major'
23462 shlibpath_var
=LD_LIBRARY_PATH
23469 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23470 echo "${ECHO_T}$dynamic_linker" >&6; }
23471 test "$dynamic_linker" = no
&& can_build_shared
=no
23473 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23474 if test "$GCC" = yes; then
23475 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23478 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23479 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23480 hardcode_action_F77
=
23481 if test -n "$hardcode_libdir_flag_spec_F77" || \
23482 test -n "$runpath_var_F77" || \
23483 test "X$hardcode_automatic_F77" = "Xyes" ; then
23485 # We can hardcode non-existant directories.
23486 if test "$hardcode_direct_F77" != no
&&
23487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23488 # have to relink, otherwise we might link with an installed library
23489 # when we should be linking with a yet-to-be-installed one
23490 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23491 test "$hardcode_minus_L_F77" != no
; then
23492 # Linking always hardcodes the temporary library directory.
23493 hardcode_action_F77
=relink
23495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23496 hardcode_action_F77
=immediate
23499 # We cannot hardcode anything, or else we can only hardcode existing
23501 hardcode_action_F77
=unsupported
23503 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23504 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23506 if test "$hardcode_action_F77" = relink
; then
23507 # Fast installation is not supported
23508 enable_fast_install
=no
23509 elif test "$shlibpath_overrides_runpath" = yes ||
23510 test "$enable_shared" = no
; then
23511 # Fast installation is not necessary
23512 enable_fast_install
=needless
23516 # The else clause should only fire when bootstrapping the
23517 # libtool distribution, otherwise you forgot to ship ltmain.sh
23518 # with your package, and you will get complaints that there are
23519 # no rules to generate ltmain.sh.
23520 if test -f "$ltmain"; then
23521 # See if we are running on zsh, and set the options which allow our commands through
23522 # without removal of \ escapes.
23523 if test -n "${ZSH_VERSION+set}" ; then
23524 setopt NO_GLOB_SUBST
23526 # Now quote all the things that may contain metacharacters while being
23527 # careful not to overquote the AC_SUBSTed values. We take copies of the
23528 # variables and quote the copies for generation of the libtool script.
23529 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23533 deplibs_check_method reload_flag reload_cmds need_locks \
23534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23535 lt_cv_sys_global_symbol_to_c_name_address \
23536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23537 old_postinstall_cmds old_postuninstall_cmds \
23541 lt_prog_compiler_wl_F77 \
23542 lt_prog_compiler_pic_F77 \
23543 lt_prog_compiler_static_F77 \
23544 lt_prog_compiler_no_builtin_flag_F77 \
23545 export_dynamic_flag_spec_F77 \
23546 thread_safe_flag_spec_F77 \
23547 whole_archive_flag_spec_F77 \
23548 enable_shared_with_static_runtimes_F77 \
23549 old_archive_cmds_F77 \
23550 old_archive_from_new_cmds_F77 \
23551 predep_objects_F77 \
23552 postdep_objects_F77 \
23555 compiler_lib_search_path_F77 \
23557 archive_expsym_cmds_F77 \
23558 postinstall_cmds_F77 \
23559 postuninstall_cmds_F77 \
23560 old_archive_from_expsyms_cmds_F77 \
23561 allow_undefined_flag_F77 \
23562 no_undefined_flag_F77 \
23563 export_symbols_cmds_F77 \
23564 hardcode_libdir_flag_spec_F77 \
23565 hardcode_libdir_flag_spec_ld_F77 \
23566 hardcode_libdir_separator_F77 \
23567 hardcode_automatic_F77 \
23569 module_expsym_cmds_F77 \
23570 lt_cv_prog_compiler_c_o_F77 \
23571 exclude_expsyms_F77 \
23572 include_expsyms_F77
; do
23575 old_archive_cmds_F77 | \
23576 old_archive_from_new_cmds_F77 | \
23577 archive_cmds_F77 | \
23578 archive_expsym_cmds_F77 | \
23579 module_cmds_F77 | \
23580 module_expsym_cmds_F77 | \
23581 old_archive_from_expsyms_cmds_F77 | \
23582 export_symbols_cmds_F77 | \
23583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23584 postinstall_cmds | postuninstall_cmds | \
23585 old_postinstall_cmds | old_postuninstall_cmds | \
23586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23587 # Double-quote double-evaled strings.
23588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23597 *'\$0 --fallback-echo"')
23598 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23604 cat <<__EOF__ >> "$cfgfile"
23605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23609 # Shell to use when invoking shell scripts.
23612 # Whether or not to build shared libraries.
23613 build_libtool_libs=$enable_shared
23615 # Whether or not to build static libraries.
23616 build_old_libs=$enable_static
23618 # Whether or not to add -lc for building shared libraries.
23619 build_libtool_need_lc=$archive_cmds_need_lc_F77
23621 # Whether or not to disallow shared libs when runtime libs are static
23622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23624 # Whether or not to optimize for fast installation.
23625 fast_install=$enable_fast_install
23628 host_alias=$host_alias
23632 # The build system.
23633 build_alias=$build_alias
23637 # An echo program that does not interpret backslashes.
23642 AR_FLAGS=$lt_AR_FLAGS
23647 # LTCC compiler flags.
23648 LTCFLAGS=$lt_LTCFLAGS
23650 # A language-specific compiler.
23651 CC=$lt_compiler_F77
23653 # Is the compiler the GNU C compiler?
23659 # The linker used to build libraries.
23662 # Whether we need hard or soft links.
23665 # A BSD-compatible nm program.
23668 # A symbol stripping program
23671 # Used to examine libraries when file_magic_cmd begins "file"
23672 MAGIC_CMD=$MAGIC_CMD
23674 # Used on cygwin: DLL creation program.
23677 # Used on cygwin: object dumper.
23680 # Used on cygwin: assembler.
23683 # The name of the directory that contains temporary libtool files.
23686 # How to create reloadable object files.
23687 reload_flag=$lt_reload_flag
23688 reload_cmds=$lt_reload_cmds
23690 # How to pass a linker flag through the compiler.
23691 wl=$lt_lt_prog_compiler_wl_F77
23693 # Object file suffix (normally "o").
23694 objext="$ac_objext"
23696 # Old archive suffix (normally "a").
23699 # Shared library suffix (normally ".so").
23700 shrext_cmds='$shrext_cmds'
23702 # Executable file suffix (normally "").
23705 # Additional compiler flags for building library objects.
23706 pic_flag=$lt_lt_prog_compiler_pic_F77
23709 # What is the maximum length of a command?
23710 max_cmd_len=$lt_cv_sys_max_cmd_len
23712 # Does compiler simultaneously support -c and -o options?
23713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23715 # Must we lock files when doing compilation?
23716 need_locks=$lt_need_locks
23718 # Do we need the lib prefix for modules?
23719 need_lib_prefix=$need_lib_prefix
23721 # Do we need a version for libraries?
23722 need_version=$need_version
23724 # Whether dlopen is supported.
23725 dlopen_support=$enable_dlopen
23727 # Whether dlopen of programs is supported.
23728 dlopen_self=$enable_dlopen_self
23730 # Whether dlopen of statically linked programs is supported.
23731 dlopen_self_static=$enable_dlopen_self_static
23733 # Compiler flag to prevent dynamic linking.
23734 link_static_flag=$lt_lt_prog_compiler_static_F77
23736 # Compiler flag to turn off builtin functions.
23737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23739 # Compiler flag to allow reflexive dlopens.
23740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23742 # Compiler flag to generate shared objects directly from archives.
23743 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23745 # Compiler flag to generate thread-safe objects.
23746 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23748 # Library versioning type.
23749 version_type=$version_type
23751 # Format of library name prefix.
23752 libname_spec=$lt_libname_spec
23754 # List of archive names. First name is the real one, the rest are links.
23755 # The last name is the one that the linker finds with -lNAME.
23756 library_names_spec=$lt_library_names_spec
23758 # The coded name of the library, if different from the real name.
23759 soname_spec=$lt_soname_spec
23761 # Commands used to build and install an old-style archive.
23763 old_archive_cmds=$lt_old_archive_cmds_F77
23764 old_postinstall_cmds=$lt_old_postinstall_cmds
23765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23767 # Create an old-style archive from a shared archive.
23768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23770 # Create a temporary old-style archive to link instead of a shared archive.
23771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23773 # Commands used to build and install a shared archive.
23774 archive_cmds=$lt_archive_cmds_F77
23775 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23776 postinstall_cmds=$lt_postinstall_cmds
23777 postuninstall_cmds=$lt_postuninstall_cmds
23779 # Commands used to build a loadable module (assumed same as above if empty)
23780 module_cmds=$lt_module_cmds_F77
23781 module_expsym_cmds=$lt_module_expsym_cmds_F77
23783 # Commands to strip libraries.
23784 old_striplib=$lt_old_striplib
23785 striplib=$lt_striplib
23787 # Dependencies to place before the objects being linked to create a
23789 predep_objects=$lt_predep_objects_F77
23791 # Dependencies to place after the objects being linked to create a
23793 postdep_objects=$lt_postdep_objects_F77
23795 # Dependencies to place before the objects being linked to create a
23797 predeps=$lt_predeps_F77
23799 # Dependencies to place after the objects being linked to create a
23801 postdeps=$lt_postdeps_F77
23803 # The library search path used internally by the compiler when linking
23804 # a shared library.
23805 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23807 # Method to check whether dependent libraries are shared objects.
23808 deplibs_check_method=$lt_deplibs_check_method
23810 # Command to use when deplibs_check_method == file_magic.
23811 file_magic_cmd=$lt_file_magic_cmd
23813 # Flag that allows shared libraries with undefined symbols to be built.
23814 allow_undefined_flag=$lt_allow_undefined_flag_F77
23816 # Flag that forces no undefined symbols.
23817 no_undefined_flag=$lt_no_undefined_flag_F77
23819 # Commands used to finish a libtool library installation in a directory.
23820 finish_cmds=$lt_finish_cmds
23822 # Same as above, but a single script fragment to be evaled but not shown.
23823 finish_eval=$lt_finish_eval
23825 # Take the output of nm and produce a listing of raw symbols and C names.
23826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23828 # Transform the output of nm in a proper C declaration
23829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23831 # Transform the output of nm in a C name address pair
23832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23834 # This is the shared library runtime path variable.
23835 runpath_var=$runpath_var
23837 # This is the shared library path variable.
23838 shlibpath_var=$shlibpath_var
23840 # Is shlibpath searched before the hard-coded library search path?
23841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23843 # How to hardcode a shared library path into an executable.
23844 hardcode_action=$hardcode_action_F77
23846 # Whether we should hardcode library paths into libraries.
23847 hardcode_into_libs=$hardcode_into_libs
23849 # Flag to hardcode \$libdir into a binary during linking.
23850 # This must work even if \$libdir does not exist.
23851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23853 # If ld is used when linking, flag to hardcode \$libdir into
23854 # a binary during linking. This must work even if \$libdir does
23856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23858 # Whether we need a single -rpath flag with a separated argument.
23859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23862 # resulting binary.
23863 hardcode_direct=$hardcode_direct_F77
23865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23866 # resulting binary.
23867 hardcode_minus_L=$hardcode_minus_L_F77
23869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23870 # the resulting binary.
23871 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23873 # Set to yes if building a shared library automatically hardcodes DIR into the library
23874 # and all subsequent libraries and executables linked against it.
23875 hardcode_automatic=$hardcode_automatic_F77
23877 # Variables whose values should be saved in libtool wrapper scripts and
23878 # restored at relink time.
23879 variables_saved_for_relink="$variables_saved_for_relink"
23881 # Whether libtool must link a program against all its dependency libraries.
23882 link_all_deplibs=$link_all_deplibs_F77
23884 # Compile-time system search path for libraries
23885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23887 # Run-time system search path for libraries
23888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23890 # Fix the shell variable \$srcfile for the compiler.
23891 fix_srcfile_path="$fix_srcfile_path_F77"
23893 # Set to yes if exported symbols are required.
23894 always_export_symbols=$always_export_symbols_F77
23896 # The commands to list exported symbols.
23897 export_symbols_cmds=$lt_export_symbols_cmds_F77
23899 # The commands to extract the exported symbol list from a shared archive.
23900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23902 # Symbols that should not be listed in the preloaded symbols.
23903 exclude_expsyms=$lt_exclude_expsyms_F77
23905 # Symbols that must always be exported.
23906 include_expsyms=$lt_include_expsyms_F77
23908 # ### END LIBTOOL TAG CONFIG: $tagname
23914 # If there is no Makefile yet, we rely on a make rule to execute
23915 # `config.status --recheck' to rerun these tests and create the
23916 # libtool script then.
23917 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23918 if test -f "$ltmain_in"; then
23919 test -f Makefile
&& make "$ltmain"
23925 ac_cpp
='$CPP $CPPFLAGS'
23926 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23927 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23928 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23938 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23940 ac_cpp
='$CPP $CPPFLAGS'
23941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23946 # Source file extension for Java test sources.
23949 # Object file extension for compiled Java test sources.
23953 # Code to be used in simple compile tests
23954 lt_simple_compile_test_code
="class foo {}\n"
23956 # Code to be used in simple link tests
23957 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
23959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23961 # If no C compiler was specified, use CC.
23964 # If no C compiler flags were specified, use CFLAGS.
23965 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
23967 # Allow CC to be a program name with arguments.
23971 # save warnings/boilerplate of simple test code
23972 ac_outfile
=conftest.
$ac_objext
23973 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
23974 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23975 _lt_compiler_boilerplate
=`cat conftest.err`
23978 ac_outfile
=conftest.
$ac_objext
23979 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
23980 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23981 _lt_linker_boilerplate
=`cat conftest.err`
23985 # Allow CC to be a program name with arguments.
23990 for cc_temp
in $compiler""; do
23992 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23993 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23998 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24001 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24002 archive_cmds_need_lc_GCJ
=no
24004 old_archive_cmds_GCJ
=$old_archive_cmds
24007 lt_prog_compiler_no_builtin_flag_GCJ
=
24009 if test "$GCC" = yes; then
24010 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24013 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24014 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24015 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24018 lt_cv_prog_compiler_rtti_exceptions
=no
24019 ac_outfile
=conftest.
$ac_objext
24020 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24021 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24022 # Insert the option either (1) after the last *FLAGS variable, or
24023 # (2) before a word containing "conftest.", or (3) at the end.
24024 # Note that $ac_compile itself does not contain backslashes and begins
24025 # with a dollar sign (not a hyphen), so the echo should work correctly.
24026 # The option is referenced via a variable to avoid confusing sed.
24027 lt_compile
=`echo "$ac_compile" | $SED \
24028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24030 -e 's:$: $lt_compiler_flag:'`
24031 (eval echo "\"\$as_me:24031: $lt_compile\"" >&5)
24032 (eval "$lt_compile" 2>conftest.err
)
24034 cat conftest.err
>&5
24035 echo "$as_me:24035: \$? = $ac_status" >&5
24036 if (exit $ac_status) && test -s "$ac_outfile"; then
24037 # The compiler can only warn and ignore the option if not recognized
24038 # So say no if there are warnings other than the usual output.
24039 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24040 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24041 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24042 lt_cv_prog_compiler_rtti_exceptions
=yes
24048 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24049 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24051 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24052 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24059 lt_prog_compiler_wl_GCJ
=
24060 lt_prog_compiler_pic_GCJ
=
24061 lt_prog_compiler_static_GCJ
=
24063 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24064 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24066 if test "$GCC" = yes; then
24067 lt_prog_compiler_wl_GCJ
='-Wl,'
24068 lt_prog_compiler_static_GCJ
='-static'
24072 # All AIX code is PIC.
24073 if test "$host_cpu" = ia64
; then
24074 # AIX 5 now supports IA64 processor
24075 lt_prog_compiler_static_GCJ
='-Bstatic'
24080 # FIXME: we need at least 68020 code to build shared libraries, but
24081 # adding the `-m68020' flag to GCC prevents building anything better,
24083 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24086 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24087 # PIC is the default for these OSes.
24090 mingw
* | pw32
* | os2
*)
24091 # This hack is so that the source file can tell whether it is being
24092 # built for inclusion in a dll (and should export symbols for example).
24093 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24096 darwin
* | rhapsody
*)
24097 # PIC is the default on this platform
24098 # Common symbols not allowed in MH_DYLIB files
24099 lt_prog_compiler_pic_GCJ
='-fno-common'
24103 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24104 # Instead, we relocate shared libraries at runtime.
24108 # Just because we use GCC doesn't mean we suddenly get shared libraries
24109 # on systems that don't support them.
24110 lt_prog_compiler_can_build_shared_GCJ
=no
24115 if test -d /usr
/nec
; then
24116 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24122 # not for PA HP-UX.
24128 lt_prog_compiler_pic_GCJ
='-fPIC'
24134 lt_prog_compiler_pic_GCJ
='-fPIC'
24138 # PORTME Check for flag to pass linker flags through the system compiler.
24141 lt_prog_compiler_wl_GCJ
='-Wl,'
24142 if test "$host_cpu" = ia64
; then
24143 # AIX 5 now supports IA64 processor
24144 lt_prog_compiler_static_GCJ
='-Bstatic'
24146 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24150 # PIC is the default on this platform
24151 # Common symbols not allowed in MH_DYLIB files
24152 case $cc_basename in
24154 lt_prog_compiler_pic_GCJ
='-qnocommon'
24155 lt_prog_compiler_wl_GCJ
='-Wl,'
24160 mingw
* | pw32
* | os2
*)
24161 # This hack is so that the source file can tell whether it is being
24162 # built for inclusion in a dll (and should export symbols for example).
24163 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24166 hpux9
* | hpux10
* | hpux11
*)
24167 lt_prog_compiler_wl_GCJ
='-Wl,'
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
='+Z'
24178 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24179 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24182 irix5
* | irix6
* | nonstopux
*)
24183 lt_prog_compiler_wl_GCJ
='-Wl,'
24184 # PIC (with -KPIC) is the default.
24185 lt_prog_compiler_static_GCJ
='-non_shared'
24189 lt_prog_compiler_pic_GCJ
='-KPIC'
24190 lt_prog_compiler_static_GCJ
='-Bstatic'
24194 case $cc_basename in
24196 lt_prog_compiler_wl_GCJ
='-Wl,'
24197 lt_prog_compiler_pic_GCJ
='-KPIC'
24198 lt_prog_compiler_static_GCJ
='-static'
24200 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24201 # Portland Group compilers (*not* the Pentium gcc compiler,
24202 # which looks to be a dead project)
24203 lt_prog_compiler_wl_GCJ
='-Wl,'
24204 lt_prog_compiler_pic_GCJ
='-fpic'
24205 lt_prog_compiler_static_GCJ
='-Bstatic'
24208 lt_prog_compiler_wl_GCJ
='-Wl,'
24209 # All Alpha code is PIC.
24210 lt_prog_compiler_static_GCJ
='-non_shared'
24215 osf3
* | osf4
* | osf5
*)
24216 lt_prog_compiler_wl_GCJ
='-Wl,'
24217 # All OSF/1 code is PIC.
24218 lt_prog_compiler_static_GCJ
='-non_shared'
24222 lt_prog_compiler_pic_GCJ
='-KPIC'
24223 lt_prog_compiler_static_GCJ
='-Bstatic'
24224 case $cc_basename in
24225 f77
* | f90
* | f95
*)
24226 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24228 lt_prog_compiler_wl_GCJ
='-Wl,';;
24233 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24234 lt_prog_compiler_pic_GCJ
='-PIC'
24235 lt_prog_compiler_static_GCJ
='-Bstatic'
24238 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24239 lt_prog_compiler_wl_GCJ
='-Wl,'
24240 lt_prog_compiler_pic_GCJ
='-KPIC'
24241 lt_prog_compiler_static_GCJ
='-Bstatic'
24245 if test -d /usr
/nec
;then
24246 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24247 lt_prog_compiler_static_GCJ
='-Bstatic'
24251 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24252 lt_prog_compiler_wl_GCJ
='-Wl,'
24253 lt_prog_compiler_pic_GCJ
='-KPIC'
24254 lt_prog_compiler_static_GCJ
='-Bstatic'
24258 lt_prog_compiler_wl_GCJ
='-Wl,'
24259 lt_prog_compiler_can_build_shared_GCJ
=no
24263 lt_prog_compiler_pic_GCJ
='-pic'
24264 lt_prog_compiler_static_GCJ
='-Bstatic'
24268 lt_prog_compiler_can_build_shared_GCJ
=no
24273 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24274 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24277 # Check to make sure the PIC flag actually works.
24279 if test -n "$lt_prog_compiler_pic_GCJ"; then
24281 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24282 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24283 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24286 lt_prog_compiler_pic_works_GCJ
=no
24287 ac_outfile
=conftest.
$ac_objext
24288 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24289 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24290 # Insert the option either (1) after the last *FLAGS variable, or
24291 # (2) before a word containing "conftest.", or (3) at the end.
24292 # Note that $ac_compile itself does not contain backslashes and begins
24293 # with a dollar sign (not a hyphen), so the echo should work correctly.
24294 # The option is referenced via a variable to avoid confusing sed.
24295 lt_compile
=`echo "$ac_compile" | $SED \
24296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24298 -e 's:$: $lt_compiler_flag:'`
24299 (eval echo "\"\$as_me:24299: $lt_compile\"" >&5)
24300 (eval "$lt_compile" 2>conftest.err
)
24302 cat conftest.err
>&5
24303 echo "$as_me:24303: \$? = $ac_status" >&5
24304 if (exit $ac_status) && test -s "$ac_outfile"; then
24305 # The compiler can only warn and ignore the option if not recognized
24306 # So say no if there are warnings other than the usual output.
24307 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24308 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24309 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24310 lt_prog_compiler_pic_works_GCJ
=yes
24316 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24317 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24319 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24320 case $lt_prog_compiler_pic_GCJ in
24322 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24325 lt_prog_compiler_pic_GCJ
=
24326 lt_prog_compiler_can_build_shared_GCJ
=no
24331 # For platforms which do not support PIC, -DPIC is meaningless:
24333 lt_prog_compiler_pic_GCJ
=
24336 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24341 # Check to make sure the static flag actually works.
24343 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24344 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24345 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24346 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24347 echo $ECHO_N "(cached) $ECHO_C" >&6
24349 lt_prog_compiler_static_works_GCJ
=no
24350 save_LDFLAGS
="$LDFLAGS"
24351 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24352 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24353 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24354 # The linker can only warn and ignore the option if not recognized
24355 # So say no if there are warnings
24356 if test -s conftest.err
; then
24357 # Append any errors to the config.log.
24358 cat conftest.err
1>&5
24359 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24360 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24361 if diff conftest.exp conftest.er2
>/dev
/null
; then
24362 lt_prog_compiler_static_works_GCJ
=yes
24365 lt_prog_compiler_static_works_GCJ
=yes
24369 LDFLAGS
="$save_LDFLAGS"
24372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24373 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24375 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24378 lt_prog_compiler_static_GCJ
=
24382 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24383 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24384 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24387 lt_cv_prog_compiler_c_o_GCJ
=no
24388 $rm -r conftest
2>/dev
/null
24392 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24394 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24395 # Insert the option either (1) after the last *FLAGS variable, or
24396 # (2) before a word containing "conftest.", or (3) at the end.
24397 # Note that $ac_compile itself does not contain backslashes and begins
24398 # with a dollar sign (not a hyphen), so the echo should work correctly.
24399 lt_compile
=`echo "$ac_compile" | $SED \
24400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24402 -e 's:$: $lt_compiler_flag:'`
24403 (eval echo "\"\$as_me:24403: $lt_compile\"" >&5)
24404 (eval "$lt_compile" 2>out
/conftest.err
)
24406 cat out
/conftest.err
>&5
24407 echo "$as_me:24407: \$? = $ac_status" >&5
24408 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24410 # The compiler can only warn and ignore the option if not recognized
24411 # So say no if there are warnings
24412 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24413 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24414 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24415 lt_cv_prog_compiler_c_o_GCJ
=yes
24420 # SGI C++ compiler will create directory out/ii_files/ for
24421 # template instantiation
24422 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24423 $rm out
/* && rmdir out
24429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24430 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24433 hard_links
="nottested"
24434 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24435 # do not overwrite the value of need_locks provided by the user
24436 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24437 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24440 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24442 ln conftest.a conftest.b
2>&5 || hard_links
=no
24443 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24444 { echo "$as_me:$LINENO: result: $hard_links" >&5
24445 echo "${ECHO_T}$hard_links" >&6; }
24446 if test "$hard_links" = no
; then
24447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24448 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24455 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24456 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24459 allow_undefined_flag_GCJ
=
24460 enable_shared_with_static_runtimes_GCJ
=no
24462 archive_expsym_cmds_GCJ
=
24463 old_archive_From_new_cmds_GCJ
=
24464 old_archive_from_expsyms_cmds_GCJ
=
24465 export_dynamic_flag_spec_GCJ
=
24466 whole_archive_flag_spec_GCJ
=
24467 thread_safe_flag_spec_GCJ
=
24468 hardcode_libdir_flag_spec_GCJ
=
24469 hardcode_libdir_flag_spec_ld_GCJ
=
24470 hardcode_libdir_separator_GCJ
=
24471 hardcode_direct_GCJ
=no
24472 hardcode_minus_L_GCJ
=no
24473 hardcode_shlibpath_var_GCJ
=unsupported
24474 link_all_deplibs_GCJ
=unknown
24475 hardcode_automatic_GCJ
=no
24477 module_expsym_cmds_GCJ
=
24478 always_export_symbols_GCJ
=no
24479 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24480 # include_expsyms should be a list of space-separated symbols to be *always*
24481 # included in the symbol list
24482 include_expsyms_GCJ
=
24483 # exclude_expsyms can be an extended regexp of symbols to exclude
24484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24486 # as well as any symbol that contains `d'.
24487 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24489 # platforms (ab)use it in PIC code, but their linkers get confused if
24490 # the symbol is explicitly referenced. Since portable code cannot
24491 # rely on this symbol name, it's probably fine to never include it in
24492 # preloaded symbol tables.
24493 extract_expsyms_cmds
=
24494 # Just being paranoid about ensuring that cc_basename is set.
24495 for cc_temp
in $compiler""; do
24497 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24498 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24503 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24506 cygwin
* | mingw
* | pw32
*)
24507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24508 # When not using gcc, we currently assume that we are using
24509 # Microsoft Visual C++.
24510 if test "$GCC" != yes; then
24515 # we just hope/assume this is gcc and not c89 (= MSVC++)
24524 if test "$with_gnu_ld" = yes; then
24525 # If archive_cmds runs LD, not CC, wlarc should be empty
24528 # Set some defaults for GNU ld with shared library support. These
24529 # are reset later if shared libraries are not supported. Putting them
24530 # here allows them to be overridden if necessary.
24531 runpath_var
=LD_RUN_PATH
24532 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24533 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24534 # ancient GNU ld didn't support --whole-archive et. al.
24535 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24536 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24538 whole_archive_flag_spec_GCJ
=
24540 supports_anon_versioning
=no
24541 case `$LD -v 2>/dev/null` in
24542 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24543 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24544 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24545 *\
2.11.
*) ;; # other 2.11 versions
24546 *) supports_anon_versioning
=yes ;;
24549 # See if GNU ld supports shared libraries.
24551 aix3
* | aix4
* | aix5
*)
24552 # On AIX/PPC, the GNU linker is very broken
24553 if test "$host_cpu" != ia64
; then
24557 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24558 *** to be unable to reliably create shared libraries on AIX.
24559 *** Therefore, libtool is disabling shared libraries support. If you
24560 *** really care for shared libraries, you may want to modify your PATH
24561 *** so that a non-GNU linker is found, and then restart.
24568 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)'
24569 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24570 hardcode_minus_L_GCJ
=yes
24572 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24573 # that the semantics of dynamic libraries on AmigaOS, at least up
24574 # to version 4, is to share data among multiple programs linked
24575 # with the same dynamic library. Since this doesn't match the
24576 # behavior of shared libraries on other platforms, we can't use
24582 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24583 allow_undefined_flag_GCJ
=unsupported
24584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24585 # support --undefined. This deserves some investigation. FIXME
24586 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24592 cygwin
* | mingw
* | pw32
*)
24593 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24594 # as there is no search path for DLLs.
24595 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24596 allow_undefined_flag_GCJ
=unsupported
24597 always_export_symbols_GCJ
=no
24598 enable_shared_with_static_runtimes_GCJ
=yes
24599 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24601 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24602 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24603 # If the export-symbols file already is a .def file (1st line
24604 # is EXPORTS), use it as is; otherwise, prepend...
24605 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24606 cp $export_symbols $output_objdir/$soname.def;
24608 echo EXPORTS > $output_objdir/$soname.def;
24609 cat $export_symbols >> $output_objdir/$soname.def;
24611 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24618 hardcode_direct_GCJ
=no
24619 hardcode_shlibpath_var_GCJ
=no
24620 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24621 export_dynamic_flag_spec_GCJ
='${wl}-E'
24622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24623 # Instead, shared libraries are loaded at an image base (0x10000000 by
24624 # default) and relocated if they conflict, which is a slow very memory
24625 # consuming and fragmenting process. To avoid this, we pick a random,
24626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24628 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'
24629 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'
24633 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24635 case $cc_basename,$host_cpu in
24636 pgcc
*) # Portland Group C compiler
24637 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'
24638 tmp_addflag
=' $pic_flag'
24640 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24641 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'
24642 tmp_addflag
=' $pic_flag -Mnomain' ;;
24643 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24644 tmp_addflag
=' -i_dynamic' ;;
24645 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24646 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24647 ifc
* | ifort
*) # Intel Fortran compiler
24648 tmp_addflag
=' -nofor_main' ;;
24650 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24652 if test $supports_anon_versioning = yes; then
24653 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24655 $echo "local: *; };" >> $output_objdir/$libname.ver~
24656 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24664 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24665 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24668 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24669 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24674 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24679 *** create shared libraries on Solaris systems. Therefore, libtool
24680 *** is disabling shared libraries support. We urge you to upgrade GNU
24681 *** binutils to release 2.9.1 or newer. Another option is to modify
24682 *** your PATH or compiler configuration so that the native linker is
24683 *** used, and then restart.
24686 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24687 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24688 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24694 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24695 case `$LD -v 2>&1` in
24696 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24700 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24701 *** reliably create shared libraries on SCO systems. Therefore, libtool
24702 *** is disabling shared libraries support. We urge you to upgrade GNU
24703 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24704 *** your PATH or compiler configuration so that the native linker is
24705 *** used, and then restart.
24710 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24711 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24712 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24713 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24722 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24724 hardcode_direct_GCJ
=yes
24725 hardcode_shlibpath_var_GCJ
=no
24729 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24730 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24731 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24738 if test "$ld_shlibs_GCJ" = no
; then
24740 hardcode_libdir_flag_spec_GCJ
=
24741 export_dynamic_flag_spec_GCJ
=
24742 whole_archive_flag_spec_GCJ
=
24745 # PORTME fill in a description of your system's linker (not GNU ld)
24748 allow_undefined_flag_GCJ
=unsupported
24749 always_export_symbols_GCJ
=yes
24750 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'
24751 # Note: this linker hardcodes the directories in LIBPATH if there
24752 # are no directories specified by -L.
24753 hardcode_minus_L_GCJ
=yes
24754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24755 # Neither direct hardcoding nor static linking is supported with a
24757 hardcode_direct_GCJ
=unsupported
24762 if test "$host_cpu" = ia64
; then
24763 # On IA64, the linker does run time linking by default, so we don't
24764 # have to do anything special.
24765 aix_use_runtimelinking
=no
24766 exp_sym_flag
='-Bexport'
24769 # If we're using GNU nm, then we don't want the "-C" option.
24770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24771 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24772 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'
24774 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'
24776 aix_use_runtimelinking
=no
24778 # Test if we are trying to use run time linking or normal
24779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24780 # need to do runtime linking.
24781 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24782 for ld_flag
in $LDFLAGS; do
24783 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24784 aix_use_runtimelinking
=yes
24791 exp_sym_flag
='-bexport'
24792 no_entry_flag
='-bnoentry'
24795 # When large executables or shared objects are built, AIX ld can
24796 # have problems creating the table of contents. If linking a library
24797 # or program results in "error TOC overflow" add -mminimal-toc to
24798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24801 archive_cmds_GCJ
=''
24802 hardcode_direct_GCJ
=yes
24803 hardcode_libdir_separator_GCJ
=':'
24804 link_all_deplibs_GCJ
=yes
24806 if test "$GCC" = yes; then
24807 case $host_os in aix4.
[012]|aix4.
[012].
*)
24808 # We only want to do this on AIX 4.2 and lower, the check
24809 # below for broken collect2 doesn't work under 4.3+
24810 collect2name
=`${CC} -print-prog-name=collect2`
24811 if test -f "$collect2name" && \
24812 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24814 # We have reworked collect2
24815 hardcode_direct_GCJ
=yes
24817 # We have old collect2
24818 hardcode_direct_GCJ
=unsupported
24819 # It fails to find uninstalled libraries when the uninstalled
24820 # path is not listed in the libpath. Setting hardcode_minus_L
24821 # to unsupported forces relinking
24822 hardcode_minus_L_GCJ
=yes
24823 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24824 hardcode_libdir_separator_GCJ
=
24828 shared_flag
='-shared'
24829 if test "$aix_use_runtimelinking" = yes; then
24830 shared_flag
="$shared_flag "'${wl}-G'
24834 if test "$host_cpu" = ia64
; then
24835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24836 # chokes on -Wl,-G. The following line is correct:
24839 if test "$aix_use_runtimelinking" = yes; then
24840 shared_flag
='${wl}-G'
24842 shared_flag
='${wl}-bM:SRE'
24847 # It seems that -bexpall does not export symbols beginning with
24848 # underscore (_), so it is better to generate a list of symbols to export.
24849 always_export_symbols_GCJ
=yes
24850 if test "$aix_use_runtimelinking" = yes; then
24851 # Warning - without using the other runtime loading flags (-brtl),
24852 # -berok will link without error, but may produce a broken library.
24853 allow_undefined_flag_GCJ
='-berok'
24854 # Determine the default libpath from the value encoded in an empty executable.
24855 cat >conftest.
$ac_ext <<_ACEOF
24858 cat confdefs.h
>>conftest.
$ac_ext
24859 cat >>conftest.
$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24870 rm -f conftest.
$ac_objext conftest
$ac_exeext
24871 if { (ac_try
="$ac_link"
24872 case "(($ac_try" in
24873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_link") 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24885 { (case "(($ac_try" in
24886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24887 *) ac_try_echo
=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_try") 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try
='test -s conftest$ac_exeext'
24895 { (case "(($ac_try" in
24896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900 (eval "$ac_try") 2>&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24905 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24907 # Check for a 64-bit object if we didn't find anything.
24908 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; }
24911 echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24917 rm -f core conftest.err conftest.$ac_objext \
24918 conftest$ac_exeext conftest.$ac_ext
24919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24922 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"
24924 if test "$host_cpu" = ia64; then
24925 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24926 allow_undefined_flag_GCJ="-z nodefs"
24927 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"
24929 # Determine the default libpath from the value encoded in an empty executable.
24930 cat >conftest.$ac_ext <<_ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h. */
24945 rm -f conftest.$ac_objext conftest$ac_exeext
24946 if { (ac_try="$ac_link"
24947 case "(($ac_try" in
24948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24949 *) ac_try_echo
=$ac_try;;
24951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952 (eval "$ac_link") 2>conftest.er1
24954 grep -v '^ *+' conftest.er1
>conftest.err
24956 cat conftest.err
>&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } &&
24959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24960 { (case "(($ac_try" in
24961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_try") 2>&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } &&
24969 { ac_try='test -s conftest$ac_exeext'
24970 { (case "(($ac_try" in
24971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24972 *) ac_try_echo
=$ac_try;;
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_try") 2>&5
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); }; }; then
24980 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24982 # Check for a 64-bit object if we didn't find anything.
24983 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; }
24986 echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.
$ac_ext >&5
24992 rm -f core conftest.err conftest.
$ac_objext \
24993 conftest
$ac_exeext conftest.
$ac_ext
24994 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
24996 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
24997 # Warning - without using the other run time loading flags,
24998 # -berok will link without error, but may produce a broken library.
24999 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25000 allow_undefined_flag_GCJ
=' ${wl}-berok'
25001 # Exported symbols can be pulled into shared objects from archives
25002 whole_archive_flag_spec_GCJ
='$convenience'
25003 archive_cmds_need_lc_GCJ
=yes
25004 # This is similar to how AIX traditionally builds its shared libraries.
25005 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'
25011 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)'
25012 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25013 hardcode_minus_L_GCJ
=yes
25014 # see comment about different semantics on the GNU ld section
25019 export_dynamic_flag_spec_GCJ
=-rdynamic
25022 cygwin
* | mingw
* | pw32
*)
25023 # When not using gcc, we currently assume that we are using
25024 # Microsoft Visual C++.
25025 # hardcode_libdir_flag_spec is actually meaningless, as there is
25026 # no search path for DLLs.
25027 hardcode_libdir_flag_spec_GCJ
=' '
25028 allow_undefined_flag_GCJ
=unsupported
25029 # Tell ltmain to make .lib files, not .a files.
25031 # Tell ltmain to make .dll files, not .so files.
25033 # FIXME: Setting linknames here is a bad hack.
25034 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25035 # The linker will automatically build a .lib file if we build a DLL.
25036 old_archive_From_new_cmds_GCJ
='true'
25037 # FIXME: Should let the user specify the lib program.
25038 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25039 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25040 enable_shared_with_static_runtimes_GCJ
=yes
25043 darwin
* | rhapsody
*)
25045 rhapsody
* | darwin1.
[012])
25046 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25050 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25052 case ${MACOSX_DEPLOYMENT_TARGET} in
25054 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25057 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25063 archive_cmds_need_lc_GCJ
=no
25064 hardcode_direct_GCJ
=no
25065 hardcode_automatic_GCJ
=yes
25066 hardcode_shlibpath_var_GCJ
=unsupported
25067 whole_archive_flag_spec_GCJ
=''
25068 link_all_deplibs_GCJ
=yes
25069 if test "$GCC" = yes ; then
25070 output_verbose_link_cmd
='echo'
25071 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25072 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25073 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25074 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}'
25075 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}'
25077 case $cc_basename in
25079 output_verbose_link_cmd
='echo'
25080 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25081 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25083 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}'
25084 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}'
25094 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25095 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25096 hardcode_shlibpath_var_GCJ
=no
25103 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25104 # support. Future versions do this automatically, but an explicit c++rt0.o
25105 # does not break anything, and helps significantly (at the cost of a little
25108 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25109 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25110 hardcode_direct_GCJ
=yes
25111 hardcode_shlibpath_var_GCJ
=no
25114 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25116 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25117 hardcode_direct_GCJ
=yes
25118 hardcode_minus_L_GCJ
=yes
25119 hardcode_shlibpath_var_GCJ
=no
25122 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25123 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25124 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25125 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25126 hardcode_direct_GCJ
=yes
25127 hardcode_shlibpath_var_GCJ
=no
25131 if test "$GCC" = yes; then
25132 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'
25134 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'
25136 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25137 hardcode_libdir_separator_GCJ
=:
25138 hardcode_direct_GCJ
=yes
25140 # hardcode_minus_L: Not really in the search PATH,
25141 # but as the default location of the library.
25142 hardcode_minus_L_GCJ
=yes
25143 export_dynamic_flag_spec_GCJ
='${wl}-E'
25147 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25148 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25150 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25152 if test "$with_gnu_ld" = no
; then
25153 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25154 hardcode_libdir_separator_GCJ
=:
25156 hardcode_direct_GCJ
=yes
25157 export_dynamic_flag_spec_GCJ
='${wl}-E'
25159 # hardcode_minus_L: Not really in the search PATH,
25160 # but as the default location of the library.
25161 hardcode_minus_L_GCJ
=yes
25166 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25169 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25172 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25175 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25181 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25184 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25187 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25191 if test "$with_gnu_ld" = no
; then
25192 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25193 hardcode_libdir_separator_GCJ
=:
25197 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25198 hardcode_direct_GCJ
=no
25199 hardcode_shlibpath_var_GCJ
=no
25202 hardcode_direct_GCJ
=yes
25203 export_dynamic_flag_spec_GCJ
='${wl}-E'
25205 # hardcode_minus_L: Not really in the search PATH,
25206 # but as the default location of the library.
25207 hardcode_minus_L_GCJ
=yes
25213 irix5
* | irix6
* | nonstopux
*)
25214 if test "$GCC" = yes; then
25215 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'
25217 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'
25218 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25220 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25221 hardcode_libdir_separator_GCJ
=:
25222 link_all_deplibs_GCJ
=yes
25226 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25227 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25229 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25231 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25232 hardcode_direct_GCJ
=yes
25233 hardcode_shlibpath_var_GCJ
=no
25237 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25238 hardcode_direct_GCJ
=yes
25239 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25240 hardcode_libdir_separator_GCJ
=:
25241 hardcode_shlibpath_var_GCJ
=no
25245 hardcode_direct_GCJ
=yes
25246 hardcode_shlibpath_var_GCJ
=no
25247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25248 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25249 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25250 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25251 export_dynamic_flag_spec_GCJ
='${wl}-E'
25254 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25255 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25256 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25259 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25260 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25267 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25268 hardcode_minus_L_GCJ
=yes
25269 allow_undefined_flag_GCJ
=unsupported
25270 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'
25271 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25275 if test "$GCC" = yes; then
25276 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25277 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'
25279 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25280 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'
25282 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25283 hardcode_libdir_separator_GCJ
=:
25286 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25287 if test "$GCC" = yes; then
25288 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25289 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'
25290 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25292 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25293 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'
25294 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~
25295 $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'
25297 # Both c and cxx compiler support -rpath directly
25298 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25300 hardcode_libdir_separator_GCJ
=:
25304 no_undefined_flag_GCJ
=' -z text'
25305 if test "$GCC" = yes; then
25307 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25308 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25309 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25312 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25313 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25316 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25317 hardcode_shlibpath_var_GCJ
=no
25319 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25321 # The compiler driver will combine linker options so we
25322 # cannot just pass the convience library names through
25323 # without $wl, iff we do not link with $LD.
25324 # Luckily, gcc supports the same syntax we need for Sun Studio.
25325 # Supported since Solaris 2.6 (maybe 2.5.1?)
25328 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25330 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' ;;
25333 link_all_deplibs_GCJ
=yes
25337 if test "x$host_vendor" = xsequent
; then
25338 # Use $CC to link under sequent, because it throws in some extra .o
25339 # files that make .init and .fini sections work.
25340 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25342 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25344 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25345 hardcode_direct_GCJ
=yes
25346 hardcode_minus_L_GCJ
=yes
25347 hardcode_shlibpath_var_GCJ
=no
25351 case $host_vendor in
25353 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 hardcode_direct_GCJ
=yes # is this really true???
25357 ## LD is ld it makes a PLAMLIB
25358 ## CC just makes a GrossModule.
25359 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25360 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25361 hardcode_direct_GCJ
=no
25364 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25368 runpath_var
='LD_RUN_PATH'
25369 hardcode_shlibpath_var_GCJ
=no
25373 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25374 hardcode_shlibpath_var_GCJ
=no
25375 export_dynamic_flag_spec_GCJ
='-Bexport'
25379 if test -d /usr
/nec
; then
25380 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25381 hardcode_shlibpath_var_GCJ
=no
25382 runpath_var
=LD_RUN_PATH
25383 hardcode_runpath_var
=yes
25388 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25389 no_undefined_flag_GCJ
='${wl}-z,text'
25390 archive_cmds_need_lc_GCJ
=no
25391 hardcode_shlibpath_var_GCJ
=no
25392 runpath_var
='LD_RUN_PATH'
25394 if test "$GCC" = yes; then
25395 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25396 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25398 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25399 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25403 sysv5
* | sco3.2v5
* | sco5v6
*)
25404 # Note: We can NOT use -z defs as we might desire, because we do not
25405 # link with -lc, and that would cause any symbols used from libc to
25406 # always be unresolved, which means just about no library would
25407 # ever link correctly. If we're not using GNU ld we use -z text
25408 # though, which does catch some bad symbols but isn't as heavy-handed
25410 no_undefined_flag_GCJ
='${wl}-z,text'
25411 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25412 archive_cmds_need_lc_GCJ
=no
25413 hardcode_shlibpath_var_GCJ
=no
25414 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25415 hardcode_libdir_separator_GCJ
=':'
25416 link_all_deplibs_GCJ
=yes
25417 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25418 runpath_var
='LD_RUN_PATH'
25420 if test "$GCC" = yes; then
25421 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25422 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25424 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25425 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25430 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25431 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25432 hardcode_shlibpath_var_GCJ
=no
25441 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25442 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25443 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25446 # Do we need to explicitly link libc?
25448 case "x$archive_cmds_need_lc_GCJ" in
25450 # Assume -lc should be added
25451 archive_cmds_need_lc_GCJ
=yes
25453 if test "$enable_shared" = yes && test "$GCC" = yes; then
25454 case $archive_cmds_GCJ in
25456 # FIXME: we may have to deal with multi-command sequences.
25459 # Test whether the compiler implicitly links with -lc since on some
25460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25461 # to ld, don't add -lc before -lgcc.
25462 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25465 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25468 (eval $ac_compile) 2>&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } 2>conftest.err
; then
25474 libobjs
=conftest.
$ac_objext
25476 wl
=$lt_prog_compiler_wl_GCJ
25477 pic_flag
=$lt_prog_compiler_pic_GCJ
25483 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25484 allow_undefined_flag_GCJ
=
25485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25486 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }
25491 archive_cmds_need_lc_GCJ
=no
25493 archive_cmds_need_lc_GCJ
=yes
25495 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25497 cat conftest.err
1>&5
25500 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25501 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25508 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25509 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25510 library_names_spec
=
25511 libname_spec
='lib$name'
25515 postuninstall_cmds
=
25519 shlibpath_overrides_runpath
=unknown
25521 dynamic_linker
="$host_os ld.so"
25522 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25523 if test "$GCC" = yes; then
25524 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25525 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25526 # if the path contains ";" then we assume it to be the separator
25527 # otherwise default to the standard path separator (i.e. ":") - it is
25528 # assumed that no part of a normal pathname contains ";" but that should
25529 # okay in the real world where ";" in dirpaths is itself problematic.
25530 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25532 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25535 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25537 need_lib_prefix
=unknown
25538 hardcode_into_libs
=no
25540 # when you set need_version to no, make sure it does not cause -set_version
25541 # flags to be left without arguments
25542 need_version
=unknown
25547 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25548 shlibpath_var
=LIBPATH
25550 # AIX 3 has no versioning support, so we append a major version to the name.
25551 soname_spec
='${libname}${release}${shared_ext}$major'
25558 hardcode_into_libs
=yes
25559 if test "$host_cpu" = ia64
; then
25560 # AIX 5 supports IA64
25561 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25562 shlibpath_var
=LD_LIBRARY_PATH
25564 # With GCC up to 2.95.x, collect2 would create an import file
25565 # for dependence libraries. The import file would start with
25566 # the line `#! .'. This would cause the generated library to
25567 # depend on `.', always an invalid library. This was fixed in
25568 # development snapshots of GCC prior to 3.0.
25570 aix4 | aix4.
[01] | aix4.
[01].
*)
25571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25573 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25576 can_build_shared
=no
25580 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25581 # soname into executable. Probably we can add versioning support to
25582 # collect2, so additional links can be useful in future.
25583 if test "$aix_use_runtimelinking" = yes; then
25584 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25585 # instead of lib<name>.a to let people know that these are not
25586 # typical AIX shared libraries.
25587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589 # We preserve .a as extension for shared libraries through AIX4.2
25590 # and later when we are not doing run time linking.
25591 library_names_spec
='${libname}${release}.a $libname.a'
25592 soname_spec
='${libname}${release}${shared_ext}$major'
25594 shlibpath_var
=LIBPATH
25599 library_names_spec
='$libname.ixlibrary $libname.a'
25600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25601 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'
25605 library_names_spec
='${libname}${shared_ext}'
25606 dynamic_linker
="$host_os ld.so"
25607 shlibpath_var
=LIBRARY_PATH
25613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25614 soname_spec
='${libname}${release}${shared_ext}$major'
25615 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25616 shlibpath_var
=LD_LIBRARY_PATH
25617 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25618 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25619 # the default ld.so.conf also contains /usr/contrib/lib and
25620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25621 # libtool to hard-code these into programs
25624 cygwin
* | mingw
* | pw32
*)
25625 version_type
=windows
25630 case $GCC,$host_os in
25631 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25632 library_names_spec
='$libname.dll.a'
25633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25634 postinstall_cmds
='base_file=`basename \${file}`~
25635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25636 dldir=$destdir/`dirname \$dlpath`~
25637 test -d \$dldir || mkdir -p \$dldir~
25638 $install_prog $dir/$dlname \$dldir/$dlname~
25639 chmod a+x \$dldir/$dlname'
25640 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25641 dlpath=$dir/\$dldll~
25643 shlibpath_overrides_runpath
=yes
25647 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25648 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25649 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25652 # MinGW DLLs use traditional 'lib' prefix
25653 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25654 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25655 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25656 # It is most probably a Windows format PATH printed by
25657 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25658 # path with ; separators, and with drive letters. We can handle the
25659 # drive letters (cygwin fileutils understands them), so leave them,
25660 # especially as we might pass files found there to a mingw objdump,
25661 # which wouldn't understand a cygwinified path. Ahh.
25662 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25668 # pw32 DLLs use 'pw' prefix rather than 'lib'
25669 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25675 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25678 dynamic_linker
='Win32 ld.exe'
25679 # FIXME: first we should search . and the directory the executable is in
25683 darwin
* | rhapsody
*)
25684 dynamic_linker
="$host_os dyld"
25685 version_type
=darwin
25688 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25689 soname_spec
='${libname}${release}${major}$shared_ext'
25690 shlibpath_overrides_runpath
=yes
25691 shlibpath_var
=DYLD_LIBRARY_PATH
25692 shrext_cmds
='.dylib'
25693 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25694 if test "$GCC" = yes; then
25695 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"`
25697 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25699 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25707 soname_spec
='${libname}${release}${shared_ext}$major'
25708 shlibpath_var
=LD_LIBRARY_PATH
25719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25720 soname_spec
='${libname}${release}${shared_ext}$major'
25721 shlibpath_var
=LD_LIBRARY_PATH
25722 shlibpath_overrides_runpath
=no
25723 hardcode_into_libs
=yes
25724 dynamic_linker
='GNU ld.so'
25727 freebsd
* | dragonfly
*)
25728 # DragonFly does not have aout. When/if they implement a new
25729 # versioning mechanism, adjust this.
25730 if test -x /usr
/bin
/objformat
; then
25731 objformat
=`/usr/bin/objformat`
25734 freebsd
[123]*) objformat
=aout
;;
25735 *) objformat
=elf
;;
25738 version_type
=freebsd-
$objformat
25739 case $version_type in
25741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25746 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25750 shlibpath_var
=LD_LIBRARY_PATH
25753 shlibpath_overrides_runpath
=yes
25755 freebsd3.
[01]* | freebsdelf3.
[01]*)
25756 shlibpath_overrides_runpath
=yes
25757 hardcode_into_libs
=yes
25759 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25760 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25761 shlibpath_overrides_runpath
=no
25762 hardcode_into_libs
=yes
25764 freebsd
*) # from 4.6 on
25765 shlibpath_overrides_runpath
=yes
25766 hardcode_into_libs
=yes
25775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25776 soname_spec
='${libname}${release}${shared_ext}$major'
25777 shlibpath_var
=LD_LIBRARY_PATH
25778 hardcode_into_libs
=yes
25781 hpux9
* | hpux10
* | hpux11
*)
25782 # Give a soname corresponding to the major version so that dld.sl refuses to
25783 # link against other versions.
25790 hardcode_into_libs
=yes
25791 dynamic_linker
="$host_os dld.so"
25792 shlibpath_var
=LD_LIBRARY_PATH
25793 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25795 soname_spec
='${libname}${release}${shared_ext}$major'
25796 if test "X$HPUX_IA64_MODE" = X32
; then
25797 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25799 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25801 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25805 hardcode_into_libs
=yes
25806 dynamic_linker
="$host_os dld.sl"
25807 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25808 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810 soname_spec
='${libname}${release}${shared_ext}$major'
25811 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25812 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25816 dynamic_linker
="$host_os dld.sl"
25817 shlibpath_var
=SHLIB_PATH
25818 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25820 soname_spec
='${libname}${release}${shared_ext}$major'
25823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25824 postinstall_cmds
='chmod 555 $lib'
25831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25832 soname_spec
='${libname}${release}${shared_ext}$major'
25833 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25834 shlibpath_var
=LD_LIBRARY_PATH
25835 shlibpath_overrides_runpath
=no
25836 hardcode_into_libs
=yes
25839 irix5
* | irix6
* | nonstopux
*)
25841 nonstopux
*) version_type
=nonstopux
;;
25843 if test "$lt_cv_prog_gnu_ld" = yes; then
25851 soname_spec
='${libname}${release}${shared_ext}$major'
25852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25854 irix5
* | nonstopux
*)
25855 libsuff
= shlibsuff
=
25858 case $LD in # libtool.m4 will add one of these switches to LD
25859 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25860 libsuff
= shlibsuff
= libmagic
=32-bit;;
25861 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25862 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25863 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25864 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25865 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25869 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25870 shlibpath_overrides_runpath
=no
25871 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25872 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25873 hardcode_into_libs
=yes
25876 # No shared lib support for Linux oldld, aout, or coff.
25877 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25881 # This must be Linux ELF.
25886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25887 soname_spec
='${libname}${release}${shared_ext}$major'
25888 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25889 shlibpath_var
=LD_LIBRARY_PATH
25890 shlibpath_overrides_runpath
=no
25891 # This implies no fast_install, which is unacceptable.
25892 # Some rework will be needed to allow for fast_install
25893 # before this can be enabled.
25894 hardcode_into_libs
=yes
25896 # Append ld.so.conf contents to the search path
25897 if test -f /etc
/ld.so.conf
; then
25898 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' ' '`
25899 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25902 # We used to test for /lib/ld.so.1 and disable shared libraries on
25903 # powerpc, because MkLinux only supported shared libraries with the
25904 # GNU dynamic linker. Since this was broken with cross compilers,
25905 # most powerpc-linux boxes support dynamic linking these days and
25906 # people can always --disable-shared, the test was removed, and we
25907 # assume the GNU/Linux dynamic linker is in use.
25908 dynamic_linker
='GNU/Linux ld.so'
25915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25916 soname_spec
='${libname}${release}${shared_ext}$major'
25917 shlibpath_var
=LD_LIBRARY_PATH
25918 shlibpath_overrides_runpath
=no
25919 hardcode_into_libs
=yes
25920 dynamic_linker
='GNU ld.so'
25927 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25929 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25930 dynamic_linker
='NetBSD (a.out) ld.so'
25932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25933 soname_spec
='${libname}${release}${shared_ext}$major'
25934 dynamic_linker
='NetBSD ld.elf_so'
25936 shlibpath_var
=LD_LIBRARY_PATH
25937 shlibpath_overrides_runpath
=yes
25938 hardcode_into_libs
=yes
25943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25944 shlibpath_var
=LD_LIBRARY_PATH
25945 shlibpath_overrides_runpath
=yes
25952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953 soname_spec
='${libname}${release}${shared_ext}$major'
25954 shlibpath_var
=LD_LIBRARY_PATH
25955 shlibpath_overrides_runpath
=yes
25960 sys_lib_dlsearch_path_spec
="/usr/lib"
25962 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25964 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
25965 *) need_version
=no
;;
25967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25968 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25969 shlibpath_var
=LD_LIBRARY_PATH
25970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25972 openbsd2.
[89] | openbsd2.
[89].
*)
25973 shlibpath_overrides_runpath
=no
25976 shlibpath_overrides_runpath
=yes
25980 shlibpath_overrides_runpath
=yes
25985 libname_spec
='$name'
25988 library_names_spec
='$libname${shared_ext} $libname.a'
25989 dynamic_linker
='OS/2 ld.exe'
25990 shlibpath_var
=LIBPATH
25993 osf3
* | osf4
* | osf5
*)
25997 soname_spec
='${libname}${release}${shared_ext}$major'
25998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25999 shlibpath_var
=LD_LIBRARY_PATH
26000 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26001 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26009 soname_spec
='${libname}${release}${shared_ext}$major'
26010 shlibpath_var
=LD_LIBRARY_PATH
26011 shlibpath_overrides_runpath
=yes
26012 hardcode_into_libs
=yes
26013 # ldd complains unless libraries are executable
26014 postinstall_cmds
='chmod +x $lib'
26019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26020 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26021 shlibpath_var
=LD_LIBRARY_PATH
26022 shlibpath_overrides_runpath
=yes
26023 if test "$with_gnu_ld" = yes; then
26031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032 soname_spec
='${libname}${release}${shared_ext}$major'
26033 shlibpath_var
=LD_LIBRARY_PATH
26034 case $host_vendor in
26036 shlibpath_overrides_runpath
=no
26038 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26039 runpath_var
=LD_RUN_PATH
26047 shlibpath_overrides_runpath
=no
26048 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26054 if test -d /usr
/nec
;then
26056 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26057 soname_spec
='$libname${shared_ext}.$major'
26058 shlibpath_var
=LD_LIBRARY_PATH
26062 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26063 version_type
=freebsd-elf
26066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26067 soname_spec
='${libname}${release}${shared_ext}$major'
26068 shlibpath_var
=LD_LIBRARY_PATH
26069 hardcode_into_libs
=yes
26070 if test "$with_gnu_ld" = yes; then
26071 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26072 shlibpath_overrides_runpath
=no
26074 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26075 shlibpath_overrides_runpath
=yes
26078 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26082 sys_lib_dlsearch_path_spec
='/usr/lib'
26087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26088 soname_spec
='${libname}${release}${shared_ext}$major'
26089 shlibpath_var
=LD_LIBRARY_PATH
26096 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26097 echo "${ECHO_T}$dynamic_linker" >&6; }
26098 test "$dynamic_linker" = no
&& can_build_shared
=no
26100 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26101 if test "$GCC" = yes; then
26102 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26105 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26106 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26107 hardcode_action_GCJ
=
26108 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26109 test -n "$runpath_var_GCJ" || \
26110 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26112 # We can hardcode non-existant directories.
26113 if test "$hardcode_direct_GCJ" != no
&&
26114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26115 # have to relink, otherwise we might link with an installed library
26116 # when we should be linking with a yet-to-be-installed one
26117 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26118 test "$hardcode_minus_L_GCJ" != no
; then
26119 # Linking always hardcodes the temporary library directory.
26120 hardcode_action_GCJ
=relink
26122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26123 hardcode_action_GCJ
=immediate
26126 # We cannot hardcode anything, or else we can only hardcode existing
26128 hardcode_action_GCJ
=unsupported
26130 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26131 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26133 if test "$hardcode_action_GCJ" = relink
; then
26134 # Fast installation is not supported
26135 enable_fast_install
=no
26136 elif test "$shlibpath_overrides_runpath" = yes ||
26137 test "$enable_shared" = no
; then
26138 # Fast installation is not necessary
26139 enable_fast_install
=needless
26143 # The else clause should only fire when bootstrapping the
26144 # libtool distribution, otherwise you forgot to ship ltmain.sh
26145 # with your package, and you will get complaints that there are
26146 # no rules to generate ltmain.sh.
26147 if test -f "$ltmain"; then
26148 # See if we are running on zsh, and set the options which allow our commands through
26149 # without removal of \ escapes.
26150 if test -n "${ZSH_VERSION+set}" ; then
26151 setopt NO_GLOB_SUBST
26153 # Now quote all the things that may contain metacharacters while being
26154 # careful not to overquote the AC_SUBSTed values. We take copies of the
26155 # variables and quote the copies for generation of the libtool script.
26156 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26158 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26159 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26160 deplibs_check_method reload_flag reload_cmds need_locks \
26161 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26162 lt_cv_sys_global_symbol_to_c_name_address \
26163 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26164 old_postinstall_cmds old_postuninstall_cmds \
26168 lt_prog_compiler_wl_GCJ \
26169 lt_prog_compiler_pic_GCJ \
26170 lt_prog_compiler_static_GCJ \
26171 lt_prog_compiler_no_builtin_flag_GCJ \
26172 export_dynamic_flag_spec_GCJ \
26173 thread_safe_flag_spec_GCJ \
26174 whole_archive_flag_spec_GCJ \
26175 enable_shared_with_static_runtimes_GCJ \
26176 old_archive_cmds_GCJ \
26177 old_archive_from_new_cmds_GCJ \
26178 predep_objects_GCJ \
26179 postdep_objects_GCJ \
26182 compiler_lib_search_path_GCJ \
26184 archive_expsym_cmds_GCJ \
26185 postinstall_cmds_GCJ \
26186 postuninstall_cmds_GCJ \
26187 old_archive_from_expsyms_cmds_GCJ \
26188 allow_undefined_flag_GCJ \
26189 no_undefined_flag_GCJ \
26190 export_symbols_cmds_GCJ \
26191 hardcode_libdir_flag_spec_GCJ \
26192 hardcode_libdir_flag_spec_ld_GCJ \
26193 hardcode_libdir_separator_GCJ \
26194 hardcode_automatic_GCJ \
26196 module_expsym_cmds_GCJ \
26197 lt_cv_prog_compiler_c_o_GCJ \
26198 exclude_expsyms_GCJ \
26199 include_expsyms_GCJ
; do
26202 old_archive_cmds_GCJ | \
26203 old_archive_from_new_cmds_GCJ | \
26204 archive_cmds_GCJ | \
26205 archive_expsym_cmds_GCJ | \
26206 module_cmds_GCJ | \
26207 module_expsym_cmds_GCJ | \
26208 old_archive_from_expsyms_cmds_GCJ | \
26209 export_symbols_cmds_GCJ | \
26210 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26211 postinstall_cmds | postuninstall_cmds | \
26212 old_postinstall_cmds | old_postuninstall_cmds | \
26213 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26214 # Double-quote double-evaled strings.
26215 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26224 *'\$0 --fallback-echo"')
26225 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26231 cat <<__EOF__ >> "$cfgfile"
26232 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26234 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26236 # Shell to use when invoking shell scripts.
26239 # Whether or not to build shared libraries.
26240 build_libtool_libs=$enable_shared
26242 # Whether or not to build static libraries.
26243 build_old_libs=$enable_static
26245 # Whether or not to add -lc for building shared libraries.
26246 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26248 # Whether or not to disallow shared libs when runtime libs are static
26249 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26251 # Whether or not to optimize for fast installation.
26252 fast_install=$enable_fast_install
26255 host_alias=$host_alias
26259 # The build system.
26260 build_alias=$build_alias
26264 # An echo program that does not interpret backslashes.
26269 AR_FLAGS=$lt_AR_FLAGS
26274 # LTCC compiler flags.
26275 LTCFLAGS=$lt_LTCFLAGS
26277 # A language-specific compiler.
26278 CC=$lt_compiler_GCJ
26280 # Is the compiler the GNU C compiler?
26286 # The linker used to build libraries.
26289 # Whether we need hard or soft links.
26292 # A BSD-compatible nm program.
26295 # A symbol stripping program
26298 # Used to examine libraries when file_magic_cmd begins "file"
26299 MAGIC_CMD=$MAGIC_CMD
26301 # Used on cygwin: DLL creation program.
26304 # Used on cygwin: object dumper.
26307 # Used on cygwin: assembler.
26310 # The name of the directory that contains temporary libtool files.
26313 # How to create reloadable object files.
26314 reload_flag=$lt_reload_flag
26315 reload_cmds=$lt_reload_cmds
26317 # How to pass a linker flag through the compiler.
26318 wl=$lt_lt_prog_compiler_wl_GCJ
26320 # Object file suffix (normally "o").
26321 objext="$ac_objext"
26323 # Old archive suffix (normally "a").
26326 # Shared library suffix (normally ".so").
26327 shrext_cmds='$shrext_cmds'
26329 # Executable file suffix (normally "").
26332 # Additional compiler flags for building library objects.
26333 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26336 # What is the maximum length of a command?
26337 max_cmd_len=$lt_cv_sys_max_cmd_len
26339 # Does compiler simultaneously support -c and -o options?
26340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26342 # Must we lock files when doing compilation?
26343 need_locks=$lt_need_locks
26345 # Do we need the lib prefix for modules?
26346 need_lib_prefix=$need_lib_prefix
26348 # Do we need a version for libraries?
26349 need_version=$need_version
26351 # Whether dlopen is supported.
26352 dlopen_support=$enable_dlopen
26354 # Whether dlopen of programs is supported.
26355 dlopen_self=$enable_dlopen_self
26357 # Whether dlopen of statically linked programs is supported.
26358 dlopen_self_static=$enable_dlopen_self_static
26360 # Compiler flag to prevent dynamic linking.
26361 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26363 # Compiler flag to turn off builtin functions.
26364 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26366 # Compiler flag to allow reflexive dlopens.
26367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26369 # Compiler flag to generate shared objects directly from archives.
26370 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26372 # Compiler flag to generate thread-safe objects.
26373 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26375 # Library versioning type.
26376 version_type=$version_type
26378 # Format of library name prefix.
26379 libname_spec=$lt_libname_spec
26381 # List of archive names. First name is the real one, the rest are links.
26382 # The last name is the one that the linker finds with -lNAME.
26383 library_names_spec=$lt_library_names_spec
26385 # The coded name of the library, if different from the real name.
26386 soname_spec=$lt_soname_spec
26388 # Commands used to build and install an old-style archive.
26390 old_archive_cmds=$lt_old_archive_cmds_GCJ
26391 old_postinstall_cmds=$lt_old_postinstall_cmds
26392 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26394 # Create an old-style archive from a shared archive.
26395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26397 # Create a temporary old-style archive to link instead of a shared archive.
26398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26400 # Commands used to build and install a shared archive.
26401 archive_cmds=$lt_archive_cmds_GCJ
26402 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26403 postinstall_cmds=$lt_postinstall_cmds
26404 postuninstall_cmds=$lt_postuninstall_cmds
26406 # Commands used to build a loadable module (assumed same as above if empty)
26407 module_cmds=$lt_module_cmds_GCJ
26408 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26410 # Commands to strip libraries.
26411 old_striplib=$lt_old_striplib
26412 striplib=$lt_striplib
26414 # Dependencies to place before the objects being linked to create a
26416 predep_objects=$lt_predep_objects_GCJ
26418 # Dependencies to place after the objects being linked to create a
26420 postdep_objects=$lt_postdep_objects_GCJ
26422 # Dependencies to place before the objects being linked to create a
26424 predeps=$lt_predeps_GCJ
26426 # Dependencies to place after the objects being linked to create a
26428 postdeps=$lt_postdeps_GCJ
26430 # The library search path used internally by the compiler when linking
26431 # a shared library.
26432 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26434 # Method to check whether dependent libraries are shared objects.
26435 deplibs_check_method=$lt_deplibs_check_method
26437 # Command to use when deplibs_check_method == file_magic.
26438 file_magic_cmd=$lt_file_magic_cmd
26440 # Flag that allows shared libraries with undefined symbols to be built.
26441 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26443 # Flag that forces no undefined symbols.
26444 no_undefined_flag=$lt_no_undefined_flag_GCJ
26446 # Commands used to finish a libtool library installation in a directory.
26447 finish_cmds=$lt_finish_cmds
26449 # Same as above, but a single script fragment to be evaled but not shown.
26450 finish_eval=$lt_finish_eval
26452 # Take the output of nm and produce a listing of raw symbols and C names.
26453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26455 # Transform the output of nm in a proper C declaration
26456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26458 # Transform the output of nm in a C name address pair
26459 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26461 # This is the shared library runtime path variable.
26462 runpath_var=$runpath_var
26464 # This is the shared library path variable.
26465 shlibpath_var=$shlibpath_var
26467 # Is shlibpath searched before the hard-coded library search path?
26468 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26470 # How to hardcode a shared library path into an executable.
26471 hardcode_action=$hardcode_action_GCJ
26473 # Whether we should hardcode library paths into libraries.
26474 hardcode_into_libs=$hardcode_into_libs
26476 # Flag to hardcode \$libdir into a binary during linking.
26477 # This must work even if \$libdir does not exist.
26478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26480 # If ld is used when linking, flag to hardcode \$libdir into
26481 # a binary during linking. This must work even if \$libdir does
26483 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26485 # Whether we need a single -rpath flag with a separated argument.
26486 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26488 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26489 # resulting binary.
26490 hardcode_direct=$hardcode_direct_GCJ
26492 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26493 # resulting binary.
26494 hardcode_minus_L=$hardcode_minus_L_GCJ
26496 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26497 # the resulting binary.
26498 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26500 # Set to yes if building a shared library automatically hardcodes DIR into the library
26501 # and all subsequent libraries and executables linked against it.
26502 hardcode_automatic=$hardcode_automatic_GCJ
26504 # Variables whose values should be saved in libtool wrapper scripts and
26505 # restored at relink time.
26506 variables_saved_for_relink="$variables_saved_for_relink"
26508 # Whether libtool must link a program against all its dependency libraries.
26509 link_all_deplibs=$link_all_deplibs_GCJ
26511 # Compile-time system search path for libraries
26512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26514 # Run-time system search path for libraries
26515 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26517 # Fix the shell variable \$srcfile for the compiler.
26518 fix_srcfile_path="$fix_srcfile_path_GCJ"
26520 # Set to yes if exported symbols are required.
26521 always_export_symbols=$always_export_symbols_GCJ
26523 # The commands to list exported symbols.
26524 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26526 # The commands to extract the exported symbol list from a shared archive.
26527 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26529 # Symbols that should not be listed in the preloaded symbols.
26530 exclude_expsyms=$lt_exclude_expsyms_GCJ
26532 # Symbols that must always be exported.
26533 include_expsyms=$lt_include_expsyms_GCJ
26535 # ### END LIBTOOL TAG CONFIG: $tagname
26541 # If there is no Makefile yet, we rely on a make rule to execute
26542 # `config.status --recheck' to rerun these tests and create the
26543 # libtool script then.
26544 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26545 if test -f "$ltmain_in"; then
26546 test -f Makefile
&& make "$ltmain"
26552 ac_cpp
='$CPP $CPPFLAGS'
26553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26566 ac_cpp
='$CPP $CPPFLAGS'
26567 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26572 # Source file extension for RC test sources.
26575 # Object file extension for compiled RC test sources.
26579 # Code to be used in simple compile tests
26580 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26582 # Code to be used in simple link tests
26583 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26587 # If no C compiler was specified, use CC.
26590 # If no C compiler flags were specified, use CFLAGS.
26591 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26593 # Allow CC to be a program name with arguments.
26597 # save warnings/boilerplate of simple test code
26598 ac_outfile
=conftest.
$ac_objext
26599 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26600 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26601 _lt_compiler_boilerplate
=`cat conftest.err`
26604 ac_outfile
=conftest.
$ac_objext
26605 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26606 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26607 _lt_linker_boilerplate
=`cat conftest.err`
26611 # Allow CC to be a program name with arguments.
26616 for cc_temp
in $compiler""; do
26618 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26619 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26624 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26626 lt_cv_prog_compiler_c_o_RC
=yes
26628 # The else clause should only fire when bootstrapping the
26629 # libtool distribution, otherwise you forgot to ship ltmain.sh
26630 # with your package, and you will get complaints that there are
26631 # no rules to generate ltmain.sh.
26632 if test -f "$ltmain"; then
26633 # See if we are running on zsh, and set the options which allow our commands through
26634 # without removal of \ escapes.
26635 if test -n "${ZSH_VERSION+set}" ; then
26636 setopt NO_GLOB_SUBST
26638 # Now quote all the things that may contain metacharacters while being
26639 # careful not to overquote the AC_SUBSTed values. We take copies of the
26640 # variables and quote the copies for generation of the libtool script.
26641 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26645 deplibs_check_method reload_flag reload_cmds need_locks \
26646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26647 lt_cv_sys_global_symbol_to_c_name_address \
26648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26649 old_postinstall_cmds old_postuninstall_cmds \
26653 lt_prog_compiler_wl_RC \
26654 lt_prog_compiler_pic_RC \
26655 lt_prog_compiler_static_RC \
26656 lt_prog_compiler_no_builtin_flag_RC \
26657 export_dynamic_flag_spec_RC \
26658 thread_safe_flag_spec_RC \
26659 whole_archive_flag_spec_RC \
26660 enable_shared_with_static_runtimes_RC \
26661 old_archive_cmds_RC \
26662 old_archive_from_new_cmds_RC \
26663 predep_objects_RC \
26664 postdep_objects_RC \
26667 compiler_lib_search_path_RC \
26669 archive_expsym_cmds_RC \
26670 postinstall_cmds_RC \
26671 postuninstall_cmds_RC \
26672 old_archive_from_expsyms_cmds_RC \
26673 allow_undefined_flag_RC \
26674 no_undefined_flag_RC \
26675 export_symbols_cmds_RC \
26676 hardcode_libdir_flag_spec_RC \
26677 hardcode_libdir_flag_spec_ld_RC \
26678 hardcode_libdir_separator_RC \
26679 hardcode_automatic_RC \
26681 module_expsym_cmds_RC \
26682 lt_cv_prog_compiler_c_o_RC \
26683 exclude_expsyms_RC \
26684 include_expsyms_RC
; do
26687 old_archive_cmds_RC | \
26688 old_archive_from_new_cmds_RC | \
26689 archive_cmds_RC | \
26690 archive_expsym_cmds_RC | \
26692 module_expsym_cmds_RC | \
26693 old_archive_from_expsyms_cmds_RC | \
26694 export_symbols_cmds_RC | \
26695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26696 postinstall_cmds | postuninstall_cmds | \
26697 old_postinstall_cmds | old_postuninstall_cmds | \
26698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26699 # Double-quote double-evaled strings.
26700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26709 *'\$0 --fallback-echo"')
26710 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26716 cat <<__EOF__ >> "$cfgfile"
26717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26721 # Shell to use when invoking shell scripts.
26724 # Whether or not to build shared libraries.
26725 build_libtool_libs=$enable_shared
26727 # Whether or not to build static libraries.
26728 build_old_libs=$enable_static
26730 # Whether or not to add -lc for building shared libraries.
26731 build_libtool_need_lc=$archive_cmds_need_lc_RC
26733 # Whether or not to disallow shared libs when runtime libs are static
26734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26736 # Whether or not to optimize for fast installation.
26737 fast_install=$enable_fast_install
26740 host_alias=$host_alias
26744 # The build system.
26745 build_alias=$build_alias
26749 # An echo program that does not interpret backslashes.
26754 AR_FLAGS=$lt_AR_FLAGS
26759 # LTCC compiler flags.
26760 LTCFLAGS=$lt_LTCFLAGS
26762 # A language-specific compiler.
26765 # Is the compiler the GNU C compiler?
26771 # The linker used to build libraries.
26774 # Whether we need hard or soft links.
26777 # A BSD-compatible nm program.
26780 # A symbol stripping program
26783 # Used to examine libraries when file_magic_cmd begins "file"
26784 MAGIC_CMD=$MAGIC_CMD
26786 # Used on cygwin: DLL creation program.
26789 # Used on cygwin: object dumper.
26792 # Used on cygwin: assembler.
26795 # The name of the directory that contains temporary libtool files.
26798 # How to create reloadable object files.
26799 reload_flag=$lt_reload_flag
26800 reload_cmds=$lt_reload_cmds
26802 # How to pass a linker flag through the compiler.
26803 wl=$lt_lt_prog_compiler_wl_RC
26805 # Object file suffix (normally "o").
26806 objext="$ac_objext"
26808 # Old archive suffix (normally "a").
26811 # Shared library suffix (normally ".so").
26812 shrext_cmds='$shrext_cmds'
26814 # Executable file suffix (normally "").
26817 # Additional compiler flags for building library objects.
26818 pic_flag=$lt_lt_prog_compiler_pic_RC
26821 # What is the maximum length of a command?
26822 max_cmd_len=$lt_cv_sys_max_cmd_len
26824 # Does compiler simultaneously support -c and -o options?
26825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26827 # Must we lock files when doing compilation?
26828 need_locks=$lt_need_locks
26830 # Do we need the lib prefix for modules?
26831 need_lib_prefix=$need_lib_prefix
26833 # Do we need a version for libraries?
26834 need_version=$need_version
26836 # Whether dlopen is supported.
26837 dlopen_support=$enable_dlopen
26839 # Whether dlopen of programs is supported.
26840 dlopen_self=$enable_dlopen_self
26842 # Whether dlopen of statically linked programs is supported.
26843 dlopen_self_static=$enable_dlopen_self_static
26845 # Compiler flag to prevent dynamic linking.
26846 link_static_flag=$lt_lt_prog_compiler_static_RC
26848 # Compiler flag to turn off builtin functions.
26849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26851 # Compiler flag to allow reflexive dlopens.
26852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26854 # Compiler flag to generate shared objects directly from archives.
26855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26857 # Compiler flag to generate thread-safe objects.
26858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26860 # Library versioning type.
26861 version_type=$version_type
26863 # Format of library name prefix.
26864 libname_spec=$lt_libname_spec
26866 # List of archive names. First name is the real one, the rest are links.
26867 # The last name is the one that the linker finds with -lNAME.
26868 library_names_spec=$lt_library_names_spec
26870 # The coded name of the library, if different from the real name.
26871 soname_spec=$lt_soname_spec
26873 # Commands used to build and install an old-style archive.
26875 old_archive_cmds=$lt_old_archive_cmds_RC
26876 old_postinstall_cmds=$lt_old_postinstall_cmds
26877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26879 # Create an old-style archive from a shared archive.
26880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26882 # Create a temporary old-style archive to link instead of a shared archive.
26883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26885 # Commands used to build and install a shared archive.
26886 archive_cmds=$lt_archive_cmds_RC
26887 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26888 postinstall_cmds=$lt_postinstall_cmds
26889 postuninstall_cmds=$lt_postuninstall_cmds
26891 # Commands used to build a loadable module (assumed same as above if empty)
26892 module_cmds=$lt_module_cmds_RC
26893 module_expsym_cmds=$lt_module_expsym_cmds_RC
26895 # Commands to strip libraries.
26896 old_striplib=$lt_old_striplib
26897 striplib=$lt_striplib
26899 # Dependencies to place before the objects being linked to create a
26901 predep_objects=$lt_predep_objects_RC
26903 # Dependencies to place after the objects being linked to create a
26905 postdep_objects=$lt_postdep_objects_RC
26907 # Dependencies to place before the objects being linked to create a
26909 predeps=$lt_predeps_RC
26911 # Dependencies to place after the objects being linked to create a
26913 postdeps=$lt_postdeps_RC
26915 # The library search path used internally by the compiler when linking
26916 # a shared library.
26917 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26919 # Method to check whether dependent libraries are shared objects.
26920 deplibs_check_method=$lt_deplibs_check_method
26922 # Command to use when deplibs_check_method == file_magic.
26923 file_magic_cmd=$lt_file_magic_cmd
26925 # Flag that allows shared libraries with undefined symbols to be built.
26926 allow_undefined_flag=$lt_allow_undefined_flag_RC
26928 # Flag that forces no undefined symbols.
26929 no_undefined_flag=$lt_no_undefined_flag_RC
26931 # Commands used to finish a libtool library installation in a directory.
26932 finish_cmds=$lt_finish_cmds
26934 # Same as above, but a single script fragment to be evaled but not shown.
26935 finish_eval=$lt_finish_eval
26937 # Take the output of nm and produce a listing of raw symbols and C names.
26938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26940 # Transform the output of nm in a proper C declaration
26941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26943 # Transform the output of nm in a C name address pair
26944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26946 # This is the shared library runtime path variable.
26947 runpath_var=$runpath_var
26949 # This is the shared library path variable.
26950 shlibpath_var=$shlibpath_var
26952 # Is shlibpath searched before the hard-coded library search path?
26953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26955 # How to hardcode a shared library path into an executable.
26956 hardcode_action=$hardcode_action_RC
26958 # Whether we should hardcode library paths into libraries.
26959 hardcode_into_libs=$hardcode_into_libs
26961 # Flag to hardcode \$libdir into a binary during linking.
26962 # This must work even if \$libdir does not exist.
26963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26965 # If ld is used when linking, flag to hardcode \$libdir into
26966 # a binary during linking. This must work even if \$libdir does
26968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26970 # Whether we need a single -rpath flag with a separated argument.
26971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26974 # resulting binary.
26975 hardcode_direct=$hardcode_direct_RC
26977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26978 # resulting binary.
26979 hardcode_minus_L=$hardcode_minus_L_RC
26981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26982 # the resulting binary.
26983 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26985 # Set to yes if building a shared library automatically hardcodes DIR into the library
26986 # and all subsequent libraries and executables linked against it.
26987 hardcode_automatic=$hardcode_automatic_RC
26989 # Variables whose values should be saved in libtool wrapper scripts and
26990 # restored at relink time.
26991 variables_saved_for_relink="$variables_saved_for_relink"
26993 # Whether libtool must link a program against all its dependency libraries.
26994 link_all_deplibs=$link_all_deplibs_RC
26996 # Compile-time system search path for libraries
26997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26999 # Run-time system search path for libraries
27000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27002 # Fix the shell variable \$srcfile for the compiler.
27003 fix_srcfile_path="$fix_srcfile_path_RC"
27005 # Set to yes if exported symbols are required.
27006 always_export_symbols=$always_export_symbols_RC
27008 # The commands to list exported symbols.
27009 export_symbols_cmds=$lt_export_symbols_cmds_RC
27011 # The commands to extract the exported symbol list from a shared archive.
27012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27014 # Symbols that should not be listed in the preloaded symbols.
27015 exclude_expsyms=$lt_exclude_expsyms_RC
27017 # Symbols that must always be exported.
27018 include_expsyms=$lt_include_expsyms_RC
27020 # ### END LIBTOOL TAG CONFIG: $tagname
27026 # If there is no Makefile yet, we rely on a make rule to execute
27027 # `config.status --recheck' to rerun these tests and create the
27028 # libtool script then.
27029 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27030 if test -f "$ltmain_in"; then
27031 test -f Makefile
&& make "$ltmain"
27037 ac_cpp
='$CPP $CPPFLAGS'
27038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27047 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27048 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27049 { (exit 1); exit 1; }; }
27053 # Append the new tag name to the list of available tags.
27054 if test -n "$tagname" ; then
27055 available_tags
="$available_tags $tagname"
27061 # Now substitute the updated list of available tags.
27062 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27063 mv "${ofile}T" "$ofile"
27067 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27068 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27069 { (exit 1); exit 1; }; }
27075 # This can be used to rebuild libtool when needed
27076 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27078 # Always use our own libtool.
27079 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27081 # Prevent multiple expansion
27103 if test "$lt_cv_dlopen_self" = "yes" ; then
27105 cat >>confdefs.h
<<\_ACEOF
27106 #define CAN_DLOPEN_SELF 1
27111 if test "$WITH_LLVMGCCDIR" = "default" ; then
27112 LLVMGCC
="llvm-gcc${EXEEXT}"
27113 LLVMGXX
="llvm-g++${EXEEXT}"
27114 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27115 set dummy
$LLVMGCC; ac_word
=$2
27116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27118 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27127 for as_dir
in $PATH
27130 test -z "$as_dir" && as_dir
=.
27131 for ac_exec_ext
in '' $ac_executable_extensions; do
27132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27133 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27144 LLVMGCC
=$ac_cv_path_LLVMGCC
27145 if test -n "$LLVMGCC"; then
27146 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27147 echo "${ECHO_T}$LLVMGCC" >&6; }
27149 { echo "$as_me:$LINENO: result: no" >&5
27150 echo "${ECHO_T}no" >&6; }
27154 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27155 set dummy
$LLVMGXX; ac_word
=$2
27156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27158 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27167 for as_dir
in $PATH
27170 test -z "$as_dir" && as_dir
=.
27171 for ac_exec_ext
in '' $ac_executable_extensions; do
27172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27173 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27184 LLVMGXX
=$ac_cv_path_LLVMGXX
27185 if test -n "$LLVMGXX"; then
27186 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27187 echo "${ECHO_T}$LLVMGXX" >&6; }
27189 { echo "$as_me:$LINENO: result: no" >&5
27190 echo "${ECHO_T}no" >&6; }
27195 if test -z "$LLVMGCC"; then
27196 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27198 if test -z "$LLVMGXX"; then
27199 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27207 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27208 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27221 if test "$GCC" != "yes" && test "$ICC" != "yes"
27223 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27224 echo "$as_me: error: gcc|icc required but not found" >&2;}
27225 { (exit 1); exit 1; }; }
27228 if test "$GXX" != "yes" && test "$IXX" != "yes"
27230 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27231 echo "$as_me: error: g++|icc required but not found" >&2;}
27232 { (exit 1); exit 1; }; }
27235 if test "$GCC" = "yes"
27237 cat >conftest.
$ac_ext <<_ACEOF
27238 #if !defined(__GNUC__) || __GNUC__ < 3
27239 #error Unsupported GCC version
27243 rm -f conftest.
$ac_objext
27244 if { (ac_try
="$ac_compile"
27245 case "(($ac_try" in
27246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27247 *) ac_try_echo=$ac_try;;
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250 (eval "$ac_compile") 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27260 *) ac_try_echo
=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try
='test -s conftest.$ac_objext'
27268 { (case "(($ac_try" in
27269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
27279 echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27282 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27283 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27284 { (exit 1); exit 1; }; }
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27290 if test -z "$llvm_cv_gnu_make_command"
27292 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27293 echo "$as_me: error: GNU Make required but not found" >&2;}
27294 { (exit 1); exit 1; }; }
27297 { echo "$as_me:$LINENO: result: ok" >&5
27298 echo "${ECHO_T}ok" >&6; }
27302 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27303 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27304 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27305 echo $ECHO_N "(cached) $ECHO_C" >&6
27307 ac_check_lib_save_LIBS=$LIBS
27309 cat >conftest.$ac_ext <<_ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27316 /* Override any GCC internal prototype to avoid an error.
27317 Use char because int might match the return type of a GCC
27318 builtin and then its argument prototype would still apply. */
27326 return elf_begin ();
27331 rm -f conftest.$ac_objext conftest$ac_exeext
27332 if { (ac_try="$ac_link"
27333 case "(($ac_try" in
27334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27335 *) ac_try_echo
=$ac_try;;
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_link") 2>conftest.er1
27340 grep -v '^ *+' conftest.er1
>conftest.err
27342 cat conftest.err
>&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } &&
27345 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346 { (case "(($ac_try" in
27347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } &&
27355 { ac_try='test -s conftest$ac_exeext'
27356 { (case "(($ac_try" in
27357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27358 *) ac_try_echo
=$ac_try;;
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_try") 2>&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; }; then
27365 ac_cv_lib_elf_elf_begin
=yes
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.
$ac_ext >&5
27370 ac_cv_lib_elf_elf_begin
=no
27373 rm -f core conftest.err conftest.
$ac_objext \
27374 conftest
$ac_exeext conftest.
$ac_ext
27375 LIBS
=$ac_check_lib_save_LIBS
27377 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27378 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27379 if test $ac_cv_lib_elf_elf_begin = yes; then
27380 cat >>confdefs.h
<<_ACEOF
27381 #define HAVE_LIBELF 1
27389 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27390 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27391 if test "${ac_cv_lib_m_sin+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27394 ac_check_lib_save_LIBS
=$LIBS
27396 cat >conftest.
$ac_ext <<_ACEOF
27399 cat confdefs.h
>>conftest.
$ac_ext
27400 cat >>conftest.
$ac_ext <<_ACEOF
27401 /* end confdefs.h. */
27403 /* Override any GCC internal prototype to avoid an error.
27404 Use char because int might match the return type of a GCC
27405 builtin and then its argument prototype would still apply. */
27418 rm -f conftest.
$ac_objext conftest
$ac_exeext
27419 if { (ac_try
="$ac_link"
27420 case "(($ac_try" in
27421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_link") 2>conftest.er1
27427 grep -v '^ *+' conftest.er1 >conftest.err
27429 cat conftest.err >&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } &&
27432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27433 { (case "(($ac_try" in
27434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27435 *) ac_try_echo
=$ac_try;;
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_try") 2>&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try
='test -s conftest$ac_exeext'
27443 { (case "(($ac_try" in
27444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448 (eval "$ac_try") 2>&5
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; }; then
27452 ac_cv_lib_m_sin=yes
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27460 rm -f core conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27464 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27465 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27466 if test $ac_cv_lib_m_sin = yes; then
27467 cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBM 1
27475 if test "$llvm_cv_os_type" = "MingW" ; then
27477 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27478 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27479 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 ac_check_lib_save_LIBS=$LIBS
27483 LIBS="-limagehlp $LIBS"
27484 cat >conftest.$ac_ext <<_ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27504 *) ac_try_echo
=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_link") 2>conftest.er1
27509 grep -v '^ *+' conftest.er1
>conftest.err
27511 cat conftest.err
>&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } &&
27514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27515 { (case "(($ac_try" in
27516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27517 *) ac_try_echo=$ac_try;;
27519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520 (eval "$ac_try") 2>&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; } &&
27524 { ac_try='test -s conftest$ac_exeext'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27527 *) ac_try_echo
=$ac_try;;
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
27534 ac_cv_lib_imagehlp_main
=yes
27536 echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.
$ac_ext >&5
27539 ac_cv_lib_imagehlp_main
=no
27542 rm -f core conftest.err conftest.
$ac_objext \
27543 conftest
$ac_exeext conftest.
$ac_ext
27544 LIBS
=$ac_check_lib_save_LIBS
27546 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27547 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27548 if test $ac_cv_lib_imagehlp_main = yes; then
27549 cat >>confdefs.h
<<_ACEOF
27550 #define HAVE_LIBIMAGEHLP 1
27553 LIBS
="-limagehlp $LIBS"
27558 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27559 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27560 if test "${ac_cv_lib_psapi_main+set}" = set; then
27561 echo $ECHO_N "(cached) $ECHO_C" >&6
27563 ac_check_lib_save_LIBS
=$LIBS
27564 LIBS
="-lpsapi $LIBS"
27565 cat >conftest.
$ac_ext <<_ACEOF
27568 cat confdefs.h
>>conftest.
$ac_ext
27569 cat >>conftest.
$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27581 rm -f conftest.
$ac_objext conftest
$ac_exeext
27582 if { (ac_try
="$ac_link"
27583 case "(($ac_try" in
27584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_link") 2>conftest.er1
27590 grep -v '^ *+' conftest.er1 >conftest.err
27592 cat conftest.err >&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } &&
27595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27598 *) ac_try_echo
=$ac_try;;
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; } &&
27605 { ac_try
='test -s conftest$ac_exeext'
27606 { (case "(($ac_try" in
27607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 ac_cv_lib_psapi_main=yes
27617 echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27620 ac_cv_lib_psapi_main=no
27623 rm -f core conftest.err conftest.$ac_objext \
27624 conftest$ac_exeext conftest.$ac_ext
27625 LIBS=$ac_check_lib_save_LIBS
27627 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27628 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27629 if test $ac_cv_lib_psapi_main = yes; then
27630 cat >>confdefs.h <<_ACEOF
27631 #define HAVE_LIBPSAPI 1
27634 LIBS="-lpsapi $LIBS"
27640 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27641 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27642 if test "${ac_cv_search_dlopen+set}" = set; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 ac_func_search_save_LIBS=$LIBS
27646 cat >conftest.$ac_ext <<_ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h. */
27653 /* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27668 for ac_lib in '' dl; do
27669 if test -z "$ac_lib"; then
27670 ac_res="none required"
27673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (ac_try="$ac_link"
27677 case "(($ac_try" in
27678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27679 *) ac_try_echo
=$ac_try;;
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_link") 2>conftest.er1
27684 grep -v '^ *+' conftest.er1
>conftest.err
27686 cat conftest.err
>&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } &&
27689 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27690 { (case "(($ac_try" in
27691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_try") 2>&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); }; } &&
27699 { ac_try='test -s conftest$ac_exeext'
27700 { (case "(($ac_try" in
27701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27702 *) ac_try_echo
=$ac_try;;
27704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705 (eval "$ac_try") 2>&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; }; then
27709 ac_cv_search_dlopen
=$ac_res
27711 echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.
$ac_ext >&5
27717 rm -f core conftest.err conftest.
$ac_objext \
27719 if test "${ac_cv_search_dlopen+set}" = set; then
27723 if test "${ac_cv_search_dlopen+set}" = set; then
27726 ac_cv_search_dlopen
=no
27728 rm conftest.
$ac_ext
27729 LIBS
=$ac_func_search_save_LIBS
27731 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27732 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27733 ac_res
=$ac_cv_search_dlopen
27734 if test "$ac_res" != no
; then
27735 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27737 cat >>confdefs.h
<<\_ACEOF
27738 #define HAVE_DLOPEN 1
27742 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27743 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27747 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27748 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27749 if test "${ac_cv_search_mallinfo+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27752 ac_func_search_save_LIBS
=$LIBS
27753 cat >conftest.
$ac_ext <<_ACEOF
27756 cat confdefs.h
>>conftest.
$ac_ext
27757 cat >>conftest.
$ac_ext <<_ACEOF
27758 /* end confdefs.h. */
27760 /* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
27770 return mallinfo ();
27775 for ac_lib
in '' malloc
; do
27776 if test -z "$ac_lib"; then
27777 ac_res
="none required"
27780 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27782 rm -f conftest.
$ac_objext conftest
$ac_exeext
27783 if { (ac_try
="$ac_link"
27784 case "(($ac_try" in
27785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_link") 2>conftest.er1
27791 grep -v '^ *+' conftest.er1 >conftest.err
27793 cat conftest.err >&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); } &&
27796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27797 { (case "(($ac_try" in
27798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27799 *) ac_try_echo
=$ac_try;;
27801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802 (eval "$ac_try") 2>&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try
='test -s conftest$ac_exeext'
27807 { (case "(($ac_try" in
27808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_try") 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; }; then
27816 ac_cv_search_mallinfo=$ac_res
27818 echo "$as_me: failed program was:" >&5
27819 sed 's/^/| /' conftest.$ac_ext >&5
27824 rm -f core conftest.err conftest.$ac_objext \
27826 if test "${ac_cv_search_mallinfo+set}" = set; then
27830 if test "${ac_cv_search_mallinfo+set}" = set; then
27833 ac_cv_search_mallinfo=no
27835 rm conftest.$ac_ext
27836 LIBS=$ac_func_search_save_LIBS
27838 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27839 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27840 ac_res=$ac_cv_search_mallinfo
27841 if test "$ac_res" != no; then
27842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27844 cat >>confdefs.h <<\_ACEOF
27845 #define HAVE_MALLINFO 1
27851 if test "$ENABLE_THREADS" -eq 1 ; then
27853 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27854 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27855 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27856 echo $ECHO_N "(cached) $ECHO_C" >&6
27858 ac_check_lib_save_LIBS=$LIBS
27859 LIBS="-lpthread $LIBS"
27860 cat >conftest.$ac_ext <<_ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h. */
27867 /* Override any GCC internal prototype to avoid an error.
27868 Use char because int might match the return type of a GCC
27869 builtin and then its argument prototype would still apply. */
27873 char pthread_mutex_init ();
27877 return pthread_mutex_init ();
27882 rm -f conftest.$ac_objext conftest$ac_exeext
27883 if { (ac_try="$ac_link"
27884 case "(($ac_try" in
27885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27886 *) ac_try_echo
=$ac_try;;
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_link") 2>conftest.er1
27891 grep -v '^ *+' conftest.er1
>conftest.err
27893 cat conftest.err
>&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } &&
27896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27897 { (case "(($ac_try" in
27898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_try") 2>&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; } &&
27906 { ac_try='test -s conftest$ac_exeext'
27907 { (case "(($ac_try" in
27908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27909 *) ac_try_echo
=$ac_try;;
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912 (eval "$ac_try") 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27916 ac_cv_lib_pthread_pthread_mutex_init
=yes
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.
$ac_ext >&5
27921 ac_cv_lib_pthread_pthread_mutex_init
=no
27924 rm -f core conftest.err conftest.
$ac_objext \
27925 conftest
$ac_exeext conftest.
$ac_ext
27926 LIBS
=$ac_check_lib_save_LIBS
27928 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27929 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27930 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27931 cat >>confdefs.h
<<_ACEOF
27932 #define HAVE_LIBPTHREAD 1
27935 LIBS
="-lpthread $LIBS"
27939 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27940 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27941 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27942 echo $ECHO_N "(cached) $ECHO_C" >&6
27944 ac_func_search_save_LIBS
=$LIBS
27945 cat >conftest.
$ac_ext <<_ACEOF
27948 cat confdefs.h
>>conftest.
$ac_ext
27949 cat >>conftest.
$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27952 /* Override any GCC internal prototype to avoid an error.
27953 Use char because int might match the return type of a GCC
27954 builtin and then its argument prototype would still apply. */
27958 char pthread_mutex_lock ();
27962 return pthread_mutex_lock ();
27967 for ac_lib
in '' pthread
; do
27968 if test -z "$ac_lib"; then
27969 ac_res
="none required"
27972 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27974 rm -f conftest.
$ac_objext conftest
$ac_exeext
27975 if { (ac_try
="$ac_link"
27976 case "(($ac_try" in
27977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_link") 2>conftest.er1
27983 grep -v '^ *+' conftest.er1 >conftest.err
27985 cat conftest.err >&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } &&
27988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27989 { (case "(($ac_try" in
27990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27991 *) ac_try_echo
=$ac_try;;
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_try") 2>&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; } &&
27998 { ac_try
='test -s conftest$ac_exeext'
27999 { (case "(($ac_try" in
28000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004 (eval "$ac_try") 2>&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }; then
28008 ac_cv_search_pthread_mutex_lock=$ac_res
28010 echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28016 rm -f core conftest.err conftest.$ac_objext \
28018 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28022 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28025 ac_cv_search_pthread_mutex_lock=no
28027 rm conftest.$ac_ext
28028 LIBS=$ac_func_search_save_LIBS
28030 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28031 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28032 ac_res=$ac_cv_search_pthread_mutex_lock
28033 if test "$ac_res" != no; then
28034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28036 cat >>confdefs.h <<\_ACEOF
28037 #define HAVE_PTHREAD_MUTEX_LOCK 1
28045 # Check whether --with-udis86 was given.
28046 if test "${with_udis86+set}" = set; then
28047 withval=$with_udis86;
28052 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28055 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28056 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28057 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28060 ac_check_lib_save_LIBS=$LIBS
28061 LIBS="-ludis86 $LIBS"
28062 cat >conftest.$ac_ext <<_ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h. */
28069 /* Override any GCC internal prototype to avoid an error.
28070 Use char because int might match the return type of a GCC
28071 builtin and then its argument prototype would still apply. */
28084 rm -f conftest.$ac_objext conftest$ac_exeext
28085 if { (ac_try="$ac_link"
28086 case "(($ac_try" in
28087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28088 *) ac_try_echo
=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_link") 2>conftest.er1
28093 grep -v '^ *+' conftest.er1
>conftest.err
28095 cat conftest.err
>&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } &&
28098 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28099 { (case "(($ac_try" in
28100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28101 *) ac_try_echo=$ac_try;;
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104 (eval "$ac_try") 2>&5
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; } &&
28108 { ac_try='test -s conftest$ac_exeext'
28109 { (case "(($ac_try" in
28110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28111 *) ac_try_echo
=$ac_try;;
28113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28114 (eval "$ac_try") 2>&5
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
28118 ac_cv_lib_udis86_ud_init
=yes
28120 echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.
$ac_ext >&5
28123 ac_cv_lib_udis86_ud_init
=no
28126 rm -f core conftest.err conftest.
$ac_objext \
28127 conftest
$ac_exeext conftest.
$ac_ext
28128 LIBS
=$ac_check_lib_save_LIBS
28130 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28131 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28132 if test $ac_cv_lib_udis86_ud_init = yes; then
28133 cat >>confdefs.h
<<_ACEOF
28134 #define HAVE_LIBUDIS86 1
28137 LIBS
="-ludis86 $LIBS"
28141 echo "Error! You need to have libudis86 around."
28153 cat >>confdefs.h
<<_ACEOF
28154 #define USE_UDIS86 $USE_UDIS86
28164 ac_header_dirent
=no
28165 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
28166 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28167 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28169 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28170 echo $ECHO_N "(cached) $ECHO_C" >&6
28172 cat >conftest.
$ac_ext <<_ACEOF
28175 cat confdefs.h
>>conftest.
$ac_ext
28176 cat >>conftest.
$ac_ext <<_ACEOF
28177 /* end confdefs.h. */
28178 #include <sys/types.h>
28190 rm -f conftest.
$ac_objext
28191 if { (ac_try
="$ac_compile"
28192 case "(($ac_try" in
28193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28194 *) ac_try_echo=$ac_try;;
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197 (eval "$ac_compile") 2>conftest.er1
28199 grep -v '^ *+' conftest.er1 >conftest.err
28201 cat conftest.err >&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
28204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28205 { (case "(($ac_try" in
28206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28207 *) ac_try_echo
=$ac_try;;
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_try") 2>&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; } &&
28214 { ac_try
='test -s conftest.$ac_objext'
28215 { (case "(($ac_try" in
28216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_try") 2>&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
28224 eval "$as_ac_Header=yes"
28226 echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28229 eval "$as_ac_Header=no"
28232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28234 ac_res=`eval echo '${'$as_ac_Header'}'`
28235 { echo "$as_me:$LINENO: result: $ac_res" >&5
28236 echo "${ECHO_T}$ac_res" >&6; }
28237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28238 cat >>confdefs.h <<_ACEOF
28239 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
28242 ac_header_dirent=$ac_hdr; break
28246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28247 if test $ac_header_dirent = dirent.h; then
28248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28250 if test "${ac_cv_search_opendir+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28253 ac_func_search_save_LIBS=$LIBS
28254 cat >conftest.$ac_ext <<_ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h. */
28261 /* Override any GCC internal prototype to avoid an error.
28262 Use char because int might match the return type of a GCC
28263 builtin and then its argument prototype would still apply. */
28276 for ac_lib in '' dir; do
28277 if test -z "$ac_lib"; then
28278 ac_res="none required"
28281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28283 rm -f conftest.$ac_objext conftest$ac_exeext
28284 if { (ac_try="$ac_link"
28285 case "(($ac_try" in
28286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28287 *) ac_try_echo
=$ac_try;;
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_link") 2>conftest.er1
28292 grep -v '^ *+' conftest.er1
>conftest.err
28294 cat conftest.err
>&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } &&
28297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28298 { (case "(($ac_try" in
28299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_try") 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest$ac_exeext'
28308 { (case "(($ac_try" in
28309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28310 *) ac_try_echo
=$ac_try;;
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313 (eval "$ac_try") 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_search_opendir
=$ac_res
28319 echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.
$ac_ext >&5
28325 rm -f core conftest.err conftest.
$ac_objext \
28327 if test "${ac_cv_search_opendir+set}" = set; then
28331 if test "${ac_cv_search_opendir+set}" = set; then
28334 ac_cv_search_opendir
=no
28336 rm conftest.
$ac_ext
28337 LIBS
=$ac_func_search_save_LIBS
28339 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28340 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28341 ac_res
=$ac_cv_search_opendir
28342 if test "$ac_res" != no
; then
28343 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28350 if test "${ac_cv_search_opendir+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28353 ac_func_search_save_LIBS
=$LIBS
28354 cat >conftest.
$ac_ext <<_ACEOF
28357 cat confdefs.h
>>conftest.
$ac_ext
28358 cat >>conftest.
$ac_ext <<_ACEOF
28359 /* end confdefs.h. */
28361 /* Override any GCC internal prototype to avoid an error.
28362 Use char because int might match the return type of a GCC
28363 builtin and then its argument prototype would still apply. */
28376 for ac_lib
in '' x
; do
28377 if test -z "$ac_lib"; then
28378 ac_res
="none required"
28381 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28383 rm -f conftest.
$ac_objext conftest
$ac_exeext
28384 if { (ac_try
="$ac_link"
28385 case "(($ac_try" in
28386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28387 *) ac_try_echo=$ac_try;;
28389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390 (eval "$ac_link") 2>conftest.er1
28392 grep -v '^ *+' conftest.er1 >conftest.err
28394 cat conftest.err >&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); } &&
28397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28398 { (case "(($ac_try" in
28399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28400 *) ac_try_echo
=$ac_try;;
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403 (eval "$ac_try") 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
28407 { ac_try
='test -s conftest$ac_exeext'
28408 { (case "(($ac_try" in
28409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_try") 2>&5
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; }; then
28417 ac_cv_search_opendir=$ac_res
28419 echo "$as_me: failed program was:" >&5
28420 sed 's/^/| /' conftest.$ac_ext >&5
28425 rm -f core conftest.err conftest.$ac_objext \
28427 if test "${ac_cv_search_opendir+set}" = set; then
28431 if test "${ac_cv_search_opendir+set}" = set; then
28434 ac_cv_search_opendir=no
28436 rm conftest.$ac_ext
28437 LIBS=$ac_func_search_save_LIBS
28439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28441 ac_res=$ac_cv_search_opendir
28442 if test "$ac_res" != no; then
28443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28449 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28450 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28451 if test "${ac_cv_header_mmap_anon+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 ac_cpp='$CPP $CPPFLAGS'
28456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28460 cat >conftest.$ac_ext <<_ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h. */
28466 #include <sys/mman.h>
28467 #include <unistd.h>
28472 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28477 rm -f conftest.$ac_objext
28478 if { (ac_try="$ac_compile"
28479 case "(($ac_try" in
28480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28481 *) ac_try_echo
=$ac_try;;
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_compile") 2>conftest.er1
28486 grep -v '^ *+' conftest.er1
>conftest.err
28488 cat conftest.err
>&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } &&
28491 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492 { (case "(($ac_try" in
28493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_try") 2>&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; } &&
28501 { ac_try='test -s conftest.$ac_objext'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28504 *) ac_try_echo
=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
28511 ac_cv_header_mmap_anon
=yes
28513 echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.
$ac_ext >&5
28516 ac_cv_header_mmap_anon
=no
28519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28521 ac_cpp
='$CPP $CPPFLAGS'
28522 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28528 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28529 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28530 if test "$ac_cv_header_mmap_anon" = yes; then
28532 cat >>confdefs.h
<<\_ACEOF
28533 #define HAVE_MMAP_ANONYMOUS 1
28538 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28540 if test "${ac_cv_header_stat_broken+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28543 cat >conftest.
$ac_ext <<_ACEOF
28546 cat confdefs.h
>>conftest.
$ac_ext
28547 cat >>conftest.
$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 #include <sys/types.h>
28550 #include <sys/stat.h>
28552 #if defined S_ISBLK && defined S_IFDIR
28553 # if S_ISBLK (S_IFDIR)
28558 #if defined S_ISBLK && defined S_IFCHR
28559 # if S_ISBLK (S_IFCHR)
28564 #if defined S_ISLNK && defined S_IFREG
28565 # if S_ISLNK (S_IFREG)
28570 #if defined S_ISSOCK && defined S_IFREG
28571 # if S_ISSOCK (S_IFREG)
28577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28578 $EGREP "You lose" >/dev
/null
2>&1; then
28579 ac_cv_header_stat_broken
=yes
28581 ac_cv_header_stat_broken
=no
28586 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28587 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28588 if test $ac_cv_header_stat_broken = yes; then
28590 cat >>confdefs.h
<<\_ACEOF
28591 #define STAT_MACROS_BROKEN 1
28596 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28598 if test "${ac_cv_header_stdc+set}" = set; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28601 cat >conftest.
$ac_ext <<_ACEOF
28604 cat confdefs.h
>>conftest.
$ac_ext
28605 cat >>conftest.
$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28607 #include <stdlib.h>
28608 #include <stdarg.h>
28609 #include <string.h>
28620 rm -f conftest.
$ac_objext
28621 if { (ac_try
="$ac_compile"
28622 case "(($ac_try" in
28623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627 (eval "$ac_compile") 2>conftest.er1
28629 grep -v '^ *+' conftest.er1 >conftest.err
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } &&
28634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28635 { (case "(($ac_try" in
28636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28637 *) ac_try_echo
=$ac_try;;
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_try") 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try
='test -s conftest.$ac_objext'
28645 { (case "(($ac_try" in
28646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28647 *) ac_try_echo=$ac_try;;
28649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_try") 2>&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
28654 ac_cv_header_stdc=yes
28656 echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28659 ac_cv_header_stdc=no
28662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28664 if test $ac_cv_header_stdc = yes; then
28665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28666 cat >conftest.$ac_ext <<_ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h. */
28672 #include <string.h>
28675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28676 $EGREP "memchr" >/dev/null 2>&1; then
28679 ac_cv_header_stdc=no
28685 if test $ac_cv_header_stdc = yes; then
28686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28693 #include <stdlib.h>
28696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28697 $EGREP "free" >/dev/null 2>&1; then
28700 ac_cv_header_stdc=no
28706 if test $ac_cv_header_stdc = yes; then
28707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28708 if test "$cross_compiling" = yes; then
28711 cat >conftest.$ac_ext <<_ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h. */
28718 #include <stdlib.h>
28719 #if ((' ' & 0x0FF) == 0x020)
28720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28723 # define ISLOWER(c) \
28724 (('a' <= (c) && (c) <= 'i') \
28725 || ('j' <= (c) && (c) <= 'r') \
28726 || ('s' <= (c) && (c) <= 'z'))
28727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28735 for (i = 0; i < 256; i++)
28736 if (XOR (islower (i), ISLOWER (i))
28737 || toupper (i) != TOUPPER (i))
28742 rm -f conftest$ac_exeext
28743 if { (ac_try="$ac_link"
28744 case "(($ac_try" in
28745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28746 *) ac_try_echo
=$ac_try;;
28748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28749 (eval "$ac_link") 2>&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28753 { (case "(($ac_try" in
28754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
28764 echo "$as_me: program exited with status $ac_status" >&5
28765 echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28768 ( exit $ac_status )
28769 ac_cv_header_stdc=no
28771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28777 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28778 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28779 if test $ac_cv_header_stdc = yes; then
28781 cat >>confdefs.h <<\_ACEOF
28782 #define STDC_HEADERS 1
28787 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28788 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28789 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28798 #include <sys/types.h>
28799 #include <sys/wait.h>
28800 #ifndef WEXITSTATUS
28801 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28804 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28812 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28817 rm -f conftest.$ac_objext
28818 if { (ac_try="$ac_compile"
28819 case "(($ac_try" in
28820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28821 *) ac_try_echo
=$ac_try;;
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_compile") 2>conftest.er1
28826 grep -v '^ *+' conftest.er1
>conftest.err
28828 cat conftest.err
>&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } &&
28831 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832 { (case "(($ac_try" in
28833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_try") 2>&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
28842 { (case "(($ac_try" in
28843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28844 *) ac_try_echo
=$ac_try;;
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_try") 2>&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
28851 ac_cv_header_sys_wait_h
=yes
28853 echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.
$ac_ext >&5
28856 ac_cv_header_sys_wait_h
=no
28859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28861 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28862 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28863 if test $ac_cv_header_sys_wait_h = yes; then
28865 cat >>confdefs.h
<<\_ACEOF
28866 #define HAVE_SYS_WAIT_H 1
28871 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28872 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28873 if test "${ac_cv_header_time+set}" = set; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 cat >conftest.
$ac_ext <<_ACEOF
28879 cat confdefs.h
>>conftest.
$ac_ext
28880 cat >>conftest.
$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882 #include <sys/types.h>
28883 #include <sys/time.h>
28889 if ((struct tm *) 0)
28895 rm -f conftest.
$ac_objext
28896 if { (ac_try
="$ac_compile"
28897 case "(($ac_try" in
28898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28899 *) ac_try_echo=$ac_try;;
28901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28902 (eval "$ac_compile") 2>conftest.er1
28904 grep -v '^ *+' conftest.er1 >conftest.err
28906 cat conftest.err >&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
28909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28910 { (case "(($ac_try" in
28911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28912 *) ac_try_echo
=$ac_try;;
28914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28915 (eval "$ac_try") 2>&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; } &&
28919 { ac_try
='test -s conftest.$ac_objext'
28920 { (case "(($ac_try" in
28921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28922 *) ac_try_echo=$ac_try;;
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925 (eval "$ac_try") 2>&5
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; }; then
28929 ac_cv_header_time=yes
28931 echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28934 ac_cv_header_time=no
28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28939 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28940 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28941 if test $ac_cv_header_time = yes; then
28943 cat >>confdefs.h <<\_ACEOF
28944 #define TIME_WITH_SYS_TIME 1
28956 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28958 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28965 ac_res=`eval echo '${'$as_ac_Header'}'`
28966 { echo "$as_me:$LINENO: result: $ac_res" >&5
28967 echo "${ECHO_T}$ac_res" >&6; }
28969 # Is the header compilable?
28970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 $ac_includes_default
28979 #include <$ac_header>
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28985 *) ac_try_echo
=$ac_try;;
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_compile") 2>conftest.er1
28990 grep -v '^ *+' conftest.er1
>conftest.err
28992 cat conftest.err
>&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } &&
28995 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28996 { (case "(($ac_try" in
28997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_try") 2>&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
29006 { (case "(($ac_try" in
29007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29008 *) ac_try_echo
=$ac_try;;
29010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_try") 2>&5
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_header_compiler
=yes
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.
$ac_ext >&5
29020 ac_header_compiler
=no
29023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29025 echo "${ECHO_T}$ac_header_compiler" >&6; }
29027 # Is the header present?
29028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29030 cat >conftest.
$ac_ext <<_ACEOF
29033 cat confdefs.h
>>conftest.
$ac_ext
29034 cat >>conftest.
$ac_ext <<_ACEOF
29035 /* end confdefs.h. */
29036 #include <$ac_header>
29038 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29039 case "(($ac_try" in
29040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29046 grep -v '^ *+' conftest.er1 >conftest.err
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } >/dev/null; then
29051 if test -s conftest.err; then
29052 ac_cpp_err=$ac_c_preproc_warn_flag
29053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29060 if test -z "$ac_cpp_err"; then
29061 ac_header_preproc=yes
29063 echo "$as_me: failed program was:" >&5
29064 sed 's/^/| /' conftest.$ac_ext >&5
29066 ac_header_preproc=no
29069 rm -f conftest.err conftest.$ac_ext
29070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29071 echo "${ECHO_T}$ac_header_preproc" >&6; }
29073 # So? What about this header?
29074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29080 ac_header_preproc=yes
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29096 ## ----------------------------------- ##
29097 ## Report this to llvmbugs@cs.uiuc.edu ##
29098 ## ----------------------------------- ##
29100 ) | sed "s/^/$as_me: WARNING: /" >&2
29103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 eval "$as_ac_Header=\$ac_header_preproc"
29110 ac_res=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112 echo "${ECHO_T}$ac_res" >&6; }
29115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29116 cat >>confdefs.h <<_ACEOF
29117 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29130 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29132 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 ac_res=`eval echo '${'$as_ac_Header'}'`
29140 { echo "$as_me:$LINENO: result: $ac_res" >&5
29141 echo "${ECHO_T}$ac_res" >&6; }
29143 # Is the header compilable?
29144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29146 cat >conftest.$ac_ext <<_ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h. */
29152 $ac_includes_default
29153 #include <$ac_header>
29155 rm -f conftest.$ac_objext
29156 if { (ac_try="$ac_compile"
29157 case "(($ac_try" in
29158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29159 *) ac_try_echo
=$ac_try;;
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_compile") 2>conftest.er1
29164 grep -v '^ *+' conftest.er1
>conftest.err
29166 cat conftest.err
>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } &&
29169 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29170 { (case "(($ac_try" in
29171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_try") 2>&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; } &&
29179 { ac_try='test -s conftest.$ac_objext'
29180 { (case "(($ac_try" in
29181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29182 *) ac_try_echo
=$ac_try;;
29184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29185 (eval "$ac_try") 2>&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29189 ac_header_compiler
=yes
29191 echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.
$ac_ext >&5
29194 ac_header_compiler
=no
29197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29199 echo "${ECHO_T}$ac_header_compiler" >&6; }
29201 # Is the header present?
29202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29204 cat >conftest.
$ac_ext <<_ACEOF
29207 cat confdefs.h
>>conftest.
$ac_ext
29208 cat >>conftest.
$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29210 #include <$ac_header>
29212 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29213 case "(($ac_try" in
29214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29215 *) ac_try_echo=$ac_try;;
29217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29220 grep -v '^ *+' conftest.er1 >conftest.err
29222 cat conftest.err >&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); } >/dev/null; then
29225 if test -s conftest.err; then
29226 ac_cpp_err=$ac_c_preproc_warn_flag
29227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29234 if test -z "$ac_cpp_err"; then
29235 ac_header_preproc=yes
29237 echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29240 ac_header_preproc=no
29243 rm -f conftest.err conftest.$ac_ext
29244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29245 echo "${ECHO_T}$ac_header_preproc" >&6; }
29247 # So? What about this header?
29248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29254 ac_header_preproc=yes
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29270 ## ----------------------------------- ##
29271 ## Report this to llvmbugs@cs.uiuc.edu ##
29272 ## ----------------------------------- ##
29274 ) | sed "s/^/$as_me: WARNING: /" >&2
29277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29280 echo $ECHO_N "(cached) $ECHO_C" >&6
29282 eval "$as_ac_Header=\$ac_header_preproc"
29284 ac_res=`eval echo '${'$as_ac_Header'}'`
29285 { echo "$as_me:$LINENO: result: $ac_res" >&5
29286 echo "${ECHO_T}$ac_res" >&6; }
29289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29290 cat >>confdefs.h <<_ACEOF
29291 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29299 for ac_header in windows.h
29301 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 ac_res=`eval echo '${'$as_ac_Header'}'`
29309 { echo "$as_me:$LINENO: result: $ac_res" >&5
29310 echo "${ECHO_T}$ac_res" >&6; }
29312 # Is the header compilable?
29313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29315 cat >conftest.$ac_ext <<_ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h. */
29321 $ac_includes_default
29322 #include <$ac_header>
29324 rm -f conftest.$ac_objext
29325 if { (ac_try="$ac_compile"
29326 case "(($ac_try" in
29327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29328 *) ac_try_echo
=$ac_try;;
29330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331 (eval "$ac_compile") 2>conftest.er1
29333 grep -v '^ *+' conftest.er1
>conftest.err
29335 cat conftest.err
>&5
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); } &&
29338 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29339 { (case "(($ac_try" in
29340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_try") 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; } &&
29348 { ac_try='test -s conftest.$ac_objext'
29349 { (case "(($ac_try" in
29350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29351 *) ac_try_echo
=$ac_try;;
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_try") 2>&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); }; }; then
29358 ac_header_compiler
=yes
29360 echo "$as_me: failed program was:" >&5
29361 sed 's/^/| /' conftest.
$ac_ext >&5
29363 ac_header_compiler
=no
29366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29368 echo "${ECHO_T}$ac_header_compiler" >&6; }
29370 # Is the header present?
29371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29373 cat >conftest.
$ac_ext <<_ACEOF
29376 cat confdefs.h
>>conftest.
$ac_ext
29377 cat >>conftest.
$ac_ext <<_ACEOF
29378 /* end confdefs.h. */
29379 #include <$ac_header>
29381 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29382 case "(($ac_try" in
29383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } >/dev/null; then
29394 if test -s conftest.err; then
29395 ac_cpp_err=$ac_c_preproc_warn_flag
29396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29403 if test -z "$ac_cpp_err"; then
29404 ac_header_preproc=yes
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29409 ac_header_preproc=no
29412 rm -f conftest.err conftest.$ac_ext
29413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29414 echo "${ECHO_T}$ac_header_preproc" >&6; }
29416 # So? What about this header?
29417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29423 ac_header_preproc=yes
29426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29439 ## ----------------------------------- ##
29440 ## Report this to llvmbugs@cs.uiuc.edu ##
29441 ## ----------------------------------- ##
29443 ) | sed "s/^/$as_me: WARNING: /" >&2
29446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 eval "$as_ac_Header=\$ac_header_preproc"
29453 ac_res=`eval echo '${'$as_ac_Header'}'`
29454 { echo "$as_me:$LINENO: result: $ac_res" >&5
29455 echo "${ECHO_T}$ac_res" >&6; }
29458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29459 cat >>confdefs.h <<_ACEOF
29460 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29471 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29473 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29478 echo $ECHO_N "(cached) $ECHO_C" >&6
29480 ac_res=`eval echo '${'$as_ac_Header'}'`
29481 { echo "$as_me:$LINENO: result: $ac_res" >&5
29482 echo "${ECHO_T}$ac_res" >&6; }
29484 # Is the header compilable?
29485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29487 cat >conftest.$ac_ext <<_ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h. */
29493 $ac_includes_default
29494 #include <$ac_header>
29496 rm -f conftest.$ac_objext
29497 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29505 grep -v '^ *+' conftest.er1
>conftest.err
29507 cat conftest.err
>&5
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); } &&
29510 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29511 { (case "(($ac_try" in
29512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_try") 2>&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; } &&
29520 { ac_try='test -s conftest.$ac_objext'
29521 { (case "(($ac_try" in
29522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29523 *) ac_try_echo
=$ac_try;;
29525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29526 (eval "$ac_try") 2>&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 ac_header_compiler
=yes
29532 echo "$as_me: failed program was:" >&5
29533 sed 's/^/| /' conftest.
$ac_ext >&5
29535 ac_header_compiler
=no
29538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29540 echo "${ECHO_T}$ac_header_compiler" >&6; }
29542 # Is the header present?
29543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29545 cat >conftest.
$ac_ext <<_ACEOF
29548 cat confdefs.h
>>conftest.
$ac_ext
29549 cat >>conftest.
$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29551 #include <$ac_header>
29553 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29554 case "(($ac_try" in
29555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29561 grep -v '^ *+' conftest.er1 >conftest.err
29563 cat conftest.err >&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } >/dev/null; then
29566 if test -s conftest.err; then
29567 ac_cpp_err=$ac_c_preproc_warn_flag
29568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29575 if test -z "$ac_cpp_err"; then
29576 ac_header_preproc=yes
29578 echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29581 ac_header_preproc=no
29584 rm -f conftest.err conftest.$ac_ext
29585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29586 echo "${ECHO_T}$ac_header_preproc" >&6; }
29588 # So? What about this header?
29589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29595 ac_header_preproc=yes
29598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29611 ## ----------------------------------- ##
29612 ## Report this to llvmbugs@cs.uiuc.edu ##
29613 ## ----------------------------------- ##
29615 ) | sed "s/^/$as_me: WARNING: /" >&2
29618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29623 eval "$as_ac_Header=\$ac_header_preproc"
29625 ac_res=`eval echo '${'$as_ac_Header'}'`
29626 { echo "$as_me:$LINENO: result: $ac_res" >&5
29627 echo "${ECHO_T}$ac_res" >&6; }
29630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29631 cat >>confdefs.h <<_ACEOF
29632 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29642 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29644 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29651 ac_res=`eval echo '${'$as_ac_Header'}'`
29652 { echo "$as_me:$LINENO: result: $ac_res" >&5
29653 echo "${ECHO_T}$ac_res" >&6; }
29655 # Is the header compilable?
29656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29658 cat >conftest.$ac_ext <<_ACEOF
29661 cat confdefs.h >>conftest.$ac_ext
29662 cat >>conftest.$ac_ext <<_ACEOF
29663 /* end confdefs.h. */
29664 $ac_includes_default
29665 #include <$ac_header>
29667 rm -f conftest.$ac_objext
29668 if { (ac_try="$ac_compile"
29669 case "(($ac_try" in
29670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29671 *) ac_try_echo
=$ac_try;;
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_compile") 2>conftest.er1
29676 grep -v '^ *+' conftest.er1
>conftest.err
29678 cat conftest.err
>&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } &&
29681 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29682 { (case "(($ac_try" in
29683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29684 *) ac_try_echo=$ac_try;;
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687 (eval "$ac_try") 2>&5
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
29692 { (case "(($ac_try" in
29693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29694 *) ac_try_echo
=$ac_try;;
29696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697 (eval "$ac_try") 2>&5
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 ac_header_compiler
=yes
29703 echo "$as_me: failed program was:" >&5
29704 sed 's/^/| /' conftest.
$ac_ext >&5
29706 ac_header_compiler
=no
29709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29711 echo "${ECHO_T}$ac_header_compiler" >&6; }
29713 # Is the header present?
29714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29716 cat >conftest.
$ac_ext <<_ACEOF
29719 cat confdefs.h
>>conftest.
$ac_ext
29720 cat >>conftest.
$ac_ext <<_ACEOF
29721 /* end confdefs.h. */
29722 #include <$ac_header>
29724 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29725 case "(($ac_try" in
29726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29727 *) ac_try_echo=$ac_try;;
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29732 grep -v '^ *+' conftest.er1 >conftest.err
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); } >/dev/null; then
29737 if test -s conftest.err; then
29738 ac_cpp_err=$ac_c_preproc_warn_flag
29739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29746 if test -z "$ac_cpp_err"; then
29747 ac_header_preproc=yes
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29752 ac_header_preproc=no
29755 rm -f conftest.err conftest.$ac_ext
29756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29757 echo "${ECHO_T}$ac_header_preproc" >&6; }
29759 # So? What about this header?
29760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29766 ac_header_preproc=yes
29769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29782 ## ----------------------------------- ##
29783 ## Report this to llvmbugs@cs.uiuc.edu ##
29784 ## ----------------------------------- ##
29786 ) | sed "s/^/$as_me: WARNING: /" >&2
29789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29792 echo $ECHO_N "(cached) $ECHO_C" >&6
29794 eval "$as_ac_Header=\$ac_header_preproc"
29796 ac_res=`eval echo '${'$as_ac_Header'}'`
29797 { echo "$as_me:$LINENO: result: $ac_res" >&5
29798 echo "${ECHO_T}$ac_res" >&6; }
29801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29802 cat >>confdefs.h <<_ACEOF
29803 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29810 if test "$ENABLE_THREADS" -eq 1 ; then
29812 for ac_header in pthread.h
29814 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29819 echo $ECHO_N "(cached) $ECHO_C" >&6
29821 ac_res=`eval echo '${'$as_ac_Header'}'`
29822 { echo "$as_me:$LINENO: result: $ac_res" >&5
29823 echo "${ECHO_T}$ac_res" >&6; }
29825 # Is the header compilable?
29826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29834 $ac_includes_default
29835 #include <$ac_header>
29837 rm -f conftest.$ac_objext
29838 if { (ac_try="$ac_compile"
29839 case "(($ac_try" in
29840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29841 *) ac_try_echo
=$ac_try;;
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_compile") 2>conftest.er1
29846 grep -v '^ *+' conftest.er1
>conftest.err
29848 cat conftest.err
>&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
29851 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29852 { (case "(($ac_try" in
29853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_try") 2>&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest.$ac_objext'
29862 { (case "(($ac_try" in
29863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29864 *) ac_try_echo
=$ac_try;;
29866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_try") 2>&5
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_header_compiler
=yes
29873 echo "$as_me: failed program was:" >&5
29874 sed 's/^/| /' conftest.
$ac_ext >&5
29876 ac_header_compiler
=no
29879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29881 echo "${ECHO_T}$ac_header_compiler" >&6; }
29883 # Is the header present?
29884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29886 cat >conftest.
$ac_ext <<_ACEOF
29889 cat confdefs.h
>>conftest.
$ac_ext
29890 cat >>conftest.
$ac_ext <<_ACEOF
29891 /* end confdefs.h. */
29892 #include <$ac_header>
29894 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29895 case "(($ac_try" in
29896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29902 grep -v '^ *+' conftest.er1 >conftest.err
29904 cat conftest.err >&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); } >/dev/null; then
29907 if test -s conftest.err; then
29908 ac_cpp_err=$ac_c_preproc_warn_flag
29909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29916 if test -z "$ac_cpp_err"; then
29917 ac_header_preproc=yes
29919 echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29922 ac_header_preproc=no
29925 rm -f conftest.err conftest.$ac_ext
29926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29927 echo "${ECHO_T}$ac_header_preproc" >&6; }
29929 # So? What about this header?
29930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29936 ac_header_preproc=yes
29939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29952 ## ----------------------------------- ##
29953 ## Report this to llvmbugs@cs.uiuc.edu ##
29954 ## ----------------------------------- ##
29956 ) | sed "s/^/$as_me: WARNING: /" >&2
29959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29962 echo $ECHO_N "(cached) $ECHO_C" >&6
29964 eval "$as_ac_Header=\$ac_header_preproc"
29966 ac_res=`eval echo '${'$as_ac_Header'}'`
29967 { echo "$as_me:$LINENO: result: $ac_res" >&5
29968 echo "${ECHO_T}$ac_res" >&6; }
29971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29972 cat >>confdefs.h <<_ACEOF
29973 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29991 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29992 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29993 if test "${ac_cv_huge_val_sanity+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 ac_cpp='$CXXCPP $CPPFLAGS'
29999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30004 if test "$cross_compiling" = yes; then
30005 ac_cv_huge_val_sanity=yes
30007 cat >conftest.$ac_ext <<_ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h. */
30017 double x = HUGE_VAL; return x != x;
30022 rm -f conftest$ac_exeext
30023 if { (ac_try="$ac_link"
30024 case "(($ac_try" in
30025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30026 *) ac_try_echo
=$ac_try;;
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_link") 2>&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_cv_huge_val_sanity=yes
30044 echo "$as_me: program exited with status $ac_status" >&5
30045 echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30048 ( exit $ac_status )
30049 ac_cv_huge_val_sanity=no
30051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30056 ac_cpp='$CPP $CPPFLAGS'
30057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30063 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30064 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30068 { echo "$as_me:$LINENO: checking for pid_t" >&5
30069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30070 if test "${ac_cv_type_pid_t+set}" = set; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30079 $ac_includes_default
30080 typedef pid_t ac__type_new_;
30084 if ((ac__type_new_ *) 0)
30086 if (sizeof (ac__type_new_))
30092 rm -f conftest.$ac_objext
30093 if { (ac_try="$ac_compile"
30094 case "(($ac_try" in
30095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30096 *) ac_try_echo
=$ac_try;;
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_compile") 2>conftest.er1
30101 grep -v '^ *+' conftest.er1
>conftest.err
30103 cat conftest.err
>&5
30104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105 (exit $ac_status); } &&
30106 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30107 { (case "(($ac_try" in
30108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_try") 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest.$ac_objext'
30117 { (case "(($ac_try" in
30118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30119 *) ac_try_echo
=$ac_try;;
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122 (eval "$ac_try") 2>&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
30126 ac_cv_type_pid_t
=yes
30128 echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.
$ac_ext >&5
30131 ac_cv_type_pid_t
=no
30134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30136 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30138 if test $ac_cv_type_pid_t = yes; then
30142 cat >>confdefs.h
<<_ACEOF
30148 { echo "$as_me:$LINENO: checking for size_t" >&5
30149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30150 if test "${ac_cv_type_size_t+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 cat >conftest.
$ac_ext <<_ACEOF
30156 cat confdefs.h
>>conftest.
$ac_ext
30157 cat >>conftest.
$ac_ext <<_ACEOF
30158 /* end confdefs.h. */
30159 $ac_includes_default
30160 typedef size_t ac__type_new_;
30164 if ((ac__type_new_ *) 0)
30166 if (sizeof (ac__type_new_))
30172 rm -f conftest.
$ac_objext
30173 if { (ac_try
="$ac_compile"
30174 case "(($ac_try" in
30175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_compile") 2>conftest.er1
30181 grep -v '^ *+' conftest.er1 >conftest.err
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30189 *) ac_try_echo
=$ac_try;;
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try
='test -s conftest.$ac_objext'
30197 { (case "(($ac_try" in
30198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
30206 ac_cv_type_size_t=yes
30208 echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30211 ac_cv_type_size_t=no
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30218 if test $ac_cv_type_size_t = yes; then
30222 cat >>confdefs.h <<_ACEOF
30223 #define size_t unsigned int
30228 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30229 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30230 if test "${ac_cv_type_signal+set}" = set; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30233 cat >conftest.$ac_ext <<_ACEOF
30236 cat confdefs.h >>conftest.$ac_ext
30237 cat >>conftest.$ac_ext <<_ACEOF
30238 /* end confdefs.h. */
30239 #include <sys/types.h>
30240 #include <signal.h>
30245 return *(signal (0, 0)) (0) == 1;
30250 rm -f conftest.$ac_objext
30251 if { (ac_try="$ac_compile"
30252 case "(($ac_try" in
30253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30254 *) ac_try_echo
=$ac_try;;
30256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_compile") 2>conftest.er1
30259 grep -v '^ *+' conftest.er1
>conftest.err
30261 cat conftest.err
>&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); } &&
30264 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30265 { (case "(($ac_try" in
30266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_try") 2>&5
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; } &&
30274 { ac_try='test -s conftest.$ac_objext'
30275 { (case "(($ac_try" in
30276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30277 *) ac_try_echo
=$ac_try;;
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_try") 2>&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
30284 ac_cv_type_signal
=int
30286 echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.
$ac_ext >&5
30289 ac_cv_type_signal
=void
30292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30294 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30295 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30297 cat >>confdefs.h
<<_ACEOF
30298 #define RETSIGTYPE $ac_cv_type_signal
30302 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30303 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30304 if test "${ac_cv_struct_tm+set}" = set; then
30305 echo $ECHO_N "(cached) $ECHO_C" >&6
30307 cat >conftest.
$ac_ext <<_ACEOF
30310 cat confdefs.h
>>conftest.
$ac_ext
30311 cat >>conftest.
$ac_ext <<_ACEOF
30312 /* end confdefs.h. */
30313 #include <sys/types.h>
30319 struct tm *tp; tp->tm_sec;
30324 rm -f conftest.
$ac_objext
30325 if { (ac_try
="$ac_compile"
30326 case "(($ac_try" in
30327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_compile") 2>conftest.er1
30333 grep -v '^ *+' conftest.er1 >conftest.err
30335 cat conftest.err >&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } &&
30338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30339 { (case "(($ac_try" in
30340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30341 *) ac_try_echo
=$ac_try;;
30343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30344 (eval "$ac_try") 2>&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; } &&
30348 { ac_try
='test -s conftest.$ac_objext'
30349 { (case "(($ac_try" in
30350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
30358 ac_cv_struct_tm=time.h
30360 echo "$as_me: failed program was:" >&5
30361 sed 's/^/| /' conftest.$ac_ext >&5
30363 ac_cv_struct_tm=sys/time.h
30366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30368 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30369 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30370 if test $ac_cv_struct_tm = sys/time.h; then
30372 cat >>confdefs.h <<\_ACEOF
30373 #define TM_IN_SYS_TIME 1
30378 { echo "$as_me:$LINENO: checking for int64_t" >&5
30379 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30380 if test "${ac_cv_type_int64_t+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 cat >conftest.$ac_ext <<_ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h. */
30389 $ac_includes_default
30390 typedef int64_t ac__type_new_;
30394 if ((ac__type_new_ *) 0)
30396 if (sizeof (ac__type_new_))
30402 rm -f conftest.$ac_objext
30403 if { (ac_try="$ac_compile"
30404 case "(($ac_try" in
30405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30406 *) ac_try_echo
=$ac_try;;
30408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409 (eval "$ac_compile") 2>conftest.er1
30411 grep -v '^ *+' conftest.er1
>conftest.err
30413 cat conftest.err
>&5
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); } &&
30416 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30417 { (case "(($ac_try" in
30418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30419 *) ac_try_echo=$ac_try;;
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422 (eval "$ac_try") 2>&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; } &&
30426 { ac_try='test -s conftest.$ac_objext'
30427 { (case "(($ac_try" in
30428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30429 *) ac_try_echo
=$ac_try;;
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_try") 2>&5
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; }; then
30436 ac_cv_type_int64_t
=yes
30438 echo "$as_me: failed program was:" >&5
30439 sed 's/^/| /' conftest.
$ac_ext >&5
30441 ac_cv_type_int64_t
=no
30444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30446 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30447 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30448 if test $ac_cv_type_int64_t = yes; then
30450 cat >>confdefs.h
<<_ACEOF
30451 #define HAVE_INT64_T 1
30456 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30457 echo "$as_me: error: Type int64_t required but not found" >&2;}
30458 { (exit 1); exit 1; }; }
30461 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30462 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30463 if test "${ac_cv_type_uint64_t+set}" = set; then
30464 echo $ECHO_N "(cached) $ECHO_C" >&6
30466 cat >conftest.
$ac_ext <<_ACEOF
30469 cat confdefs.h
>>conftest.
$ac_ext
30470 cat >>conftest.
$ac_ext <<_ACEOF
30471 /* end confdefs.h. */
30472 $ac_includes_default
30473 typedef uint64_t ac__type_new_;
30477 if ((ac__type_new_ *) 0)
30479 if (sizeof (ac__type_new_))
30485 rm -f conftest.
$ac_objext
30486 if { (ac_try
="$ac_compile"
30487 case "(($ac_try" in
30488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_compile") 2>conftest.er1
30494 grep -v '^ *+' conftest.er1 >conftest.err
30496 cat conftest.err >&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); } &&
30499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30500 { (case "(($ac_try" in
30501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30502 *) ac_try_echo
=$ac_try;;
30504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505 (eval "$ac_try") 2>&5
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; } &&
30509 { ac_try
='test -s conftest.$ac_objext'
30510 { (case "(($ac_try" in
30511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_try") 2>&5
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; }; then
30519 ac_cv_type_uint64_t=yes
30521 echo "$as_me: failed program was:" >&5
30522 sed 's/^/| /' conftest.$ac_ext >&5
30524 ac_cv_type_uint64_t=no
30527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30529 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30530 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30531 if test $ac_cv_type_uint64_t = yes; then
30533 cat >>confdefs.h <<_ACEOF
30534 #define HAVE_UINT64_T 1
30539 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30540 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30541 if test "${ac_cv_type_u_int64_t+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30544 cat >conftest.$ac_ext <<_ACEOF
30547 cat confdefs.h >>conftest.$ac_ext
30548 cat >>conftest.$ac_ext <<_ACEOF
30549 /* end confdefs.h. */
30550 $ac_includes_default
30551 typedef u_int64_t ac__type_new_;
30555 if ((ac__type_new_ *) 0)
30557 if (sizeof (ac__type_new_))
30563 rm -f conftest.$ac_objext
30564 if { (ac_try="$ac_compile"
30565 case "(($ac_try" in
30566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30567 *) ac_try_echo
=$ac_try;;
30569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30570 (eval "$ac_compile") 2>conftest.er1
30572 grep -v '^ *+' conftest.er1
>conftest.err
30574 cat conftest.err
>&5
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); } &&
30577 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30578 { (case "(($ac_try" in
30579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30580 *) ac_try_echo=$ac_try;;
30582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583 (eval "$ac_try") 2>&5
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); }; } &&
30587 { ac_try='test -s conftest.$ac_objext'
30588 { (case "(($ac_try" in
30589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30590 *) ac_try_echo
=$ac_try;;
30592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593 (eval "$ac_try") 2>&5
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; }; then
30597 ac_cv_type_u_int64_t
=yes
30599 echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.
$ac_ext >&5
30602 ac_cv_type_u_int64_t
=no
30605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30607 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30608 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30609 if test $ac_cv_type_u_int64_t = yes; then
30611 cat >>confdefs.h
<<_ACEOF
30612 #define HAVE_U_INT64_T 1
30617 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30618 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30619 { (exit 1); exit 1; }; }
30633 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30635 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30638 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30641 cat >conftest.
$ac_ext <<_ACEOF
30644 cat confdefs.h
>>conftest.
$ac_ext
30645 cat >>conftest.
$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30649 #define $ac_func innocuous_$ac_func
30651 /* System header to define __stub macros and hopefully few prototypes,
30652 which can conflict with char $ac_func (); below.
30653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30654 <limits.h> exists even on freestanding compilers. */
30657 # include <limits.h>
30659 # include <assert.h>
30664 /* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30671 /* The GNU C library defines this for functions which it implements
30672 to always fail with ENOSYS. Some functions are actually named
30673 something starting with __ and the normal name is an alias. */
30674 #if defined __stub_$ac_func || defined __stub___$ac_func
30681 return $ac_func ();
30686 rm -f conftest.
$ac_objext conftest
$ac_exeext
30687 if { (ac_try
="$ac_link"
30688 case "(($ac_try" in
30689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_link") 2>conftest.er1
30695 grep -v '^ *+' conftest.er1 >conftest.err
30697 cat conftest.err >&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } &&
30700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701 { (case "(($ac_try" in
30702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30703 *) ac_try_echo
=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try
='test -s conftest$ac_exeext'
30711 { (case "(($ac_try" in
30712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_try") 2>&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
30720 eval "$as_ac_var=yes"
30722 echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30725 eval "$as_ac_var=no"
30728 rm -f core conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext conftest.$ac_ext
30731 ac_res=`eval echo '${'$as_ac_var'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30734 if test `eval echo '${'$as_ac_var'}'` = yes; then
30735 cat >>confdefs.h <<_ACEOF
30736 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30746 for ac_func in powf fmodf strtof round
30748 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30752 echo $ECHO_N "(cached) $ECHO_C" >&6
30754 cat >conftest.$ac_ext <<_ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h. */
30760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30762 #define $ac_func innocuous_$ac_func
30764 /* System header to define __stub macros and hopefully few prototypes,
30765 which can conflict with char $ac_func (); below.
30766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30767 <limits.h> exists even on freestanding compilers. */
30770 # include <limits.h>
30772 # include <assert.h>
30777 /* Override any GCC internal prototype to avoid an error.
30778 Use char because int might match the return type of a GCC
30779 builtin and then its argument prototype would still apply. */
30784 /* The GNU C library defines this for functions which it implements
30785 to always fail with ENOSYS. Some functions are actually named
30786 something starting with __ and the normal name is an alias. */
30787 #if defined __stub_$ac_func || defined __stub___$ac_func
30794 return $ac_func ();
30799 rm -f conftest.$ac_objext conftest$ac_exeext
30800 if { (ac_try="$ac_link"
30801 case "(($ac_try" in
30802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30803 *) ac_try_echo
=$ac_try;;
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_link") 2>conftest.er1
30808 grep -v '^ *+' conftest.er1
>conftest.err
30810 cat conftest.err
>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } &&
30813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30814 { (case "(($ac_try" in
30815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_try") 2>&5
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; } &&
30823 { ac_try='test -s conftest$ac_exeext'
30824 { (case "(($ac_try" in
30825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30826 *) ac_try_echo
=$ac_try;;
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_try") 2>&5
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30833 eval "$as_ac_var=yes"
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.
$ac_ext >&5
30838 eval "$as_ac_var=no"
30841 rm -f core conftest.err conftest.
$ac_objext \
30842 conftest
$ac_exeext conftest.
$ac_ext
30844 ac_res
=`eval echo '${'$as_ac_var'}'`
30845 { echo "$as_me:$LINENO: result: $ac_res" >&5
30846 echo "${ECHO_T}$ac_res" >&6; }
30847 if test `eval echo '${'$as_ac_var'}'` = yes; then
30848 cat >>confdefs.h
<<_ACEOF
30849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30860 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
30862 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30865 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30866 echo $ECHO_N "(cached) $ECHO_C" >&6
30868 cat >conftest.
$ac_ext <<_ACEOF
30871 cat confdefs.h
>>conftest.
$ac_ext
30872 cat >>conftest.
$ac_ext <<_ACEOF
30873 /* end confdefs.h. */
30874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30876 #define $ac_func innocuous_$ac_func
30878 /* System header to define __stub macros and hopefully few prototypes,
30879 which can conflict with char $ac_func (); below.
30880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30881 <limits.h> exists even on freestanding compilers. */
30884 # include <limits.h>
30886 # include <assert.h>
30891 /* Override any GCC internal prototype to avoid an error.
30892 Use char because int might match the return type of a GCC
30893 builtin and then its argument prototype would still apply. */
30898 /* The GNU C library defines this for functions which it implements
30899 to always fail with ENOSYS. Some functions are actually named
30900 something starting with __ and the normal name is an alias. */
30901 #if defined __stub_$ac_func || defined __stub___$ac_func
30908 return $ac_func ();
30913 rm -f conftest.
$ac_objext conftest
$ac_exeext
30914 if { (ac_try
="$ac_link"
30915 case "(($ac_try" in
30916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30917 *) ac_try_echo=$ac_try;;
30919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920 (eval "$ac_link") 2>conftest.er1
30922 grep -v '^ *+' conftest.er1 >conftest.err
30924 cat conftest.err >&5
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); } &&
30927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30928 { (case "(($ac_try" in
30929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30930 *) ac_try_echo
=$ac_try;;
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_try") 2>&5
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); }; } &&
30937 { ac_try
='test -s conftest$ac_exeext'
30938 { (case "(($ac_try" in
30939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30940 *) ac_try_echo=$ac_try;;
30942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943 (eval "$ac_try") 2>&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; }; then
30947 eval "$as_ac_var=yes"
30949 echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30952 eval "$as_ac_var=no"
30955 rm -f core conftest.err conftest.$ac_objext \
30956 conftest$ac_exeext conftest.$ac_ext
30958 ac_res=`eval echo '${'$as_ac_var'}'`
30959 { echo "$as_me:$LINENO: result: $ac_res" >&5
30960 echo "${ECHO_T}$ac_res" >&6; }
30961 if test `eval echo '${'$as_ac_var'}'` = yes; then
30962 cat >>confdefs.h <<_ACEOF
30963 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30972 for ac_func in isatty mkdtemp mkstemp
30974 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30978 echo $ECHO_N "(cached) $ECHO_C" >&6
30980 cat >conftest.$ac_ext <<_ACEOF
30983 cat confdefs.h >>conftest.$ac_ext
30984 cat >>conftest.$ac_ext <<_ACEOF
30985 /* end confdefs.h. */
30986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30988 #define $ac_func innocuous_$ac_func
30990 /* System header to define __stub macros and hopefully few prototypes,
30991 which can conflict with char $ac_func (); below.
30992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30993 <limits.h> exists even on freestanding compilers. */
30996 # include <limits.h>
30998 # include <assert.h>
31003 /* Override any GCC internal prototype to avoid an error.
31004 Use char because int might match the return type of a GCC
31005 builtin and then its argument prototype would still apply. */
31010 /* The GNU C library defines this for functions which it implements
31011 to always fail with ENOSYS. Some functions are actually named
31012 something starting with __ and the normal name is an alias. */
31013 #if defined __stub_$ac_func || defined __stub___$ac_func
31020 return $ac_func ();
31025 rm -f conftest.$ac_objext conftest$ac_exeext
31026 if { (ac_try="$ac_link"
31027 case "(($ac_try" in
31028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31029 *) ac_try_echo
=$ac_try;;
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_link") 2>conftest.er1
31034 grep -v '^ *+' conftest.er1
>conftest.err
31036 cat conftest.err
>&5
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); } &&
31039 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31040 { (case "(($ac_try" in
31041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31042 *) ac_try_echo=$ac_try;;
31044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045 (eval "$ac_try") 2>&5
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; } &&
31049 { ac_try='test -s conftest$ac_exeext'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31052 *) ac_try_echo
=$ac_try;;
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; }; then
31059 eval "$as_ac_var=yes"
31061 echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.
$ac_ext >&5
31064 eval "$as_ac_var=no"
31067 rm -f core conftest.err conftest.
$ac_objext \
31068 conftest
$ac_exeext conftest.
$ac_ext
31070 ac_res
=`eval echo '${'$as_ac_var'}'`
31071 { echo "$as_me:$LINENO: result: $ac_res" >&5
31072 echo "${ECHO_T}$ac_res" >&6; }
31073 if test `eval echo '${'$as_ac_var'}'` = yes; then
31074 cat >>confdefs.h
<<_ACEOF
31075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31088 for ac_func
in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31093 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31094 echo $ECHO_N "(cached) $ECHO_C" >&6
31096 cat >conftest.
$ac_ext <<_ACEOF
31099 cat confdefs.h
>>conftest.
$ac_ext
31100 cat >>conftest.
$ac_ext <<_ACEOF
31101 /* end confdefs.h. */
31102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31104 #define $ac_func innocuous_$ac_func
31106 /* System header to define __stub macros and hopefully few prototypes,
31107 which can conflict with char $ac_func (); below.
31108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31109 <limits.h> exists even on freestanding compilers. */
31112 # include <limits.h>
31114 # include <assert.h>
31119 /* Override any GCC internal prototype to avoid an error.
31120 Use char because int might match the return type of a GCC
31121 builtin and then its argument prototype would still apply. */
31126 /* The GNU C library defines this for functions which it implements
31127 to always fail with ENOSYS. Some functions are actually named
31128 something starting with __ and the normal name is an alias. */
31129 #if defined __stub_$ac_func || defined __stub___$ac_func
31136 return $ac_func ();
31141 rm -f conftest.
$ac_objext conftest
$ac_exeext
31142 if { (ac_try
="$ac_link"
31143 case "(($ac_try" in
31144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_link") 2>conftest.er1
31150 grep -v '^ *+' conftest.er1 >conftest.err
31152 cat conftest.err >&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } &&
31155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156 { (case "(($ac_try" in
31157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31158 *) ac_try_echo
=$ac_try;;
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_try") 2>&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; } &&
31165 { ac_try
='test -s conftest$ac_exeext'
31166 { (case "(($ac_try" in
31167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
31175 eval "$as_ac_var=yes"
31177 echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31180 eval "$as_ac_var=no"
31183 rm -f core conftest.err conftest.$ac_objext \
31184 conftest$ac_exeext conftest.$ac_ext
31186 ac_res=`eval echo '${'$as_ac_var'}'`
31187 { echo "$as_me:$LINENO: result: $ac_res" >&5
31188 echo "${ECHO_T}$ac_res" >&6; }
31189 if test `eval echo '${'$as_ac_var'}'` = yes; then
31190 cat >>confdefs.h <<_ACEOF
31191 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31201 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31203 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31207 echo $ECHO_N "(cached) $ECHO_C" >&6
31209 cat >conftest.$ac_ext <<_ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h. */
31215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31217 #define $ac_func innocuous_$ac_func
31219 /* System header to define __stub macros and hopefully few prototypes,
31220 which can conflict with char $ac_func (); below.
31221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31222 <limits.h> exists even on freestanding compilers. */
31225 # include <limits.h>
31227 # include <assert.h>
31232 /* Override any GCC internal prototype to avoid an error.
31233 Use char because int might match the return type of a GCC
31234 builtin and then its argument prototype would still apply. */
31239 /* The GNU C library defines this for functions which it implements
31240 to always fail with ENOSYS. Some functions are actually named
31241 something starting with __ and the normal name is an alias. */
31242 #if defined __stub_$ac_func || defined __stub___$ac_func
31249 return $ac_func ();
31254 rm -f conftest.$ac_objext conftest$ac_exeext
31255 if { (ac_try="$ac_link"
31256 case "(($ac_try" in
31257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31258 *) ac_try_echo
=$ac_try;;
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_link") 2>conftest.er1
31263 grep -v '^ *+' conftest.er1
>conftest.err
31265 cat conftest.err
>&5
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); } &&
31268 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31269 { (case "(($ac_try" in
31270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31271 *) ac_try_echo=$ac_try;;
31273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31274 (eval "$ac_try") 2>&5
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; } &&
31278 { ac_try='test -s conftest$ac_exeext'
31279 { (case "(($ac_try" in
31280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31281 *) ac_try_echo
=$ac_try;;
31283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284 (eval "$ac_try") 2>&5
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; }; then
31288 eval "$as_ac_var=yes"
31290 echo "$as_me: failed program was:" >&5
31291 sed 's/^/| /' conftest.
$ac_ext >&5
31293 eval "$as_ac_var=no"
31296 rm -f core conftest.err conftest.
$ac_objext \
31297 conftest
$ac_exeext conftest.
$ac_ext
31299 ac_res
=`eval echo '${'$as_ac_var'}'`
31300 { echo "$as_me:$LINENO: result: $ac_res" >&5
31301 echo "${ECHO_T}$ac_res" >&6; }
31302 if test `eval echo '${'$as_ac_var'}'` = yes; then
31303 cat >>confdefs.h
<<_ACEOF
31304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31314 for ac_func
in setjmp longjmp sigsetjmp siglongjmp
31316 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31319 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31320 echo $ECHO_N "(cached) $ECHO_C" >&6
31322 cat >conftest.
$ac_ext <<_ACEOF
31325 cat confdefs.h
>>conftest.
$ac_ext
31326 cat >>conftest.
$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31330 #define $ac_func innocuous_$ac_func
31332 /* System header to define __stub macros and hopefully few prototypes,
31333 which can conflict with char $ac_func (); below.
31334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31335 <limits.h> exists even on freestanding compilers. */
31338 # include <limits.h>
31340 # include <assert.h>
31345 /* Override any GCC internal prototype to avoid an error.
31346 Use char because int might match the return type of a GCC
31347 builtin and then its argument prototype would still apply. */
31352 /* The GNU C library defines this for functions which it implements
31353 to always fail with ENOSYS. Some functions are actually named
31354 something starting with __ and the normal name is an alias. */
31355 #if defined __stub_$ac_func || defined __stub___$ac_func
31362 return $ac_func ();
31367 rm -f conftest.
$ac_objext conftest
$ac_exeext
31368 if { (ac_try
="$ac_link"
31369 case "(($ac_try" in
31370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_link") 2>conftest.er1
31376 grep -v '^ *+' conftest.er1 >conftest.err
31378 cat conftest.err >&5
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); } &&
31381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31382 { (case "(($ac_try" in
31383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31384 *) ac_try_echo
=$ac_try;;
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_try") 2>&5
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); }; } &&
31391 { ac_try
='test -s conftest$ac_exeext'
31392 { (case "(($ac_try" in
31393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31394 *) ac_try_echo=$ac_try;;
31396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31397 (eval "$ac_try") 2>&5
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; }; then
31401 eval "$as_ac_var=yes"
31403 echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31406 eval "$as_ac_var=no"
31409 rm -f core conftest.err conftest.$ac_objext \
31410 conftest$ac_exeext conftest.$ac_ext
31412 ac_res=`eval echo '${'$as_ac_var'}'`
31413 { echo "$as_me:$LINENO: result: $ac_res" >&5
31414 echo "${ECHO_T}$ac_res" >&6; }
31415 if test `eval echo '${'$as_ac_var'}'` = yes; then
31416 cat >>confdefs.h <<_ACEOF
31417 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31423 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31424 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31425 if test "${llvm_cv_c_printf_a+set}" = set; then
31426 echo $ECHO_N "(cached) $ECHO_C" >&6
31429 ac_cpp='$CPP $CPPFLAGS'
31430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31434 if test "$cross_compiling" = yes; then
31435 llvmac_cv_c_printf_a=no
31437 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31446 #include <stdlib.h>
31452 volatile double A, B;
31456 sprintf(Buffer, "%a", A);
31460 if (A != 0x1.999999999999ap-4)
31467 rm -f conftest$ac_exeext
31468 if { (ac_try="$ac_link"
31469 case "(($ac_try" in
31470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31471 *) ac_try_echo
=$ac_try;;
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474 (eval "$ac_link") 2>&5
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31478 { (case "(($ac_try" in
31479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31480 *) ac_try_echo=$ac_try;;
31482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483 (eval "$ac_try") 2>&5
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
31487 llvm_cv_c_printf_a=yes
31489 echo "$as_me: program exited with status $ac_status" >&5
31490 echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31493 ( exit $ac_status )
31494 llvmac_cv_c_printf_a=no
31496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31501 ac_cpp='$CPP $CPPFLAGS'
31502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31507 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31508 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31509 if test "$llvm_cv_c_printf_a" = "yes"; then
31511 cat >>confdefs.h <<\_ACEOF
31512 #define HAVE_PRINTF_A 1
31517 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31518 # for constant arguments. Useless!
31519 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31520 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31521 if test "${ac_cv_working_alloca_h+set}" = set; then
31522 echo $ECHO_N "(cached) $ECHO_C" >&6
31524 cat >conftest.$ac_ext <<_ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h. */
31530 #include <alloca.h>
31534 char *p = (char *) alloca (2 * sizeof (int));
31540 rm -f conftest.$ac_objext conftest$ac_exeext
31541 if { (ac_try="$ac_link"
31542 case "(($ac_try" in
31543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31544 *) ac_try_echo
=$ac_try;;
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_link") 2>conftest.er1
31549 grep -v '^ *+' conftest.er1
>conftest.err
31551 cat conftest.err
>&5
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); } &&
31554 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31555 { (case "(($ac_try" in
31556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; } &&
31564 { ac_try='test -s conftest$ac_exeext'
31565 { (case "(($ac_try" in
31566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31567 *) ac_try_echo
=$ac_try;;
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_try") 2>&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; }; then
31574 ac_cv_working_alloca_h
=yes
31576 echo "$as_me: failed program was:" >&5
31577 sed 's/^/| /' conftest.
$ac_ext >&5
31579 ac_cv_working_alloca_h
=no
31582 rm -f core conftest.err conftest.
$ac_objext \
31583 conftest
$ac_exeext conftest.
$ac_ext
31585 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31586 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31587 if test $ac_cv_working_alloca_h = yes; then
31589 cat >>confdefs.h
<<\_ACEOF
31590 #define HAVE_ALLOCA_H 1
31595 { echo "$as_me:$LINENO: checking for alloca" >&5
31596 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31597 if test "${ac_cv_func_alloca_works+set}" = set; then
31598 echo $ECHO_N "(cached) $ECHO_C" >&6
31600 cat >conftest.
$ac_ext <<_ACEOF
31603 cat confdefs.h
>>conftest.
$ac_ext
31604 cat >>conftest.
$ac_ext <<_ACEOF
31605 /* end confdefs.h. */
31607 # define alloca __builtin_alloca
31610 # include <malloc.h>
31611 # define alloca _alloca
31614 # include <alloca.h>
31619 # ifndef alloca /* predefined by HP cc +Olibcalls */
31630 char *p = (char *) alloca (1);
31636 rm -f conftest.
$ac_objext conftest
$ac_exeext
31637 if { (ac_try
="$ac_link"
31638 case "(($ac_try" in
31639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31640 *) ac_try_echo=$ac_try;;
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 (eval "$ac_link") 2>conftest.er1
31645 grep -v '^ *+' conftest.er1 >conftest.err
31647 cat conftest.err >&5
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); } &&
31650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31651 { (case "(($ac_try" in
31652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31653 *) ac_try_echo
=$ac_try;;
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656 (eval "$ac_try") 2>&5
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); }; } &&
31660 { ac_try
='test -s conftest$ac_exeext'
31661 { (case "(($ac_try" in
31662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_try") 2>&5
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
31670 ac_cv_func_alloca_works=yes
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31675 ac_cv_func_alloca_works=no
31678 rm -f core conftest.err conftest.$ac_objext \
31679 conftest$ac_exeext conftest.$ac_ext
31681 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31682 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31684 if test $ac_cv_func_alloca_works = yes; then
31686 cat >>confdefs.h <<\_ACEOF
31687 #define HAVE_ALLOCA 1
31691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31692 # that cause trouble. Some versions do not even contain alloca or
31693 # contain a buggy version. If you still want to use their alloca,
31694 # use ar to extract alloca.o from them instead of compiling alloca.c.
31696 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31698 cat >>confdefs.h <<\_ACEOF
31703 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
31704 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
31705 if test "${ac_cv_os_cray+set}" = set; then
31706 echo $ECHO_N "(cached
) $ECHO_C" >&6
31708 cat >conftest.$ac_ext <<_ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h. */
31714 #if defined CRAY && ! defined CRAY2
31721 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
31722 $EGREP "webecray
" >/dev/null 2>&1; then
31730 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
31731 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31732 if test $ac_cv_os_cray = yes; then
31733 for ac_func in _getb67 GETB67 getb67; do
31734 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
31735 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
31736 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
31737 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
31738 echo $ECHO_N "(cached
) $ECHO_C" >&6
31740 cat >conftest.$ac_ext <<_ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31748 #define $ac_func innocuous_$ac_func
31750 /* System header to define __stub macros and hopefully few prototypes,
31751 which can conflict with char $ac_func (); below.
31752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31753 <limits.h> exists even on freestanding compilers. */
31756 # include <limits.h>
31758 # include <assert.h>
31763 /* Override any GCC internal prototype to avoid an error.
31764 Use char because int might match the return type of a GCC
31765 builtin and then its argument prototype would still apply. */
31770 /* The GNU C library defines this for functions which it implements
31771 to always fail with ENOSYS. Some functions are actually named
31772 something starting with __ and the normal name is an alias. */
31773 #if defined __stub_$ac_func || defined __stub___$ac_func
31780 return $ac_func ();
31785 rm -f conftest.$ac_objext conftest$ac_exeext
31786 if { (ac_try="$ac_link"
31787 case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_link") 2>conftest.er1
31794 grep -v '^ *+' conftest.er1 >conftest.err
31796 cat conftest.err >&5
31797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31798 (exit $ac_status); } &&
31799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31800 { (case "(($ac_try" in
31801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31802 *) ac_try_echo=$ac_try;;
31804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31805 (eval "$ac_try") 2>&5
31807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31808 (exit $ac_status); }; } &&
31809 { ac_try='test -s conftest$ac_exeext'
31810 { (case "(($ac_try" in
31811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812 *) ac_try_echo=$ac_try;;
31814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31815 (eval "$ac_try") 2>&5
31817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31818 (exit $ac_status); }; }; then
31819 eval "$as_ac_var=yes"
31821 echo "$as_me: failed program was
:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 eval "$as_ac_var=no
"
31827 rm -f core conftest.err conftest.$ac_objext \
31828 conftest$ac_exeext conftest.$ac_ext
31830 ac_res=`eval echo '${'$as_ac_var'}'`
31831 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31832 echo "${ECHO_T}$ac_res" >&6; }
31833 if test `eval echo '${'$as_ac_var'}'` = yes; then
31835 cat >>confdefs.h <<_ACEOF
31836 #define CRAY_STACKSEG_END $ac_func
31845 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
31846 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
31847 if test "${ac_cv_c_stack_direction+set}" = set; then
31848 echo $ECHO_N "(cached
) $ECHO_C" >&6
31850 if test "$cross_compiling" = yes; then
31851 ac_cv_c_stack_direction=0
31853 cat >conftest.$ac_ext <<_ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h. */
31859 $ac_includes_default
31861 find_stack_direction ()
31863 static char *addr = 0;
31868 return find_stack_direction ();
31871 return (&dummy > addr) ? 1 : -1;
31877 return find_stack_direction () < 0;
31880 rm -f conftest$ac_exeext
31881 if { (ac_try="$ac_link"
31882 case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_link") 2>&5
31889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31891 { (case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_try") 2>&5
31898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31899 (exit $ac_status); }; }; then
31900 ac_cv_c_stack_direction=1
31902 echo "$as_me: program exited with status
$ac_status" >&5
31903 echo "$as_me: failed program was
:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31906 ( exit $ac_status )
31907 ac_cv_c_stack_direction=-1
31909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31914 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
31915 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31917 cat >>confdefs.h <<_ACEOF
31918 #define STACK_DIRECTION $ac_cv_c_stack_direction
31925 { echo "$as_me:$LINENO: checking
for srand48
/lrand48
/drand48
in <stdlib.h
>" >&5
31926 echo $ECHO_N "checking
for srand48
/lrand48
/drand48
in <stdlib.h
>...
$ECHO_C" >&6; }
31927 if test "${ac_cv_func_rand48+set}" = set; then
31928 echo $ECHO_N "(cached
) $ECHO_C" >&6
31931 ac_cpp='$CXXCPP $CPPFLAGS'
31932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31936 cat >conftest.$ac_ext <<_ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h. */
31942 #include <stdlib.h>
31946 srand48(0);lrand48();drand48();
31951 rm -f conftest.$ac_objext
31952 if { (ac_try="$ac_compile"
31953 case "(($ac_try" in
31954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 *) ac_try_echo=$ac_try;;
31957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_compile") 2>conftest.er1
31960 grep -v '^ *+' conftest.er1 >conftest.err
31962 cat conftest.err >&5
31963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31964 (exit $ac_status); } &&
31965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
31975 { ac_try='test -s conftest.$ac_objext'
31976 { (case "(($ac_try" in
31977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 *) ac_try_echo=$ac_try;;
31980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31981 (eval "$ac_try") 2>&5
31983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31984 (exit $ac_status); }; }; then
31985 ac_cv_func_rand48=yes
31987 echo "$as_me: failed program was
:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31990 ac_cv_func_rand48=no
31993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31995 ac_cpp='$CPP $CPPFLAGS'
31996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32001 { echo "$as_me:$LINENO: result
: $ac_cv_func_rand48" >&5
32002 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32004 if test "$ac_cv_func_rand48" = "yes" ; then
32006 cat >>confdefs.h <<\_ACEOF
32007 #define HAVE_RAND48 1
32013 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces
" >&5
32014 echo $ECHO_N "checking whether the compiler implements namespaces...
$ECHO_C" >&6; }
32015 if test "${ac_cv_cxx_namespaces+set}" = set; then
32016 echo $ECHO_N "(cached
) $ECHO_C" >&6
32019 ac_cpp='$CXXCPP $CPPFLAGS'
32020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32024 cat >conftest.$ac_ext <<_ACEOF
32027 cat confdefs.h >>conftest.$ac_ext
32028 cat >>conftest.$ac_ext <<_ACEOF
32029 /* end confdefs.h. */
32030 namespace Outer { namespace Inner { int i = 0; }}
32034 using namespace Outer::Inner; return i;
32039 rm -f conftest.$ac_objext
32040 if { (ac_try="$ac_compile"
32041 case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_compile") 2>conftest.er1
32048 grep -v '^ *+' conftest.er1 >conftest.err
32050 cat conftest.err >&5
32051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32052 (exit $ac_status); } &&
32053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32054 { (case "(($ac_try" in
32055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056 *) ac_try_echo=$ac_try;;
32058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32059 (eval "$ac_try") 2>&5
32061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32062 (exit $ac_status); }; } &&
32063 { ac_try='test -s conftest.$ac_objext'
32064 { (case "(($ac_try" in
32065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_try") 2>&5
32071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32072 (exit $ac_status); }; }; then
32073 ac_cv_cxx_namespaces=yes
32075 echo "$as_me: failed program was
:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32078 ac_cv_cxx_namespaces=no
32081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32083 ac_cpp='$CPP $CPPFLAGS'
32084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32090 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_namespaces" >&5
32091 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32092 if test "$ac_cv_cxx_namespaces" = yes; then
32094 cat >>confdefs.h <<\_ACEOF
32095 #define HAVE_NAMESPACES
32100 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map
" >&5
32101 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map...
$ECHO_C" >&6; }
32102 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32103 echo $ECHO_N "(cached
) $ECHO_C" >&6
32107 ac_cpp='$CXXCPP $CPPFLAGS'
32108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32112 cat >conftest.$ac_ext <<_ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h. */
32118 #include <ext/hash_map>
32119 #ifdef HAVE_NAMESPACES
32120 using namespace std;
32125 hash_map<int, int> t;
32130 rm -f conftest.$ac_objext
32131 if { (ac_try="$ac_compile"
32132 case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_compile") 2>conftest.er1
32139 grep -v '^ *+' conftest.er1 >conftest.err
32141 cat conftest.err >&5
32142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32143 (exit $ac_status); } &&
32144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32145 { (case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_try") 2>&5
32152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32153 (exit $ac_status); }; } &&
32154 { ac_try='test -s conftest.$ac_objext'
32155 { (case "(($ac_try" in
32156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32157 *) ac_try_echo=$ac_try;;
32159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32160 (eval "$ac_try") 2>&5
32162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164 ac_cv_cxx_have_std_ext_hash_map=yes
32166 echo "$as_me: failed program was
:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32169 ac_cv_cxx_have_std_ext_hash_map=no
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32174 ac_cpp='$CPP $CPPFLAGS'
32175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32180 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_map" >&5
32181 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32182 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32185 cat >>confdefs.h <<\_ACEOF
32186 #define HAVE_STD_EXT_HASH_MAP 1
32191 cat >>confdefs.h <<\_ACEOF
32192 #define HAVE_STD_EXT_HASH_MAP 0
32197 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map
" >&5
32198 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map...
$ECHO_C" >&6; }
32199 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32200 echo $ECHO_N "(cached
) $ECHO_C" >&6
32204 ac_cpp='$CXXCPP $CPPFLAGS'
32205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32209 cat >conftest.$ac_ext <<_ACEOF
32212 cat confdefs.h >>conftest.$ac_ext
32213 cat >>conftest.$ac_ext <<_ACEOF
32214 /* end confdefs.h. */
32215 #include <ext/hash_map>
32216 #ifdef HAVE_NAMESPACES
32217 using namespace __gnu_cxx;
32222 hash_map<int,int> t;
32227 rm -f conftest.$ac_objext
32228 if { (ac_try="$ac_compile"
32229 case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_compile") 2>conftest.er1
32236 grep -v '^ *+' conftest.er1 >conftest.err
32238 cat conftest.err >&5
32239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32240 (exit $ac_status); } &&
32241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
32249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32250 (exit $ac_status); }; } &&
32251 { ac_try='test -s conftest.$ac_objext'
32252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
32259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32260 (exit $ac_status); }; }; then
32261 ac_cv_cxx_have_gnu_ext_hash_map=yes
32263 echo "$as_me: failed program was
:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32266 ac_cv_cxx_have_gnu_ext_hash_map=no
32269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32271 ac_cpp='$CPP $CPPFLAGS'
32272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32277 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32278 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32279 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32282 cat >>confdefs.h <<\_ACEOF
32283 #define HAVE_GNU_EXT_HASH_MAP 1
32288 cat >>confdefs.h <<\_ACEOF
32289 #define HAVE_GNU_EXT_HASH_MAP 0
32294 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_map
> defining template class
::hash_map
" >&5
32295 echo $ECHO_N "checking whether the compiler has
<hash_map
> defining template class
::hash_map...
$ECHO_C" >&6; }
32296 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32297 echo $ECHO_N "(cached
) $ECHO_C" >&6
32301 ac_cpp='$CXXCPP $CPPFLAGS'
32302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32306 cat >conftest.$ac_ext <<_ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h. */
32312 #include <hash_map>
32316 hash_map<int,int> t;
32321 rm -f conftest.$ac_objext
32322 if { (ac_try="$ac_compile"
32323 case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_compile") 2>conftest.er1
32330 grep -v '^ *+' conftest.er1 >conftest.err
32332 cat conftest.err >&5
32333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32334 (exit $ac_status); } &&
32335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32336 { (case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_try") 2>&5
32343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32344 (exit $ac_status); }; } &&
32345 { ac_try='test -s conftest.$ac_objext'
32346 { (case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_try") 2>&5
32353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32354 (exit $ac_status); }; }; then
32355 ac_cv_cxx_have_global_hash_map=yes
32357 echo "$as_me: failed program was
:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32360 ac_cv_cxx_have_global_hash_map=no
32363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32365 ac_cpp='$CPP $CPPFLAGS'
32366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32371 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_map" >&5
32372 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32373 if test "$ac_cv_cxx_have_global_hash_map" = yes
32376 cat >>confdefs.h <<\_ACEOF
32377 #define HAVE_GLOBAL_HASH_MAP 1
32382 cat >>confdefs.h <<\_ACEOF
32383 #define HAVE_GLOBAL_HASH_MAP 0
32388 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set
" >&5
32389 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set...
$ECHO_C" >&6; }
32390 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32391 echo $ECHO_N "(cached
) $ECHO_C" >&6
32395 ac_cpp='$CXXCPP $CPPFLAGS'
32396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32400 cat >conftest.$ac_ext <<_ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h. */
32406 #include <ext/hash_set>
32407 #ifdef HAVE_NAMESPACES
32408 using namespace std;
32418 rm -f conftest.$ac_objext
32419 if { (ac_try="$ac_compile"
32420 case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_compile") 2>conftest.er1
32427 grep -v '^ *+' conftest.er1 >conftest.err
32429 cat conftest.err >&5
32430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32431 (exit $ac_status); } &&
32432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32433 { (case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_try") 2>&5
32440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32441 (exit $ac_status); }; } &&
32442 { ac_try='test -s conftest.$ac_objext'
32443 { (case "(($ac_try" in
32444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445 *) ac_try_echo=$ac_try;;
32447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32448 (eval "$ac_try") 2>&5
32450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32451 (exit $ac_status); }; }; then
32452 ac_cv_cxx_have_std_ext_hash_set=yes
32454 echo "$as_me: failed program was
:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32457 ac_cv_cxx_have_std_ext_hash_set=no
32460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32462 ac_cpp='$CPP $CPPFLAGS'
32463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32468 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_set" >&5
32469 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32470 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32473 cat >>confdefs.h <<\_ACEOF
32474 #define HAVE_STD_EXT_HASH_SET 1
32479 cat >>confdefs.h <<\_ACEOF
32480 #define HAVE_STD_EXT_HASH_SET 0
32485 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set
" >&5
32486 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set...
$ECHO_C" >&6; }
32487 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32488 echo $ECHO_N "(cached
) $ECHO_C" >&6
32492 ac_cpp='$CXXCPP $CPPFLAGS'
32493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32497 cat >conftest.$ac_ext <<_ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h. */
32503 #include <ext/hash_set>
32504 #ifdef HAVE_NAMESPACES
32505 using namespace __gnu_cxx;
32515 rm -f conftest.$ac_objext
32516 if { (ac_try="$ac_compile"
32517 case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_compile") 2>conftest.er1
32524 grep -v '^ *+' conftest.er1 >conftest.err
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32528 (exit $ac_status); } &&
32529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
32539 { ac_try='test -s conftest.$ac_objext'
32540 { (case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_try") 2>&5
32547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32548 (exit $ac_status); }; }; then
32549 ac_cv_cxx_have_gnu_ext_hash_set=yes
32551 echo "$as_me: failed program was
:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32554 ac_cv_cxx_have_gnu_ext_hash_set=no
32557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32559 ac_cpp='$CPP $CPPFLAGS'
32560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32566 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32567 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32570 cat >>confdefs.h <<\_ACEOF
32571 #define HAVE_GNU_EXT_HASH_SET 1
32576 cat >>confdefs.h <<\_ACEOF
32577 #define HAVE_GNU_EXT_HASH_SET 0
32582 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_set
> defining template class
::hash_set
" >&5
32583 echo $ECHO_N "checking whether the compiler has
<hash_set
> defining template class
::hash_set...
$ECHO_C" >&6; }
32584 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32585 echo $ECHO_N "(cached
) $ECHO_C" >&6
32589 ac_cpp='$CXXCPP $CPPFLAGS'
32590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32594 cat >conftest.$ac_ext <<_ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h. */
32600 #include <hash_set>
32604 hash_set<int> t; return 0;
32609 rm -f conftest.$ac_objext
32610 if { (ac_try="$ac_compile"
32611 case "(($ac_try" in
32612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613 *) ac_try_echo=$ac_try;;
32615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32616 (eval "$ac_compile") 2>conftest.er1
32618 grep -v '^ *+' conftest.er1 >conftest.err
32620 cat conftest.err >&5
32621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32622 (exit $ac_status); } &&
32623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32624 { (case "(($ac_try" in
32625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626 *) ac_try_echo=$ac_try;;
32628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32629 (eval "$ac_try") 2>&5
32631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32632 (exit $ac_status); }; } &&
32633 { ac_try='test -s conftest.$ac_objext'
32634 { (case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32639 (eval "$ac_try") 2>&5
32641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32642 (exit $ac_status); }; }; then
32643 ac_cv_cxx_have_global_hash_set=yes
32645 echo "$as_me: failed program was
:" >&5
32646 sed 's/^/| /' conftest.$ac_ext >&5
32648 ac_cv_cxx_have_global_hash_set=no
32651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32653 ac_cpp='$CPP $CPPFLAGS'
32654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32659 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_set" >&5
32660 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32661 if test "$ac_cv_cxx_have_global_hash_set" = yes
32664 cat >>confdefs.h <<\_ACEOF
32665 #define HAVE_GLOBAL_HASH_SET 1
32670 cat >>confdefs.h <<\_ACEOF
32671 #define HAVE_GLOBAL_HASH_SET 0
32676 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator
" >&5
32677 echo $ECHO_N "checking whether the compiler has the standard iterator...
$ECHO_C" >&6; }
32678 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32679 echo $ECHO_N "(cached
) $ECHO_C" >&6
32683 ac_cpp='$CXXCPP $CPPFLAGS'
32684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32688 cat >conftest.$ac_ext <<_ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h. */
32694 #include <iterator>
32695 #ifdef HAVE_NAMESPACES
32696 using namespace std;
32701 iterator<int,int,int> t; return 0;
32706 rm -f conftest.$ac_objext
32707 if { (ac_try="$ac_compile"
32708 case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_compile") 2>conftest.er1
32715 grep -v '^ *+' conftest.er1 >conftest.err
32717 cat conftest.err >&5
32718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32719 (exit $ac_status); } &&
32720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32729 (exit $ac_status); }; } &&
32730 { ac_try='test -s conftest.$ac_objext'
32731 { (case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_try") 2>&5
32738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ac_cv_cxx_have_std_iterator=yes
32742 echo "$as_me: failed program was
:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32745 ac_cv_cxx_have_std_iterator=no
32748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32750 ac_cpp='$CPP $CPPFLAGS'
32751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32757 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_iterator" >&5
32758 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32759 if test "$ac_cv_cxx_have_std_iterator" = yes
32762 cat >>confdefs.h <<\_ACEOF
32763 #define HAVE_STD_ITERATOR 1
32768 cat >>confdefs.h <<\_ACEOF
32769 #define HAVE_STD_ITERATOR 0
32774 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator
" >&5
32775 echo $ECHO_N "checking whether the compiler has the bidirectional iterator...
$ECHO_C" >&6; }
32776 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32777 echo $ECHO_N "(cached
) $ECHO_C" >&6
32781 ac_cpp='$CXXCPP $CPPFLAGS'
32782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32786 cat >conftest.$ac_ext <<_ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h. */
32792 #include <iterator>
32793 #ifdef HAVE_NAMESPACES
32794 using namespace std;
32799 bidirectional_iterator<int,int> t; return 0;
32804 rm -f conftest.$ac_objext
32805 if { (ac_try="$ac_compile"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_compile") 2>conftest.er1
32813 grep -v '^ *+' conftest.er1 >conftest.err
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest.$ac_objext'
32829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
32836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 ac_cv_cxx_have_bi_iterator=yes
32840 echo "$as_me: failed program was
:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32843 ac_cv_cxx_have_bi_iterator=no
32846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 ac_cpp='$CPP $CPPFLAGS'
32849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32855 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_bi_iterator" >&5
32856 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32857 if test "$ac_cv_cxx_have_bi_iterator" = yes
32860 cat >>confdefs.h <<\_ACEOF
32861 #define HAVE_BI_ITERATOR 1
32866 cat >>confdefs.h <<\_ACEOF
32867 #define HAVE_BI_ITERATOR 0
32872 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators
" >&5
32873 echo $ECHO_N "checking whether the compiler has forward iterators...
$ECHO_C" >&6; }
32874 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32875 echo $ECHO_N "(cached
) $ECHO_C" >&6
32879 ac_cpp='$CXXCPP $CPPFLAGS'
32880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32884 cat >conftest.$ac_ext <<_ACEOF
32887 cat confdefs.h >>conftest.$ac_ext
32888 cat >>conftest.$ac_ext <<_ACEOF
32889 /* end confdefs.h. */
32890 #include <iterator>
32891 #ifdef HAVE_NAMESPACES
32892 using namespace std;
32897 forward_iterator<int,int> t; return 0;
32902 rm -f conftest.$ac_objext
32903 if { (ac_try="$ac_compile"
32904 case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_compile") 2>conftest.er1
32911 grep -v '^ *+' conftest.er1 >conftest.err
32913 cat conftest.err >&5
32914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32915 (exit $ac_status); } &&
32916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32917 { (case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_try") 2>&5
32924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32925 (exit $ac_status); }; } &&
32926 { ac_try='test -s conftest.$ac_objext'
32927 { (case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_try") 2>&5
32934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32935 (exit $ac_status); }; }; then
32936 ac_cv_cxx_have_fwd_iterator=yes
32938 echo "$as_me: failed program was
:" >&5
32939 sed 's/^/| /' conftest.$ac_ext >&5
32941 ac_cv_cxx_have_fwd_iterator=no
32944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32946 ac_cpp='$CPP $CPPFLAGS'
32947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32953 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_fwd_iterator" >&5
32954 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32955 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32958 cat >>confdefs.h <<\_ACEOF
32959 #define HAVE_FWD_ITERATOR 1
32964 cat >>confdefs.h <<\_ACEOF
32965 #define HAVE_FWD_ITERATOR 0
32971 { echo "$as_me:$LINENO: checking
for isnan
in <math.h
>" >&5
32972 echo $ECHO_N "checking
for isnan
in <math.h
>...
$ECHO_C" >&6; }
32973 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32974 echo $ECHO_N "(cached
) $ECHO_C" >&6
32977 ac_cpp='$CXXCPP $CPPFLAGS'
32978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32982 cat >conftest.$ac_ext <<_ACEOF
32985 cat confdefs.h >>conftest.$ac_ext
32986 cat >>conftest.$ac_ext <<_ACEOF
32987 /* end confdefs.h. */
32997 rm -f conftest.$ac_objext
32998 if { (ac_try="$ac_compile"
32999 case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_compile") 2>conftest.er1
33006 grep -v '^ *+' conftest.er1 >conftest.err
33008 cat conftest.err >&5
33009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33010 (exit $ac_status); } &&
33011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33020 (exit $ac_status); }; } &&
33021 { ac_try='test -s conftest.$ac_objext'
33022 { (case "(($ac_try" in
33023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024 *) ac_try_echo=$ac_try;;
33026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33027 (eval "$ac_try") 2>&5
33029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33030 (exit $ac_status); }; }; then
33031 ac_cv_func_isnan_in_math_h=yes
33033 echo "$as_me: failed program was
:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33036 ac_cv_func_isnan_in_math_h=no
33039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33041 ac_cpp='$CPP $CPPFLAGS'
33042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33047 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_math_h" >&5
33048 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33051 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33053 cat >>confdefs.h <<\_ACEOF
33054 #define HAVE_ISNAN_IN_MATH_H 1
33059 { echo "$as_me:$LINENO: checking
for isnan
in <cmath
>" >&5
33060 echo $ECHO_N "checking
for isnan
in <cmath
>...
$ECHO_C" >&6; }
33061 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33062 echo $ECHO_N "(cached
) $ECHO_C" >&6
33065 ac_cpp='$CXXCPP $CPPFLAGS'
33066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33085 rm -f conftest.$ac_objext
33086 if { (ac_try="$ac_compile"
33087 case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_compile") 2>conftest.er1
33094 grep -v '^ *+' conftest.er1 >conftest.err
33096 cat conftest.err >&5
33097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33098 (exit $ac_status); } &&
33099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33100 { (case "(($ac_try" in
33101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102 *) ac_try_echo=$ac_try;;
33104 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33105 (eval "$ac_try") 2>&5
33107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33108 (exit $ac_status); }; } &&
33109 { ac_try='test -s conftest.$ac_objext'
33110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
33117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33118 (exit $ac_status); }; }; then
33119 ac_cv_func_isnan_in_cmath=yes
33121 echo "$as_me: failed program was
:" >&5
33122 sed 's/^/| /' conftest.$ac_ext >&5
33124 ac_cv_func_isnan_in_cmath=no
33127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33129 ac_cpp='$CPP $CPPFLAGS'
33130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33135 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_cmath" >&5
33136 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33138 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33140 cat >>confdefs.h <<\_ACEOF
33141 #define HAVE_ISNAN_IN_CMATH 1
33146 { echo "$as_me:$LINENO: checking
for std
::isnan
in <cmath
>" >&5
33147 echo $ECHO_N "checking
for std
::isnan
in <cmath
>...
$ECHO_C" >&6; }
33148 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33149 echo $ECHO_N "(cached
) $ECHO_C" >&6
33152 ac_cpp='$CXXCPP $CPPFLAGS'
33153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33157 cat >conftest.$ac_ext <<_ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33167 float f; std::isnan(f);
33172 rm -f conftest.$ac_objext
33173 if { (ac_try="$ac_compile"
33174 case "(($ac_try" in
33175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33176 *) ac_try_echo=$ac_try;;
33178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33179 (eval "$ac_compile") 2>conftest.er1
33181 grep -v '^ *+' conftest.er1 >conftest.err
33183 cat conftest.err >&5
33184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33185 (exit $ac_status); } &&
33186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33187 { (case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_try") 2>&5
33194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33195 (exit $ac_status); }; } &&
33196 { ac_try='test -s conftest.$ac_objext'
33197 { (case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_try") 2>&5
33204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33205 (exit $ac_status); }; }; then
33206 ac_cv_func_std_isnan_in_cmath=yes
33208 echo "$as_me: failed program was
:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33211 ac_cv_func_std_isnan_in_cmath=no
33214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33216 ac_cpp='$CPP $CPPFLAGS'
33217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33222 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isnan_in_cmath" >&5
33223 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33225 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33227 cat >>confdefs.h <<\_ACEOF
33228 #define HAVE_STD_ISNAN_IN_CMATH 1
33234 { echo "$as_me:$LINENO: checking
for isinf
in <math.h
>" >&5
33235 echo $ECHO_N "checking
for isinf
in <math.h
>...
$ECHO_C" >&6; }
33236 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33237 echo $ECHO_N "(cached
) $ECHO_C" >&6
33240 ac_cpp='$CXXCPP $CPPFLAGS'
33241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33245 cat >conftest.$ac_ext <<_ACEOF
33248 cat confdefs.h >>conftest.$ac_ext
33249 cat >>conftest.$ac_ext <<_ACEOF
33250 /* end confdefs.h. */
33260 rm -f conftest.$ac_objext
33261 if { (ac_try="$ac_compile"
33262 case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_compile") 2>conftest.er1
33269 grep -v '^ *+' conftest.er1 >conftest.err
33271 cat conftest.err >&5
33272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33273 (exit $ac_status); } &&
33274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
33285 { (case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_try") 2>&5
33292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33293 (exit $ac_status); }; }; then
33294 ac_cv_func_isinf_in_math_h=yes
33296 echo "$as_me: failed program was
:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33299 ac_cv_func_isinf_in_math_h=no
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33304 ac_cpp='$CPP $CPPFLAGS'
33305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33310 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_math_h" >&5
33311 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33313 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33315 cat >>confdefs.h <<\_ACEOF
33316 #define HAVE_ISINF_IN_MATH_H 1
33321 { echo "$as_me:$LINENO: checking
for isinf
in <cmath
>" >&5
33322 echo $ECHO_N "checking
for isinf
in <cmath
>...
$ECHO_C" >&6; }
33323 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33324 echo $ECHO_N "(cached
) $ECHO_C" >&6
33327 ac_cpp='$CXXCPP $CPPFLAGS'
33328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33332 cat >conftest.$ac_ext <<_ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h. */
33347 rm -f conftest.$ac_objext
33348 if { (ac_try="$ac_compile"
33349 case "(($ac_try" in
33350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351 *) ac_try_echo=$ac_try;;
33353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33354 (eval "$ac_compile") 2>conftest.er1
33356 grep -v '^ *+' conftest.er1 >conftest.err
33358 cat conftest.err >&5
33359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33360 (exit $ac_status); } &&
33361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33362 { (case "(($ac_try" in
33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364 *) ac_try_echo=$ac_try;;
33366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_try") 2>&5
33369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33370 (exit $ac_status); }; } &&
33371 { ac_try='test -s conftest.$ac_objext'
33372 { (case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_try") 2>&5
33379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33380 (exit $ac_status); }; }; then
33381 ac_cv_func_isinf_in_cmath=yes
33383 echo "$as_me: failed program was
:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33386 ac_cv_func_isinf_in_cmath=no
33389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33391 ac_cpp='$CPP $CPPFLAGS'
33392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33397 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_cmath" >&5
33398 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33400 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33402 cat >>confdefs.h <<\_ACEOF
33403 #define HAVE_ISINF_IN_CMATH 1
33408 { echo "$as_me:$LINENO: checking
for std
::isinf
in <cmath
>" >&5
33409 echo $ECHO_N "checking
for std
::isinf
in <cmath
>...
$ECHO_C" >&6; }
33410 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33411 echo $ECHO_N "(cached
) $ECHO_C" >&6
33414 ac_cpp='$CXXCPP $CPPFLAGS'
33415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33419 cat >conftest.$ac_ext <<_ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h. */
33429 float f; std::isinf(f)}
33434 rm -f conftest.$ac_objext
33435 if { (ac_try="$ac_compile"
33436 case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_compile") 2>conftest.er1
33443 grep -v '^ *+' conftest.er1 >conftest.err
33445 cat conftest.err >&5
33446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33447 (exit $ac_status); } &&
33448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33449 { (case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_try") 2>&5
33456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33457 (exit $ac_status); }; } &&
33458 { ac_try='test -s conftest.$ac_objext'
33459 { (case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_try") 2>&5
33466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33467 (exit $ac_status); }; }; then
33468 ac_cv_func_std_isinf_in_cmath=yes
33470 echo "$as_me: failed program was
:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33473 ac_cv_func_std_isinf_in_cmath=no
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478 ac_cpp='$CPP $CPPFLAGS'
33479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33484 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isinf_in_cmath" >&5
33485 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33487 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33489 cat >>confdefs.h <<\_ACEOF
33490 #define HAVE_STD_ISINF_IN_CMATH 1
33495 { echo "$as_me:$LINENO: checking
for finite
in <ieeefp.h
>" >&5
33496 echo $ECHO_N "checking
for finite
in <ieeefp.h
>...
$ECHO_C" >&6; }
33497 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33498 echo $ECHO_N "(cached
) $ECHO_C" >&6
33501 ac_cpp='$CXXCPP $CPPFLAGS'
33502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33506 cat >conftest.$ac_ext <<_ACEOF
33509 cat confdefs.h >>conftest.$ac_ext
33510 cat >>conftest.$ac_ext <<_ACEOF
33511 /* end confdefs.h. */
33512 #include <ieeefp.h>
33516 float f; finite(f);
33521 rm -f conftest.$ac_objext
33522 if { (ac_try="$ac_compile"
33523 case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_compile") 2>conftest.er1
33530 grep -v '^ *+' conftest.er1 >conftest.err
33532 cat conftest.err >&5
33533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33534 (exit $ac_status); } &&
33535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33544 (exit $ac_status); }; } &&
33545 { ac_try='test -s conftest.$ac_objext'
33546 { (case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_try") 2>&5
33553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 ac_cv_func_finite_in_ieeefp_h=yes
33557 echo "$as_me: failed program was
:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33560 ac_cv_func_finite_in_ieeefp_h=no
33563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33565 ac_cpp='$CPP $CPPFLAGS'
33566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33571 { echo "$as_me:$LINENO: result
: $ac_cv_func_finite_in_ieeefp_h" >&5
33572 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33574 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33576 cat >>confdefs.h <<\_ACEOF
33577 #define HAVE_FINITE_IN_IEEEFP_H 1
33584 if test "$llvm_cv_platform_type" = "Unix
" ; then
33587 for ac_header in stdlib.h unistd.h
33589 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
33590 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33591 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
33592 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
33593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33594 echo $ECHO_N "(cached
) $ECHO_C" >&6
33596 ac_res=`eval echo '${'$as_ac_Header'}'`
33597 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33598 echo "${ECHO_T}$ac_res" >&6; }
33600 # Is the header compilable?
33601 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
33602 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
33603 cat >conftest.$ac_ext <<_ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h. */
33609 $ac_includes_default
33610 #include <$ac_header>
33612 rm -f conftest.$ac_objext
33613 if { (ac_try="$ac_compile"
33614 case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_compile") 2>conftest.er1
33621 grep -v '^ *+' conftest.er1 >conftest.err
33623 cat conftest.err >&5
33624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33625 (exit $ac_status); } &&
33626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33627 { (case "(($ac_try" in
33628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629 *) ac_try_echo=$ac_try;;
33631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33632 (eval "$ac_try") 2>&5
33634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33635 (exit $ac_status); }; } &&
33636 { ac_try='test -s conftest.$ac_objext'
33637 { (case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_try") 2>&5
33644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33645 (exit $ac_status); }; }; then
33646 ac_header_compiler=yes
33648 echo "$as_me: failed program was
:" >&5
33649 sed 's/^/| /' conftest.$ac_ext >&5
33651 ac_header_compiler=no
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33656 echo "${ECHO_T}$ac_header_compiler" >&6; }
33658 # Is the header present?
33659 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
33660 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
33661 cat >conftest.$ac_ext <<_ACEOF
33664 cat confdefs.h >>conftest.$ac_ext
33665 cat >>conftest.$ac_ext <<_ACEOF
33666 /* end confdefs.h. */
33667 #include <$ac_header>
33669 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33670 case "(($ac_try" in
33671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33672 *) ac_try_echo=$ac_try;;
33674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33675 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33677 grep -v '^ *+' conftest.er1 >conftest.err
33679 cat conftest.err >&5
33680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33681 (exit $ac_status); } >/dev/null; then
33682 if test -s conftest.err; then
33683 ac_cpp_err=$ac_c_preproc_warn_flag
33684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33691 if test -z "$ac_cpp_err"; then
33692 ac_header_preproc=yes
33694 echo "$as_me: failed program was
:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33697 ac_header_preproc=no
33700 rm -f conftest.err conftest.$ac_ext
33701 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33702 echo "${ECHO_T}$ac_header_preproc" >&6; }
33704 # So? What about this header?
33705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33707 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
33708 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33709 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
33710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
33711 ac_header_preproc=yes
33714 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
33715 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
33716 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
33717 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
33718 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
33719 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
33720 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
33721 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
33722 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
33723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
33724 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
33725 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
33727 ## ----------------------------------- ##
33728 ## Report this to llvmbugs@cs.uiuc.edu ##
33729 ## ----------------------------------- ##
33731 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33734 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
33735 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
33736 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33737 echo $ECHO_N "(cached
) $ECHO_C" >&6
33739 eval "$as_ac_Header=\
$ac_header_preproc"
33741 ac_res=`eval echo '${'$as_ac_Header'}'`
33742 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33743 echo "${ECHO_T}$ac_res" >&6; }
33746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33747 cat >>confdefs.h <<_ACEOF
33748 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
33756 for ac_func in getpagesize
33758 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
33759 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
33760 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
33761 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
33762 echo $ECHO_N "(cached
) $ECHO_C" >&6
33764 cat >conftest.$ac_ext <<_ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h. */
33770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33772 #define $ac_func innocuous_$ac_func
33774 /* System header to define __stub macros and hopefully few prototypes,
33775 which can conflict with char $ac_func (); below.
33776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33777 <limits.h> exists even on freestanding compilers. */
33780 # include <limits.h>
33782 # include <assert.h>
33787 /* Override any GCC internal prototype to avoid an error.
33788 Use char because int might match the return type of a GCC
33789 builtin and then its argument prototype would still apply. */
33794 /* The GNU C library defines this for functions which it implements
33795 to always fail with ENOSYS. Some functions are actually named
33796 something starting with __ and the normal name is an alias. */
33797 #if defined __stub_$ac_func || defined __stub___$ac_func
33804 return $ac_func ();
33809 rm -f conftest.$ac_objext conftest$ac_exeext
33810 if { (ac_try="$ac_link"
33811 case "(($ac_try" in
33812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33813 *) ac_try_echo=$ac_try;;
33815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33816 (eval "$ac_link") 2>conftest.er1
33818 grep -v '^ *+' conftest.er1 >conftest.err
33820 cat conftest.err >&5
33821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33822 (exit $ac_status); } &&
33823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33832 (exit $ac_status); }; } &&
33833 { ac_try='test -s conftest$ac_exeext'
33834 { (case "(($ac_try" in
33835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836 *) ac_try_echo=$ac_try;;
33838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33839 (eval "$ac_try") 2>&5
33841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33842 (exit $ac_status); }; }; then
33843 eval "$as_ac_var=yes"
33845 echo "$as_me: failed program was
:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33848 eval "$as_ac_var=no
"
33851 rm -f core conftest.err conftest.$ac_objext \
33852 conftest$ac_exeext conftest.$ac_ext
33854 ac_res=`eval echo '${'$as_ac_var'}'`
33855 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33856 echo "${ECHO_T}$ac_res" >&6; }
33857 if test `eval echo '${'$as_ac_var'}'` = yes; then
33858 cat >>confdefs.h <<_ACEOF
33859 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
33865 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
33866 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
33867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33868 echo $ECHO_N "(cached
) $ECHO_C" >&6
33870 if test "$cross_compiling" = yes; then
33871 ac_cv_func_mmap_fixed_mapped=no
33873 cat >conftest.$ac_ext <<_ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h. */
33879 $ac_includes_default
33880 /* malloc might have been renamed as rpl_malloc. */
33883 /* Thanks to Mike Haertel and Jim Avera for this test.
33884 Here is a matrix of mmap possibilities:
33885 mmap private not fixed
33886 mmap private fixed at somewhere currently unmapped
33887 mmap private fixed at somewhere already mapped
33888 mmap shared not fixed
33889 mmap shared fixed at somewhere currently unmapped
33890 mmap shared fixed at somewhere already mapped
33891 For private mappings, we should verify that changes cannot be read()
33892 back from the file, nor mmap's back from the file at a different
33893 address. (There have been systems where private was not correctly
33894 implemented like the infamous i386 svr4.0, and systems where the
33895 VM page cache was not coherent with the file system buffer cache
33896 like early versions of FreeBSD and possibly contemporary NetBSD.)
33897 For shared mappings, we should conversely verify that changes get
33898 propagated back to all the places they're supposed to be.
33900 Grep wants private fixed already mapped.
33901 The main things grep needs to know about mmap are:
33902 * does it exist and is it safe to write into the mmap'd area
33903 * how to use it (BSD variants) */
33906 #include <sys/mman.h>
33908 #if !STDC_HEADERS && !HAVE_STDLIB_H
33912 /* This mess was copied from the GNU getpagesize.h. */
33913 #if !HAVE_GETPAGESIZE
33914 /* Assume that all systems that can run configure have sys/param.h. */
33915 # if !HAVE_SYS_PARAM_H
33916 # define HAVE_SYS_PARAM_H 1
33919 # ifdef _SC_PAGESIZE
33920 # define getpagesize() sysconf(_SC_PAGESIZE)
33921 # else /* no _SC_PAGESIZE */
33922 # if HAVE_SYS_PARAM_H
33923 # include <sys/param.h>
33924 # ifdef EXEC_PAGESIZE
33925 # define getpagesize() EXEC_PAGESIZE
33926 # else /* no EXEC_PAGESIZE */
33928 # define getpagesize() NBPG * CLSIZE
33931 # endif /* no CLSIZE */
33932 # else /* no NBPG */
33934 # define getpagesize() NBPC
33935 # else /* no NBPC */
33937 # define getpagesize() PAGESIZE
33938 # endif /* PAGESIZE */
33939 # endif /* no NBPC */
33940 # endif /* no NBPG */
33941 # endif /* no EXEC_PAGESIZE */
33942 # else /* no HAVE_SYS_PARAM_H */
33943 # define getpagesize() 8192 /* punt totally */
33944 # endif /* no HAVE_SYS_PARAM_H */
33945 # endif /* no _SC_PAGESIZE */
33947 #endif /* no HAVE_GETPAGESIZE */
33952 char *data, *data2, *data3;
33956 pagesize = getpagesize ();
33958 /* First, make a file with some known garbage in it. */
33959 data = (char *) malloc (pagesize);
33962 for (i = 0; i < pagesize; ++i)
33963 *(data + i) = rand ();
33965 fd = creat ("conftest.mmap
", 0600);
33968 if (write (fd, data, pagesize) != pagesize)
33972 /* Next, try to mmap the file at a fixed address which already has
33973 something else allocated at it. If we can, also make sure that
33974 we see the same garbage. */
33975 fd = open ("conftest.mmap
", O_RDWR);
33978 data2 = (char *) malloc (2 * pagesize);
33981 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33982 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33983 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33985 for (i = 0; i < pagesize; ++i)
33986 if (*(data + i) != *(data2 + i))
33989 /* Finally, make sure that changes to the mapped area do not
33990 percolate back to the file as seen by read(). (This is a bug on
33991 some variants of i386 svr4.0.) */
33992 for (i = 0; i < pagesize; ++i)
33993 *(data2 + i) = *(data2 + i) + 1;
33994 data3 = (char *) malloc (pagesize);
33997 if (read (fd, data3, pagesize) != pagesize)
33999 for (i = 0; i < pagesize; ++i)
34000 if (*(data + i) != *(data3 + i))
34006 rm -f conftest$ac_exeext
34007 if { (ac_try="$ac_link"
34008 case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_link") 2>&5
34015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
34024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34025 (exit $ac_status); }; }; then
34026 ac_cv_func_mmap_fixed_mapped=yes
34028 echo "$as_me: program exited with status
$ac_status" >&5
34029 echo "$as_me: failed program was
:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34032 ( exit $ac_status )
34033 ac_cv_func_mmap_fixed_mapped=no
34035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34040 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
34041 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34044 cat >>confdefs.h <<\_ACEOF
34045 #define HAVE_MMAP 1
34049 rm -f conftest.mmap
34051 { echo "$as_me:$LINENO: checking
for mmap of files
" >&5
34052 echo $ECHO_N "checking
for mmap of files...
$ECHO_C" >&6; }
34053 if test "${ac_cv_func_mmap_file+set}" = set; then
34054 echo $ECHO_N "(cached
) $ECHO_C" >&6
34057 ac_cpp='$CPP $CPPFLAGS'
34058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34062 if test "$cross_compiling" = yes; then
34063 ac_cv_func_mmap_file=no
34065 cat >conftest.$ac_ext <<_ACEOF
34069 cat confdefs.h >>conftest.$ac_ext
34070 cat >>conftest.$ac_ext <<_ACEOF
34071 /* end confdefs.h. */
34073 #include <sys/types.h>
34074 #include <sys/mman.h>
34082 fd = creat ("foo
",0777);
34083 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34085 return (fd != (int) MAP_FAILED);
34090 rm -f conftest$ac_exeext
34091 if { (ac_try="$ac_link"
34092 case "(($ac_try" in
34093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094 *) ac_try_echo=$ac_try;;
34096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34097 (eval "$ac_link") 2>&5
34099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34101 { (case "(($ac_try" in
34102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34103 *) ac_try_echo=$ac_try;;
34105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34106 (eval "$ac_try") 2>&5
34108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34109 (exit $ac_status); }; }; then
34110 ac_cv_func_mmap_file=yes
34112 echo "$as_me: program exited with status
$ac_status" >&5
34113 echo "$as_me: failed program was
:" >&5
34114 sed 's/^/| /' conftest.$ac_ext >&5
34116 ( exit $ac_status )
34117 ac_cv_func_mmap_file=no
34119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34124 ac_cpp='$CPP $CPPFLAGS'
34125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34131 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_file" >&5
34132 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34133 if test "$ac_cv_func_mmap_file" = yes; then
34135 cat >>confdefs.h <<\_ACEOF
34136 #define HAVE_MMAP_FILE
34143 { echo "$as_me:$LINENO: checking
if /dev
/zero is needed
for mmap
" >&5
34144 echo $ECHO_N "checking
if /dev
/zero is needed
for mmap...
$ECHO_C" >&6; }
34145 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34146 echo $ECHO_N "(cached
) $ECHO_C" >&6
34148 if test "$llvm_cv_os_type" = "Interix
" ; then
34149 ac_cv_need_dev_zero_for_mmap=yes
34151 ac_cv_need_dev_zero_for_mmap=no
34155 { echo "$as_me:$LINENO: result
: $ac_cv_need_dev_zero_for_mmap" >&5
34156 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34157 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34159 cat >>confdefs.h <<\_ACEOF
34160 #define NEED_DEV_ZERO_FOR_MMAP 1
34165 if test "$ac_cv_func_mmap_fixed_mapped" = "no
"
34167 { echo "$as_me:$LINENO: WARNING
: mmap
() of a fixed address required but not supported
" >&5
34168 echo "$as_me: WARNING
: mmap
() of a fixed address required but not supported
" >&2;}
34170 if test "$ac_cv_func_mmap_file" = "no
"
34172 { echo "$as_me:$LINENO: WARNING
: mmap
() of files required but not found
" >&5
34173 echo "$as_me: WARNING
: mmap
() of files required but not found
" >&2;}
34179 for ac_func in __dso_handle
34181 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
34182 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
34183 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
34184 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
34185 echo $ECHO_N "(cached
) $ECHO_C" >&6
34187 cat >conftest.$ac_ext <<_ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h. */
34193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34195 #define $ac_func innocuous_$ac_func
34197 /* System header to define __stub macros and hopefully few prototypes,
34198 which can conflict with char $ac_func (); below.
34199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34200 <limits.h> exists even on freestanding compilers. */
34203 # include <limits.h>
34205 # include <assert.h>
34210 /* Override any GCC internal prototype to avoid an error.
34211 Use char because int might match the return type of a GCC
34212 builtin and then its argument prototype would still apply. */
34217 /* The GNU C library defines this for functions which it implements
34218 to always fail with ENOSYS. Some functions are actually named
34219 something starting with __ and the normal name is an alias. */
34220 #if defined __stub_$ac_func || defined __stub___$ac_func
34227 return $ac_func ();
34232 rm -f conftest.$ac_objext conftest$ac_exeext
34233 if { (ac_try="$ac_link"
34234 case "(($ac_try" in
34235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236 *) ac_try_echo=$ac_try;;
34238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34239 (eval "$ac_link") 2>conftest.er1
34241 grep -v '^ *+' conftest.er1 >conftest.err
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34245 (exit $ac_status); } &&
34246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34247 { (case "(($ac_try" in
34248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34249 *) ac_try_echo=$ac_try;;
34251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34252 (eval "$ac_try") 2>&5
34254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34255 (exit $ac_status); }; } &&
34256 { ac_try='test -s conftest$ac_exeext'
34257 { (case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_try") 2>&5
34264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34265 (exit $ac_status); }; }; then
34266 eval "$as_ac_var=yes"
34268 echo "$as_me: failed program was
:" >&5
34269 sed 's/^/| /' conftest.$ac_ext >&5
34271 eval "$as_ac_var=no
"
34274 rm -f core conftest.err conftest.$ac_objext \
34275 conftest$ac_exeext conftest.$ac_ext
34277 ac_res=`eval echo '${'$as_ac_var'}'`
34278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
34279 echo "${ECHO_T}$ac_res" >&6; }
34280 if test `eval echo '${'$as_ac_var'}'` = yes; then
34281 cat >>confdefs.h <<_ACEOF
34282 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
34289 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane
" >&5
34290 echo $ECHO_N "checking whether llvm-gcc is sane...
$ECHO_C" >&6; }
34291 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34292 echo $ECHO_N "(cached
) $ECHO_C" >&6
34294 llvm_cv_llvmgcc_sanity="no
"
34295 if test -x "$LLVMGCC" ; then
34296 cp /dev/null conftest.c
34297 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34298 grep 'target datalayout =' > /dev/null 2>&1
34299 if test $? -eq 0 ; then
34300 llvm_cv_llvmgcc_sanity="yes"
34305 { echo "$as_me:$LINENO: result
: $llvm_cv_llvmgcc_sanity" >&5
34306 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34308 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34309 { echo "$as_me:$LINENO: checking llvm-gcc component support
" >&5
34310 echo $ECHO_N "checking llvm-gcc component support...
$ECHO_C" >&6; }
34311 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34312 LLVMCC1=$llvmcc1path
34314 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34315 LLVMCC1PLUS=$llvmcc1pluspath
34317 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34318 LLVMGCCDIR=$llvmgccdir
34320 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34321 LLVMGCCLIBEXEC=$llvmgcclibexec
34323 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34324 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34325 LLVMGCC_VERSION=$llvmgccversion
34327 LLVMGCC_MAJVERS=$llvmgccmajvers
34329 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34330 LLVMGCC_LANGS=$llvmgcclangs
34332 { echo "$as_me:$LINENO: result
: ok
" >&5
34333 echo "${ECHO_T}ok
" >&6; }
34336 SHLIBEXT=$libltdl_cv_shlibext
34339 # Translate the various configuration directories and other basic
34340 # information into substitutions that will end up in Makefile.config.in
34341 # that these configured values can be used by the makefiles
34342 if test "${prefix}" = "NONE
" ; then
34343 prefix="/usr
/local"
34345 eval LLVM_PREFIX="${prefix}";
34346 eval LLVM_BINDIR="${prefix}/bin
";
34347 eval LLVM_LIBDIR="${prefix}/lib
";
34348 eval LLVM_DATADIR="${prefix}/share
/llvm
";
34349 eval LLVM_DOCSDIR="${prefix}/docs
/llvm
";
34350 eval LLVM_ETCDIR="${prefix}/etc
/llvm
";
34351 eval LLVM_INCLUDEDIR="${prefix}/include
";
34352 eval LLVM_INFODIR="${prefix}/info
";
34353 eval LLVM_MANDIR="${prefix}/man
";
34354 LLVM_CONFIGTIME=`date`
34366 # Place the various directores into the config.h file as #defines so that we
34367 # can know about the installation paths within LLVM.
34369 cat >>confdefs.h <<_ACEOF
34370 #define LLVM_PREFIX "$LLVM_PREFIX"
34374 cat >>confdefs.h <<_ACEOF
34375 #define LLVM_BINDIR "$LLVM_BINDIR"
34379 cat >>confdefs.h <<_ACEOF
34380 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34384 cat >>confdefs.h <<_ACEOF
34385 #define LLVM_DATADIR "$LLVM_DATADIR"
34389 cat >>confdefs.h <<_ACEOF
34390 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34394 cat >>confdefs.h <<_ACEOF
34395 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34399 cat >>confdefs.h <<_ACEOF
34400 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34404 cat >>confdefs.h <<_ACEOF
34405 #define LLVM_INFODIR "$LLVM_INFODIR"
34409 cat >>confdefs.h <<_ACEOF
34410 #define LLVM_MANDIR "$LLVM_MANDIR"
34414 cat >>confdefs.h <<_ACEOF
34415 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34419 cat >>confdefs.h <<_ACEOF
34420 #define LLVM_HOSTTRIPLE "$host"
34424 # Determine which bindings to build.
34425 if test "$BINDINGS_TO_BUILD" = auto ; then
34426 BINDINGS_TO_BUILD=""
34427 if test "x
$OCAMLC" != x -a "x
$OCAMLDEP" != x ; then
34428 BINDINGS_TO_BUILD="ocaml
$BINDINGS_TO_BUILD"
34431 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34434 # This isn't really configurey, but it avoids having to repeat the list in
34439 # Do any work necessary to ensure that bindings have what they need.
34440 binding_prereqs_failed=0
34441 for a_binding in $BINDINGS_TO_BUILD ; do
34442 case "$a_binding" in
34444 if test "x
$OCAMLC" = x ; then
34445 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&5
34446 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&2;}
34447 binding_prereqs_failed=1
34449 if test "x
$OCAMLDEP" = x ; then
34450 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&5
34451 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&2;}
34452 binding_prereqs_failed=1
34454 if test "x
$OCAMLOPT" = x ; then
34455 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&5
34456 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&2;}
34458 if test "x
$with_ocaml_libdir" != xauto ; then
34459 OCAML_LIBDIR=$with_ocaml_libdir
34462 ocaml_stdlib="`"$OCAMLC" -where`"
34463 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~
"
34465 # ocaml stdlib is beneath our prefix; use stdlib
34466 OCAML_LIBDIR=$ocaml_stdlib
34469 # ocaml stdlib is outside our prefix; use libdir/ocaml
34470 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34477 if test "$binding_prereqs_failed" = 1 ; then
34478 { { echo "$as_me:$LINENO: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&5
34479 echo "$as_me: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&2;}
34480 { (exit 1); exit 1; }; }
34483 { echo "$as_me:$LINENO: checking
for compiler
-fvisibility-inlines-hidden option
" >&5
34484 echo $ECHO_N "checking
for compiler
-fvisibility-inlines-hidden option...
$ECHO_C" >&6; }
34485 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34486 echo $ECHO_N "(cached
) $ECHO_C" >&6
34489 ac_cpp='$CXXCPP $CPPFLAGS'
34490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34494 oldcxxflags="$CXXFLAGS"
34495 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34496 cat >conftest.$ac_ext <<_ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h. */
34511 rm -f conftest.$ac_objext
34512 if { (ac_try="$ac_compile"
34513 case "(($ac_try" in
34514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34515 *) ac_try_echo=$ac_try;;
34517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34518 (eval "$ac_compile") 2>conftest.er1
34520 grep -v '^ *+' conftest.er1 >conftest.err
34522 cat conftest.err >&5
34523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34524 (exit $ac_status); } &&
34525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34526 { (case "(($ac_try" in
34527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528 *) ac_try_echo=$ac_try;;
34530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34531 (eval "$ac_try") 2>&5
34533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34534 (exit $ac_status); }; } &&
34535 { ac_try='test -s conftest.$ac_objext'
34536 { (case "(($ac_try" in
34537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34538 *) ac_try_echo=$ac_try;;
34540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34541 (eval "$ac_try") 2>&5
34543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34544 (exit $ac_status); }; }; then
34545 llvm_cv_cxx_visibility_inlines_hidden=yes
34547 echo "$as_me: failed program was
:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34550 llvm_cv_cxx_visibility_inlines_hidden=no
34553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34554 CXXFLAGS="$oldcxxflags"
34556 ac_cpp='$CPP $CPPFLAGS'
34557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34563 { echo "$as_me:$LINENO: result
: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34564 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34565 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34566 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34569 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34575 ac_config_headers="$ac_config_headers include
/llvm
/Config
/config.h
"
34577 ac_config_headers="$ac_config_headers include
/llvm
/Support
/DataTypes.h
"
34579 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_map.h
"
34581 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_set.h
"
34583 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/iterator.h
"
34586 ac_config_files="$ac_config_files Makefile.config
"
34589 ac_config_files="$ac_config_files llvm.spec
"
34592 ac_config_files="$ac_config_files docs
/doxygen.cfg
"
34595 ac_config_files="$ac_config_files tools
/llvm-config
/llvm-config.
in"
34598 ac_config_commands="$ac_config_commands setup
"
34600 ac_config_commands="$ac_config_commands Makefile
"
34603 ac_config_commands="$ac_config_commands Makefile.common
"
34606 ac_config_commands="$ac_config_commands examples
/Makefile
"
34609 ac_config_commands="$ac_config_commands lib
/Makefile
"
34612 ac_config_commands="$ac_config_commands runtime
/Makefile
"
34615 ac_config_commands="$ac_config_commands test
/Makefile
"
34618 ac_config_commands="$ac_config_commands test
/Makefile.tests
"
34621 ac_config_commands="$ac_config_commands unittests
/Makefile
"
34624 ac_config_commands="$ac_config_commands tools
/Makefile
"
34627 ac_config_commands="$ac_config_commands utils
/Makefile
"
34630 ac_config_commands="$ac_config_commands projects
/Makefile
"
34633 ac_config_commands="$ac_config_commands bindings
/Makefile
"
34636 ac_config_commands="$ac_config_commands bindings
/ocaml
/Makefile.ocaml
"
34640 cat >confcache <<\_ACEOF
34641 # This file is a shell script that caches the results of configure
34642 # tests run on this system so they can be shared between configure
34643 # scripts and configure runs, see configure's option --config-cache.
34644 # It is not useful on other systems. If it contains results you don't
34645 # want to keep, you may remove or edit it.
34647 # config.status only pays attention to the cache file if you give it
34648 # the --recheck option to rerun configure.
34650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34652 # following values.
34656 # The following way of writing the cache mishandles newlines in values,
34657 # but we know of no workaround that is simple, portable, and efficient.
34658 # So, we kill variables containing newlines.
34659 # Ultrix sh set writes to stderr and can't be redirected directly,
34660 # and sets the high bit in the cache file unless we assign to the vars.
34662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34663 eval ac_val=\$$ac_var
34667 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
34668 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
34671 _ | IFS | as_nl) ;; #(
34672 *) $as_unset $ac_var ;;
34678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34679 *${as_nl}ac_space=\ *)
34680 # `set' does not quote correctly, so add quotes (double-quote
34681 # substitution turns \\\\ into \\, and sed turns \\ into \).
34684 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
34687 # `set' quotes correctly as required by POSIX, so do not add quotes.
34688 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
34697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34702 if test -w "$cache_file"; then
34703 test "x
$cache_file" != "x
/dev
/null
" &&
34704 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
34705 echo "$as_me: updating cache
$cache_file" >&6;}
34706 cat confcache >$cache_file
34708 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
34709 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
34714 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
34715 # Let make expand exec_prefix.
34716 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
34718 DEFS=-DHAVE_CONFIG_H
34722 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
34723 # 1. Remove the extension, and $U if already installed.
34724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34725 ac_i=`echo "$ac_i" | sed "$ac_script"`
34726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34727 # will be set to the directory where LIBOBJS objects are built.
34728 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
34729 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
34731 LIBOBJS=$ac_libobjs
34733 LTLIBOBJS=$ac_ltlibobjs
34736 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34737 { { echo "$as_me:$LINENO: error
: conditional
\"INSTALL_LTDL
\" was never defined.
34738 Usually this means the macro was only invoked conditionally.
" >&5
34739 echo "$as_me: error
: conditional
\"INSTALL_LTDL
\" was never defined.
34740 Usually this means the macro was only invoked conditionally.
" >&2;}
34741 { (exit 1); exit 1; }; }
34743 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34744 { { echo "$as_me:$LINENO: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
34745 Usually this means the macro was only invoked conditionally.
" >&5
34746 echo "$as_me: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
34747 Usually this means the macro was only invoked conditionally.
" >&2;}
34748 { (exit 1); exit 1; }; }
34751 : ${CONFIG_STATUS=./config.status}
34752 ac_clean_files_save=$ac_clean_files
34753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34754 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
34755 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
34756 cat >$CONFIG_STATUS <<_ACEOF
34758 # Generated by $as_me.
34759 # Run this file to recreate the current configuration.
34760 # Compiler output produced by configure, useful for debugging
34761 # configure, is in config.log if it exists.
34764 ac_cs_recheck=false
34766 SHELL=\${CONFIG_SHELL-$SHELL}
34769 cat >>$CONFIG_STATUS <<\_ACEOF
34770 ## --------------------- ##
34771 ## M4sh Initialization. ##
34772 ## --------------------- ##
34774 # Be Bourne compatible
34775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34779 # is contrary to our usage. Disable this feature.
34780 alias -g '${1+"$@"}'='"$@
"'
34781 setopt NO_GLOB_SUBST
34783 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34785 BIN_SH=xpg4; export BIN_SH # for Tru64
34786 DUALCASE=1; export DUALCASE # for MKS sh
34790 # Avoid depending upon Character Ranges.
34791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34794 as_cr_digits='0123456789'
34795 as_cr_alnum=$as_cr_Letters$as_cr_digits
34797 # The user is always right.
34798 if test "${PATH_SEPARATOR+set}" != set; then
34799 echo "#! /bin/sh" >conf$$.sh
34800 echo "exit 0" >>conf$$.sh
34802 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34810 # Support unset when possible.
34811 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34819 # We need space, tab and new line, in precisely that order. Quoting is
34820 # there to prevent editors from complaining about space-tab.
34821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34822 # splitting by setting IFS to empty value.)
34827 # Find who we are. Look in the path if we contain no directory separator.
34829 *[\\/]* ) as_myself
=$0 ;;
34830 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34831 for as_dir
in $PATH
34834 test -z "$as_dir" && as_dir
=.
34835 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34841 # We did not find ourselves, most probably we were run as `sh COMMAND'
34842 # in which case we are not to be found in the path.
34843 if test "x$as_myself" = x
; then
34846 if test ! -f "$as_myself"; then
34847 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34848 { (exit 1); exit 1; }
34851 # Work around bugs in pre-3.0 UWIN ksh.
34852 for as_var
in ENV MAIL MAILPATH
34853 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34863 LC_TELEPHONE LC_TIME
34865 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34866 eval $as_var=C
; export $as_var
34868 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34872 # Required to use basename.
34873 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34874 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34880 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34881 as_basename
=basename
34887 # Name of the executable.
34888 as_me
=`$as_basename -- "$0" ||
34889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34890 X"$0" : 'X\(//\)$' \| \
34891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34893 sed '/^.*\/\([^/][^/]*\)\/*$/{
34912 as_lineno_1
=$LINENO
34913 as_lineno_2
=$LINENO
34914 test "x$as_lineno_1" != "x$as_lineno_2" &&
34915 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34917 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34918 # uniformly replaced by the line number. The first 'sed' inserts a
34919 # line-number line after each line using $LINENO; the second 'sed'
34920 # does the real work. The second script uses 'N' to pair each
34921 # line-number line with the line containing $LINENO, and appends
34922 # trailing '-' during substitution so that $LINENO is not a special
34923 # case at line end.
34924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34925 # scripts with optimization help from Paolo Bonzini. Blame Lee
34926 # E. McMahon (1931-1989) for sed's syntax. :-)
34938 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34941 ' >$as_me.lineno
&&
34942 chmod +x
"$as_me.lineno" ||
34943 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34944 { (exit 1); exit 1; }; }
34946 # Don't try to exec as it changes $[0], causing all sort of problems
34947 # (the dirname of $[0] is not the place where we might find the
34948 # original and so on. Autoconf is especially sensitive to this).
34949 .
"./$as_me.lineno"
34950 # Exit status is that of the last command.
34955 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34961 ECHO_C
= ECHO_N
= ECHO_T
=
34962 case `echo -n x` in
34964 case `echo 'x\c'` in
34965 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34972 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34973 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34979 rm -f conf$$ conf$$.exe conf$$.
file
34980 if test -d conf$$.dir
; then
34981 rm -f conf$$.dir
/conf$$.
file
34987 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34989 # ... but there are two gotchas:
34990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34992 # In both cases, we have to default to `cp -p'.
34993 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34995 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35000 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35001 rmdir conf$$.dir
2>/dev
/null
35003 if mkdir
-p .
2>/dev
/null
; then
35006 test -d .
/-p && rmdir .
/-p
35010 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35011 # systems may use methods other than mode bits to determine executability.
35012 cat >conf$$.
file <<_ASEOF
35016 chmod +x conf$$.
file
35017 if test -x conf$$.
file >/dev
/null
2>&1; then
35018 as_executable_p
="test -x"
35024 # Sed expression to map a string onto a valid CPP name.
35025 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35027 # Sed expression to map a string onto a valid variable name.
35028 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35033 # Save the log message, to keep $[0] and so on meaningful, and to
35034 # report actual input values of CONFIG_FILES etc. instead of their
35035 # values after options handling.
35037 This file was extended by llvm $as_me 2.6svn, which was
35038 generated by GNU Autoconf 2.60. Invocation command line was
35040 CONFIG_FILES = $CONFIG_FILES
35041 CONFIG_HEADERS = $CONFIG_HEADERS
35042 CONFIG_LINKS = $CONFIG_LINKS
35043 CONFIG_COMMANDS = $CONFIG_COMMANDS
35046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35051 cat >>$CONFIG_STATUS <<_ACEOF
35052 # Files that config.status was made for.
35053 config_files="$ac_config_files"
35054 config_headers="$ac_config_headers"
35055 config_commands="$ac_config_commands"
35059 cat >>$CONFIG_STATUS <<\_ACEOF
35061 \`$as_me' instantiates files from templates according to the
35062 current configuration.
35064 Usage: $0 [OPTIONS] [FILE]...
35066 -h, --help print this help, then exit
35067 -V, --version print version number, then exit
35068 -q, --quiet do not print progress messages
35069 -d, --debug don't remove temporary files
35070 --recheck update $as_me by reconfiguring in the same conditions
35071 --file=FILE[:TEMPLATE]
35072 instantiate the configuration file FILE
35073 --header=FILE[:TEMPLATE]
35074 instantiate the configuration header FILE
35076 Configuration files:
35079 Configuration headers:
35082 Configuration commands:
35085 Report bugs to <bug-autoconf@gnu.org>."
35088 cat >>$CONFIG_STATUS <<_ACEOF
35090 llvm config.status 2.6svn
35091 configured by $0, generated by GNU Autoconf 2.60,
35092 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35094 Copyright (C) 2006 Free Software Foundation, Inc.
35095 This config.status script is free software; the Free Software Foundation
35096 gives unlimited permission to copy, distribute and modify it."
35103 cat >>$CONFIG_STATUS <<\_ACEOF
35104 # If no file are specified by the user, then we need to provide default
35105 # value. By we need to know if files were specified by the user.
35111 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35112 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35123 # Handling of the options.
35124 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35126 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35127 echo "$ac_cs_version"; exit ;;
35128 --debug |
--debu |
--deb |
--de |
--d |
-d )
35130 --file |
--fil |
--fi |
--f )
35132 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35133 ac_need_defaults
=false
;;
35134 --header |
--heade |
--head |
--hea )
35136 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35137 ac_need_defaults
=false
;;
35139 # Conflict between --help and --header
35140 { echo "$as_me: error: ambiguous option: $1
35141 Try \`$0 --help' for more information." >&2
35142 { (exit 1); exit 1; }; };;
35143 --help |
--hel |
-h )
35144 echo "$ac_cs_usage"; exit ;;
35145 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35146 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35149 # This is an error.
35150 -*) { echo "$as_me: error: unrecognized option: $1
35151 Try \`$0 --help' for more information." >&2
35152 { (exit 1); exit 1; }; } ;;
35154 *) ac_config_targets
="$ac_config_targets $1"
35155 ac_need_defaults
=false
;;
35161 ac_configure_extra_args
=
35163 if $ac_cs_silent; then
35165 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35169 cat >>$CONFIG_STATUS <<_ACEOF
35170 if \$ac_cs_recheck; then
35171 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35172 CONFIG_SHELL=$SHELL
35173 export CONFIG_SHELL
35174 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35178 cat >>$CONFIG_STATUS <<\_ACEOF
35182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35183 ## Running $as_me. ##
35189 cat >>$CONFIG_STATUS <<_ACEOF
35193 llvm_src="${srcdir}"
35197 cat >>$CONFIG_STATUS <<\_ACEOF
35199 # Handling of arguments.
35200 for ac_config_target
in $ac_config_targets
35202 case $ac_config_target in
35203 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35204 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35205 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35206 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35207 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35208 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35209 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35210 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35211 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35212 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35213 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35214 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35215 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35216 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35217 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35218 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35219 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35220 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35221 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35222 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35223 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35224 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35225 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35229 { (exit 1); exit 1; }; };;
35234 # If the user did not use the arguments to specify the items to instantiate,
35235 # then the envvar interface is used. Set only those that are not.
35236 # We use the long form for the default assignment because of an extremely
35237 # bizarre bug on SunOS 4.1.3.
35238 if $ac_need_defaults; then
35239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35244 # Have a temporary directory for convenience. Make it in the build tree
35245 # simply because there is no reason against having it here, and in addition,
35246 # creating and moving files from /tmp can sometimes cause problems.
35247 # Hook for its removal unless debugging.
35248 # Note that there is a small window in which the directory will not be cleaned:
35249 # after its creation but before its name has been assigned to `$tmp'.
35253 trap 'exit_status=$?
35254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35256 trap '{ (exit 1); exit 1; }' 1 2 13 15
35258 # Create a (secure) tmp directory for tmp files.
35261 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35262 test -n "$tmp" && test -d "$tmp"
35265 tmp
=.
/conf$$
-$RANDOM
35266 (umask 077 && mkdir
"$tmp")
35269 echo "$me: cannot create a temporary directory in ." >&2
35270 { (exit 1); exit 1; }
35274 # Set up the sed scripts for CONFIG_FILES section.
35277 # No need to generate the scripts if there are no CONFIG_FILES.
35278 # This happens for instance when ./config.status config.h
35279 if test -n "$CONFIG_FILES"; then
35286 for ac_last_try
in false false false false false
:; do
35287 cat >conf$
$subs.
sed <<_ACEOF
35288 SHELL!$SHELL$ac_delim
35289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35295 exec_prefix!$exec_prefix$ac_delim
35296 prefix!$prefix$ac_delim
35297 program_transform_name!$program_transform_name$ac_delim
35298 bindir!$bindir$ac_delim
35299 sbindir!$sbindir$ac_delim
35300 libexecdir!$libexecdir$ac_delim
35301 datarootdir!$datarootdir$ac_delim
35302 datadir!$datadir$ac_delim
35303 sysconfdir!$sysconfdir$ac_delim
35304 sharedstatedir!$sharedstatedir$ac_delim
35305 localstatedir!$localstatedir$ac_delim
35306 includedir!$includedir$ac_delim
35307 oldincludedir!$oldincludedir$ac_delim
35308 docdir!$docdir$ac_delim
35309 infodir!$infodir$ac_delim
35310 htmldir!$htmldir$ac_delim
35311 dvidir!$dvidir$ac_delim
35312 pdfdir!$pdfdir$ac_delim
35313 psdir!$psdir$ac_delim
35314 libdir!$libdir$ac_delim
35315 localedir!$localedir$ac_delim
35316 mandir!$mandir$ac_delim
35317 DEFS!$DEFS$ac_delim
35318 ECHO_C!$ECHO_C$ac_delim
35319 ECHO_N!$ECHO_N$ac_delim
35320 ECHO_T!$ECHO_T$ac_delim
35321 LIBS!$LIBS$ac_delim
35322 build_alias!$build_alias$ac_delim
35323 host_alias!$host_alias$ac_delim
35324 target_alias!$target_alias$ac_delim
35325 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35326 subdirs!$subdirs$ac_delim
35327 build!$build$ac_delim
35328 build_cpu!$build_cpu$ac_delim
35329 build_vendor!$build_vendor$ac_delim
35330 build_os!$build_os$ac_delim
35331 host!$host$ac_delim
35332 host_cpu!$host_cpu$ac_delim
35333 host_vendor!$host_vendor$ac_delim
35334 host_os!$host_os$ac_delim
35335 target!$target$ac_delim
35336 target_cpu!$target_cpu$ac_delim
35337 target_vendor!$target_vendor$ac_delim
35338 target_os!$target_os$ac_delim
35340 LINKALL!$LINKALL$ac_delim
35341 NOLINKALL!$NOLINKALL$ac_delim
35342 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35343 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35344 ARCH!$ARCH$ac_delim
35345 ENDIAN!$ENDIAN$ac_delim
35347 CFLAGS!$CFLAGS$ac_delim
35348 LDFLAGS!$LDFLAGS$ac_delim
35349 CPPFLAGS!$CPPFLAGS$ac_delim
35350 ac_ct_CC!$ac_ct_CC$ac_delim
35351 EXEEXT!$EXEEXT$ac_delim
35352 OBJEXT!$OBJEXT$ac_delim
35354 GREP!$GREP$ac_delim
35355 EGREP!$EGREP$ac_delim
35356 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35357 BUILD_CC!$BUILD_CC$ac_delim
35358 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35359 BUILD_CXX!$BUILD_CXX$ac_delim
35360 CVSBUILD!$CVSBUILD$ac_delim
35361 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35362 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35363 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35364 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35365 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35367 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35368 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35369 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35370 ENABLE_PIC!$ENABLE_PIC$ac_delim
35371 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35372 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35373 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35374 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35376 CXXFLAGS!$CXXFLAGS$ac_delim
35377 ac_ct_CXX!$ac_ct_CXX$ac_delim
35379 LEXLIB!$LEXLIB$ac_delim
35380 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35381 FLEX!$FLEX$ac_delim
35382 YACC!$YACC$ac_delim
35383 YFLAGS!$YFLAGS$ac_delim
35384 BISON!$BISON$ac_delim
35387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35389 elif $ac_last_try; then
35390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35392 { (exit 1); exit 1; }; }
35394 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35398 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35399 if test -n "$ac_eof"; then
35400 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35401 ac_eof
=`expr $ac_eof + 1`
35404 cat >>$CONFIG_STATUS <<_ACEOF
35405 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35410 s/^/s,@/; s/!/@,|#_!!_#|/
35413 s/'"$ac_delim"'$/,g/; t
35415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35416 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35417 rm -f conf$
$subs.
sed
35418 cat >>$CONFIG_STATUS <<_ACEOF
35424 for ac_last_try
in false false false false false
:; do
35425 cat >conf$
$subs.
sed <<_ACEOF
35427 ifGNUmake!$ifGNUmake$ac_delim
35428 LN_S!$LN_S$ac_delim
35431 DATE!$DATE$ac_delim
35432 FIND!$FIND$ac_delim
35433 MKDIR!$MKDIR$ac_delim
35435 RANLIB!$RANLIB$ac_delim
35439 BINPWD!$BINPWD$ac_delim
35440 GRAPHVIZ!$GRAPHVIZ$ac_delim
35443 DOTTY!$DOTTY$ac_delim
35444 PERL!$PERL$ac_delim
35445 HAVE_PERL!$HAVE_PERL$ac_delim
35446 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35447 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35448 INSTALL_DATA!$INSTALL_DATA$ac_delim
35449 BZIP2!$BZIP2$ac_delim
35450 DOXYGEN!$DOXYGEN$ac_delim
35451 GROFF!$GROFF$ac_delim
35452 GZIP!$GZIP$ac_delim
35453 POD2HTML!$POD2HTML$ac_delim
35454 POD2MAN!$POD2MAN$ac_delim
35455 RUNTEST!$RUNTEST$ac_delim
35456 TCLSH!$TCLSH$ac_delim
35458 OCAMLC!$OCAMLC$ac_delim
35459 OCAMLOPT!$OCAMLOPT$ac_delim
35460 OCAMLDEP!$OCAMLDEP$ac_delim
35461 OCAMLDOC!$OCAMLDOC$ac_delim
35463 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35464 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35465 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35466 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35467 LIBADD_DL!$LIBADD_DL$ac_delim
35468 ECHO!$ECHO$ac_delim
35470 STRIP!$STRIP$ac_delim
35471 CXXCPP!$CXXCPP$ac_delim
35473 FFLAGS!$FFLAGS$ac_delim
35474 ac_ct_F77!$ac_ct_F77$ac_delim
35475 LIBTOOL!$LIBTOOL$ac_delim
35476 LLVMGCC!$LLVMGCC$ac_delim
35477 LLVMGXX!$LLVMGXX$ac_delim
35478 USE_UDIS86!$USE_UDIS86$ac_delim
35479 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35480 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35481 ALLOCA!$ALLOCA$ac_delim
35482 MMAP_FILE!$MMAP_FILE$ac_delim
35483 LLVMCC1!$LLVMCC1$ac_delim
35484 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35485 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35486 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35487 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35488 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35489 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35490 SHLIBEXT!$SHLIBEXT$ac_delim
35491 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35492 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35493 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35494 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35495 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35496 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35497 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35498 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35499 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35500 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35501 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35502 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35503 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35504 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35505 LIBOBJS!$LIBOBJS$ac_delim
35506 LTLIBOBJS!$LTLIBOBJS$ac_delim
35509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
35511 elif $ac_last_try; then
35512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35514 { (exit 1); exit 1; }; }
35516 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35520 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35521 if test -n "$ac_eof"; then
35522 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35523 ac_eof
=`expr $ac_eof + 1`
35526 cat >>$CONFIG_STATUS <<_ACEOF
35527 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35532 s/^/s,@/; s/!/@,|#_!!_#|/
35535 s/'"$ac_delim"'$/,g/; t
35537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35538 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35539 rm -f conf$
$subs.
sed
35540 cat >>$CONFIG_STATUS <<_ACEOF
35547 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35548 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35549 # trailing colons and then remove the whole line if VPATH becomes empty
35550 # (actually we leave an empty line to preserve line numbers).
35551 if test "x$srcdir" = x.
; then
35552 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35553 s/:*\$(srcdir):*/:/
35554 s/:*\${srcdir}:*/:/
35556 s/^\([^=]*=[ ]*\):*/\1/
35562 cat >>$CONFIG_STATUS <<\_ACEOF
35563 fi # test -n "$CONFIG_FILES"
35566 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
35569 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35571 case $ac_mode$ac_tag in
35573 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35574 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35575 { (exit 1); exit 1; }; };;
35576 :[FH
]-) ac_tag
=-:-;;
35577 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35594 -) ac_f
="$tmp/stdin";;
35595 *) # Look for the file first in the build tree, then in the source tree
35596 # (if the path is not absolute). The absolute path cannot be DOS-style,
35597 # because $ac_f cannot contain `:'.
35601 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35603 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35604 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35605 { (exit 1); exit 1; }; };;
35607 ac_file_inputs
="$ac_file_inputs $ac_f"
35610 # Let's still pretend it is `configure' which instantiates (i.e., don't
35611 # use $as_me), people would be surprised to read:
35612 # /* config.h. Generated by config.status. */
35613 configure_input
="Generated from "`IFS=:
35614 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35615 if test x
"$ac_file" != x-
; then
35616 configure_input
="$ac_file. $configure_input"
35617 { echo "$as_me:$LINENO: creating $ac_file" >&5
35618 echo "$as_me: creating $ac_file" >&6;}
35622 *:-:* |
*:-) cat >"$tmp/stdin";;
35627 ac_dir
=`$as_dirname -- "$ac_file" ||
35628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35629 X"$ac_file" : 'X\(//\)[^/]' \| \
35630 X"$ac_file" : 'X\(//\)$' \| \
35631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35637 /^X\(\/\/\)[^/].*/{
35652 -*) as_dir
=.
/$as_dir;;
35654 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35658 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35659 *) as_qdir
=$as_dir;;
35661 as_dirs
="'$as_qdir' $as_dirs"
35662 as_dir
=`$as_dirname -- "$as_dir" ||
35663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35664 X"$as_dir" : 'X\(//\)[^/]' \| \
35665 X"$as_dir" : 'X\(//\)$' \| \
35666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35672 /^X\(\/\/\)[^/].*/{
35685 test -d "$as_dir" && break
35687 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35688 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35690 { (exit 1); exit 1; }; }; }
35694 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35696 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35697 # A ".." for each directory in $ac_dir_suffix.
35698 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35699 case $ac_top_builddir_sub in
35700 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35701 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35704 ac_abs_top_builddir
=$ac_pwd
35705 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35706 # for backward compatibility:
35707 ac_top_builddir
=$ac_top_build_prefix
35710 .
) # We are building in place.
35712 ac_top_srcdir
=$ac_top_builddir_sub
35713 ac_abs_top_srcdir
=$ac_pwd ;;
35714 [\\/]* | ?
:[\\/]* ) # Absolute name.
35715 ac_srcdir
=$srcdir$ac_dir_suffix;
35716 ac_top_srcdir
=$srcdir
35717 ac_abs_top_srcdir
=$srcdir ;;
35718 *) # Relative name.
35719 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35720 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35721 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35723 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35733 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35734 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35738 cat >>$CONFIG_STATUS <<\_ACEOF
35739 # If the template does not know about datarootdir, expand it.
35740 # FIXME: This hack should be removed a few years after 2.60.
35741 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35743 case `sed -n '/datarootdir/ {
35752 ' $ac_file_inputs` in
35753 *datarootdir
*) ac_datarootdir_seen
=yes;;
35754 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35755 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35756 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35758 cat >>$CONFIG_STATUS <<_ACEOF
35759 ac_datarootdir_hack='
35760 s&@datadir@&$datadir&g
35761 s&@docdir@&$docdir&g
35762 s&@infodir@&$infodir&g
35763 s&@localedir@&$localedir&g
35764 s&@mandir@&$mandir&g
35765 s&\\\${datarootdir}&$datarootdir&g' ;;
35769 # Neutralize VPATH when `$srcdir' = `.'.
35770 # Shell code in configure.ac might set extrasub.
35771 # FIXME: do we really want to maintain this feature?
35772 cat >>$CONFIG_STATUS <<_ACEOF
35776 cat >>$CONFIG_STATUS <<\_ACEOF
35778 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35779 s
&@configure_input@
&$configure_input&;t t
35780 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35781 s
&@srcdir@
&$ac_srcdir&;t t
35782 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35783 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35784 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35785 s
&@builddir@
&$ac_builddir&;t t
35786 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35787 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35788 s
&@INSTALL@
&$ac_INSTALL&;t t
35789 $ac_datarootdir_hack
35790 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
35792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35793 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35795 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35796 which seems to be undefined. Please make sure it is defined." >&5
35797 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35798 which seems to be undefined. Please make sure it is defined." >&2;}
35802 -) cat "$tmp/out"; rm -f "$tmp/out";;
35803 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35812 # Transform confdefs.h into a sed script `conftest.defines', that
35813 # substitutes the proper values into config.h.in to produce config.h.
35814 rm -f conftest.defines conftest.
tail
35815 # First, append a space to every undef/define line, to ease matching.
35816 echo 's/$/ /' >conftest.defines
35817 # Then, protect against being on the right side of a sed subst, or in
35818 # an unquoted here document, in config.status. If some macros were
35819 # called several times there might be several #defines for the same
35820 # symbol, which is useless. But do not sort them, since the last
35821 # AC_DEFINE must be honored.
35822 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35823 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35824 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35825 # PARAMS is the parameter list in the macro definition--in most cases, it's
35826 # just an empty string.
35827 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35828 ac_dB
='\\)[ (].*,\\1define\\2'
35836 s/^[ ]*#[ ]*define[ ][ ]*//
35841 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35842 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35843 ' >>conftest.defines
35845 # Remove the space that was appended to ease matching.
35846 # Then replace #undef with comments. This is necessary, for
35847 # example, in the case of _POSIX_SOURCE, which is predefined and required
35848 # on some systems where configure will not decide to define it.
35849 # (The regexp can be short, since the line contains either #define or #undef.)
35851 s,^[ #]*u.*,/* & */,' >>conftest.defines
35853 # Break up conftest.defines:
35854 ac_max_sed_lines
=50
35856 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35857 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35858 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35860 ac_in
='$ac_file_inputs'
35861 ac_out
='"$tmp/out1"'
35862 ac_nxt
='"$tmp/out2"'
35866 # Write a here document:
35867 cat >>$CONFIG_STATUS <<_ACEOF
35868 # First, check the format of the line:
35869 cat >"\$tmp/defines.sed" <<\\CEOF
35870 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35871 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35875 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35877 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35878 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35879 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35880 grep . conftest.
tail >/dev
/null ||
break
35881 rm -f conftest.defines
35882 mv conftest.
tail conftest.defines
35884 rm -f conftest.defines conftest.
tail
35886 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35887 cat >>$CONFIG_STATUS <<\_ACEOF
35888 if test x
"$ac_file" != x-
; then
35889 echo "/* $configure_input */" >"$tmp/config.h"
35890 cat "$ac_result" >>"$tmp/config.h"
35891 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35892 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35893 echo "$as_me: $ac_file is unchanged" >&6;}
35896 mv "$tmp/config.h" $ac_file
35899 echo "/* $configure_input */"
35905 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35906 echo "$as_me: executing $ac_file commands" >&6;}
35911 case $ac_file$ac_mode in
35912 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
35913 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
35914 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
35915 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
35916 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
35917 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
35918 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
35919 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
35920 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
35921 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
35922 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
35923 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
35924 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
35925 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
35926 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
35927 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
35928 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
35929 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
35930 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
35931 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
35932 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
35933 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
35934 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
35935 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
35936 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
35937 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
35943 { (exit 0); exit 0; }
35945 chmod +x
$CONFIG_STATUS
35946 ac_clean_files
=$ac_clean_files_save
35949 # configure is writing to config.log, and then calls config.status.
35950 # config.status does its own redirection, appending to config.log.
35951 # Unfortunately, on DOS this fails, as config.log is still kept open
35952 # by configure, so config.status won't be able to write to it; its
35953 # output is simply discarded. So we exec the FD to /dev/null,
35954 # effectively closing config.log, so it can be properly (re)opened and
35955 # appended to by config.status. When coming back to configure, we
35956 # need to make the FD available again.
35957 if test "$no_create" != yes; then
35959 ac_config_status_args
=
35960 test "$silent" = yes &&
35961 ac_config_status_args
="$ac_config_status_args --quiet"
35963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35966 # would make configure fail if this is the last instruction.
35967 $ac_cs_success ||
{ (exit 1); exit 1; }
35971 # CONFIG_SUBDIRS section.
35973 if test "$no_recursion" != yes; then
35975 # Remove --cache-file and --srcdir arguments so they do not pile up.
35976 ac_sub_configure_args
=
35978 eval "set x $ac_configure_args"
35982 if test -n "$ac_prev"; then
35987 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
35988 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
35989 ac_prev
=cache_file
;;
35990 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
35991 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
35994 --config-cache |
-C)
35996 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
35998 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36000 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36002 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36006 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36008 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36012 # Always prepend --prefix to ensure using the same prefix
36013 # in subdir configurations.
36014 ac_arg
="--prefix=$prefix"
36016 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36018 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36021 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36023 # Do not complain, so a configure script can configure whichever
36024 # parts of a large source tree are present.
36025 test -d "$srcdir/$ac_dir" ||
continue
36027 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36028 echo "$as_me:$LINENO: $ac_msg" >&5
36032 -*) as_dir
=.
/$as_dir;;
36034 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36038 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36039 *) as_qdir
=$as_dir;;
36041 as_dirs
="'$as_qdir' $as_dirs"
36042 as_dir
=`$as_dirname -- "$as_dir" ||
36043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36044 X"$as_dir" : 'X\(//\)[^/]' \| \
36045 X"$as_dir" : 'X\(//\)$' \| \
36046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36052 /^X\(\/\/\)[^/].*/{
36065 test -d "$as_dir" && break
36067 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36068 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36069 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36070 { (exit 1); exit 1; }; }; }
36074 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36076 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36077 # A ".." for each directory in $ac_dir_suffix.
36078 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36079 case $ac_top_builddir_sub in
36080 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36081 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36084 ac_abs_top_builddir
=$ac_pwd
36085 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36086 # for backward compatibility:
36087 ac_top_builddir
=$ac_top_build_prefix
36090 .
) # We are building in place.
36092 ac_top_srcdir
=$ac_top_builddir_sub
36093 ac_abs_top_srcdir
=$ac_pwd ;;
36094 [\\/]* | ?
:[\\/]* ) # Absolute name.
36095 ac_srcdir
=$srcdir$ac_dir_suffix;
36096 ac_top_srcdir
=$srcdir
36097 ac_abs_top_srcdir
=$srcdir ;;
36098 *) # Relative name.
36099 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36100 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36101 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36103 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36108 # Check for guested configure; otherwise get Cygnus style configure.
36109 if test -f "$ac_srcdir/configure.gnu"; then
36110 ac_sub_configure
=$ac_srcdir/configure.gnu
36111 elif test -f "$ac_srcdir/configure"; then
36112 ac_sub_configure
=$ac_srcdir/configure
36113 elif test -f "$ac_srcdir/configure.in"; then
36114 # This should be Cygnus configure.
36115 ac_sub_configure
=$ac_aux_dir/configure
36117 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36122 # The recursion is here.
36123 if test -n "$ac_sub_configure"; then
36124 # Make the cache file name correct relative to the subdirectory.
36125 case $cache_file in
36126 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36127 *) # Relative name.
36128 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36131 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36132 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36133 # The eval makes quoting arguments work.
36134 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36135 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36136 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36137 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36138 { (exit 1); exit 1; }; }