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
894 CONVENIENCE_LTDL_TRUE
895 CONVENIENCE_LTDL_FALSE
933 ENABLE_VISIBILITY_INLINES_HIDDEN
937 ac_precious_vars
='build_alias
953 ac_subdirs_all
='projects/sample
955 projects/llvm-stacker
962 projects/llvm-poolalloc
964 projects/llvm-kernel'
966 # Initialize some variables set by options.
968 ac_init_version
=false
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
978 program_transform_name
=s
,x
,x
,
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir
='${exec_prefix}/bin'
993 sbindir
='${exec_prefix}/sbin'
994 libexecdir
='${exec_prefix}/libexec'
995 datarootdir
='${prefix}/share'
996 datadir
='${datarootdir}'
997 sysconfdir
='${prefix}/etc'
998 sharedstatedir
='${prefix}/com'
999 localstatedir
='${prefix}/var'
1000 includedir
='${prefix}/include'
1001 oldincludedir
='/usr/include'
1002 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir
='${datarootdir}/info'
1008 libdir
='${exec_prefix}/lib'
1009 localedir
='${datarootdir}/locale'
1010 mandir
='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\
$ac_option
1024 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1036 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1037 bindir
=$ac_optarg ;;
1039 -build |
--build |
--buil |
--bui |
--bu)
1040 ac_prev
=build_alias
;;
1041 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1042 build_alias
=$ac_optarg ;;
1044 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1045 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1046 ac_prev
=cache_file
;;
1047 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1048 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1049 cache_file
=$ac_optarg ;;
1051 --config-cache |
-C)
1052 cache_file
=config.cache
;;
1054 -datadir |
--datadir |
--datadi |
--datad)
1056 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1057 datadir
=$ac_optarg ;;
1059 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1060 |
--dataroo |
--dataro |
--datar)
1061 ac_prev
=datarootdir
;;
1062 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1063 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1064 datarootdir
=$ac_optarg ;;
1066 -disable-* |
--disable-*)
1067 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1073 eval enable_
$ac_feature=no
;;
1075 -docdir |
--docdir |
--docdi |
--doc |
--do)
1077 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1078 docdir
=$ac_optarg ;;
1080 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1082 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1083 dvidir
=$ac_optarg ;;
1085 -enable-* |
--enable-*)
1086 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1089 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1092 eval enable_
$ac_feature=\
$ac_optarg ;;
1094 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1095 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1096 |
--exec |
--exe |
--ex)
1097 ac_prev
=exec_prefix
;;
1098 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1099 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1100 |
--exec=* |
--exe=* |
--ex=*)
1101 exec_prefix
=$ac_optarg ;;
1103 -gas |
--gas |
--ga |
--g)
1104 # Obsolete; use --with-gas.
1107 -help |
--help |
--hel |
--he |
-h)
1108 ac_init_help
=long
;;
1109 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1110 ac_init_help
=recursive
;;
1111 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1112 ac_init_help
=short
;;
1114 -host |
--host |
--hos |
--ho)
1115 ac_prev
=host_alias
;;
1116 -host=* |
--host=* |
--hos=* |
--ho=*)
1117 host_alias
=$ac_optarg ;;
1119 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1121 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1123 htmldir
=$ac_optarg ;;
1125 -includedir |
--includedir |
--includedi |
--included |
--include \
1126 |
--includ |
--inclu |
--incl |
--inc)
1127 ac_prev
=includedir
;;
1128 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1129 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1130 includedir
=$ac_optarg ;;
1132 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1134 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1135 infodir
=$ac_optarg ;;
1137 -libdir |
--libdir |
--libdi |
--libd)
1139 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1140 libdir
=$ac_optarg ;;
1142 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1143 |
--libexe |
--libex |
--libe)
1144 ac_prev
=libexecdir
;;
1145 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1146 |
--libexe=* |
--libex=* |
--libe=*)
1147 libexecdir
=$ac_optarg ;;
1149 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1150 ac_prev
=localedir
;;
1151 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1152 localedir
=$ac_optarg ;;
1154 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1155 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1156 ac_prev
=localstatedir
;;
1157 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1158 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1159 localstatedir
=$ac_optarg ;;
1161 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1163 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1164 mandir
=$ac_optarg ;;
1166 -nfp |
--nfp |
--nf)
1167 # Obsolete; use --without-fp.
1170 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1171 |
--no-cr |
--no-c |
-n)
1174 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1175 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1178 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1179 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1180 |
--oldin |
--oldi |
--old |
--ol |
--o)
1181 ac_prev
=oldincludedir
;;
1182 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1183 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1184 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1185 oldincludedir
=$ac_optarg ;;
1187 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1189 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1190 prefix
=$ac_optarg ;;
1192 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1193 |
--program-pre |
--program-pr |
--program-p)
1194 ac_prev
=program_prefix
;;
1195 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1196 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1197 program_prefix
=$ac_optarg ;;
1199 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1200 |
--program-suf |
--program-su |
--program-s)
1201 ac_prev
=program_suffix
;;
1202 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1203 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1204 program_suffix
=$ac_optarg ;;
1206 -program-transform-name |
--program-transform-name \
1207 |
--program-transform-nam |
--program-transform-na \
1208 |
--program-transform-n |
--program-transform- \
1209 |
--program-transform |
--program-transfor \
1210 |
--program-transfo |
--program-transf \
1211 |
--program-trans |
--program-tran \
1212 |
--progr-tra |
--program-tr |
--program-t)
1213 ac_prev
=program_transform_name
;;
1214 -program-transform-name=* |
--program-transform-name=* \
1215 |
--program-transform-nam=* |
--program-transform-na=* \
1216 |
--program-transform-n=* |
--program-transform-=* \
1217 |
--program-transform=* |
--program-transfor=* \
1218 |
--program-transfo=* |
--program-transf=* \
1219 |
--program-trans=* |
--program-tran=* \
1220 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1221 program_transform_name
=$ac_optarg ;;
1223 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1225 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1226 pdfdir
=$ac_optarg ;;
1228 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1230 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1233 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1234 |
-silent |
--silent |
--silen |
--sile |
--sil)
1237 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1239 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1241 sbindir
=$ac_optarg ;;
1243 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1244 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1245 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1247 ac_prev
=sharedstatedir
;;
1248 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1249 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1250 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1252 sharedstatedir
=$ac_optarg ;;
1254 -site |
--site |
--sit)
1256 -site=* |
--site=* |
--sit=*)
1259 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1261 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1262 srcdir
=$ac_optarg ;;
1264 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1265 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1266 ac_prev
=sysconfdir
;;
1267 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1268 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1269 sysconfdir
=$ac_optarg ;;
1271 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1272 ac_prev
=target_alias
;;
1273 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1274 target_alias
=$ac_optarg ;;
1276 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1279 -version |
--version |
--versio |
--versi |
--vers |
-V)
1280 ac_init_version
=: ;;
1283 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
1288 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1289 eval with_
$ac_package=\
$ac_optarg ;;
1291 -without-* |
--without-*)
1292 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1298 eval with_
$ac_package=no
;;
1301 # Obsolete; use --with-x.
1304 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1305 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1306 ac_prev
=x_includes
;;
1307 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1308 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1309 x_includes
=$ac_optarg ;;
1311 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1312 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1313 ac_prev
=x_libraries
;;
1314 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1315 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1316 x_libraries
=$ac_optarg ;;
1318 -*) { echo "$as_me: error: unrecognized option: $ac_option
1319 Try \`$0 --help' for more information." >&2
1320 { (exit 1); exit 1; }; }
1324 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1327 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328 { (exit 1); exit 1; }; }
1329 eval $ac_envvar=\
$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1336 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 if test -n "$ac_prev"; then
1344 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1345 { echo "$as_me: error: missing argument to $ac_option" >&2
1346 { (exit 1); exit 1; }; }
1349 # Be sure to have absolute directory names.
1350 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val
=\$
$ac_var
1357 [\\/$
]* | ?
:[\\/]* ) continue;;
1358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1360 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target
=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x
; then
1373 if test "x$build_alias" = x
; then
1374 cross_compiling
=maybe
1375 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1385 test "$silent" = yes && exec 6>/dev
/null
1388 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di
=`ls -di .` &&
1390 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1391 { echo "$as_me: error: Working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted
=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir
=`$as_dirname -- "$0" ||
1403 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$0" : 'X\(//\)[^/]' \| \
1405 X"$0" : 'X\(//\)$' \| \
1406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1430 ac_srcdir_defaulted
=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1434 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435 { (exit 1); exit 1; }; }
1437 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1440 { (exit 1); exit 1; }; }
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1450 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 for ac_var
in $ac_precious_vars; do
1453 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1455 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1460 # Report the --help message.
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1466 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1473 Defaults for the options are specified in brackets.
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1497 For better control, use the options below.
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1524 --build=BUILD configure
for building on BUILD
[guessed
]
1525 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1526 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive
) echo "Configuration of llvm 2.6svn:";;
1537 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1538 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1541 --enable-expensive-checks
1543 --enable-debug-runtime
1544 --enable-jit Enable Just In Time Compiling
(default is YES
)
1545 --enable-doxygen Build doxygen documentation
(default is NO
)
1546 --enable-threads Use threads
if available
(default is YES
)
1547 --enable-pic Build LLVM with Position Independent Code
(default
1549 --enable-targets Build specific
host targets
:
1550 all
,host-only
,{target-name
} (default
=all
)
1551 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1553 --enable-bindings Build specific language bindings
:
1554 all
,auto
,none
,{binding-name
} (default
=auto
)
1555 --enable-ltdl-install install libltdl
1556 --enable-shared[=PKGS
] build shared libraries
1558 --enable-static[=PKGS
] build static libraries
1560 --enable-fast-install[=PKGS
]
1561 optimize
for fast installation
1563 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1566 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1567 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1568 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1570 --with-llvmgcc Specify location of llvm-gcc driver
(default
1572 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1574 --with-extra-options Specify addtional options to compile LLVM with
1575 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1577 --with-tclinclude directory where tcl headers are
1578 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1579 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1581 --with-tags[=TAGS
] include additional configurations
[automatic
]
1582 --with-udis86=<path
> Use udis86 external x86 disassembler library
1584 Some influential environment variables
:
1585 CC C compiler
command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1588 nonstandard directory
<lib dir
>
1589 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1590 you have headers
in a nonstandard directory
<include dir
>
1592 CXX C
++ compiler
command
1593 CXXFLAGS C
++ compiler flags
1594 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1595 the first program found out of: `bison
-y', `byacc', `yacc'.
1596 YFLAGS The list of arguments that will be passed by default to $YACC.
1597 This script will default YFLAGS to the empty string to avoid a
1598 default value of `-d' given by some make applications.
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1603 Use these variables to override the choices made by `configure' or to
help
1604 it to
find libraries and programs with nonstandard names
/locations.
1606 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1614 test -d "$ac_dir" ||
continue
1618 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1620 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1625 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1628 ac_abs_top_builddir
=$ac_pwd
1629 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir
=$ac_top_build_prefix
1634 .
) # We are building in place.
1636 ac_top_srcdir
=$ac_top_builddir_sub
1637 ac_abs_top_srcdir
=$ac_pwd ;;
1638 [\\/]* | ?
:[\\/]* ) # Absolute name.
1639 ac_srcdir
=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir
=$srcdir
1641 ac_abs_top_srcdir
=$srcdir ;;
1643 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1647 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1667 llvm configure
2.6svn
1668 generated by GNU Autoconf
2.60
1670 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1672 This configure
script is free software
; the Free Software Foundation
1673 gives unlimited permission to copy
, distribute and modify it.
1675 Copyright
(c
) 2003-2008 University of Illinois
at Urbana-Champaign.
1679 cat >config.log
<<_ACEOF
1680 This file contains any messages produced by compilers while
1681 running configure, to aid debugging if configure makes a mistake.
1683 It was created by llvm $as_me 2.6svn, which was
1684 generated by GNU Autoconf 2.60. Invocation command line was
1696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir
=.
1720 echo "PATH: $as_dir"
1736 # Keep a trace of the command line.
1737 # Strip out --no-create and --no-recursion so they do not pile up.
1738 # Strip out --silent because we don't want to record it for future runs.
1739 # Also quote any args containing shell meta-characters.
1740 # Make two passes to allow for proper duplicate-argument suppression.
1744 ac_must_keep_next
=false
1750 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1751 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1752 |
-silent |
--silent |
--silen |
--sile |
--sil)
1755 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1760 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true
; then
1762 ac_must_keep_next
=false
# Got value, back to normal.
1765 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1766 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1767 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1768 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1773 -* ) ac_must_keep_next
=true
;;
1776 ac_configure_args
="$ac_configure_args '$ac_arg'"
1781 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1782 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1784 # When interrupted or exit'd, cleanup temporary files, and complete
1785 # config.log. We remove comments because anyway the quotes in there
1786 # would cause problems or look ugly.
1787 # WARNING: Use '\'' to represent an apostrophe within the trap.
1788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789 trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
1795 ## ---------------- ##
1796 ## Cache variables. ##
1797 ## ---------------- ##
1800 # The following way of writing the cache mishandles newlines in values,
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1807 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1811 _ | IFS | as_nl) ;; #(
1812 *) $as_unset $ac_var ;;
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1837 for ac_var in $ac_subst_vars
1839 eval ac_val=\$$ac_var
1841 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 echo "$ac_var='\''$ac_val'\''"
1847 if test -n "$ac_subst_files"; then
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1854 for ac_var
in $ac_subst_files
1856 eval ac_val
=\$
$ac_var
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1865 if test -s confdefs.h; then
1875 test "$ac_signal" != 0 &&
1876 echo "$as_me: caught signal $ac_signal"
1877 echo "$as_me: exit $exit_status"
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1883 for ac_signal
in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest
* confdefs.h
1891 # Predefined preprocessor variables.
1893 cat >>confdefs.h
<<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 cat >>confdefs.h
<<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903 cat >>confdefs.h
<<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 cat >>confdefs.h
<<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1913 cat >>confdefs.h
<<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer explicitly selected file to automatically selected ones.
1920 if test -n "$CONFIG_SITE"; then
1921 set x
"$CONFIG_SITE"
1922 elif test "x$prefix" != xNONE
; then
1923 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1925 set x
"$ac_default_prefix/share/config.site" \
1926 "$ac_default_prefix/etc/config.site"
1931 if test -r "$ac_site_file"; then
1932 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 echo "$as_me: loading cache $cache_file" >&6;}
1946 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1947 *) .
"./$cache_file";;
1951 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 echo "$as_me: creating cache $cache_file" >&6;}
1956 # Check that the precious variables saved in the cache have kept the same
1958 ac_cache_corrupted
=false
1959 for ac_var
in $ac_precious_vars; do
1960 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1961 eval ac_new_set
=\
$ac_env_${ac_var}_set
1962 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1963 eval ac_new_val
=\
$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted
=: ;;
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted
=: ;;
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1977 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1978 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1979 echo "$as_me: former value: $ac_old_val" >&2;}
1980 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1981 echo "$as_me: current value: $ac_new_val" >&2;}
1982 ac_cache_corrupted
=:
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1988 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg
=$ac_var=$ac_new_val ;;
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1997 if $ac_cache_corrupted; then
1998 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2030 ac_cpp
='$CPP $CPPFLAGS'
2031 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2037 LLVM_COPYRIGHT
="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2046 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2047 if test -f "$ac_dir/install-sh"; then
2049 ac_install_sh
="$ac_aux_dir/install-sh -c"
2051 elif test -f "$ac_dir/install.sh"; then
2053 ac_install_sh
="$ac_aux_dir/install.sh -c"
2055 elif test -f "$ac_dir/shtool"; then
2057 ac_install_sh
="$ac_aux_dir/shtool install -c"
2061 if test -z "$ac_aux_dir"; then
2062 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2064 { (exit 1); exit 1; }; }
2067 # These three variables are undocumented and unsupported,
2068 # and are intended to be withdrawn in a future Autoconf release.
2069 # They can cause serious problems if a builder's source tree is in a directory
2070 # whose full name contains unusual characters.
2071 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077 if test ${srcdir} != "." ; then
2078 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2079 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2080 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081 { (exit 1); exit 1; }; }
2085 for i
in `ls ${srcdir}/projects`
2087 if test -d ${srcdir}/projects
/${i} ; then
2090 sample
) subdirs
="$subdirs projects/sample"
2092 privbracket
) subdirs
="$subdirs projects/privbracket"
2094 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2096 # llvm-test is the old name of the test-suite, kept here for backwards
2098 llvm-test
) subdirs
="$subdirs projects/llvm-test"
2100 test-suite
) subdirs
="$subdirs projects/test-suite"
2102 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2104 llvm-gcc
) subdirs
="$subdirs projects/llvm-gcc"
2106 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2108 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2110 llvm-poolalloc
) subdirs
="$subdirs projects/llvm-poolalloc"
2112 poolalloc
) subdirs
="$subdirs projects/poolalloc"
2114 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2117 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_build_alias
=$build_alias
2137 test "x$ac_build_alias" = x
&&
2138 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x
&&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS
=$IFS; IFS
='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test "x$host_alias" = x
; then
2177 ac_cv_host
=$ac_cv_build
2179 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2195 ac_save_IFS
=$IFS; IFS
='-'
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2205 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2208 { echo "$as_me:$LINENO: checking target system type" >&5
2209 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2210 if test "${ac_cv_target+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 if test "x$target_alias" = x
; then
2214 ac_cv_target
=$ac_cv_host
2216 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2219 { (exit 1); exit 1; }; }
2223 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224 echo "${ECHO_T}$ac_cv_target" >&6; }
2225 case $ac_cv_target in
2227 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228 echo "$as_me: error: invalid value of canonical target" >&2;}
2229 { (exit 1); exit 1; }; };;
2231 target
=$ac_cv_target
2232 ac_save_IFS
=$IFS; IFS
='-'
2238 # Remember, the first character of IFS is used to create $*,
2239 # except with old shells:
2242 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2245 # The aliases save the names the user supplied, while $host etc.
2246 # will get canonicalized.
2247 test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2250 program_prefix
=${target_alias}-
2252 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2254 if test "${llvm_cv_os_type+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 llvm_cv_link_all_option
="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2261 llvm_cv_os_type
="AIX"
2262 llvm_cv_platform_type
="Unix" ;;
2264 llvm_cv_link_all_option
="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2266 llvm_cv_os_type
="IRIX"
2267 llvm_cv_platform_type
="Unix" ;;
2269 llvm_cv_link_all_option
="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2271 llvm_cv_os_type
="Cygwin"
2272 llvm_cv_platform_type
="Unix" ;;
2274 llvm_cv_link_all_option
="-Wl,-all_load"
2275 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2276 llvm_cv_os_type
="Darwin"
2277 llvm_cv_platform_type
="Unix" ;;
2279 llvm_cv_link_all_option
="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2281 llvm_cv_os_type
="FreeBSD"
2282 llvm_cv_platform_type
="Unix" ;;
2284 llvm_cv_link_all_option
="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2286 llvm_cv_os_type
="OpenBSD"
2287 llvm_cv_platform_type
="Unix" ;;
2289 llvm_cv_link_all_option
="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2291 llvm_cv_os_type
="NetBSD"
2292 llvm_cv_platform_type
="Unix" ;;
2294 llvm_cv_link_all_option
="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2296 llvm_cv_os_type
="DragonFly"
2297 llvm_cv_platform_type
="Unix" ;;
2299 llvm_cv_link_all_option
="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2301 llvm_cv_os_type
="HP-UX"
2302 llvm_cv_platform_type
="Unix" ;;
2304 llvm_cv_link_all_option
="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2306 llvm_cv_os_type
="Interix"
2307 llvm_cv_platform_type
="Unix" ;;
2309 llvm_cv_link_all_option
="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2311 llvm_cv_os_type
="Linux"
2312 llvm_cv_platform_type
="Unix" ;;
2314 llvm_cv_link_all_option
="-Wl,-z,allextract"
2315 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2316 llvm_cv_os_type
="SunOS"
2317 llvm_cv_platform_type
="Unix" ;;
2319 llvm_cv_link_all_option
="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2321 llvm_cv_os_type
="Win32"
2322 llvm_cv_platform_type
="Win32" ;;
2324 llvm_cv_link_all_option
="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2326 llvm_cv_os_type
="MingW"
2327 llvm_cv_platform_type
="Win32" ;;
2329 llvm_cv_link_all_option
=""
2330 llvm_cv_no_link_all_option
=""
2331 llvm_cv_os_type
="Unknown"
2332 llvm_cv_platform_type
="Unknown" ;;
2335 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2338 if test "$llvm_cv_os_type" = "Unknown" ; then
2339 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2341 { (exit 1); exit 1; }; }
2347 LINKALL
=$llvm_cv_link_all_option
2349 NOLINKALL
=$llvm_cv_no_link_all_option
2352 case $llvm_cv_platform_type in
2355 cat >>confdefs.h
<<\_ACEOF
2356 #define LLVM_ON_UNIX 1
2366 cat >>confdefs.h
<<\_ACEOF
2367 #define LLVM_ON_WIN32 1
2377 { echo "$as_me:$LINENO: checking target architecture" >&5
2378 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2379 if test "${llvm_cv_target_arch+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 i?
86-*) llvm_cv_target_arch
="x86" ;;
2384 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2385 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2386 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2387 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2388 ia64-
*) llvm_cv_target_arch
="IA64" ;;
2389 arm-
*) llvm_cv_target_arch
="ARM" ;;
2390 mips-
*) llvm_cv_target_arch
="Mips" ;;
2391 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2392 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2393 *) llvm_cv_target_arch
="Unknown" ;;
2396 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2397 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2399 if test "$llvm_cv_target_arch" = "Unknown" ; then
2400 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2401 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404 ARCH
=$llvm_cv_target_arch
2408 ac_cpp
='$CPP $CPPFLAGS'
2409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC
="$CC" # Let the user override the test.
2423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir
=.
2428 for ac_exec_ext
in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 { echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6; }
2445 { echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6; }
2451 if test -z "$ac_cv_prog_CC"; then
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc
; ac_word
=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir
=.
2468 for ac_exec_ext
in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC
="gcc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483 echo "${ECHO_T}$ac_ct_CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2489 if test "x$ac_ct_CC" = x
; then
2492 case $cross_compiling:$ac_tool_warned in
2494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&5
2497 echo "$as_me: 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." >&2;}
2500 ac_tool_warned
=yes ;;
2508 if test -z "$CC"; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2511 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC
="$CC" # Let the user override the test.
2520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir
=.
2525 for ac_exec_ext
in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2549 if test -z "$CC"; then
2550 # Extract the first word of "cc", so it can be a program name with args.
2551 set dummy cc
; ac_word
=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC
="$CC" # Let the user override the test.
2561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir
=.
2566 for ac_exec_ext
in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2569 ac_prog_rejected
=yes
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test $ac_prog_rejected = yes; then
2581 # We found a bogon in the path, so make sure we never use it.
2582 set dummy
$ac_cv_prog_CC
2584 if test $# != 0; then
2585 # We chose a different compiler from the bogus one.
2586 # However, it has the same basename, so the bogon will be chosen
2587 # first if we set CC to just the basename; use the full file name.
2589 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2595 if test -n "$CC"; then
2596 { echo "$as_me:$LINENO: result: $CC" >&5
2597 echo "${ECHO_T}$CC" >&6; }
2599 { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2605 if test -z "$CC"; then
2606 if test -n "$ac_tool_prefix"; then
2607 for ac_prog
in cl.exe
2609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2610 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC
="$CC" # Let the user override the test.
2619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir
=.
2624 for ac_exec_ext
in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$CC"; then
2638 { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2646 test -n "$CC" && break
2649 if test -z "$CC"; then
2651 for ac_prog
in cl.exe
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy
$ac_prog; ac_word
=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir
=.
2668 for ac_exec_ext
in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_ac_ct_CC
="$ac_prog"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2681 if test -n "$ac_ct_CC"; then
2682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683 echo "${ECHO_T}$ac_ct_CC" >&6; }
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2690 test -n "$ac_ct_CC" && break
2693 if test "x$ac_ct_CC" = x
; then
2696 case $cross_compiling:$ac_tool_warned in
2698 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699 whose name does not start with the host triplet. If you think this
2700 configuration is useful to you, please write to autoconf@gnu.org." >&5
2701 echo "$as_me: 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." >&2;}
2704 ac_tool_warned
=yes ;;
2713 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2719 # Provide some information about the compiler.
2720 echo "$as_me:$LINENO: checking for C compiler version" >&5
2721 ac_compiler
=`set X $ac_compile; echo $2`
2722 { (ac_try
="$ac_compiler --version >&5"
2724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler --version >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2732 { (ac_try="$ac_compiler -v >&5"
2734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2735 *) ac_try_echo
=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -v >&5") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742 { (ac_try
="$ac_compiler -V >&5"
2744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -V >&5") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 ac_clean_files_save=$ac_clean_files
2769 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2770 # Try to create an executable without -o first, disregard a.out.
2771 # It will help us diagnose broken compilers, and finding out an intuition
2773 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2775 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2777 # List of possible output files, starting from the most likely.
2778 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2779 # only as a last resort. b.out is created by i960 compilers.
2780 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2782 # The IRIX 6 linker writes into existing files which may not be
2783 # executable, retaining their permissions. Remove them first so a
2784 # subsequent execution test works.
2786 for ac_file in $ac_files
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795 if { (ac_try="$ac_link_default"
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_link_default") 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; then
2805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2808 # so that the user can short-circuit this test for compilers unknown to
2810 for ac_file
in $ac_files
2812 test -f "$ac_file" ||
continue
2814 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2817 # We found the default executable, but exeext='' is most
2821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2823 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2835 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.
$ac_ext >&5
2841 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2842 See \`config.log' for more details." >&5
2843 echo "$as_me: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&2;}
2845 { (exit 77); exit 77; }; }
2848 ac_exeext
=$ac_cv_exeext
2849 { echo "$as_me:$LINENO: result: $ac_file" >&5
2850 echo "${ECHO_T}$ac_file" >&6; }
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857 # If not cross compiling, check that we can run a simple program.
2858 if test "$cross_compiling" != yes; then
2859 if { ac_try
='./$ac_file'
2860 { (case "(($ac_try" in
2861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_try") 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 if test "$cross_compiling" = maybe; then
2874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2875 If you meant to cross compile, use \`--host'.
2876 See \`config.log' for more details.
" >&5
2877 echo "$as_me: error
: cannot run C compiled programs.
2878 If you meant to cross compile
, use \
`--host'.
2879 See \`config.log
' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2884 { echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6; }
2887 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2888 ac_clean_files=$ac_clean_files_save
2889 # Check that the compiler produces executables we can run. If not, either
2890 # the compiler is broken, or we cross compile.
2891 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894 echo "${ECHO_T}$cross_compiling" >&6; }
2896 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898 if { (ac_try="$ac_link"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2909 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2910 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2912 for ac_file
in conftest.exe conftest conftest.
*; do
2913 test -f "$ac_file" ||
continue
2915 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2916 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2929 rm -f conftest
$ac_cv_exeext
2930 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2933 rm -f conftest.
$ac_ext
2934 EXEEXT
=$ac_cv_exeext
2936 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2938 if test "${ac_cv_objext+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.
$ac_ext <<_ACEOF
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2956 rm -f conftest.o conftest.obj
2957 if { (ac_try
="$ac_compile"
2959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
2967 for ac_file in conftest.o conftest.obj conftest.*; do
2968 test -f "$ac_file" || continue;
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980 See \`config.log
' for more details." >&5
2981 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details.
" >&2;}
2983 { (exit 1); exit 1; }; }
2986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2989 echo "${ECHO_T}$ac_cv_objext" >&6; }
2990 OBJEXT=$ac_cv_objext
2992 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2993 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2994 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2995 echo $ECHO_N "(cached
) $ECHO_C" >&6
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 echo "$as_me: failed program was
:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3062 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3063 GCC=`test $ac_compiler_gnu = yes && echo yes`
3064 ac_test_CFLAGS=${CFLAGS+set}
3065 ac_save_CFLAGS=$CFLAGS
3066 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3067 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3068 if test "${ac_cv_prog_cc_g+set}" = set; then
3069 echo $ECHO_N "(cached
) $ECHO_C" >&6
3071 ac_save_c_werror_flag=$ac_c_werror_flag
3072 ac_c_werror_flag=yes
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was
:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 echo "$as_me: failed program was
:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_try") 2>&5
3233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3234 (exit $ac_status); }; }; then
3237 echo "$as_me: failed program was
:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3252 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3263 if test "$GCC" = yes; then
3269 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3270 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then
3272 echo $ECHO_N "(cached
) $ECHO_C" >&6
3274 ac_cv_prog_cc_c89=no
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3300 s = g (p, va_arg (v,int));
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_prog_cc_c89=$ac_arg
3373 echo "$as_me: failed program was
:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -f core conftest.err conftest.$ac_objext
3380 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3382 rm -f conftest.$ac_ext
3387 case "x
$ac_cv_prog_cc_c89" in
3389 { echo "$as_me:$LINENO: result
: none needed
" >&5
3390 echo "${ECHO_T}none needed
" >&6; } ;;
3392 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3393 echo "${ECHO_T}unsupported
" >&6; } ;;
3395 CC="$CC $ac_cv_prog_cc_c89"
3396 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3414 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3415 # On Suns, sometimes $CPP names a directory.
3416 if test -n "$CPP" && test -d "$CPP"; then
3419 if test -z "$CPP"; then
3420 if test "${ac_cv_prog_CPP+set}" = set; then
3421 echo $ECHO_N "(cached
) $ECHO_C" >&6
3423 # Double quotes because CPP needs to be expanded
3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3427 for ac_c_preproc_warn_flag in '' yes
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error
" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3442 # include <limits.h>
3444 # include <assert.h>
3448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 if test -z "$ac_cpp_err"; then
3473 echo "$as_me: failed program was
:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 # Broken: fails on valid input.
3480 rm -f conftest.err conftest.$ac_ext
3482 # OK, works on sane cases. Now check whether nonexistent headers
3483 # can be detected and how.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include <ac_nonexistent.h>
3492 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514 if test -z "$ac_cpp_err"; then
3515 # Broken: success on invalid input.
3518 echo "$as_me: failed program was
:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 # Passes both tests.
3526 rm -f conftest.err conftest.$ac_ext
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3543 { echo "$as_me:$LINENO: result
: $CPP" >&5
3544 echo "${ECHO_T}$CPP" >&6; }
3546 for ac_c_preproc_warn_flag in '' yes
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error
" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 # include <limits.h>
3563 # include <assert.h>
3567 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 if test -z "$ac_cpp_err"; then
3592 echo "$as_me: failed program was
:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 # Broken: fails on valid input.
3599 rm -f conftest.err conftest.$ac_ext
3601 # OK, works on sane cases. Now check whether nonexistent headers
3602 # can be detected and how.
3603 cat >conftest.$ac_ext <<_ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3611 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3633 if test -z "$ac_cpp_err"; then
3634 # Broken: success on invalid input.
3637 echo "$as_me: failed program was
:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 # Passes both tests.
3645 rm -f conftest.err conftest.$ac_ext
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then
3653 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3654 See \
`config.log' for more details." >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log
' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3663 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_GREP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 # Extract the first word of "grep ggrep" to use in msg output
3673 if test -z "$GREP"; then
3674 set dummy grep ggrep; ac_prog_name=$2
3675 if test "${ac_cv_path_GREP+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 ac_path_GREP_found=false
3679 # Loop through the user's path and
test for each of PROGNAME-LIST
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3684 test -z "$as_dir" && as_dir
=.
3685 for ac_prog
in grep ggrep
; do
3686 for ac_exec_ext
in '' $ac_executable_extensions; do
3687 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691 case `"$ac_path_GREP" --version 2>&1` in
3693 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3704 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3705 ac_count
=`expr $ac_count + 1`
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP
="$ac_path_GREP"
3709 ac_path_GREP_max
=$ac_count
3711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3714 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3718 $ac_path_GREP_found && break 3
3728 GREP
="$ac_cv_path_GREP"
3729 if test -z "$GREP"; then
3730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732 { (exit 1); exit 1; }; }
3736 ac_cv_path_GREP
=$GREP
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743 GREP
="$ac_cv_path_GREP"
3746 { echo "$as_me:$LINENO: checking for egrep" >&5
3747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3752 then ac_cv_path_EGREP
="$GREP -E"
3754 # Extract the first word of "egrep" to use in msg output
3755 if test -z "$EGREP"; then
3756 set dummy
egrep; ac_prog_name
=$2
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 ac_path_EGREP_found
=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3763 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3766 test -z "$as_dir" && as_dir
=.
3767 for ac_prog
in egrep; do
3768 for ac_exec_ext
in '' $ac_executable_extensions; do
3769 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3775 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3786 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3787 ac_count
=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP
="$ac_path_EGREP"
3791 ac_path_EGREP_max
=$ac_count
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3796 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3800 $ac_path_EGREP_found && break 3
3810 EGREP
="$ac_cv_path_EGREP"
3811 if test -z "$EGREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3818 ac_cv_path_EGREP
=$EGREP
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826 EGREP
="$ac_cv_path_EGREP"
3829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3831 if test "${ac_cv_header_stdc+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 cat >conftest.
$ac_ext <<_ACEOF
3837 cat confdefs.h
>>conftest.
$ac_ext
3838 cat >>conftest.
$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3853 rm -f conftest.
$ac_objext
3854 if { (ac_try
="$ac_compile"
3856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3870 *) ac_try_echo
=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try
='test -s conftest.$ac_objext'
3878 { (case "(($ac_try" in
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_header_stdc=yes
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_cv_header_stdc=no
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 if test $ac_cv_header_stdc = yes; then
3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "memchr" >/dev/null 2>&1; then
3912 ac_cv_header_stdc=no
3918 if test $ac_cv_header_stdc = yes; then
3919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 $EGREP "free" >/dev/null 2>&1; then
3933 ac_cv_header_stdc=no
3939 if test $ac_cv_header_stdc = yes; then
3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941 if test "$cross_compiling" = yes; then
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3952 #if ((' ' & 0x0FF) == 0x020)
3953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3956 # define ISLOWER(c) \
3957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
3960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
3970 || toupper (i) != TOUPPER (i))
3975 rm -f conftest$ac_exeext
3976 if { (ac_try="$ac_link"
3978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3979 *) ac_try_echo
=$ac_try;;
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_link") 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3986 { (case "(($ac_try" in
3987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3997 echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_header_stdc=no
4004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4012 if test $ac_cv_header_stdc = yes; then
4014 cat >>confdefs.h <<\_ACEOF
4015 #define STDC_HEADERS 1
4020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031 inttypes.h stdint.h unistd.h
4033 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4047 #include <$ac_header>
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4053 *) ac_try_echo
=$ac_try;;
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4076 *) ac_try_echo
=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 eval "$as_ac_Header=yes"
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.
$ac_ext >&5
4088 eval "$as_ac_Header=no"
4091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4093 ac_res
=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095 echo "${ECHO_T}$ac_res" >&6; }
4096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097 cat >>confdefs.h
<<_ACEOF
4098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4106 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4107 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4108 if test "${ac_cv_c_bigendian+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 # See if sys/param.h defines the BYTE_ORDER macro.
4112 cat >conftest.
$ac_ext <<_ACEOF
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4132 rm -f conftest.
$ac_objext
4133 if { (ac_try
="$ac_compile"
4135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4149 *) ac_try_echo
=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try
='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 # It does; now see whether it defined to BIG_ENDIAN or not.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #include <sys/types.h>
4174 #include <sys/param.h>
4179 #if BYTE_ORDER != BIG_ENDIAN
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4191 *) ac_try_echo
=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4196 grep -v '^ *+' conftest.er1
>conftest.err
4198 cat conftest.err
>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (case "(($ac_try" in
4203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (case "(($ac_try" in
4213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4214 *) ac_try_echo
=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_try") 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_c_bigendian
=yes
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.
$ac_ext >&5
4226 ac_cv_c_bigendian
=no
4229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.
$ac_ext >&5
4234 # It does not; compile a test program.
4235 if test "$cross_compiling" = yes; then
4236 # try to guess the endianness by grepping values into an object file
4237 ac_cv_c_bigendian
=unknown
4238 cat >conftest.
$ac_ext <<_ACEOF
4241 cat confdefs.h
>>conftest.
$ac_ext
4242 cat >>conftest.
$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4245 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4246 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4247 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4248 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4249 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4253 _ascii (); _ebcdic ();
4258 rm -f conftest.
$ac_objext
4259 if { (ac_try
="$ac_compile"
4261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4275 *) ac_try_echo
=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try
='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4293 ac_cv_c_bigendian=yes
4295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4296 if test "$ac_cv_c_bigendian" = unknown; then
4297 ac_cv_c_bigendian=no
4299 # finding both strings is unlikely to happen, but who knows?
4300 ac_cv_c_bigendian=unknown
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 $ac_includes_default
4323 /* Are we little or big endian? From Harbison&Steele. */
4327 char c[sizeof (long int)];
4330 return u.c[sizeof (long int) - 1] == 1;
4336 rm -f conftest$ac_exeext
4337 if { (ac_try="$ac_link"
4339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4340 *) ac_try_echo
=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_link") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4347 { (case "(($ac_try" in
4348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_c_bigendian=no
4358 echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_c_bigendian=yes
4365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4374 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4375 case $ac_cv_c_bigendian in
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385 echo "$as_me: error: unknown endianness
4386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4391 if test "$cross_compiling" = yes; then
4392 LLVM_CROSS_COMPILING=1
4395 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4396 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4397 if test "${ac_cv_build_exeext+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4401 ac_cv_build_exeext=.exe
4403 ac_build_prefix=${build_alias}-
4405 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4406 set dummy ${ac_build_prefix}gcc; ac_word=$2
4407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 BUILD_CC=$ac_cv_prog_BUILD_CC
4433 if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435 echo "${ECHO_T}$BUILD_CC" >&6; }
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444 set dummy gcc; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_BUILD_CC="gcc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4480 if test -z "$BUILD_CC"; then
4481 # Extract the first word of "cc", so it can be a program name with args.
4482 set dummy cc; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$BUILD_CC"; then
4489 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500 ac_prog_rejected=yes
4503 ac_cv_prog_BUILD_CC="cc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 if test $ac_prog_rejected = yes; then
4512 # We found a bogon in the path, so make sure we never use it.
4513 set dummy $ac_cv_prog_BUILD_CC
4515 if test $# != 0; then
4516 # We chose a different compiler from the bogus one.
4517 # However, it has the same basename, so the bogon will be chosen
4518 # first if we set BUILD_CC to just the basename; use the full file name.
4520 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4525 BUILD_CC=$ac_cv_prog_BUILD_CC
4526 if test -n "$BUILD_CC"; then
4527 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4528 echo "${ECHO_T}$BUILD_CC" >&6; }
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4537 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4538 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4539 { (exit 1); exit 1; }; }
4540 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4542 echo 'int main () { return 0; }' > conftest.$ac_ext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4545 (eval $ac_build_link) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for file in conftest.*; do
4551 *.c | *.o | *.obj | *.dSYM) ;;
4552 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4556 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4557 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4558 { (exit 1); exit 1; }; }
4561 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4566 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4567 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4568 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4569 ac_build_exeext=$BUILD_EXEEXT
4571 ac_build_prefix=${build_alias}-
4572 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4573 set dummy ${ac_build_prefix}g++; ac_word=$2
4574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 if test -n "$BUILD_CXX"; then
4580 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4600 if test -n "$BUILD_CXX"; then
4601 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4602 echo "${ECHO_T}$BUILD_CXX" >&6; }
4604 { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4609 if test -z "$BUILD_CXX"; then
4610 # Extract the first word of "g++", so it can be a program name with args.
4611 set dummy g++; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test -n "$BUILD_CXX"; then
4618 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CXX="g++"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638 if test -n "$BUILD_CXX"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640 echo "${ECHO_T}$BUILD_CXX" >&6; }
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test -z "$BUILD_CXX"; then
4648 # Extract the first word of "c++", so it can be a program name with args.
4649 set dummy c++; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$BUILD_CXX"; then
4656 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4667 ac_prog_rejected=yes
4670 ac_cv_prog_BUILD_CXX="c++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test $ac_prog_rejected = yes; then
4679 # We found a bogon in the path, so make sure we never use it.
4680 set dummy $ac_cv_prog_BUILD_CXX
4682 if test $# != 0; then
4683 # We chose a different compiler from the bogus one.
4684 # However, it has the same basename, so the bogon will be chosen
4685 # first if we set BUILD_CXX to just the basename; use the full file name.
4687 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4692 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4693 if test -n "$BUILD_CXX"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4695 echo "${ECHO_T}$BUILD_CXX" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4705 LLVM_CROSS_COMPILING=0
4709 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4720 # Check whether --enable-optimized was given.
4721 if test "${enable_optimized+set}" = set; then
4722 enableval=$enable_optimized;
4727 if test ${enableval} = "no" ; then
4731 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4735 # Check whether --enable-assertions was given.
4736 if test "${enable_assertions+set}" = set; then
4737 enableval=$enable_assertions;
4742 if test ${enableval} = "yes" ; then
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750 # Check whether --enable-expensive-checks was given.
4751 if test "${enable_expensive_checks+set}" = set; then
4752 enableval=$enable_expensive_checks;
4757 if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4760 EXPENSIVE_CHECKS=yes
4763 ENABLE_EXPENSIVE_CHECKS=
4769 # Check whether --enable-debug-runtime was given.
4770 if test "${enable_debug_runtime+set}" = set; then
4771 enableval=$enable_debug_runtime;
4776 if test ${enableval} = "no" ; then
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784 # Check whether --enable-jit was given.
4785 if test "${enable_jit+set}" = set; then
4786 enableval=$enable_jit;
4791 if test ${enableval} = "no"
4796 case "$llvm_cv_target_arch" in
4797 x86) TARGET_HAS_JIT=1
4799 Sparc) TARGET_HAS_JIT=0
4801 PowerPC) TARGET_HAS_JIT=1
4803 x86_64) TARGET_HAS_JIT=1
4805 Alpha) TARGET_HAS_JIT=1
4807 IA64) TARGET_HAS_JIT=0
4809 ARM) TARGET_HAS_JIT=0
4811 Mips) TARGET_HAS_JIT=0
4813 PIC16) TARGET_HAS_JIT=0
4815 XCore) TARGET_HAS_JIT=0
4822 # Check whether --enable-doxygen was given.
4823 if test "${enable_doxygen+set}" = set; then
4824 enableval=$enable_doxygen;
4829 case "$enableval" in
4830 yes) ENABLE_DOXYGEN=1
4832 no) ENABLE_DOXYGEN=0
4834 default) ENABLE_DOXYGEN=0
4836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4837 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4841 # Check whether --enable-threads was given.
4842 if test "${enable_threads+set}" = set; then
4843 enableval=$enable_threads;
4848 case "$enableval" in
4849 yes) ENABLE_THREADS=1
4851 no) ENABLE_THREADS=0
4853 default) ENABLE_THREADS=1
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4860 cat >>confdefs.h <<_ACEOF
4861 #define ENABLE_THREADS $ENABLE_THREADS
4865 # Check whether --enable-pic was given.
4866 if test "${enable_pic+set}" = set; then
4867 enableval=$enable_pic;
4872 case "$enableval" in
4877 default) ENABLE_PIC=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 cat >>confdefs.h <<_ACEOF
4885 #define ENABLE_PIC $ENABLE_PIC
4890 # Check whether --enable-targets was given.
4891 if test "${enable_targets+set}" = set; then
4892 enableval=$enable_targets;
4897 case "$enableval" in
4898 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4900 case "$llvm_cv_target_arch" in
4901 x86) TARGETS_TO_BUILD="X86" ;;
4902 x86_64) TARGETS_TO_BUILD="X86" ;;
4903 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4904 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4905 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4906 IA64) TARGETS_TO_BUILD="IA64" ;;
4907 ARM) TARGETS_TO_BUILD="ARM" ;;
4908 Mips) TARGETS_TO_BUILD="Mips" ;;
4909 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4910 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4911 XCore) TARGETS_TO_BUILD="XCore" ;;
4912 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4913 echo "$as_me: error: Can not set target to build" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4917 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4919 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4920 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4921 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4922 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4923 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4924 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4925 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4926 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4927 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4928 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4929 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4930 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4931 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4932 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4933 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4934 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4940 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4943 # Check whether --enable-cbe-printf-a was given.
4944 if test "${enable_cbe_printf_a+set}" = set; then
4945 enableval=$enable_cbe_printf_a;
4950 case "$enableval" in
4951 yes) ENABLE_CBE_PRINTF_A=1
4953 no) ENABLE_CBE_PRINTF_A=0
4955 default) ENABLE_CBE_PRINTF_A=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4962 cat >>confdefs.h <<_ACEOF
4963 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4968 # Check whether --with-llvmgccdir was given.
4969 if test "${with_llvmgccdir+set}" = set; then
4970 withval=$with_llvmgccdir;
4976 default) WITH_LLVMGCCDIR=default ;;
4977 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4979 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4984 # Check whether --with-llvmgcc was given.
4985 if test "${with_llvmgcc+set}" = set; then
4986 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4992 # Check whether --with-llvmgxx was given.
4993 if test "${with_llvmgxx+set}" = set; then
4994 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4999 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5000 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5001 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5002 { (exit 1); exit 1; }; };
5005 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5006 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5007 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5008 { (exit 1); exit 1; }; };
5012 # Check whether --with-extra-options was given.
5013 if test "${with_extra_options+set}" = set; then
5014 withval=$with_extra_options;
5020 default) EXTRA_OPTIONS= ;;
5021 *) EXTRA_OPTIONS=$withval ;;
5023 EXTRA_OPTIONS=$EXTRA_OPTIONS
5026 # Check whether --enable-bindings was given.
5027 if test "${enable_bindings+set}" = set; then
5028 enableval=$enable_bindings;
5033 BINDINGS_TO_BUILD=""
5034 case "$enableval" in
5035 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5036 all ) BINDINGS_TO_BUILD="ocaml" ;;
5037 none | no) BINDINGS_TO_BUILD="" ;;
5038 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5039 case "$a_binding" in
5040 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5041 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5042 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5043 { (exit 1); exit 1; }; } ;;
5050 # Check whether --with-ocaml-libdir was given.
5051 if test "${with_ocaml_libdir+set}" = set; then
5052 withval=$with_ocaml_libdir;
5058 auto) with_ocaml_libdir="$withval" ;;
5059 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5060 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5061 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5062 { (exit 1); exit 1; }; } ;;
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5073 # On Suns, sometimes $CPP names a directory.
5074 if test -n "$CPP" && test -d "$CPP"; then
5077 if test -z "$CPP"; then
5078 if test "${ac_cv_prog_CPP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5085 for ac_c_preproc_warn_flag in '' yes
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 # include <limits.h>
5102 # include <assert.h>
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5109 *) ac_try_echo
=$ac_try;;
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev
/null
; then
5119 if test -s conftest.err
; then
5120 ac_cpp_err
=$ac_c_preproc_warn_flag
5121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5128 if test -z "$ac_cpp_err"; then
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.
$ac_ext >&5
5134 # Broken: fails on valid input.
5138 rm -f conftest.err conftest.
$ac_ext
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat >conftest.
$ac_ext <<_ACEOF
5145 cat confdefs.h
>>conftest.
$ac_ext
5146 cat >>conftest.
$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #include <ac_nonexistent.h>
5150 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1 >conftest.err
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5172 if test -z "$ac_cpp_err"; then
5173 # Broken: success on invalid input.
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Passes both tests.
5184 rm -f conftest.err conftest.$ac_ext
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.
$ac_ext
5189 if $ac_preproc_ok; then
5201 { echo "$as_me:$LINENO: result: $CPP" >&5
5202 echo "${ECHO_T}$CPP" >&6; }
5204 for ac_c_preproc_warn_flag
in '' yes
5206 # Use a header file that comes with gcc, so configuring glibc
5207 # with a fresh cross-compiler works.
5208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 # <limits.h> exists even on freestanding compilers.
5210 # On the NeXT, cc -E runs the code through the compiler's parser,
5211 # not just through cpp. "Syntax error" is here to catch this case.
5212 cat >conftest.
$ac_ext <<_ACEOF
5215 cat confdefs.h
>>conftest.
$ac_ext
5216 cat >>conftest.
$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5219 # include <limits.h>
5221 # include <assert.h>
5225 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_c_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5247 if test -z "$ac_cpp_err"; then
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 # Broken: fails on valid input.
5257 rm -f conftest.err conftest.$ac_ext
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #include <ac_nonexistent.h>
5269 if { (ac_try="$ac_cpp conftest.$ac_ext"
5271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5272 *) ac_try_echo
=$ac_try;;
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5277 grep -v '^ *+' conftest.er1
>conftest.err
5279 cat conftest.err
>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } >/dev
/null
; then
5282 if test -s conftest.err
; then
5283 ac_cpp_err
=$ac_c_preproc_warn_flag
5284 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5291 if test -z "$ac_cpp_err"; then
5292 # Broken: success on invalid input.
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.
$ac_ext >&5
5298 # Passes both tests.
5303 rm -f conftest.err conftest.
$ac_ext
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.
$ac_ext
5308 if $ac_preproc_ok; then
5311 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5312 See \`config.log' for more details." >&5
5313 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." >&2;}
5315 { (exit 1); exit 1; }; }
5319 ac_cpp
='$CPP $CPPFLAGS'
5320 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5325 ac_cpp
='$CPP $CPPFLAGS'
5326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5329 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336 if test "${ac_cv_prog_CC+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 if test -n "$CC"; then
5340 ac_cv_prog_CC
="$CC" # Let the user override the test.
5342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir
=.
5347 for ac_exec_ext
in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 if test -n "$CC"; then
5361 { echo "$as_me:$LINENO: result: $CC" >&5
5362 echo "${ECHO_T}$CC" >&6; }
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5369 test -n "$CC" && break
5372 if test -z "$CC"; then
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy
$ac_prog; ac_word
=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 if test -n "$ac_ct_CC"; then
5384 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_exec_ext
in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_CC
="$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5404 if test -n "$ac_ct_CC"; then
5405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5406 echo "${ECHO_T}$ac_ct_CC" >&6; }
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5413 test -n "$ac_ct_CC" && break
5416 if test "x$ac_ct_CC" = x
; then
5419 case $cross_compiling:$ac_tool_warned in
5421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5422 whose name does not start with the host triplet. If you think this
5423 configuration is useful to you, please write to autoconf@gnu.org." >&5
5424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5425 whose name does not start with the host triplet. If you think this
5426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5427 ac_tool_warned
=yes ;;
5434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5435 See \`config.log' for more details." >&5
5436 echo "$as_me: error: no acceptable C compiler found in \$PATH
5437 See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; }
5440 # Provide some information about the compiler.
5441 echo "$as_me:$LINENO: checking for C compiler version" >&5
5442 ac_compiler
=`set X $ac_compile; echo $2`
5443 { (ac_try
="$ac_compiler --version >&5"
5445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compiler --version >&5") 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453 { (ac_try="$ac_compiler -v >&5"
5455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5456 *) ac_try_echo
=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compiler -v >&5") 2>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }
5463 { (ac_try
="$ac_compiler -V >&5"
5465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compiler -V >&5") 2>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }
5474 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5497 rm -f conftest.$ac_objext
5498 if { (ac_try="$ac_compile"
5500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5501 *) ac_try_echo
=$ac_try;;
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5506 grep -v '^ *+' conftest.er1
>conftest.err
5508 cat conftest.err
>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (case "(($ac_try" in
5513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (case "(($ac_try" in
5523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5524 *) ac_try_echo
=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_try") 2>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5540 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5543 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5544 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5545 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5546 ac_test_CFLAGS
=${CFLAGS+set}
5547 ac_save_CFLAGS
=$CFLAGS
5548 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5549 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5550 if test "${ac_cv_prog_cc_g+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_save_c_werror_flag
=$ac_c_werror_flag
5554 ac_c_werror_flag
=yes
5557 cat >conftest.
$ac_ext <<_ACEOF
5560 cat confdefs.h
>>conftest.
$ac_ext
5561 cat >>conftest.
$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5572 rm -f conftest.
$ac_objext
5573 if { (ac_try
="$ac_compile"
5575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5589 *) ac_try_echo
=$ac_try;;
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try
='test -s conftest.$ac_objext'
5597 { (case "(($ac_try" in
5598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5631 *) ac_try_echo
=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1
>conftest.err
5638 cat conftest.err
>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5642 { (case "(($ac_try" in
5643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_try") 2>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (case "(($ac_try" in
5653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5654 *) ac_try_echo
=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_try") 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.
$ac_ext >&5
5666 ac_c_werror_flag
=$ac_save_c_werror_flag
5668 cat >conftest.
$ac_ext <<_ACEOF
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5683 rm -f conftest.
$ac_objext
5684 if { (ac_try
="$ac_compile"
5686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5700 *) ac_try_echo
=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try
='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_c_werror_flag=$ac_save_c_werror_flag
5734 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5735 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5736 if test "$ac_test_CFLAGS" = set; then
5737 CFLAGS=$ac_save_CFLAGS
5738 elif test $ac_cv_prog_cc_g = yes; then
5739 if test "$GCC" = yes; then
5745 if test "$GCC" = yes; then
5751 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5752 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5753 if test "${ac_cv_prog_cc_c89+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 ac_cv_prog_cc_c89=no
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5766 #include <sys/types.h>
5767 #include <sys/stat.h>
5768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5769 struct buf { int x; };
5770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5771 static char *e (p, i)
5777 static char *f (char * (*g) (char **, int), char **p, ...)
5782 s = g (p, va_arg (v,int));
5787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5788 function prototypes and stuff, but not '\xHH' hex character constants.
5789 These don't provoke an error unfortunately, instead are silently treated
5790 as 'x'. The following induces an error, until -std is added to get
5791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5792 array size at least. It's necessary to write '\x00'==0 to get something
5793 that's true only with -std. */
5794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5797 inside strings and character constants. */
5799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5801 int test (int i, double x);
5802 struct s1 {int (*f) (int a);};
5803 struct s2 {int (*f) (double a);};
5804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5818 CC="$ac_save_CC $ac_arg"
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5823 *) ac_try_echo
=$ac_try;;
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5828 grep -v '^ *+' conftest.er1
>conftest.err
5830 cat conftest.err
>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5834 { (case "(($ac_try" in
5835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_try") 2>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (case "(($ac_try" in
5845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5846 *) ac_try_echo
=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_try") 2>&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_prog_cc_c89
=$ac_arg
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.
$ac_ext >&5
5861 rm -f core conftest.err conftest.
$ac_objext
5862 test "x$ac_cv_prog_cc_c89" != "xno" && break
5864 rm -f conftest.
$ac_ext
5869 case "x$ac_cv_prog_cc_c89" in
5871 { echo "$as_me:$LINENO: result: none needed" >&5
5872 echo "${ECHO_T}none needed" >&6; } ;;
5874 { echo "$as_me:$LINENO: result: unsupported" >&5
5875 echo "${ECHO_T}unsupported" >&6; } ;;
5877 CC
="$CC $ac_cv_prog_cc_c89"
5878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5879 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5884 ac_cpp
='$CPP $CPPFLAGS'
5885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5890 ac_cpp
='$CXXCPP $CPPFLAGS'
5891 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5894 if test -z "$CXX"; then
5895 if test -n "$CCC"; then
5898 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_CXX+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$CXX"; then
5909 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir
=.
5916 for ac_exec_ext
in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 if test -n "$CXX"; then
5930 { echo "$as_me:$LINENO: result: $CXX" >&5
5931 echo "${ECHO_T}$CXX" >&6; }
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5938 test -n "$CXX" && break
5941 if test -z "$CXX"; then
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy
$ac_prog; ac_word
=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 if test -n "$ac_ct_CXX"; then
5953 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir
=.
5960 for ac_exec_ext
in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5973 if test -n "$ac_ct_CXX"; then
5974 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5975 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 test -n "$ac_ct_CXX" && break
5985 if test "x$ac_ct_CXX" = x
; then
5988 case $cross_compiling:$ac_tool_warned in
5990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5991 whose name does not start with the host triplet. If you think this
5992 configuration is useful to you, please write to autoconf@gnu.org." >&5
5993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5994 whose name does not start with the host triplet. If you think this
5995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5996 ac_tool_warned
=yes ;;
6004 # Provide some information about the compiler.
6005 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6006 ac_compiler
=`set X $ac_compile; echo $2`
6007 { (ac_try
="$ac_compiler --version >&5"
6009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compiler --version >&5") 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }
6017 { (ac_try="$ac_compiler -v >&5"
6019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6020 *) ac_try_echo
=$ac_try;;
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_compiler -v >&5") 2>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }
6027 { (ac_try
="$ac_compiler -V >&5"
6029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_compiler -V >&5") 2>&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }
6038 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6065 *) ac_try_echo
=$ac_try;;
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compile") 2>conftest.er1
6070 grep -v '^ *+' conftest.er1
>conftest.err
6072 cat conftest.err
>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6076 { (case "(($ac_try" in
6077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (case "(($ac_try" in
6087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6088 *) ac_try_echo
=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_try") 2>&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.
$ac_ext >&5
6103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6104 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6107 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6108 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6109 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6110 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6111 ac_save_CXXFLAGS
=$CXXFLAGS
6112 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6113 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_cxx_g+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6118 ac_cxx_werror_flag
=yes
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6136 rm -f conftest.
$ac_objext
6137 if { (ac_try
="$ac_compile"
6139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6153 *) ac_try_echo
=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try
='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_prog_cxx_g=yes
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6176 cat >conftest.$ac_ext <<_ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6195 *) ac_try_echo
=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6200 grep -v '^ *+' conftest.er1
>conftest.err
6202 cat conftest.err
>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6206 { (case "(($ac_try" in
6207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_try") 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (case "(($ac_try" in
6217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6218 *) ac_try_echo
=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_try") 2>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6232 cat >conftest.
$ac_ext <<_ACEOF
6235 cat confdefs.h
>>conftest.
$ac_ext
6236 cat >>conftest.
$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6247 rm -f conftest.
$ac_objext
6248 if { (ac_try
="$ac_compile"
6250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6262 { (case "(($ac_try" in
6263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6264 *) ac_try_echo
=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_try") 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try
='test -s conftest.$ac_objext'
6272 { (case "(($ac_try" in
6273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_prog_cxx_g=yes
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6298 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6299 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6300 if test "$ac_test_CXXFLAGS" = set; then
6301 CXXFLAGS=$ac_save_CXXFLAGS
6302 elif test $ac_cv_prog_cxx_g = yes; then
6303 if test "$GXX" = yes; then
6309 if test "$GXX" = yes; then
6316 ac_cpp='$CPP $CPPFLAGS'
6317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321 { echo "$as_me:$LINENO: checking " >&5
6322 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6323 if test "${ac_cv_has_flex+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 for ac_prog in flex lex
6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
6329 set dummy $ac_prog; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_LEX+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 if test -n "$LEX"; then
6336 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_LEX="$ac_prog"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 if test -n "$LEX"; then
6357 { echo "$as_me:$LINENO: result: $LEX" >&5
6358 echo "${ECHO_T}$LEX" >&6; }
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6365 test -n "$LEX" && break
6367 test -n "$LEX" || LEX=":"
6369 if test -z "$LEXLIB"
6371 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6372 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6373 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_check_lib_save_LIBS=$LIBS
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 /* Override any GCC internal prototype to avoid an error.
6386 Use char because int might match the return type of a GCC
6387 builtin and then its argument prototype would still apply. */
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (ac_try="$ac_link"
6403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6404 *) ac_try_echo
=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_link") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1
>conftest.err
6411 cat conftest.err
>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6415 { (case "(($ac_try" in
6416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6427 *) ac_try_echo
=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_lib_fl_yywrap
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 ac_cv_lib_fl_yywrap
=no
6442 rm -f core conftest.err conftest.
$ac_objext \
6443 conftest
$ac_exeext conftest.
$ac_ext
6444 LIBS
=$ac_check_lib_save_LIBS
6446 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6447 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6448 if test $ac_cv_lib_fl_yywrap = yes; then
6451 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6452 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6453 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 ac_check_lib_save_LIBS
=$LIBS
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Override any GCC internal prototype to avoid an error.
6466 Use char because int might match the return type of a GCC
6467 builtin and then its argument prototype would still apply. */
6480 rm -f conftest.
$ac_objext conftest
$ac_exeext
6481 if { (ac_try
="$ac_link"
6483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_link") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6495 { (case "(($ac_try" in
6496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6497 *) ac_try_echo
=$ac_try;;
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_try") 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try
='test -s conftest$ac_exeext'
6505 { (case "(($ac_try" in
6506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_try") 2>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_lib_l_yywrap=yes
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_cv_lib_l_yywrap=no
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6526 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6527 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6528 if test $ac_cv_lib_l_yywrap = yes; then
6536 if test "x$LEX" != "x:"; then
6537 { echo "$as_me:$LINENO: checking lex output file root" >&5
6538 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6539 if test "${ac_cv_prog_lex_root+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 # The minimal lex program is just a single line: %%. But some broken lexes
6543 # (Solaris, I think it was) want two %% lines, so accommodate them.
6544 cat >conftest.l <<_ACEOF
6548 { (ac_try="$LEX conftest.l"
6550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6551 *) ac_try_echo
=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$LEX conftest.l") 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }
6558 if test -f lex.yy.c
; then
6559 ac_cv_prog_lex_root
=lex.yy
6560 elif test -f lexyy.c
; then
6561 ac_cv_prog_lex_root
=lexyy
6563 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6564 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6565 { (exit 1); exit 1; }; }
6568 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6569 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6571 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6573 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6574 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 # POSIX says lex can declare yytext either as a pointer or an array; the
6579 # default is implementation-dependent. Figure out which it is, since
6580 # not all implementations provide the %pointer and %array declarations.
6581 ac_cv_prog_lex_yytext_pointer
=no
6582 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6584 LIBS
="$LIBS $LEXLIB"
6585 cat >conftest.
$ac_ext <<_ACEOF
6586 `cat $LEX_OUTPUT_ROOT.c`
6588 rm -f conftest.
$ac_objext conftest
$ac_exeext
6589 if { (ac_try
="$ac_link"
6591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_link") 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6603 { (case "(($ac_try" in
6604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6605 *) ac_try_echo
=$ac_try;;
6607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608 (eval "$ac_try") 2>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try
='test -s conftest$ac_exeext'
6613 { (case "(($ac_try" in
6614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_try") 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_cv_prog_lex_yytext_pointer=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6633 rm -f "${LEX_OUTPUT_ROOT}.c"
6636 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6637 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6638 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6640 cat >>confdefs.h <<\_ACEOF
6641 #define YYTEXT_POINTER 1
6649 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6650 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6651 if test "$LEX" != "flex"; then
6652 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6653 echo "$as_me: error: flex not found but required" >&2;}
6654 { (exit 1); exit 1; }; }
6660 { echo "$as_me:$LINENO: checking " >&5
6661 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6662 if test "${llvm_cv_has_bison+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 for ac_prog in 'bison -y' byacc
6667 # Extract the first word of "$ac_prog", so it can be a program name with args.
6668 set dummy $ac_prog; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_prog_YACC+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 if test -n "$YACC"; then
6675 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_YACC="$ac_prog"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 YACC=$ac_cv_prog_YACC
6695 if test -n "$YACC"; then
6696 { echo "$as_me:$LINENO: result: $YACC" >&5
6697 echo "${ECHO_T}$YACC" >&6; }
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 test -n "$YACC" && break
6706 test -n "$YACC" || YACC="yacc"
6709 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6710 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6711 if test "$YACC" != "bison -y"; then
6713 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6714 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6720 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6721 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6722 if test "${lt_cv_path_NM+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$NM"; then
6726 # Let the user override the test.
6729 lt_nm_to_check="${ac_tool_prefix}nm"
6730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6731 lt_nm_to_check="$lt_nm_to_check nm"
6733 for lt_tmp_nm in $lt_nm_to_check; do
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6737 test -z "$ac_dir" && ac_dir=.
6738 tmp_nm="$ac_dir/$lt_tmp_nm"
6739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740 # Check to see if the nm accepts a BSD-compat flag.
6741 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6742 # nm: unknown option "B" ignored
6743 # Tru64's nm complains that
/dev
/null is an invalid object
file
6744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745 */dev
/null
* |
*'Invalid file or object type'*)
6746 lt_cv_path_NM
="$tmp_nm -B"
6750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6752 lt_cv_path_NM
="$tmp_nm -p"
6756 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757 continue # so that we can try to find one that supports BSD flags
6766 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6769 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6770 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6775 { echo "$as_me:$LINENO: checking for GNU make" >&5
6776 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6777 if test "${llvm_cv_gnu_make_command+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 llvm_cv_gnu_make_command
=''
6781 for a
in "$MAKE" make gmake gnumake
; do
6782 if test -z "$a" ; then continue ; fi ;
6783 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6785 llvm_cv_gnu_make_command
=$a ;
6790 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6791 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6792 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6796 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6797 echo "${ECHO_T}\"Not found\"" >&6; };
6801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6804 if test "$LN_S" = "ln -s"; then
6805 { echo "$as_me:$LINENO: result: yes" >&5
6806 echo "${ECHO_T}yes" >&6; }
6808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6809 echo "${ECHO_T}no, using $LN_S" >&6; }
6812 # Extract the first word of "cmp", so it can be a program name with args.
6813 set dummy
cmp; ac_word
=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_CMP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir
=.
6829 for ac_exec_ext
in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6844 if test -n "$CMP"; then
6845 { echo "$as_me:$LINENO: result: $CMP" >&5
6846 echo "${ECHO_T}$CMP" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 # Extract the first word of "cp", so it can be a program name with args.
6854 set dummy
cp; ac_word
=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_path_CP+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir
=.
6870 for ac_exec_ext
in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6885 if test -n "$CP"; then
6886 { echo "$as_me:$LINENO: result: $CP" >&5
6887 echo "${ECHO_T}$CP" >&6; }
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6894 # Extract the first word of "date", so it can be a program name with args.
6895 set dummy
date; ac_word
=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_path_DATE+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir
=.
6911 for ac_exec_ext
in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6925 DATE
=$ac_cv_path_DATE
6926 if test -n "$DATE"; then
6927 { echo "$as_me:$LINENO: result: $DATE" >&5
6928 echo "${ECHO_T}$DATE" >&6; }
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6935 # Extract the first word of "find", so it can be a program name with args.
6936 set dummy
find; ac_word
=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_path_FIND+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6951 test -z "$as_dir" && as_dir
=.
6952 for ac_exec_ext
in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6966 FIND
=$ac_cv_path_FIND
6967 if test -n "$FIND"; then
6968 { echo "$as_me:$LINENO: result: $FIND" >&5
6969 echo "${ECHO_T}$FIND" >&6; }
6971 { echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6; }
6976 # Extract the first word of "grep", so it can be a program name with args.
6977 set dummy
grep; ac_word
=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir
=.
6993 for ac_exec_ext
in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
7007 GREP
=$ac_cv_path_GREP
7008 if test -n "$GREP"; then
7009 { echo "$as_me:$LINENO: result: $GREP" >&5
7010 echo "${ECHO_T}$GREP" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 # Extract the first word of "mkdir", so it can be a program name with args.
7018 set dummy mkdir
; ac_word
=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_MKDIR+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
7048 MKDIR
=$ac_cv_path_MKDIR
7049 if test -n "$MKDIR"; then
7050 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7051 echo "${ECHO_T}$MKDIR" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7058 # Extract the first word of "mv", so it can be a program name with args.
7059 set dummy
mv; ac_word
=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_MV+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir
=.
7075 for ac_exec_ext
in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7090 if test -n "$MV"; then
7091 { echo "$as_me:$LINENO: result: $MV" >&5
7092 echo "${ECHO_T}$MV" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir
=.
7115 for ac_exec_ext
in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 RANLIB
=$ac_cv_prog_RANLIB
7128 if test -n "$RANLIB"; then
7129 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7130 echo "${ECHO_T}$RANLIB" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7138 if test -z "$ac_cv_prog_RANLIB"; then
7139 ac_ct_RANLIB
=$RANLIB
7140 # Extract the first word of "ranlib", so it can be a program name with args.
7141 set dummy ranlib
; ac_word
=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 if test -n "$ac_ct_RANLIB"; then
7148 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir
=.
7155 for ac_exec_ext
in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7168 if test -n "$ac_ct_RANLIB"; then
7169 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7176 if test "x$ac_ct_RANLIB" = x
; then
7179 case $cross_compiling:$ac_tool_warned in
7181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7182 whose name does not start with the host triplet. If you think this
7183 configuration is useful to you, please write to autoconf@gnu.org." >&5
7184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet. If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7187 ac_tool_warned
=yes ;;
7189 RANLIB
=$ac_ct_RANLIB
7192 RANLIB
="$ac_cv_prog_RANLIB"
7195 # Extract the first word of "rm", so it can be a program name with args.
7196 set dummy
rm; ac_word
=$2
7197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199 if test "${ac_cv_path_RM+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir
=.
7212 for ac_exec_ext
in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7227 if test -n "$RM"; then
7228 { echo "$as_me:$LINENO: result: $RM" >&5
7229 echo "${ECHO_T}$RM" >&6; }
7231 { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7236 # Extract the first word of "sed", so it can be a program name with args.
7237 set dummy
sed; ac_word
=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_SED+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir
=.
7253 for ac_exec_ext
in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7268 if test -n "$SED"; then
7269 { echo "$as_me:$LINENO: result: $SED" >&5
7270 echo "${ECHO_T}$SED" >&6; }
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7277 # Extract the first word of "tar", so it can be a program name with args.
7278 set dummy
tar; ac_word
=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_TAR+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir
=.
7294 for ac_exec_ext
in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7309 if test -n "$TAR"; then
7310 { echo "$as_me:$LINENO: result: $TAR" >&5
7311 echo "${ECHO_T}$TAR" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 # Extract the first word of "pwd", so it can be a program name with args.
7319 set dummy
pwd; ac_word
=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_BINPWD+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir
=.
7335 for ac_exec_ext
in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7349 BINPWD
=$ac_cv_path_BINPWD
7350 if test -n "$BINPWD"; then
7351 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7352 echo "${ECHO_T}$BINPWD" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7360 # Extract the first word of "Graphviz", so it can be a program name with args.
7361 set dummy Graphviz
; ac_word
=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir
=.
7377 for ac_exec_ext
in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7391 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7392 if test -n "$GRAPHVIZ"; then
7393 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7394 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7401 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7403 cat >>confdefs.h
<<\_ACEOF
7404 #define HAVE_GRAPHVIZ 1
7407 if test "$llvm_cv_os_type" = "MingW" ; then
7408 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7411 cat >>confdefs.h
<<_ACEOF
7412 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7416 # Extract the first word of "dot", so it can be a program name with args.
7417 set dummy dot
; ac_word
=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_DOT+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir
=.
7433 for ac_exec_ext
in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7448 if test -n "$DOT"; then
7449 { echo "$as_me:$LINENO: result: $DOT" >&5
7450 echo "${ECHO_T}$DOT" >&6; }
7452 { echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6; }
7457 if test "$DOT" != "echo dot" ; then
7459 cat >>confdefs.h
<<\_ACEOF
7463 if test "$llvm_cv_os_type" = "MingW" ; then
7464 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7467 cat >>confdefs.h
<<_ACEOF
7468 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7472 for ac_prog
in gv gsview32
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475 set dummy
$ac_prog; ac_word
=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_path_GV+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir
=.
7491 for ac_exec_ext
in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 if test -n "$GV"; then
7506 { echo "$as_me:$LINENO: result: $GV" >&5
7507 echo "${ECHO_T}$GV" >&6; }
7509 { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7514 test -n "$GV" && break
7516 test -n "$GV" || GV
="echo gv"
7518 if test "$GV" != "echo gv" ; then
7520 cat >>confdefs.h
<<\_ACEOF
7524 if test "$llvm_cv_os_type" = "MingW" ; then
7525 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7528 cat >>confdefs.h
<<_ACEOF
7529 #define LLVM_PATH_GV "$GV${EXEEXT}"
7533 # Extract the first word of "dotty", so it can be a program name with args.
7534 set dummy dotty
; ac_word
=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_DOTTY+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir
=.
7550 for ac_exec_ext
in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7564 DOTTY
=$ac_cv_path_DOTTY
7565 if test -n "$DOTTY"; then
7566 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7567 echo "${ECHO_T}$DOTTY" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 if test "$DOTTY" != "echo dotty" ; then
7576 cat >>confdefs.h
<<\_ACEOF
7577 #define HAVE_DOTTY 1
7580 if test "$llvm_cv_os_type" = "MingW" ; then
7581 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7584 cat >>confdefs.h
<<_ACEOF
7585 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7591 # Extract the first word of "perl", so it can be a program name with args.
7592 set dummy perl
; ac_word
=$2
7593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595 if test "${ac_cv_path_PERL+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir
=.
7608 for ac_exec_ext
in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7622 PERL
=$ac_cv_path_PERL
7623 if test -n "$PERL"; then
7624 { echo "$as_me:$LINENO: result: $PERL" >&5
7625 echo "${ECHO_T}$PERL" >&6; }
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 if test "$PERL" != "none"; then
7633 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7634 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7635 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7636 { echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6; }
7640 { echo "$as_me:$LINENO: result: not found" >&5
7641 echo "${ECHO_T}not found" >&6; }
7646 if test x
"$PERL" = xnone
; then
7649 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7650 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7651 { (exit 1); exit 1; }; }
7657 # Find a good install program. We prefer a C program (faster),
7658 # so one script is as good as another. But avoid the broken or
7659 # incompatible versions:
7660 # SysV /etc/install, /usr/sbin/install
7661 # SunOS /usr/etc/install
7662 # IRIX /sbin/install
7664 # AmigaOS /C/install, which installs bootblocks on floppy discs
7665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7668 # OS/2's system install, which has a completely different semantic
7669 # ./install, which can be erroneously created by make from ./install.sh.
7670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7672 if test -z "$INSTALL"; then
7673 if test "${ac_cv_path_install+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir
=.
7681 # Account for people who put trailing slashes in PATH elements.
7683 .
/ | .
// |
/cC
/* | \
7684 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7685 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7688 # OSF1 and SCO ODT 3.0 have their own names for install.
7689 # Don't use installbsd from OSF since it installs stuff as root
7691 for ac_prog
in ginstall scoinst
install; do
7692 for ac_exec_ext
in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7694 if test $ac_prog = install &&
7695 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7696 # AIX install. It has an incompatible calling convention.
7698 elif test $ac_prog = install &&
7699 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7700 # program-specific install script used by HP pwplus--don't use.
7703 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7716 if test "${ac_cv_path_install+set}" = set; then
7717 INSTALL
=$ac_cv_path_install
7719 # As a last resort, use the slow shell script. Don't cache a
7720 # value for INSTALL within a source directory, because that will
7721 # break other packages using the cache if that directory is
7722 # removed, or if the value is a relative name.
7723 INSTALL
=$ac_install_sh
7726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7727 echo "${ECHO_T}$INSTALL" >&6; }
7729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7730 # It thinks the first close brace ends the variable substitution.
7731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7735 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7738 # Extract the first word of "bzip2", so it can be a program name with args.
7739 set dummy
bzip2; ac_word
=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_path_BZIP2+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir
=.
7755 for ac_exec_ext
in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 BZIP2
=$ac_cv_path_BZIP2
7769 if test -n "$BZIP2"; then
7770 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7771 echo "${ECHO_T}$BZIP2" >&6; }
7773 { echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6; }
7778 # Extract the first word of "doxygen", so it can be a program name with args.
7779 set dummy doxygen
; ac_word
=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir
=.
7795 for ac_exec_ext
in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 DOXYGEN
=$ac_cv_path_DOXYGEN
7809 if test -n "$DOXYGEN"; then
7810 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7811 echo "${ECHO_T}$DOXYGEN" >&6; }
7813 { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7818 # Extract the first word of "groff", so it can be a program name with args.
7819 set dummy
groff; ac_word
=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_path_GROFF+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir
=.
7835 for ac_exec_ext
in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 GROFF
=$ac_cv_path_GROFF
7849 if test -n "$GROFF"; then
7850 { echo "$as_me:$LINENO: result: $GROFF" >&5
7851 echo "${ECHO_T}$GROFF" >&6; }
7853 { echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6; }
7858 # Extract the first word of "gzip", so it can be a program name with args.
7859 set dummy
gzip; ac_word
=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_path_GZIP+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir
=.
7875 for ac_exec_ext
in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 GZIP
=$ac_cv_path_GZIP
7889 if test -n "$GZIP"; then
7890 { echo "$as_me:$LINENO: result: $GZIP" >&5
7891 echo "${ECHO_T}$GZIP" >&6; }
7893 { echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6; }
7898 # Extract the first word of "pod2html", so it can be a program name with args.
7899 set dummy pod2html
; ac_word
=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_path_POD2HTML+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir
=.
7915 for ac_exec_ext
in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 POD2HTML
=$ac_cv_path_POD2HTML
7929 if test -n "$POD2HTML"; then
7930 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7931 echo "${ECHO_T}$POD2HTML" >&6; }
7933 { echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6; }
7938 # Extract the first word of "pod2man", so it can be a program name with args.
7939 set dummy pod2man
; ac_word
=$2
7940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7942 if test "${ac_cv_path_POD2MAN+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir
=.
7955 for ac_exec_ext
in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 POD2MAN
=$ac_cv_path_POD2MAN
7969 if test -n "$POD2MAN"; then
7970 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7971 echo "${ECHO_T}$POD2MAN" >&6; }
7973 { echo "$as_me:$LINENO: result: no" >&5
7974 echo "${ECHO_T}no" >&6; }
7978 # Extract the first word of "runtest", so it can be a program name with args.
7979 set dummy runtest
; ac_word
=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_path_RUNTEST+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir
=.
7995 for ac_exec_ext
in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 RUNTEST
=$ac_cv_path_RUNTEST
8009 if test -n "$RUNTEST"; then
8010 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8011 echo "${ECHO_T}$RUNTEST" >&6; }
8013 { echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6; }
8020 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8021 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8023 # Check whether --with-tclinclude was given.
8024 if test "${with_tclinclude+set}" = set; then
8025 withval
=$with_tclinclude; with_tclinclude
=${withval}
8030 if test "${ac_cv_path_tclsh+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 if test x
"${with_tclinclude}" != x
; then
8035 if test -f ${with_tclinclude}/tclsh
; then
8036 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8037 elif test -f ${with_tclinclude}/src
/tclsh
; then
8038 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8040 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8041 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8042 { (exit 1); exit 1; }; }
8046 if test x
"${ac_cv_path_tclsh}" = x
; then
8047 { echo "$as_me:$LINENO: result: none" >&5
8048 echo "${ECHO_T}none" >&6; }
8049 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
8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
8052 set dummy
$ac_prog; ac_word
=$2
8053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8055 if test "${ac_cv_path_TCLSH+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8067 test -z "$as_dir" && as_dir
=.
8068 for ac_exec_ext
in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 TCLSH
=$ac_cv_path_TCLSH
8082 if test -n "$TCLSH"; then
8083 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8084 echo "${ECHO_T}$TCLSH" >&6; }
8086 { echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6; }
8091 test -n "$TCLSH" && break
8094 if test x
"${TCLSH}" = x
; then
8095 ac_cv_path_tclsh
='';
8097 ac_cv_path_tclsh
="${TCLSH}";
8100 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8101 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8102 TCLSH="${ac_cv_path_tclsh}"
8108 # Extract the first word of "zip", so it can be a program name with args.
8109 set dummy zip; ac_word=$2
8110 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8111 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8112 if test "${ac_cv_path_ZIP+set}" = set; then
8113 echo $ECHO_N "(cached
) $ECHO_C" >&6
8117 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8128 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8139 if test -n "$ZIP"; then
8140 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8141 echo "${ECHO_T}$ZIP" >&6; }
8143 { echo "$as_me:$LINENO: result
: no
" >&5
8144 echo "${ECHO_T}no
" >&6; }
8148 for ac_prog in ocamlc
8150 # Extract the first word of "$ac_prog", so it can be a program name with args.
8151 set dummy $ac_prog; ac_word=$2
8152 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8153 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8154 if test "${ac_cv_path_OCAMLC+set}" = set; then
8155 echo $ECHO_N "(cached
) $ECHO_C" >&6
8159 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8180 OCAMLC=$ac_cv_path_OCAMLC
8181 if test -n "$OCAMLC"; then
8182 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8183 echo "${ECHO_T}$OCAMLC" >&6; }
8185 { echo "$as_me:$LINENO: result
: no
" >&5
8186 echo "${ECHO_T}no
" >&6; }
8190 test -n "$OCAMLC" && break
8193 for ac_prog in ocamlopt
8195 # Extract the first word of "$ac_prog", so it can be a program name with args.
8196 set dummy $ac_prog; ac_word=$2
8197 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8198 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8199 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8200 echo $ECHO_N "(cached
) $ECHO_C" >&6
8204 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8215 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8225 OCAMLOPT=$ac_cv_path_OCAMLOPT
8226 if test -n "$OCAMLOPT"; then
8227 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8228 echo "${ECHO_T}$OCAMLOPT" >&6; }
8230 { echo "$as_me:$LINENO: result
: no
" >&5
8231 echo "${ECHO_T}no
" >&6; }
8235 test -n "$OCAMLOPT" && break
8238 for ac_prog in ocamldep
8240 # Extract the first word of "$ac_prog", so it can be a program name with args.
8241 set dummy $ac_prog; ac_word=$2
8242 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8243 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8244 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8245 echo $ECHO_N "(cached
) $ECHO_C" >&6
8249 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8260 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8270 OCAMLDEP=$ac_cv_path_OCAMLDEP
8271 if test -n "$OCAMLDEP"; then
8272 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8273 echo "${ECHO_T}$OCAMLDEP" >&6; }
8275 { echo "$as_me:$LINENO: result
: no
" >&5
8276 echo "${ECHO_T}no
" >&6; }
8280 test -n "$OCAMLDEP" && break
8283 for ac_prog in ocamldoc
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286 set dummy $ac_prog; ac_word=$2
8287 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8288 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8289 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8290 echo $ECHO_N "(cached
) $ECHO_C" >&6
8294 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8305 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8315 OCAMLDOC=$ac_cv_path_OCAMLDOC
8316 if test -n "$OCAMLDOC"; then
8317 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8318 echo "${ECHO_T}$OCAMLDOC" >&6; }
8320 { echo "$as_me:$LINENO: result
: no
" >&5
8321 echo "${ECHO_T}no
" >&6; }
8325 test -n "$OCAMLDOC" && break
8328 for ac_prog in gas as
8330 # Extract the first word of "$ac_prog", so it can be a program name with args.
8331 set dummy $ac_prog; ac_word=$2
8332 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8333 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8334 if test "${ac_cv_path_GAS+set}" = set; then
8335 echo $ECHO_N "(cached
) $ECHO_C" >&6
8339 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8350 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8361 if test -n "$GAS"; then
8362 { echo "$as_me:$LINENO: result
: $GAS" >&5
8363 echo "${ECHO_T}$GAS" >&6; }
8365 { echo "$as_me:$LINENO: result
: no
" >&5
8366 echo "${ECHO_T}no
" >&6; }
8370 test -n "$GAS" && break
8374 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8375 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8376 if test "${llvm_cv_link_use_r+set}" = set; then
8377 echo $ECHO_N "(cached
) $ECHO_C" >&6
8380 ac_cpp='$CPP $CPPFLAGS'
8381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8386 CFLAGS="$CFLAGS -Wl,-R.
"
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8397 int main() { return 0; }
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (ac_try="$ac_link"
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_link") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1 >conftest.err
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
8434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 llvm_cv_link_use_r=yes
8438 echo "$as_me: failed program was
:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 llvm_cv_link_use_r=no
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8448 ac_cpp='$CPP $CPPFLAGS'
8449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8455 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8456 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8457 if test "$llvm_cv_link_use_r" = yes ; then
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_LINK_R 1
8468 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8469 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8470 if test "${ac_cv_c_const+set}" = set; then
8471 echo $ECHO_N "(cached
) $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8483 /* FIXME: Include the comments suggested by Paul. */
8485 /* Ultrix mips cc rejects this. */
8486 typedef int charset[2];
8488 /* SunOS 4.1.1 cc rejects this. */
8489 char const *const *ccp;
8491 /* NEC SVR4.0.2 mips cc rejects this. */
8492 struct point {int x, y;};
8493 static struct point const zero = {0,0};
8494 /* AIX XL C 1.02.0.0 rejects this.
8495 It does not let you subtract one const X* pointer from another in
8496 an arm of an if-expression whose if-part is not a constant
8498 const char *g = "string
";
8499 ccp = &g + (g ? g-g : 0);
8500 /* HPUX 7.0 cc rejects these. */
8503 ccp = (char const *const *) p;
8504 { /* SCO 3.2v4 cc rejects this. */
8506 char const *s = 0 ? (char *) 0 : (char const *) 0;
8511 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8513 const int *foo = &x[0];
8516 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8517 typedef const int *iptr;
8521 { /* AIX XL C 1.02.0.0 rejects this saying
8522 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8523 struct s { int j; const int *ap[3]; };
8524 struct s *b; b->j = 5;
8526 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8530 return !x[0] && !zero.x;
8537 rm -f conftest.$ac_objext
8538 if { (ac_try="$ac_compile"
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_compile") 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_try") 2>&5
8559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_try") 2>&5
8569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8570 (exit $ac_status); }; }; then
8573 echo "$as_me: failed program was
:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8582 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8583 if test $ac_cv_c_const = no; then
8585 cat >>confdefs.h <<\_ACEOF
8597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8598 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8599 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8600 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached
) $ECHO_C" >&6
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 #include <sys/types.h>
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest.$ac_objext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 eval "$as_ac_Header=yes"
8658 echo "$as_me: failed program was
:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 eval "$as_ac_Header=no
"
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 ac_res=`eval echo '${'$as_ac_Header'}'`
8667 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8668 echo "${ECHO_T}$ac_res" >&6; }
8669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8674 ac_header_dirent=$ac_hdr; break
8678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8679 if test $ac_header_dirent = dirent.h; then
8680 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8681 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8682 if test "${ac_cv_search_opendir+set}" = set; then
8683 echo $ECHO_N "(cached
) $ECHO_C" >&6
8685 ac_func_search_save_LIBS=$LIBS
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
8708 for ac_lib in '' dir; do
8709 if test -z "$ac_lib"; then
8710 ac_res="none required
"
8713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (ac_try="$ac_link"
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_link") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest$ac_exeext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_search_opendir=$ac_res
8751 echo "$as_me: failed program was
:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8757 rm -f core conftest.err conftest.$ac_objext \
8759 if test "${ac_cv_search_opendir+set}" = set; then
8763 if test "${ac_cv_search_opendir+set}" = set; then
8766 ac_cv_search_opendir=no
8769 LIBS=$ac_func_search_save_LIBS
8771 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8772 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8773 ac_res=$ac_cv_search_opendir
8774 if test "$ac_res" != no; then
8775 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8780 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8781 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8782 if test "${ac_cv_search_opendir+set}" = set; then
8783 echo $ECHO_N "(cached
) $ECHO_C" >&6
8785 ac_func_search_save_LIBS=$LIBS
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8808 for ac_lib in '' x; do
8809 if test -z "$ac_lib"; then
8810 ac_res="none required
"
8813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_search_opendir=$ac_res
8851 echo "$as_me: failed program was
:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8857 rm -f core conftest.err conftest.$ac_objext \
8859 if test "${ac_cv_search_opendir+set}" = set; then
8863 if test "${ac_cv_search_opendir+set}" = set; then
8866 ac_cv_search_opendir=no
8869 LIBS=$ac_func_search_save_LIBS
8871 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8873 ac_res=$ac_cv_search_opendir
8874 if test "$ac_res" != no; then
8875 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8882 for ac_header in dlfcn.h
8884 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8885 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8886 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8887 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8889 echo $ECHO_N "(cached
) $ECHO_C" >&6
8891 ac_res=`eval echo '${'$as_ac_Header'}'`
8892 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8893 echo "${ECHO_T}$ac_res" >&6; }
8895 # Is the header compilable?
8896 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8897 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 #include <$ac_header>
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_header_compiler=yes
8943 echo "$as_me: failed program was
:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_header_compiler=no
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8951 echo "${ECHO_T}$ac_header_compiler" >&6; }
8953 # Is the header present?
8954 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8955 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 #include <$ac_header>
8964 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8976 (exit $ac_status); } >/dev/null; then
8977 if test -s conftest.err; then
8978 ac_cpp_err=$ac_c_preproc_warn_flag
8979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8986 if test -z "$ac_cpp_err"; then
8987 ac_header_preproc=yes
8989 echo "$as_me: failed program was
:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_header_preproc=no
8995 rm -f conftest.err conftest.$ac_ext
8996 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8997 echo "${ECHO_T}$ac_header_preproc" >&6; }
8999 # So? What about this header?
9000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9002 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9003 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9004 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9006 ac_header_preproc=yes
9009 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9010 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9011 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9012 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9013 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9014 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9015 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9016 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9017 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9019 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9020 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9022 ## ----------------------------------- ##
9023 ## Report this to llvmbugs@cs.uiuc.edu ##
9024 ## ----------------------------------- ##
9026 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9029 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9030 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9032 echo $ECHO_N "(cached
) $ECHO_C" >&6
9034 eval "$as_ac_Header=\
$ac_header_preproc"
9036 ac_res=`eval echo '${'$as_ac_Header'}'`
9037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9038 echo "${ECHO_T}$ac_res" >&6; }
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9050 # Check whether --enable-ltdl-install was given.
9051 if test "${enable_ltdl_install+set}" = set; then
9052 enableval=$enable_ltdl_install;
9058 if test x"${enable_ltdl_install-no}" != xno; then
9060 INSTALL_LTDL_FALSE='#'
9062 INSTALL_LTDL_TRUE='#'
9068 if test x"${enable_ltdl_convenience-no}" != xno; then
9069 CONVENIENCE_LTDL_TRUE=
9070 CONVENIENCE_LTDL_FALSE='#'
9072 CONVENIENCE_LTDL_TRUE='#'
9073 CONVENIENCE_LTDL_FALSE=
9077 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9078 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9080 libname_spec='lib$name'
9088 shlibpath_overrides_runpath=unknown
9090 dynamic_linker="$host_os ld.so
"
9091 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9092 if test "$GCC" = yes; then
9093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9095 # if the path contains ";" then we assume it to be the separator
9096 # otherwise default to the standard path separator (i.e. ":") - it is
9097 # assumed that no part of a normal pathname contains ";" but that should
9098 # okay in the real world where ";" in dirpaths is itself problematic.
9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9104 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9106 need_lib_prefix=unknown
9107 hardcode_into_libs=no
9109 # when you set need_version to no, make sure it does not cause -set_version
9110 # flags to be left without arguments
9111 need_version=unknown
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117 shlibpath_var=LIBPATH
9119 # AIX 3 has no versioning support, so we append a major version to the name.
9120 soname_spec='${libname}${release}${shared_ext}$major'
9127 hardcode_into_libs=yes
9128 if test "$host_cpu" = ia64; then
9129 # AIX 5 supports IA64
9130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9133 # With GCC up to 2.95.x, collect2 would create an import file
9134 # for dependence libraries. The import file would start with
9135 # the line `#! .'. This would cause the generated library to
9136 # depend on `.', always an invalid library. This was fixed in
9137 # development snapshots of GCC prior to 3.0.
9139 aix4 | aix4.[01] | aix4.[01].*)
9140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150 # soname into executable. Probably we can add versioning support to
9151 # collect2, so additional links can be useful in future.
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154 # instead of lib<name>.a to let people know that these are not
9155 # typical AIX shared libraries.
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 # We preserve .a as extension for shared libraries through AIX4.2
9159 # and later when we are not doing run time linking.
9160 library_names_spec='${libname}${release}.a $libname.a'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LIBPATH
9168 library_names_spec='$libname.ixlibrary $libname.a'
9169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170 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'
9174 library_names_spec='${libname}${shared_ext}'
9175 dynamic_linker="$host_os ld.so
"
9176 shlibpath_var=LIBRARY_PATH
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9187 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9188 # the default ld.so.conf also contains /usr/contrib/lib and
9189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190 # libtool to hard-code these into programs
9193 cygwin* | mingw* | pw32*)
9194 version_type=windows
9199 case $GCC,$host_os in
9200 yes,cygwin* | yes,mingw* | yes,pw32*)
9201 library_names_spec='$libname.dll.a'
9202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203 postinstall_cmds='base_file=`basename \${file}`~
9204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205 dldir=$destdir/`dirname \$dlpath`~
9206 test -d \$dldir || mkdir -p \$dldir~
9207 $install_prog $dir/$dlname \$dldir/$dlname~
9208 chmod a+x \$dldir/$dlname'
9209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210 dlpath=$dir/\$dldll~
9212 shlibpath_overrides_runpath=yes
9216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9221 # MinGW DLLs use traditional 'lib' prefix
9222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225 # It is most probably a Windows format PATH printed by
9226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227 # path with ; separators, and with drive letters. We can handle the
9228 # drive letters (cygwin fileutils understands them), so leave them,
9229 # especially as we might pass files found there to a mingw objdump,
9230 # which wouldn't understand a cygwinified path. Ahh.
9231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9237 # pw32 DLLs use 'pw' prefix rather than 'lib'
9238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9247 dynamic_linker='Win32 ld.exe'
9248 # FIXME: first we should search . and the directory the executable is in
9252 darwin* | rhapsody*)
9253 dynamic_linker="$host_os dyld
"
9257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258 soname_spec='${libname}${release}${major}$shared_ext'
9259 shlibpath_overrides_runpath=yes
9260 shlibpath_var=DYLD_LIBRARY_PATH
9261 shrext_cmds='.dylib'
9262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9263 if test "$GCC" = yes; then
9264 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
"`
9266 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9293 dynamic_linker='GNU ld.so'
9296 freebsd* | dragonfly*)
9297 # DragonFly does not have aout. When/if they implement a new
9298 # versioning mechanism, adjust this.
9299 if test -x /usr/bin/objformat; then
9300 objformat=`/usr/bin/objformat`
9303 freebsd[123]*) objformat=aout ;;
9307 version_type=freebsd-$objformat
9308 case $version_type in
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9319 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9324 freebsd3.[01]* | freebsdelf3.[01]*)
9325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9330 shlibpath_overrides_runpath=no
9331 hardcode_into_libs=yes
9333 freebsd*) # from 4.6 on
9334 shlibpath_overrides_runpath=yes
9335 hardcode_into_libs=yes
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 hardcode_into_libs=yes
9350 hpux9* | hpux10* | hpux11*)
9351 # Give a soname corresponding to the major version so that dld.sl refuses to
9352 # link against other versions.
9359 hardcode_into_libs=yes
9360 dynamic_linker="$host_os dld.so
"
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 if test "X
$HPUX_IA64_MODE" = X32; then
9366 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9368 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9374 hardcode_into_libs=yes
9375 dynamic_linker="$host_os dld.sl
"
9376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9385 dynamic_linker="$host_os dld.sl
"
9386 shlibpath_var=SHLIB_PATH
9387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9393 postinstall_cmds='chmod 555 $lib'
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 hardcode_into_libs=yes
9408 irix5* | irix6* | nonstopux*)
9410 nonstopux*) version_type=nonstopux ;;
9412 if test "$lt_cv_prog_gnu_ld" = yes; then
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9423 irix5* | nonstopux*)
9427 case $LD in # libtool.m4 will add one of these switches to LD
9428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9429 libsuff= shlibsuff= libmagic=32-bit;;
9430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9431 libsuff=32 shlibsuff=N32 libmagic=N32;;
9432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9434 *) libsuff= shlibsuff= libmagic=never-match;;
9438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9439 shlibpath_overrides_runpath=no
9440 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9441 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9442 hardcode_into_libs=yes
9445 # No shared lib support for Linux oldld, aout, or coff.
9446 linux*oldld* | linux*aout* | linux*coff*)
9450 # This must be Linux ELF.
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 # This implies no fast_install, which is unacceptable.
9461 # Some rework will be needed to allow for fast_install
9462 # before this can be enabled.
9463 hardcode_into_libs=yes
9465 # Append ld.so.conf contents to the search path
9466 if test -f /etc/ld.so.conf; then
9467 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' ' '`
9468 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9471 # We used to test for /lib/ld.so.1 and disable shared libraries on
9472 # powerpc, because MkLinux only supported shared libraries with the
9473 # GNU dynamic linker. Since this was broken with cross compilers,
9474 # most powerpc-linux boxes support dynamic linking these days and
9475 # people can always --disable-shared, the test was removed, and we
9476 # assume the GNU/Linux dynamic linker is in use.
9477 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=no
9488 hardcode_into_libs=yes
9489 dynamic_linker='GNU ld.so'
9496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9499 dynamic_linker='NetBSD (a.out) ld.so'
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 dynamic_linker='NetBSD ld.elf_so'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 hardcode_into_libs=yes
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 shlibpath_overrides_runpath=yes
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9529 sys_lib_dlsearch_path_spec="/usr
/lib
"
9531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9534 *) need_version=no ;;
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9541 openbsd2.[89] | openbsd2.[89].*)
9542 shlibpath_overrides_runpath=no
9545 shlibpath_overrides_runpath=yes
9549 shlibpath_overrides_runpath=yes
9554 libname_spec='$name'
9557 library_names_spec='$libname${shared_ext} $libname.a'
9558 dynamic_linker='OS/2 ld.exe'
9559 shlibpath_var=LIBPATH
9562 osf3* | osf4* | osf5*)
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=yes
9581 hardcode_into_libs=yes
9582 # ldd complains unless libraries are executable
9583 postinstall_cmds='chmod +x $lib'
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 if test "$with_gnu_ld" = yes; then
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 case $host_vendor in
9605 shlibpath_overrides_runpath=no
9607 export_dynamic_flag_spec='${wl}-Blargedynsym'
9608 runpath_var=LD_RUN_PATH
9616 shlibpath_overrides_runpath=no
9617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9623 if test -d /usr/nec ;then
9625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9626 soname_spec='$libname${shared_ext}.$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9632 version_type=freebsd-elf
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 if test "$with_gnu_ld" = yes; then
9640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9641 shlibpath_overrides_runpath=no
9643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9644 shlibpath_overrides_runpath=yes
9647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9651 sys_lib_dlsearch_path_spec='/usr/lib'
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9665 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9666 echo "${ECHO_T}$dynamic_linker" >&6; }
9667 test "$dynamic_linker" = no && can_build_shared=no
9669 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9670 if test "$GCC" = yes; then
9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9675 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9676 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9677 if test "${libltdl_cv_shlibext+set}" = set; then
9678 echo $ECHO_N "(cached
) $ECHO_C" >&6
9682 eval libltdl_cv_shlibext=$shrext_cmds
9685 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9686 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9687 if test -n "$libltdl_cv_shlibext"; then
9689 cat >>confdefs.h <<_ACEOF
9690 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9696 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9697 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9698 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9699 echo $ECHO_N "(cached
) $ECHO_C" >&6
9701 libltdl_cv_shlibpath_var="$shlibpath_var"
9703 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9704 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9705 if test -n "$libltdl_cv_shlibpath_var"; then
9707 cat >>confdefs.h <<_ACEOF
9708 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9714 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9715 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9716 if test "${libltdl_cv_sys_search_path+set}" = set; then
9717 echo $ECHO_N "(cached
) $ECHO_C" >&6
9719 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9721 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9722 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9723 if test -n "$libltdl_cv_sys_search_path"; then
9725 for dir in $libltdl_cv_sys_search_path; do
9726 if test -z "$sys_search_path"; then
9727 sys_search_path="$dir"
9729 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9733 cat >>confdefs.h <<_ACEOF
9734 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9739 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9740 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9741 if test "${libltdl_cv_objdir+set}" = set; then
9742 echo $ECHO_N "(cached
) $ECHO_C" >&6
9744 libltdl_cv_objdir="$objdir"
9745 if test -n "$objdir"; then
9748 rm -f .libs 2>/dev/null
9749 mkdir .libs 2>/dev/null
9750 if test -d .libs; then
9751 libltdl_cv_objdir=.libs
9753 # MS-DOS does not allow filenames that begin with a dot.
9754 libltdl_cv_objdir=_libs
9756 rmdir .libs 2>/dev/null
9760 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9761 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9763 cat >>confdefs.h <<_ACEOF
9764 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9772 # Check for command to grab the raw symbol name followed by C symbol from nm.
9773 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9774 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9775 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9776 echo $ECHO_N "(cached
) $ECHO_C" >&6
9779 # These are sane defaults that work on at least a few old systems.
9780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9782 # Character class describing NM global symbol codes.
9783 symcode='[BCDEGRST]'
9785 # Regexp to match symbols that can be accessed directly from C.
9786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9788 # Transform an extracted symbol line into a proper C declaration
9789 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9791 # Transform an extracted symbol line into symbol name and symbol address
9792 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'"
9794 # Define system-specific variables.
9799 cygwin* | mingw* | pw32*)
9800 symcode='[ABCDGISTW]'
9802 hpux*) # Its linker distinguishes data from code symbols
9803 if test "$host_cpu" = ia64; then
9804 symcode='[ABCDEGRST]'
9806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9807 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'"
9810 if test "$host_cpu" = ia64; then
9811 symcode='[ABCDGIRSTW]'
9812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9813 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'"
9817 symcode='[BCDEGRST]'
9820 symcode='[BCDEGQRST]'
9831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9839 # Handle CRLF in mingw tool chain
9843 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9847 # If we're using GNU nm, then use its standard symbol codes.
9848 case `$NM -V 2>&1` in
9849 *GNU* | *'with BFD'*)
9850 symcode='[ABCDGIRSTW]' ;;
9853 # Try without a prefix undercore, then with it.
9854 for ac_symprfx in "" "_
"; do
9856 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9857 symxfrm="\\1 $ac_symprfx\\2 \\2"
9859 # Write the raw and C identifiers.
9860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9862 # Check to see that the pipe works correctly.
9866 cat > conftest.$ac_ext <<EOF
9871 void nm_test_func(){}
9875 int main(){nm_test_var='a';nm_test_func();return(0);}
9878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9879 (eval $ac_compile) 2>&5
9881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9882 (exit $ac_status); }; then
9883 # Now try to grab the symbols.
9885 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9886 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9889 (exit $ac_status); } && test -s "$nlist"; then
9890 # Try sorting and uniquifying the output.
9891 if sort "$nlist" | uniq > "$nlist"T; then
9892 mv -f "$nlist"T "$nlist"
9897 # Make sure that we snagged all the symbols we need.
9898 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9899 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9900 cat <<EOF > conftest.$ac_ext
9906 # Now generate the symbol file.
9907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9909 cat <<EOF >> conftest.$ac_ext
9910 #if defined (__STDC__) && __STDC__
9911 # define lt_ptr_t void *
9913 # define lt_ptr_t char *
9917 /* The mapping between symbol names and symbols. */
9922 lt_preloaded_symbols[] =
9925 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9926 cat <<\EOF >> conftest.$ac_ext
9934 # Now try linking the two files.
9935 mv conftest.$ac_objext conftstm.$ac_objext
9936 lt_save_LIBS="$LIBS"
9937 lt_save_CFLAGS="$CFLAGS"
9938 LIBS="conftstm.
$ac_objext"
9939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9944 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9947 LIBS="$lt_save_LIBS"
9948 CFLAGS="$lt_save_CFLAGS"
9950 echo "cannot
find nm_test_func
in $nlist" >&5
9953 echo "cannot
find nm_test_var
in $nlist" >&5
9956 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
9959 echo "$progname: failed program was
:" >&5
9960 cat conftest.$ac_ext >&5
9962 rm -f conftest* conftst*
9964 # Do not use the global_symbol_pipe unless it works.
9965 if test "$pipe_works" = yes; then
9968 lt_cv_sys_global_symbol_pipe=
9974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9975 lt_cv_sys_global_symbol_to_cdecl=
9977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9978 { echo "$as_me:$LINENO: result
: failed
" >&5
9979 echo "${ECHO_T}failed
" >&6; }
9981 { echo "$as_me:$LINENO: result
: ok
" >&5
9982 echo "${ECHO_T}ok
" >&6; }
9986 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
9987 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
9988 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9989 echo $ECHO_N "(cached
) $ECHO_C" >&6
9991 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9992 libltdl_cv_preloaded_symbols=yes
9994 libltdl_cv_preloaded_symbols=no
9998 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
9999 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10000 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_PRELOADED_SYMBOLS 1
10011 ac_cpp='$CPP $CPPFLAGS'
10012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10017 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10018 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10019 if test "${ac_cv_func_shl_load+set}" = set; then
10020 echo $ECHO_N "(cached
) $ECHO_C" >&6
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define shl_load innocuous_shl_load
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char shl_load (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10038 # include <limits.h>
10040 # include <assert.h>
10045 /* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
10052 /* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
10055 #if defined __stub_shl_load || defined __stub___shl_load
10062 return shl_load ();
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_func_shl_load=yes
10103 echo "$as_me: failed program was
:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_func_shl_load=no
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10112 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10113 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10114 if test $ac_cv_func_shl_load = yes; then
10116 cat >>confdefs.h <<\_ACEOF
10117 #define HAVE_SHL_LOAD 1
10121 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10122 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10124 echo $ECHO_N "(cached
) $ECHO_C" >&6
10126 ac_check_lib_save_LIBS=$LIBS
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10145 return shl_load ();
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10159 grep -v '^ *+' conftest.er1 >conftest.err
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165 { (case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_try") 2>&5
10172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_lib_dld_shl_load=yes
10186 echo "$as_me: failed program was
:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_cv_lib_dld_shl_load=no
10192 rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LIBS=$ac_check_lib_save_LIBS
10196 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10197 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10198 if test $ac_cv_lib_dld_shl_load = yes; then
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_SHL_LOAD 1
10204 LIBADD_DL="$LIBADD_DL -ldld"
10206 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10207 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10209 echo $ECHO_N "(cached
) $ECHO_C" >&6
10211 ac_check_lib_save_LIBS=$LIBS
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_lib_dl_dlopen=yes
10271 echo "$as_me: failed program was
:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_lib_dl_dlopen=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10283 if test $ac_cv_lib_dl_dlopen = yes; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_LIBDL 1
10289 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10298 # include <dlfcn.h>
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (ac_try="$ac_link"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_link") 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest$ac_exeext'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10342 (exit $ac_status); }; }; then
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_LIBDL 1
10347 libltdl_cv_func_dlopen="yes"
10349 echo "$as_me: failed program was
:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10353 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10355 echo $ECHO_N "(cached
) $ECHO_C" >&6
10357 ac_check_lib_save_LIBS=$LIBS
10358 LIBS="-lsvld $LIBS"
10359 cat >conftest.$ac_ext <<_ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_link") 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_lib_svld_dlopen=yes
10417 echo "$as_me: failed program was
:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_cv_lib_svld_dlopen=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10429 if test $ac_cv_lib_svld_dlopen = yes; then
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_LIBDL 1
10435 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10437 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10438 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10440 echo $ECHO_N "(cached
) $ECHO_C" >&6
10442 ac_check_lib_save_LIBS=$LIBS
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10461 return dld_link ();
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_try") 2>&5
10488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_try") 2>&5
10498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_lib_dld_dld_link=yes
10502 echo "$as_me: failed program was
:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 ac_cv_lib_dld_dld_link=no
10508 rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10512 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10513 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10514 if test $ac_cv_lib_dld_dld_link = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10520 LIBADD_DL="$LIBADD_DL -ldld"
10522 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10523 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10524 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10525 echo $ECHO_N "(cached
) $ECHO_C" >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10535 #define _dyld_func_lookup innocuous__dyld_func_lookup
10537 /* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char _dyld_func_lookup (); below.
10539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540 <limits.h> exists even on freestanding compilers. */
10543 # include <limits.h>
10545 # include <assert.h>
10548 #undef _dyld_func_lookup
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10556 char _dyld_func_lookup ();
10557 /* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
10560 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10567 return _dyld_func_lookup ();
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_link") 2>conftest.er1
10581 grep -v '^ *+' conftest.er1 >conftest.err
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_cv_func__dyld_func_lookup=yes
10608 echo "$as_me: failed program was
:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_cv_func__dyld_func_lookup=no
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10618 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10619 if test $ac_cv_func__dyld_func_lookup = yes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_DYLD 1
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10648 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10650 lt_save_LIBS="$LIBS"
10651 LIBS="$LIBS $LIBADD_DL"
10653 for ac_func in dlerror
10655 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10656 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10657 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10658 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached
) $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10669 #define $ac_func innocuous_$ac_func
10671 /* System header to define __stub macros and hopefully few prototypes,
10672 which can conflict with char $ac_func (); below.
10673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10674 <limits.h> exists even on freestanding compilers. */
10677 # include <limits.h>
10679 # include <assert.h>
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10691 /* The GNU C library defines this for functions which it implements
10692 to always fail with ENOSYS. Some functions are actually named
10693 something starting with __ and the normal name is an alias. */
10694 #if defined __stub_$ac_func || defined __stub___$ac_func
10701 return $ac_func ();
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (ac_try="$ac_link"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 eval "$as_ac_var=yes"
10742 echo "$as_me: failed program was
:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 eval "$as_ac_var=no
"
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10751 ac_res=`eval echo '${'$as_ac_var'}'`
10752 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10753 echo "${ECHO_T}$ac_res" >&6; }
10754 if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10762 LIBS="$lt_save_LIBS"
10765 ac_cpp='$CPP $CPPFLAGS'
10766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10773 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10774 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10775 echo $ECHO_N "(cached
) $ECHO_C" >&6
10777 ac_cv_sys_symbol_underscore=no
10778 cat > conftest.$ac_ext <<EOF
10779 void nm_test_func(){}
10780 int main(){nm_test_func;return 0;}
10782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>&5
10785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10786 (exit $ac_status); }; then
10787 # Now try to grab the symbols.
10788 ac_nlist=conftest.nm
10789 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10790 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10793 (exit $ac_status); } && test -s "$ac_nlist"; then
10794 # See whether the symbols have a leading underscore.
10795 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10796 ac_cv_sys_symbol_underscore=yes
10798 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10801 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10805 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10808 echo "configure
: failed program was
:" >&5
10814 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10815 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10818 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10819 if test x"$libltdl_cv_func_dlopen" = xyes ||
10820 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10821 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10822 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10823 if test "${libltdl_cv_need_uscore+set}" = set; then
10824 echo $ECHO_N "(cached
) $ECHO_C" >&6
10826 libltdl_cv_need_uscore=unknown
10828 LIBS="$LIBS $LIBADD_DL"
10829 if test "$cross_compiling" = yes; then :
10830 libltdl_cv_need_uscore=cross
10832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10833 lt_status=$lt_dlunknown
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10835 "configure
"
10836 #include "confdefs.h
"
10845 # define LT_DLGLOBAL RTLD_GLOBAL
10848 # define LT_DLGLOBAL DL_GLOBAL
10850 # define LT_DLGLOBAL 0
10854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10855 find out it does not work in some platform. */
10856 #ifndef LT_DLLAZY_OR_NOW
10858 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10861 # define LT_DLLAZY_OR_NOW DL_LAZY
10864 # define LT_DLLAZY_OR_NOW RTLD_NOW
10867 # define LT_DLLAZY_OR_NOW DL_NOW
10869 # define LT_DLLAZY_OR_NOW 0
10877 extern "C
" void exit (int);
10880 void fnord() { int i=42;}
10883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10884 int status = $lt_dlunknown;
10888 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10889 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10890 /* dlclose (self); */
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10902 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10903 (./conftest; exit; ) >&5 2>/dev/null
10905 case x$lt_status in
10906 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10907 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10908 x$lt_dlunknown|x*) ;;
10911 # compilation failed
10920 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10921 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10925 if test x"$libltdl_cv_need_uscore" = xyes; then
10927 cat >>confdefs.h <<\_ACEOF
10928 #define NEED_USCORE 1
10934 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
10935 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
10936 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10937 echo $ECHO_N "(cached
) $ECHO_C" >&6
10939 # PORTME does your system automatically load deplibs for dlopen?
10940 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10941 # For now, we just catch OSes we know something about -- in the
10942 # future, we'll try test this programmatically.
10943 libltdl_cv_sys_dlopen_deplibs=unknown
10945 aix3*|aix4.1.*|aix4.2.*)
10946 # Unknown whether this is true for these versions of AIX, but
10947 # we want this `case' here to explicitly catch those versions.
10948 libltdl_cv_sys_dlopen_deplibs=unknown
10951 libltdl_cv_sys_dlopen_deplibs=yes
10954 # Assuming the user has installed a libdl from somewhere, this is true
10955 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10956 libltdl_cv_sys_dlopen_deplibs=yes
10958 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10959 # GNU and its variants, using gnu ld.so (Glibc)
10960 libltdl_cv_sys_dlopen_deplibs=yes
10963 libltdl_cv_sys_dlopen_deplibs=yes
10966 libltdl_cv_sys_dlopen_deplibs=yes
10968 irix[12345]*|irix6.[01]*)
10969 # Catch all versions of IRIX before 6.2, and indicate that we don't
10970 # know how it worked for any of those versions.
10971 libltdl_cv_sys_dlopen_deplibs=unknown
10974 # The case above catches anything before 6.2, and it's known that
10975 # at 6.2 and later dlopen does load deplibs.
10976 libltdl_cv_sys_dlopen_deplibs=yes
10979 libltdl_cv_sys_dlopen_deplibs=yes
10982 libltdl_cv_sys_dlopen_deplibs=yes
10985 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10986 # it did *not* use an RPATH in a shared library to find objects the
10987 # library depends on, so we explictly say `no'.
10988 libltdl_cv_sys_dlopen_deplibs=no
10990 osf5.0|osf5.0a|osf5.1)
10991 # dlopen *does* load deplibs and with the right loader patch applied
10992 # it even uses RPATH in a shared library to search for shared objects
10993 # that the library depends on, but there's no easy way to know if that
10994 # patch is installed. Since this is the case, all we can really
10995 # say is unknown -- it depends on the patch being installed. If
10996 # it is, this changes to `yes'. Without it, it would be `no'.
10997 libltdl_cv_sys_dlopen_deplibs=unknown
11000 # the two cases above should catch all versions of osf <= 5.1. Read
11001 # the comments above for what we know about them.
11002 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11003 # is used to find them so we can finally say `yes'.
11004 libltdl_cv_sys_dlopen_deplibs=yes
11007 libltdl_cv_sys_dlopen_deplibs=yes
11009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11010 libltdl_cv_sys_dlopen_deplibs=yes
11015 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11016 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11017 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11019 cat >>confdefs.h <<\_ACEOF
11020 #define LTDL_DLOPEN_DEPLIBS 1
11026 for ac_header in argz.h
11028 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11029 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11030 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11031 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11032 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11033 echo $ECHO_N "(cached
) $ECHO_C" >&6
11035 ac_res=`eval echo '${'$as_ac_Header'}'`
11036 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11037 echo "${ECHO_T}$ac_res" >&6; }
11039 # Is the header compilable?
11040 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11041 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11049 #include <$ac_header>
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066 { (case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_try") 2>&5
11073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_header_compiler=yes
11087 echo "$as_me: failed program was
:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_header_compiler=no
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11095 echo "${ECHO_T}$ac_header_compiler" >&6; }
11097 # Is the header present?
11098 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11099 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 #include <$ac_header>
11108 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11116 grep -v '^ *+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11130 if test -z "$ac_cpp_err"; then
11131 ac_header_preproc=yes
11133 echo "$as_me: failed program was
:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 ac_header_preproc=no
11139 rm -f conftest.err conftest.$ac_ext
11140 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11141 echo "${ECHO_T}$ac_header_preproc" >&6; }
11143 # So? What about this header?
11144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11146 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11147 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11148 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11150 ac_header_preproc=yes
11153 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11154 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11155 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11156 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11157 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11158 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11159 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11160 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11161 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11163 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11164 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11166 ## ----------------------------------- ##
11167 ## Report this to llvmbugs@cs.uiuc.edu ##
11168 ## ----------------------------------- ##
11170 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11173 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11174 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached
) $ECHO_C" >&6
11178 eval "$as_ac_Header=\
$ac_header_preproc"
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11195 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11196 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11197 if test "${ac_cv_type_error_t+set}" = set; then
11198 echo $ECHO_N "(cached
) $ECHO_C" >&6
11200 cat >conftest.$ac_ext <<_ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11210 typedef error_t ac__type_new_;
11214 if ((ac__type_new_ *) 0)
11216 if (sizeof (ac__type_new_))
11222 rm -f conftest.$ac_objext
11223 if { (ac_try="$ac_compile"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_compile") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1 >conftest.err
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_type_error_t=yes
11258 echo "$as_me: failed program was
:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_type_error_t=no
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11268 if test $ac_cv_type_error_t = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define HAVE_ERROR_T 1
11277 cat >>confdefs.h <<\_ACEOF
11278 #define error_t int
11289 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11291 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11292 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11293 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11294 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11295 echo $ECHO_N "(cached
) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define $ac_func innocuous_$ac_func
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11313 # include <limits.h>
11315 # include <assert.h>
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub_$ac_func || defined __stub___$ac_func
11337 return $ac_func ();
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 eval "$as_ac_var=yes"
11378 echo "$as_me: failed program was
:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 eval "$as_ac_var=no
"
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11387 ac_res=`eval echo '${'$as_ac_var'}'`
11388 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11389 echo "${ECHO_T}$ac_res" >&6; }
11390 if test `eval echo '${'$as_ac_var'}'` = yes; then
11391 cat >>confdefs.h <<_ACEOF
11392 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11425 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11428 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11429 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11430 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11431 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11433 echo $ECHO_N "(cached
) $ECHO_C" >&6
11435 ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11437 echo "${ECHO_T}$ac_res" >&6; }
11439 # Is the header compilable?
11440 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11441 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 #include <$ac_header>
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_header_compiler=yes
11487 echo "$as_me: failed program was
:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_header_compiler=no
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11495 echo "${ECHO_T}$ac_header_compiler" >&6; }
11497 # Is the header present?
11498 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11499 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include <$ac_header>
11508 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11516 grep -v '^ *+' conftest.er1 >conftest.err
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11530 if test -z "$ac_cpp_err"; then
11531 ac_header_preproc=yes
11533 echo "$as_me: failed program was
:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_preproc=no
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11547 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11550 ac_header_preproc=yes
11553 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11554 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11555 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11556 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11557 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11558 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11559 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11560 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11563 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11564 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11566 ## ----------------------------------- ##
11567 ## Report this to llvmbugs@cs.uiuc.edu ##
11568 ## ----------------------------------- ##
11570 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11573 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11574 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached
) $ECHO_C" >&6
11578 eval "$as_ac_Header=\
$ac_header_preproc"
11580 ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11598 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11600 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11601 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
11608 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11611 # Is the header compilable?
11612 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11613 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11614 cat >conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 $ac_includes_default
11621 #include <$ac_header>
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_compile") 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_try") 2>&5
11655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_header_compiler=yes
11659 echo "$as_me: failed program was
:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_header_compiler=no
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11667 echo "${ECHO_T}$ac_header_compiler" >&6; }
11669 # Is the header present?
11670 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11671 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <$ac_header>
11680 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11692 (exit $ac_status); } >/dev/null; then
11693 if test -s conftest.err; then
11694 ac_cpp_err=$ac_c_preproc_warn_flag
11695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11702 if test -z "$ac_cpp_err"; then
11703 ac_header_preproc=yes
11705 echo "$as_me: failed program was
:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_header_preproc=no
11711 rm -f conftest.err conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11713 echo "${ECHO_T}$ac_header_preproc" >&6; }
11715 # So? What about this header?
11716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11718 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11719 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11720 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11722 ac_header_preproc=yes
11725 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11726 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11727 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11728 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11729 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11730 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11731 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11732 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11733 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11735 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11736 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11738 ## ----------------------------------- ##
11739 ## Report this to llvmbugs@cs.uiuc.edu ##
11740 ## ----------------------------------- ##
11742 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11745 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11746 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11747 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11748 echo $ECHO_N "(cached
) $ECHO_C" >&6
11750 eval "$as_ac_Header=\
$ac_header_preproc"
11752 ac_res=`eval echo '${'$as_ac_Header'}'`
11753 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11754 echo "${ECHO_T}$ac_res" >&6; }
11757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11768 for ac_header in string.h strings.h
11770 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11775 echo $ECHO_N "(cached
) $ECHO_C" >&6
11777 ac_res=`eval echo '${'$as_ac_Header'}'`
11778 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11779 echo "${ECHO_T}$ac_res" >&6; }
11781 # Is the header compilable?
11782 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11783 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11784 cat >conftest.$ac_ext <<_ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11791 #include <$ac_header>
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_header_compiler=yes
11829 echo "$as_me: failed program was
:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_header_compiler=no
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6; }
11839 # Is the header present?
11840 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11841 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <$ac_header>
11850 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11851 case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11858 grep -v '^ *+' conftest.er1 >conftest.err
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11862 (exit $ac_status); } >/dev/null; then
11863 if test -s conftest.err; then
11864 ac_cpp_err=$ac_c_preproc_warn_flag
11865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11872 if test -z "$ac_cpp_err"; then
11873 ac_header_preproc=yes
11875 echo "$as_me: failed program was
:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_header_preproc=no
11881 rm -f conftest.err conftest.$ac_ext
11882 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11883 echo "${ECHO_T}$ac_header_preproc" >&6; }
11885 # So? What about this header?
11886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11889 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11890 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11892 ac_header_preproc=yes
11895 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11896 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11897 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11898 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11899 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11900 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11901 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11902 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11903 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11905 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11906 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11908 ## ----------------------------------- ##
11909 ## Report this to llvmbugs@cs.uiuc.edu ##
11910 ## ----------------------------------- ##
11912 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11915 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11916 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11917 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11918 echo $ECHO_N "(cached
) $ECHO_C" >&6
11920 eval "$as_ac_Header=\
$ac_header_preproc"
11922 ac_res=`eval echo '${'$as_ac_Header'}'`
11923 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11939 for ac_func in strchr index
11941 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11942 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11943 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11944 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11945 echo $ECHO_N "(cached
) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955 #define $ac_func innocuous_$ac_func
11957 /* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char $ac_func (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11963 # include <limits.h>
11965 # include <assert.h>
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined __stub_$ac_func || defined __stub___$ac_func
11987 return $ac_func ();
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 eval "$as_ac_var=yes"
12028 echo "$as_me: failed program was
:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 eval "$as_ac_var=no
"
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12037 ac_res=`eval echo '${'$as_ac_var'}'`
12038 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12039 echo "${ECHO_T}$ac_res" >&6; }
12040 if test `eval echo '${'$as_ac_var'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12050 for ac_func in strrchr rindex
12052 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12053 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12054 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12056 echo $ECHO_N "(cached
) $ECHO_C" >&6
12058 cat >conftest.$ac_ext <<_ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12074 # include <limits.h>
12076 # include <assert.h>
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12098 return $ac_func ();
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 eval "$as_ac_var=yes"
12139 echo "$as_me: failed program was
:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 eval "$as_ac_var=no
"
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12148 ac_res=`eval echo '${'$as_ac_var'}'`
12149 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12150 echo "${ECHO_T}$ac_res" >&6; }
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12161 for ac_func in memcpy bcopy
12163 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12164 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12165 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12166 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached
) $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12177 #define $ac_func innocuous_$ac_func
12179 /* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char $ac_func (); below.
12181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182 <limits.h> exists even on freestanding compilers. */
12185 # include <limits.h>
12187 # include <assert.h>
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined __stub_$ac_func || defined __stub___$ac_func
12209 return $ac_func ();
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_try") 2>&5
12246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12250 echo "$as_me: failed program was
:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 eval "$as_ac_var=no
"
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12259 ac_res=`eval echo '${'$as_ac_var'}'`
12260 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12261 echo "${ECHO_T}$ac_res" >&6; }
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12272 for ac_func in memmove strcmp
12274 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12275 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12276 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12277 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12278 echo $ECHO_N "(cached
) $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288 #define $ac_func innocuous_$ac_func
12290 /* System header to define __stub macros and hopefully few prototypes,
12291 which can conflict with char $ac_func (); below.
12292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
12296 # include <limits.h>
12298 # include <assert.h>
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12310 /* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
12313 #if defined __stub_$ac_func || defined __stub___$ac_func
12320 return $ac_func ();
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_link") 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12340 { (case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_try") 2>&5
12347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_try") 2>&5
12357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 eval "$as_ac_var=yes"
12361 echo "$as_me: failed program was
:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12364 eval "$as_ac_var=no
"
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12370 ac_res=`eval echo '${'$as_ac_var'}'`
12371 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12372 echo "${ECHO_T}$ac_res" >&6; }
12373 if test `eval echo '${'$as_ac_var'}'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12384 for ac_func in closedir opendir readdir
12386 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12387 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12388 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12389 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12390 echo $ECHO_N "(cached
) $ECHO_C" >&6
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define $ac_func innocuous_$ac_func
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12408 # include <limits.h>
12410 # include <assert.h>
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined __stub_$ac_func || defined __stub___$ac_func
12432 return $ac_func ();
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 eval "$as_ac_var=yes"
12473 echo "$as_me: failed program was
:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 eval "$as_ac_var=no
"
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12482 ac_res=`eval echo '${'$as_ac_var'}'`
12483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12484 echo "${ECHO_T}$ac_res" >&6; }
12485 if test `eval echo '${'$as_ac_var'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12494 # Check whether --enable-shared was given.
12495 if test "${enable_shared+set}" = set; then
12496 enableval=$enable_shared; p=${PACKAGE-default}
12498 yes) enable_shared=yes ;;
12499 no) enable_shared=no ;;
12502 # Look at the argument we got. We use all the common list separators.
12503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12504 for pkg in $enableval; do
12506 if test "X
$pkg" = "X
$p"; then
12518 # Check whether --enable-static was given.
12519 if test "${enable_static+set}" = set; then
12520 enableval=$enable_static; p=${PACKAGE-default}
12522 yes) enable_static=yes ;;
12523 no) enable_static=no ;;
12526 # Look at the argument we got. We use all the common list separators.
12527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12528 for pkg in $enableval; do
12530 if test "X
$pkg" = "X
$p"; then
12542 # Check whether --enable-fast-install was given.
12543 if test "${enable_fast_install+set}" = set; then
12544 enableval=$enable_fast_install; p=${PACKAGE-default}
12546 yes) enable_fast_install=yes ;;
12547 no) enable_fast_install=no ;;
12549 enable_fast_install=no
12550 # Look at the argument we got. We use all the common list separators.
12551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12552 for pkg in $enableval; do
12554 if test "X
$pkg" = "X
$p"; then
12555 enable_fast_install=yes
12562 enable_fast_install=yes
12566 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12567 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12568 if test "${lt_cv_path_SED+set}" = set; then
12569 echo $ECHO_N "(cached
) $ECHO_C" >&6
12571 # Loop through the user's path and test for sed and gsed.
12572 # Then use that list of sed's as ones to test for truncation.
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12577 test -z "$as_dir" && as_dir=.
12578 for lt_ac_prog in sed gsed; do
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12581 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12588 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12589 # along with /bin/sed that truncates output.
12590 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12591 test ! -f $lt_ac_sed && continue
12592 cat /dev/null > conftest.in
12594 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12595 # Check for GNU sed and select it if it is found.
12596 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12597 lt_cv_path_SED=$lt_ac_sed
12601 cat conftest.in conftest.in >conftest.tmp
12602 mv conftest.tmp conftest.in
12603 cp conftest.in conftest.nl
12605 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12606 cmp -s conftest.out conftest.nl || break
12607 # 10000 chars as input seems more than enough
12608 test $lt_ac_count -gt 10 && break
12609 lt_ac_count=`expr $lt_ac_count + 1`
12610 if test $lt_ac_count -gt $lt_ac_max; then
12611 lt_ac_max=$lt_ac_count
12612 lt_cv_path_SED=$lt_ac_sed
12619 SED=$lt_cv_path_SED
12620 { echo "$as_me:$LINENO: result
: $SED" >&5
12621 echo "${ECHO_T}$SED" >&6; }
12624 # Check whether --with-gnu-ld was given.
12625 if test "${with_gnu_ld+set}" = set; then
12626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12632 if test "$GCC" = yes; then
12633 # Check if gcc -print-prog-name=ld gives a path.
12634 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12635 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12638 # gcc leaves a trailing carriage return which upsets mingw
12639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12644 # Accept absolute paths.
12646 re_direlt='/[^/][^/]*/\.\./'
12647 # Canonicalize the pathname of ld
12648 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12650 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12652 test -z "$LD" && LD="$ac_prog"
12655 # If it fails, then pretend we aren't using GCC.
12659 # If it is relative, then search for the first ld in PATH.
12660 with_gnu_ld=unknown
12663 elif test "$with_gnu_ld" = yes; then
12664 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12665 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12667 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12668 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12670 if test "${lt_cv_path_LD+set}" = set; then
12671 echo $ECHO_N "(cached
) $ECHO_C" >&6
12673 if test -z "$LD"; then
12674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12675 for ac_dir in $PATH; do
12677 test -z "$ac_dir" && ac_dir=.
12678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12679 lt_cv_path_LD="$ac_dir/$ac_prog"
12680 # Check to see if the program is GNU ld. I'd rather use --version,
12681 # but apparently some variants of GNU ld only accept -v.
12682 # Break only if it was the GNU/non-GNU ld that we prefer.
12683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12684 *GNU* | *'with BFD'*)
12685 test "$with_gnu_ld" != no && break
12688 test "$with_gnu_ld" != yes && break
12695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12699 LD="$lt_cv_path_LD"
12700 if test -n "$LD"; then
12701 { echo "$as_me:$LINENO: result
: $LD" >&5
12702 echo "${ECHO_T}$LD" >&6; }
12704 { echo "$as_me:$LINENO: result
: no
" >&5
12705 echo "${ECHO_T}no
" >&6; }
12707 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12708 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12709 { (exit 1); exit 1; }; }
12710 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12711 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12712 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12713 echo $ECHO_N "(cached
) $ECHO_C" >&6
12715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12716 case `$LD -v 2>&1 </dev/null` in
12717 *GNU* | *'with BFD'*)
12718 lt_cv_prog_gnu_ld=yes
12721 lt_cv_prog_gnu_ld=no
12725 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12726 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12727 with_gnu_ld=$lt_cv_prog_gnu_ld
12730 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12731 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12732 if test "${lt_cv_ld_reload_flag+set}" = set; then
12733 echo $ECHO_N "(cached
) $ECHO_C" >&6
12735 lt_cv_ld_reload_flag='-r'
12737 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12738 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12739 reload_flag=$lt_cv_ld_reload_flag
12740 case $reload_flag in
12742 *) reload_flag=" $reload_flag" ;;
12744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12747 if test "$GCC" = yes; then
12748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12755 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12756 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12757 if test "${lt_cv_deplibs_check_method+set}" = set; then
12758 echo $ECHO_N "(cached
) $ECHO_C" >&6
12760 lt_cv_file_magic_cmd='$MAGIC_CMD'
12761 lt_cv_file_magic_test_file=
12762 lt_cv_deplibs_check_method='unknown'
12763 # Need to set the preceding variable on all platforms that support
12764 # interlibrary dependencies.
12765 # 'none' -- dependencies not supported.
12766 # `unknown' -- same as none, but documents that we really don't know.
12767 # 'pass_all' -- all dependencies passed with no checks.
12768 # 'test_compile' -- check by making test program.
12769 # 'file_magic [[regex]]' -- check by looking for files in library path
12770 # which responds to the $file_magic_cmd with a given extended regex.
12771 # If you have `file' or equivalent on your system and you're not sure
12772 # whether `pass_all' will *always* work, you probably want this one.
12776 lt_cv_deplibs_check_method=pass_all
12780 lt_cv_deplibs_check_method=pass_all
12784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12785 lt_cv_file_magic_cmd='/usr/bin/file -L'
12786 lt_cv_file_magic_test_file=/shlib/libc.so
12790 # func_win32_libid is a shell function defined in ltmain.sh
12791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12792 lt_cv_file_magic_cmd='func_win32_libid'
12796 # Base MSYS/MinGW do not provide the 'file' command needed by
12797 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12798 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12799 lt_cv_file_magic_cmd='$OBJDUMP -f'
12802 darwin* | rhapsody*)
12803 lt_cv_deplibs_check_method=pass_all
12806 freebsd* | kfreebsd*-gnu | dragonfly*)
12807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12810 # Not sure whether the presence of OpenBSD here was a mistake.
12811 # Let's accept both of them until this is cleared up.
12812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12813 lt_cv_file_magic_cmd=/usr/bin/file
12814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12818 lt_cv_deplibs_check_method=pass_all
12823 lt_cv_deplibs_check_method=pass_all
12826 hpux10.20* | hpux11*)
12827 lt_cv_file_magic_cmd=/usr/bin/file
12830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12834 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]'
12835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12849 irix5* | irix6* | nonstopux*)
12851 *-32|*"-32 ") libmagic=32-bit;;
12852 *-n32|*"-n32 ") libmagic=N32;;
12853 *-64|*"-64 ") libmagic=64-bit;;
12854 *) libmagic=never-match;;
12856 lt_cv_deplibs_check_method=pass_all
12859 # This must be Linux ELF.
12861 lt_cv_deplibs_check_method=pass_all
12865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12874 lt_cv_file_magic_cmd=/usr/bin/file
12875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12879 lt_cv_deplibs_check_method=unknown
12883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12890 osf3* | osf4* | osf5*)
12891 lt_cv_deplibs_check_method=pass_all
12895 lt_cv_deplibs_check_method=pass_all
12899 case $host_vendor in
12901 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]'
12902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12905 lt_cv_deplibs_check_method=pass_all
12908 lt_cv_file_magic_cmd='/bin/file'
12909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12912 lt_cv_file_magic_cmd='/bin/file'
12913 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12914 lt_cv_file_magic_test_file=/lib/libc.so
12917 lt_cv_deplibs_check_method=pass_all
12920 lt_cv_deplibs_check_method=pass_all
12925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12926 lt_cv_deplibs_check_method=pass_all
12931 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
12932 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12933 file_magic_cmd=$lt_cv_file_magic_cmd
12934 deplibs_check_method=$lt_cv_deplibs_check_method
12935 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12939 # If no C compiler was specified, use CC.
12942 # If no C compiler flags were specified, use CFLAGS.
12943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12945 # Allow CC to be a program name with arguments.
12948 # Check whether --enable-libtool-lock was given.
12949 if test "${enable_libtool_lock+set}" = set; then
12950 enableval=$enable_libtool_lock;
12953 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12955 # Some flags need to be propagated to the compiler or linker for good
12959 # Find out which ABI we are using.
12960 echo 'int i;' > conftest.$ac_ext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>&5
12964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12965 (exit $ac_status); }; then
12966 case `/usr/bin/file conftest.$ac_objext` in
12968 HPUX_IA64_MODE="32"
12971 HPUX_IA64_MODE="64"
12978 # Find out which ABI we are using.
12979 echo '#line 12979 "configure
"' > conftest.$ac_ext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12984 (exit $ac_status); }; then
12985 if test "$lt_cv_prog_gnu_ld" = yes; then
12986 case `/usr/bin/file conftest.$ac_objext` in
12988 LD="${LD-ld} -melf32bsmip"
12991 LD="${LD-ld} -melf32bmipn32"
12994 LD="${LD-ld} -melf64bmip"
12998 case `/usr/bin/file conftest.$ac_objext` in
13014 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13015 # Find out which ABI we are using.
13016 echo 'int i;' > conftest.$ac_ext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>&5
13020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13021 (exit $ac_status); }; then
13022 case `/usr/bin/file conftest.o` in
13026 LD="${LD-ld} -m elf_i386
"
13028 ppc64-*linux*|powerpc64-*linux*)
13029 LD="${LD-ld} -m elf32ppclinux
"
13032 LD="${LD-ld} -m elf_s390
"
13035 LD="${LD-ld} -m elf32_sparc
"
13042 LD="${LD-ld} -m elf_x86_64
"
13044 ppc*-*linux*|powerpc*-*linux*)
13045 LD="${LD-ld} -m elf64ppc
"
13048 LD="${LD-ld} -m elf64_s390
"
13051 LD="${LD-ld} -m elf64_sparc
"
13061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13062 SAVE_CFLAGS="$CFLAGS"
13063 CFLAGS="$CFLAGS -belf"
13064 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13065 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13066 if test "${lt_cv_cc_needs_belf+set}" = set; then
13067 echo $ECHO_N "(cached
) $ECHO_C" >&6
13070 ac_cpp='$CPP $CPPFLAGS'
13071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075 cat >conftest.$ac_ext <<_ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13090 rm -f conftest.$ac_objext conftest$ac_exeext
13091 if { (ac_try="$ac_link"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_link") 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_try") 2>&5
13112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_try") 2>&5
13122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 lt_cv_cc_needs_belf=yes
13126 echo "$as_me: failed program was
:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 lt_cv_cc_needs_belf=no
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13135 ac_cpp='$CPP $CPPFLAGS'
13136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13141 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13142 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13143 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13145 CFLAGS="$SAVE_CFLAGS"
13149 # Find out which ABI we are using.
13150 echo 'int i;' > conftest.$ac_ext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13155 (exit $ac_status); }; then
13156 case `/usr/bin/file conftest.o` in
13158 case $lt_cv_prog_gnu_ld in
13159 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13160 *) LD="${LD-ld} -64" ;;
13171 need_locks="$enable_libtool_lock"
13176 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13177 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13178 (test "X
$CXX" != "Xg
++"))) ; then
13180 ac_cpp='$CXXCPP $CPPFLAGS'
13181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13185 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13186 if test -z "$CXXCPP"; then
13187 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13188 echo $ECHO_N "(cached
) $ECHO_C" >&6
13190 # Double quotes because CXXCPP needs to be expanded
13191 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13193 ac_preproc_ok=false
13194 for ac_cxx_preproc_warn_flag in '' yes
13196 # Use a header file that comes with gcc, so configuring glibc
13197 # with a fresh cross-compiler works.
13198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13199 # <limits.h> exists even on freestanding compilers.
13200 # On the NeXT, cc -E runs the code through the compiler's parser,
13201 # not just through cpp. "Syntax error
" is here to catch this case.
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 # include <limits.h>
13211 # include <assert.h>
13215 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13227 (exit $ac_status); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_cxx_preproc_warn_flag
13230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13237 if test -z "$ac_cpp_err"; then
13240 echo "$as_me: failed program was
:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 # Broken: fails on valid input.
13247 rm -f conftest.err conftest.$ac_ext
13249 # OK, works on sane cases. Now check whether nonexistent headers
13250 # can be detected and how.
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #include <ac_nonexistent.h>
13259 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13271 (exit $ac_status); } >/dev/null; then
13272 if test -s conftest.err; then
13273 ac_cpp_err=$ac_cxx_preproc_warn_flag
13274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13281 if test -z "$ac_cpp_err"; then
13282 # Broken: success on invalid input.
13285 echo "$as_me: failed program was
:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 # Passes both tests.
13293 rm -f conftest.err conftest.$ac_ext
13296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13297 rm -f conftest.err conftest.$ac_ext
13298 if $ac_preproc_ok; then
13303 ac_cv_prog_CXXCPP=$CXXCPP
13306 CXXCPP=$ac_cv_prog_CXXCPP
13308 ac_cv_prog_CXXCPP=$CXXCPP
13310 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13311 echo "${ECHO_T}$CXXCPP" >&6; }
13312 ac_preproc_ok=false
13313 for ac_cxx_preproc_warn_flag in '' yes
13315 # Use a header file that comes with gcc, so configuring glibc
13316 # with a fresh cross-compiler works.
13317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13318 # <limits.h> exists even on freestanding compilers.
13319 # On the NeXT, cc -E runs the code through the compiler's parser,
13320 # not just through cpp. "Syntax error
" is here to catch this case.
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13328 # include <limits.h>
13330 # include <assert.h>
13334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_cxx_preproc_warn_flag
13349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13356 if test -z "$ac_cpp_err"; then
13359 echo "$as_me: failed program was
:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 # Broken: fails on valid input.
13366 rm -f conftest.err conftest.$ac_ext
13368 # OK, works on sane cases. Now check whether nonexistent headers
13369 # can be detected and how.
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include <ac_nonexistent.h>
13378 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13390 (exit $ac_status); } >/dev/null; then
13391 if test -s conftest.err; then
13392 ac_cpp_err=$ac_cxx_preproc_warn_flag
13393 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13400 if test -z "$ac_cpp_err"; then
13401 # Broken: success on invalid input.
13404 echo "$as_me: failed program was
:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 # Passes both tests.
13412 rm -f conftest.err conftest.$ac_ext
13415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13416 rm -f conftest.err conftest.$ac_ext
13417 if $ac_preproc_ok; then
13420 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13421 See \
`config.log' for more details." >&5
13422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13423 See \`config.log
' for more details." >&2;}
13424 { (exit 1); exit 1; }; }
13428 ac_cpp='$CXXCPP $CPPFLAGS'
13429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13430 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13437 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13438 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13439 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13440 if test -n "$ac_tool_prefix"; then
13441 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
13443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13447 if test "${ac_cv_prog_F77+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 if test -n "$F77"; then
13451 ac_cv_prog_F77="$F77" # Let the user override the test.
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $PATH
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13460 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13470 F77=$ac_cv_prog_F77
13471 if test -n "$F77"; then
13472 { echo "$as_me:$LINENO: result: $F77" >&5
13473 echo "${ECHO_T}$F77" >&6; }
13475 { echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6; }
13480 test -n "$F77" && break
13483 if test -z "$F77"; then
13485 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
13487 # Extract the first word of "$ac_prog", so it can be a program name with args.
13488 set dummy $ac_prog; ac_word=$2
13489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 if test -n "$ac_ct_F77"; then
13495 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13504 ac_cv_prog_ac_ct_F77="$ac_prog"
13505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13514 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13515 if test -n "$ac_ct_F77"; then
13516 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13517 echo "${ECHO_T}$ac_ct_F77" >&6; }
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13524 test -n "$ac_ct_F77" && break
13527 if test "x$ac_ct_F77" = x; then
13530 case $cross_compiling:$ac_tool_warned in
13532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13533 whose name does not start with the host triplet. If you think this
13534 configuration is useful to you, please write to autoconf@gnu.org." >&5
13535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13536 whose name does not start with the host triplet. If you think this
13537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13538 ac_tool_warned=yes ;;
13545 # Provide some information about the compiler.
13546 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13547 ac_compiler=`set X $ac_compile; echo $2`
13548 { (ac_try="$ac_compiler --version >&5"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compiler --version >&5") 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }
13558 { (ac_try="$ac_compiler -v >&5"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compiler -v >&5") 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }
13568 { (ac_try="$ac_compiler -V >&5"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compiler -V >&5") 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }
13580 # If we don't use
`.F' as extension, the preprocessor is not run on the
13581 # input file. (Note that this only needs to work for GNU compilers.)
13582 ac_save_ext=$ac_ext
13584 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13585 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13586 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 cat >conftest.$ac_ext <<_ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (ac_try="$ac_compile"
13599 case "(($ac_try" in
13600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13601 *) ac_try_echo
=$ac_try;;
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
13606 grep -v '^ *+' conftest.er1
>conftest.err
13608 cat conftest.err
>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13624 *) ac_try_echo
=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_compiler_gnu
=yes
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.
$ac_ext >&5
13639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13640 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13643 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13644 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13645 ac_ext
=$ac_save_ext
13646 ac_test_FFLAGS
=${FFLAGS+set}
13647 ac_save_FFLAGS
=$FFLAGS
13649 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13650 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13651 if test "${ac_cv_prog_f77_g+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 cat >conftest.
$ac_ext <<_ACEOF
13660 rm -f conftest.
$ac_objext
13661 if { (ac_try
="$ac_compile"
13662 case "(($ac_try" in
13663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_compile") 2>conftest.er1
13669 grep -v '^ *+' conftest.er1 >conftest.err
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13677 *) ac_try_echo
=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try
='test -s conftest.$ac_objext'
13685 { (case "(($ac_try" in
13686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 ac_cv_prog_f77_g=yes
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_cv_prog_f77_g=no
13702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13706 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13707 if test "$ac_test_FFLAGS" = set; then
13708 FFLAGS=$ac_save_FFLAGS
13709 elif test $ac_cv_prog_f77_g = yes; then
13710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13716 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13723 G77=`test $ac_compiler_gnu = yes && echo yes`
13725 ac_cpp='$CPP $CPPFLAGS'
13726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13734 # find the maximum length of command line arguments
13735 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13736 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13737 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 # On DJGPP, this test can blow up pretty badly due to problems in libc
13746 # (any single argument exceeding 2000 bytes causes a buffer overrun
13747 # during glob expansion). Even if it were fixed, the result of this
13748 # check would be larger than it should be.
13749 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13753 # Under GNU Hurd, this test is not required because there is
13754 # no limit to the length of command line arguments.
13755 # Libtool will interpret -1 as no limit whatsoever
13756 lt_cv_sys_max_cmd_len=-1;
13760 # On Win9x/ME, this test blows up -- it succeeds, but takes
13761 # about 5 minutes as the teststring grows exponentially.
13762 # Worse, since 9x/ME are not pre-emptively multitasking,
13763 # you end up with a "frozen" computer, even though with patience
13764 # the test eventually succeeds (with a max line length of 256k).
13765 # Instead, let's just punt: use the minimum linelength reported by
13766 # all of the supported platforms: 8192 (on NT/2K/XP).
13767 lt_cv_sys_max_cmd_len=8192;
13771 # On AmigaOS with pdksh, this test takes hours, literally.
13772 # So we just punt and use a minimum line length of 8192.
13773 lt_cv_sys_max_cmd_len=8192;
13776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13777 # This has been around since 386BSD, at least. Likely further.
13778 if test -x /sbin/sysctl; then
13779 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13780 elif test -x /usr/sbin/sysctl; then
13781 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13785 # And add a safety zone
13786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13791 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13792 lt_cv_sys_max_cmd_len=196608
13796 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13797 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13798 # nice to cause kernel panics so lets avoid the loop below.
13799 # First set a reasonable default.
13800 lt_cv_sys_max_cmd_len=16384
13802 if test -x /sbin/sysconfig; then
13803 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13804 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13809 lt_cv_sys_max_cmd_len=102400
13811 sysv5* | sco5v6* | sysv4.2uw2*)
13812 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13813 if test -n "$kargmax"; then
13814 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13816 lt_cv_sys_max_cmd_len=32768
13820 # If test is not a shell built-in, we'll probably end up computing a
13821 # maximum length that is only half of the actual maximum length, but
13823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13824 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13825 = "XX$teststring") >/dev/null 2>&1 &&
13826 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13827 lt_cv_sys_max_cmd_len=$new_result &&
13828 test $i != 17 # 1/2 MB should be enough
13831 teststring=$teststring$teststring
13834 # Add a significant safety factor because C++ compilers can tack on massive
13835 # amounts of additional arguments before passing them to the linker.
13836 # It appears as though 1/2 is a usable value.
13837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13843 if test -n $lt_cv_sys_max_cmd_len ; then
13844 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13845 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13847 { echo "$as_me:$LINENO: result: none" >&5
13848 echo "${ECHO_T}none" >&6; }
13854 # Check for command to grab the raw symbol name followed by C symbol from nm.
13855 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13856 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13857 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 # These are sane defaults that work on at least a few old systems.
13862 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13864 # Character class describing NM global symbol codes.
13865 symcode='[BCDEGRST]'
13867 # Regexp to match symbols that can be accessed directly from C.
13868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13870 # Transform an extracted symbol line into a proper C declaration
13871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13873 # Transform an extracted symbol line into symbol name and symbol address
13874 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'"
13876 # Define system-specific variables.
13881 cygwin* | mingw* | pw32*)
13882 symcode='[ABCDGISTW]'
13884 hpux*) # Its linker distinguishes data from code symbols
13885 if test "$host_cpu" = ia64; then
13886 symcode='[ABCDEGRST]'
13888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13889 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'"
13892 if test "$host_cpu" = ia64; then
13893 symcode='[ABCDGIRSTW]'
13894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13895 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'"
13898 irix* | nonstopux*)
13899 symcode='[BCDEGRST]'
13902 symcode='[BCDEGQRST]'
13913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13921 # Handle CRLF in mingw tool chain
13925 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
13929 # If we're using GNU nm, then use its standard symbol codes.
13930 case `$NM -V 2>&1` in
13931 *GNU* | *'with BFD'*)
13932 symcode='[ABCDGIRSTW]' ;;
13935 # Try without a prefix undercore, then with it.
13936 for ac_symprfx in "" "_"; do
13938 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13939 symxfrm="\\1 $ac_symprfx\\2 \\2"
13941 # Write the raw and C identifiers.
13942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13944 # Check to see that the pipe works correctly.
13948 cat > conftest.$ac_ext <<EOF
13953 void nm_test_func(){}
13957 int main(){nm_test_var='a';nm_test_func();return(0);}
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; then
13965 # Now try to grab the symbols.
13967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && test -s "$nlist"; then
13972 # Try sorting and uniquifying the output.
13973 if sort "$nlist" | uniq > "$nlist"T; then
13974 mv -f "$nlist"T "$nlist"
13979 # Make sure that we snagged all the symbols we need.
13980 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13981 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13982 cat <<EOF > conftest.$ac_ext
13988 # Now generate the symbol file.
13989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13991 cat <<EOF >> conftest.$ac_ext
13992 #if defined (__STDC__) && __STDC__
13993 # define lt_ptr_t void *
13995 # define lt_ptr_t char *
13999 /* The mapping between symbol names and symbols. */
14004 lt_preloaded_symbols[] =
14007 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14008 cat <<\EOF >> conftest.$ac_ext
14016 # Now try linking the two files.
14017 mv conftest.$ac_objext conftstm.$ac_objext
14018 lt_save_LIBS="$LIBS"
14019 lt_save_CFLAGS="$CFLAGS"
14020 LIBS="conftstm.$ac_objext"
14021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14029 LIBS="$lt_save_LIBS"
14030 CFLAGS="$lt_save_CFLAGS"
14032 echo "cannot find nm_test_func in $nlist" >&5
14035 echo "cannot find nm_test_var in $nlist" >&5
14038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14041 echo "$progname: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14044 rm -f conftest* conftst*
14046 # Do not use the global_symbol_pipe unless it works.
14047 if test "$pipe_works" = yes; then
14050 lt_cv_sys_global_symbol_pipe=
14056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14057 lt_cv_sys_global_symbol_to_cdecl=
14059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14060 { echo "$as_me:$LINENO: result: failed" >&5
14061 echo "${ECHO_T}failed" >&6; }
14063 { echo "$as_me:$LINENO: result: ok" >&5
14064 echo "${ECHO_T}ok" >&6; }
14067 { echo "$as_me:$LINENO: checking for objdir" >&5
14068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14069 if test "${lt_cv_objdir+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 rm -f .libs 2>/dev/null
14073 mkdir .libs 2>/dev/null
14074 if test -d .libs; then
14077 # MS-DOS does not allow filenames that begin with a dot.
14080 rmdir .libs 2>/dev/null
14082 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14083 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14084 objdir=$lt_cv_objdir
14092 # AIX sometimes has problems with the GCC collect2 program. For some
14093 # reason, if we set the COLLECT_NAMES environment variable, the problems
14094 # vanish in a puff of smoke.
14095 if test "X${COLLECT_NAMES+set}" != Xset; then
14097 export COLLECT_NAMES
14102 # Sed substitution that helps us do robust quoting. It backslashifies
14103 # metacharacters that are still active within double-quoted strings.
14104 Xsed='sed -e 1s/^X//'
14105 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14107 # Same as above, but do not quote variable references.
14108 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14110 # Sed substitution to delay expansion of an escaped shell variable in a
14111 # double_quote_subst'ed string.
14112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14114 # Sed substitution to avoid accidental globbing in evaled expressions
14115 no_glob_subst='s/\*/\\\*/g'
14120 # Global variables:
14121 default_ofile=mklib
14122 can_build_shared=yes
14124 # All known linkers require a `.a' archive for static linking (except MSVC,
14125 # which needs '.lib').
14127 ltmain="$ac_aux_dir/ltmain.sh
"
14128 ofile="$default_ofile"
14129 with_gnu_ld="$lt_cv_prog_gnu_ld"
14131 if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14133 set dummy ${ac_tool_prefix}ar; ac_word=$2
14134 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14135 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14136 if test "${ac_cv_prog_AR+set}" = set; then
14137 echo $ECHO_N "(cached
) $ECHO_C" >&6
14139 if test -n "$AR"; then
14140 ac_cv_prog_AR="$AR" # Let the user override the test.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14149 ac_cv_prog_AR="${ac_tool_prefix}ar"
14150 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14160 if test -n "$AR"; then
14161 { echo "$as_me:$LINENO: result
: $AR" >&5
14162 echo "${ECHO_T}$AR" >&6; }
14164 { echo "$as_me:$LINENO: result
: no
" >&5
14165 echo "${ECHO_T}no
" >&6; }
14170 if test -z "$ac_cv_prog_AR"; then
14172 # Extract the first word of "ar", so it can be a program name with args.
14173 set dummy ar; ac_word=$2
14174 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14175 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14177 echo $ECHO_N "(cached
) $ECHO_C" >&6
14179 if test -n "$ac_ct_AR"; then
14180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14189 ac_cv_prog_ac_ct_AR="ar"
14190 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14200 if test -n "$ac_ct_AR"; then
14201 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14202 echo "${ECHO_T}$ac_ct_AR" >&6; }
14204 { echo "$as_me:$LINENO: result
: no
" >&5
14205 echo "${ECHO_T}no
" >&6; }
14208 if test "x
$ac_ct_AR" = x; then
14211 case $cross_compiling:$ac_tool_warned in
14213 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14214 whose name does not start with the
host triplet. If you think this
14215 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14216 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14217 whose name does not start with the
host triplet. If you think this
14218 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14219 ac_tool_warned=yes ;;
14224 AR="$ac_cv_prog_AR"
14227 if test -n "$ac_tool_prefix"; then
14228 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14230 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14231 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14232 if test "${ac_cv_prog_RANLIB+set}" = set; then
14233 echo $ECHO_N "(cached
) $ECHO_C" >&6
14235 if test -n "$RANLIB"; then
14236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14242 test -z "$as_dir" && as_dir=.
14243 for ac_exec_ext in '' $ac_executable_extensions; do
14244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14246 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14255 RANLIB=$ac_cv_prog_RANLIB
14256 if test -n "$RANLIB"; then
14257 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14258 echo "${ECHO_T}$RANLIB" >&6; }
14260 { echo "$as_me:$LINENO: result
: no
" >&5
14261 echo "${ECHO_T}no
" >&6; }
14266 if test -z "$ac_cv_prog_RANLIB"; then
14267 ac_ct_RANLIB=$RANLIB
14268 # Extract the first word of "ranlib
", so it can be a program name with args.
14269 set dummy ranlib; ac_word=$2
14270 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14271 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14273 echo $ECHO_N "(cached
) $ECHO_C" >&6
14275 if test -n "$ac_ct_RANLIB"; then
14276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14285 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14286 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14296 if test -n "$ac_ct_RANLIB"; then
14297 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14298 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14300 { echo "$as_me:$LINENO: result
: no
" >&5
14301 echo "${ECHO_T}no
" >&6; }
14304 if test "x
$ac_ct_RANLIB" = x; then
14307 case $cross_compiling:$ac_tool_warned in
14309 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14310 whose name does not start with the
host triplet. If you think this
14311 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14312 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14313 whose name does not start with the
host triplet. If you think this
14314 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14315 ac_tool_warned=yes ;;
14317 RANLIB=$ac_ct_RANLIB
14320 RANLIB="$ac_cv_prog_RANLIB"
14323 if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14325 set dummy ${ac_tool_prefix}strip; ac_word=$2
14326 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14327 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14328 if test "${ac_cv_prog_STRIP+set}" = set; then
14329 echo $ECHO_N "(cached
) $ECHO_C" >&6
14331 if test -n "$STRIP"; then
14332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14342 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14351 STRIP=$ac_cv_prog_STRIP
14352 if test -n "$STRIP"; then
14353 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14354 echo "${ECHO_T}$STRIP" >&6; }
14356 { echo "$as_me:$LINENO: result
: no
" >&5
14357 echo "${ECHO_T}no
" >&6; }
14362 if test -z "$ac_cv_prog_STRIP"; then
14364 # Extract the first word of "strip
", so it can be a program name with args.
14365 set dummy strip; ac_word=$2
14366 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14367 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14369 echo $ECHO_N "(cached
) $ECHO_C" >&6
14371 if test -n "$ac_ct_STRIP"; then
14372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_ac_ct_STRIP="strip
"
14382 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14392 if test -n "$ac_ct_STRIP"; then
14393 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14394 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14396 { echo "$as_me:$LINENO: result
: no
" >&5
14397 echo "${ECHO_T}no
" >&6; }
14400 if test "x
$ac_ct_STRIP" = x; then
14403 case $cross_compiling:$ac_tool_warned in
14405 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14406 whose name does not start with the
host triplet. If you think this
14407 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14408 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14409 whose name does not start with the
host triplet. If you think this
14410 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14411 ac_tool_warned=yes ;;
14416 STRIP="$ac_cv_prog_STRIP"
14421 old_CFLAGS="$CFLAGS"
14423 # Set sane defaults for various variables
14424 test -z "$AR" && AR=ar
14425 test -z "$AR_FLAGS" && AR_FLAGS=cru
14426 test -z "$AS" && AS=as
14427 test -z "$CC" && CC=cc
14428 test -z "$LTCC" && LTCC=$CC
14429 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14430 test -z "$DLLTOOL" && DLLTOOL=dlltool
14431 test -z "$LD" && LD=ld
14432 test -z "$LN_S" && LN_S="ln -s"
14433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14434 test -z "$NM" && NM=nm
14435 test -z "$SED" && SED=sed
14436 test -z "$OBJDUMP" && OBJDUMP=objdump
14437 test -z "$RANLIB" && RANLIB=:
14438 test -z "$STRIP" && STRIP=:
14439 test -z "$ac_objext" && ac_objext=o
14441 # Determine commands to create old-style static archives.
14442 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14443 old_postinstall_cmds='chmod 644 $oldlib'
14444 old_postuninstall_cmds=
14446 if test -n "$RANLIB"; then
14449 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14452 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14455 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14458 for cc_temp in $compiler""; do
14460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14466 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14469 # Only perform the check for file, if the check method requires it
14470 case $deplibs_check_method in
14472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14473 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14474 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14476 echo $ECHO_N "(cached
) $ECHO_C" >&6
14480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14483 lt_save_MAGIC_CMD="$MAGIC_CMD"
14484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14485 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14486 for ac_dir in $ac_dummy; do
14488 test -z "$ac_dir" && ac_dir=.
14489 if test -f $ac_dir/${ac_tool_prefix}file; then
14490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14491 if test -n "$file_magic_test_file"; then
14492 case $deplibs_check_method in
14494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14497 $EGREP "$file_magic_regex" > /dev/null; then
14502 *** Warning: the command libtool uses to detect shared libraries,
14503 *** $file_magic_cmd, produces output that libtool cannot recognize.
14504 *** The result is that libtool may fail to recognize shared libraries
14505 *** as such. This will affect the creation of libtool libraries that
14506 *** depend on shared libraries, but programs linked with such libtool
14507 *** libraries will work regardless of this problem. Nevertheless, you
14508 *** may want to report the problem to your system manager and/or to
14509 *** bug-libtool@gnu.org
14519 MAGIC_CMD="$lt_save_MAGIC_CMD"
14524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14525 if test -n "$MAGIC_CMD"; then
14526 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14527 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14529 { echo "$as_me:$LINENO: result
: no
" >&5
14530 echo "${ECHO_T}no
" >&6; }
14533 if test -z "$lt_cv_path_MAGIC_CMD"; then
14534 if test -n "$ac_tool_prefix"; then
14535 { echo "$as_me:$LINENO: checking
for file" >&5
14536 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14538 echo $ECHO_N "(cached
) $ECHO_C" >&6
14542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14545 lt_save_MAGIC_CMD="$MAGIC_CMD"
14546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14547 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14548 for ac_dir in $ac_dummy; do
14550 test -z "$ac_dir" && ac_dir=.
14551 if test -f $ac_dir/file; then
14552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14553 if test -n "$file_magic_test_file"; then
14554 case $deplibs_check_method in
14556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14559 $EGREP "$file_magic_regex" > /dev/null; then
14564 *** Warning: the command libtool uses to detect shared libraries,
14565 *** $file_magic_cmd, produces output that libtool cannot recognize.
14566 *** The result is that libtool may fail to recognize shared libraries
14567 *** as such. This will affect the creation of libtool libraries that
14568 *** depend on shared libraries, but programs linked with such libtool
14569 *** libraries will work regardless of this problem. Nevertheless, you
14570 *** may want to report the problem to your system manager and/or to
14571 *** bug-libtool@gnu.org
14581 MAGIC_CMD="$lt_save_MAGIC_CMD"
14586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if test -n "$MAGIC_CMD"; then
14588 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14589 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14591 { echo "$as_me:$LINENO: result
: no
" >&5
14592 echo "${ECHO_T}no
" >&6; }
14605 enable_win32_dll=no
14607 # Check whether --enable-libtool-lock was given.
14608 if test "${enable_libtool_lock+set}" = set; then
14609 enableval=$enable_libtool_lock;
14612 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14615 # Check whether --with-pic was given.
14616 if test "${with_pic+set}" = set; then
14617 withval=$with_pic; pic_mode="$withval"
14622 test -z "$pic_mode" && pic_mode=default
14624 # Use C for the default configuration in the libtool script
14628 ac_cpp='$CPP $CPPFLAGS'
14629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 # Source file extension for C test sources.
14637 # Object file extension for compiled C test sources.
14641 # Code to be used in simple compile tests
14642 lt_simple_compile_test_code="int some_variable
= 0;\n"
14644 # Code to be used in simple link tests
14645 lt_simple_link_test_code='int main(){return(0);}\n'
14648 # If no C compiler was specified, use CC.
14651 # If no C compiler flags were specified, use CFLAGS.
14652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14654 # Allow CC to be a program name with arguments.
14658 # save warnings/boilerplate of simple test code
14659 ac_outfile=conftest.$ac_objext
14660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14662 _lt_compiler_boilerplate=`cat conftest.err`
14665 ac_outfile=conftest.$ac_objext
14666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14668 _lt_linker_boilerplate=`cat conftest.err`
14673 lt_prog_compiler_no_builtin_flag=
14675 if test "$GCC" = yes; then
14676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14679 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14680 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14682 echo $ECHO_N "(cached
) $ECHO_C" >&6
14684 lt_cv_prog_compiler_rtti_exceptions=no
14685 ac_outfile=conftest.$ac_objext
14686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14687 lt_compiler_flag="-fno-rtti -fno-exceptions"
14688 # Insert the option either (1) after the last *FLAGS variable, or
14689 # (2) before a word containing "conftest.
", or (3) at the end.
14690 # Note that $ac_compile itself does not contain backslashes and begins
14691 # with a dollar sign (not a hyphen), so the echo should work correctly.
14692 # The option is referenced via a variable to avoid confusing sed.
14693 lt_compile=`echo "$ac_compile" | $SED \
14694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14696 -e 's:$: $lt_compiler_flag:'`
14697 (eval echo "\"\
$as_me:14697: $lt_compile\"" >&5)
14698 (eval "$lt_compile" 2>conftest.err)
14700 cat conftest.err >&5
14701 echo "$as_me:14701: \$?
= $ac_status" >&5
14702 if (exit $ac_status) && test -s "$ac_outfile"; then
14703 # The compiler can only warn and ignore the option if not recognized
14704 # So say no if there are warnings other than the usual output.
14705 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14708 lt_cv_prog_compiler_rtti_exceptions=yes
14714 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14725 lt_prog_compiler_wl=
14726 lt_prog_compiler_pic=
14727 lt_prog_compiler_static=
14729 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14730 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14732 if test "$GCC" = yes; then
14733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_static='-static'
14738 # All AIX code is PIC.
14739 if test "$host_cpu" = ia64; then
14740 # AIX 5 now supports IA64 processor
14741 lt_prog_compiler_static='-Bstatic'
14746 # FIXME: we need at least 68020 code to build shared libraries, but
14747 # adding the `-m68020' flag to GCC prevents building anything better,
14749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14753 # PIC is the default for these OSes.
14756 mingw* | pw32* | os2*)
14757 # This hack is so that the source file can tell whether it is being
14758 # built for inclusion in a dll (and should export symbols for example).
14759 lt_prog_compiler_pic='-DDLL_EXPORT'
14762 darwin* | rhapsody*)
14763 # PIC is the default on this platform
14764 # Common symbols not allowed in MH_DYLIB files
14765 lt_prog_compiler_pic='-fno-common'
14769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14770 # Instead, we relocate shared libraries at runtime.
14774 # Just because we use GCC doesn't mean we suddenly get shared libraries
14775 # on systems that don't support them.
14776 lt_prog_compiler_can_build_shared=no
14781 if test -d /usr/nec; then
14782 lt_prog_compiler_pic=-Kconform_pic
14787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14788 # not for PA HP-UX.
14794 lt_prog_compiler_pic='-fPIC'
14800 lt_prog_compiler_pic='-fPIC'
14804 # PORTME Check for flag to pass linker flags through the system compiler.
14807 lt_prog_compiler_wl='-Wl,'
14808 if test "$host_cpu" = ia64; then
14809 # AIX 5 now supports IA64 processor
14810 lt_prog_compiler_static='-Bstatic'
14812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14816 # PIC is the default on this platform
14817 # Common symbols not allowed in MH_DYLIB files
14818 case $cc_basename in
14820 lt_prog_compiler_pic='-qnocommon'
14821 lt_prog_compiler_wl='-Wl,'
14826 mingw* | pw32* | os2*)
14827 # This hack is so that the source file can tell whether it is being
14828 # built for inclusion in a dll (and should export symbols for example).
14829 lt_prog_compiler_pic='-DDLL_EXPORT'
14832 hpux9* | hpux10* | hpux11*)
14833 lt_prog_compiler_wl='-Wl,'
14834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14835 # not for PA HP-UX.
14841 lt_prog_compiler_pic='+Z'
14844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14845 lt_prog_compiler_static='${wl}-a ${wl}archive'
14848 irix5* | irix6* | nonstopux*)
14849 lt_prog_compiler_wl='-Wl,'
14850 # PIC (with -KPIC) is the default.
14851 lt_prog_compiler_static='-non_shared'
14855 lt_prog_compiler_pic='-KPIC'
14856 lt_prog_compiler_static='-Bstatic'
14860 case $cc_basename in
14862 lt_prog_compiler_wl='-Wl,'
14863 lt_prog_compiler_pic='-KPIC'
14864 lt_prog_compiler_static='-static'
14866 pgcc* | pgf77* | pgf90* | pgf95*)
14867 # Portland Group compilers (*not* the Pentium gcc compiler,
14868 # which looks to be a dead project)
14869 lt_prog_compiler_wl='-Wl,'
14870 lt_prog_compiler_pic='-fpic'
14871 lt_prog_compiler_static='-Bstatic'
14874 lt_prog_compiler_wl='-Wl,'
14875 # All Alpha code is PIC.
14876 lt_prog_compiler_static='-non_shared'
14881 osf3* | osf4* | osf5*)
14882 lt_prog_compiler_wl='-Wl,'
14883 # All OSF/1 code is PIC.
14884 lt_prog_compiler_static='-non_shared'
14888 lt_prog_compiler_pic='-KPIC'
14889 lt_prog_compiler_static='-Bstatic'
14890 case $cc_basename in
14891 f77* | f90* | f95*)
14892 lt_prog_compiler_wl='-Qoption ld ';;
14894 lt_prog_compiler_wl='-Wl,';;
14899 lt_prog_compiler_wl='-Qoption ld '
14900 lt_prog_compiler_pic='-PIC'
14901 lt_prog_compiler_static='-Bstatic'
14904 sysv4 | sysv4.2uw2* | sysv4.3*)
14905 lt_prog_compiler_wl='-Wl,'
14906 lt_prog_compiler_pic='-KPIC'
14907 lt_prog_compiler_static='-Bstatic'
14911 if test -d /usr/nec ;then
14912 lt_prog_compiler_pic='-Kconform_pic'
14913 lt_prog_compiler_static='-Bstatic'
14917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14918 lt_prog_compiler_wl='-Wl,'
14919 lt_prog_compiler_pic='-KPIC'
14920 lt_prog_compiler_static='-Bstatic'
14924 lt_prog_compiler_wl='-Wl,'
14925 lt_prog_compiler_can_build_shared=no
14929 lt_prog_compiler_pic='-pic'
14930 lt_prog_compiler_static='-Bstatic'
14934 lt_prog_compiler_can_build_shared=no
14939 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
14940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14943 # Check to make sure the PIC flag actually works.
14945 if test -n "$lt_prog_compiler_pic"; then
14947 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14948 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
14949 if test "${lt_prog_compiler_pic_works+set}" = set; then
14950 echo $ECHO_N "(cached
) $ECHO_C" >&6
14952 lt_prog_compiler_pic_works=no
14953 ac_outfile=conftest.$ac_objext
14954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14956 # Insert the option either (1) after the last *FLAGS variable, or
14957 # (2) before a word containing "conftest.
", or (3) at the end.
14958 # Note that $ac_compile itself does not contain backslashes and begins
14959 # with a dollar sign (not a hyphen), so the echo should work correctly.
14960 # The option is referenced via a variable to avoid confusing sed.
14961 lt_compile=`echo "$ac_compile" | $SED \
14962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14964 -e 's:$: $lt_compiler_flag:'`
14965 (eval echo "\"\
$as_me:14965: $lt_compile\"" >&5)
14966 (eval "$lt_compile" 2>conftest.err)
14968 cat conftest.err >&5
14969 echo "$as_me:14969: \$?
= $ac_status" >&5
14970 if (exit $ac_status) && test -s "$ac_outfile"; then
14971 # The compiler can only warn and ignore the option if not recognized
14972 # So say no if there are warnings other than the usual output.
14973 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14976 lt_prog_compiler_pic_works=yes
14982 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
14983 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14985 if test x"$lt_prog_compiler_pic_works" = xyes; then
14986 case $lt_prog_compiler_pic in
14988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14991 lt_prog_compiler_pic=
14992 lt_prog_compiler_can_build_shared=no
14997 # For platforms which do not support PIC, -DPIC is meaningless:
14999 lt_prog_compiler_pic=
15002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15007 # Check to make sure the static flag actually works.
15009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15010 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15011 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15012 if test "${lt_prog_compiler_static_works+set}" = set; then
15013 echo $ECHO_N "(cached
) $ECHO_C" >&6
15015 lt_prog_compiler_static_works=no
15016 save_LDFLAGS="$LDFLAGS"
15017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15020 # The linker can only warn and ignore the option if not recognized
15021 # So say no if there are warnings
15022 if test -s conftest.err; then
15023 # Append any errors to the config.log.
15024 cat conftest.err 1>&5
15025 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15027 if diff conftest.exp conftest.er2 >/dev/null; then
15028 lt_prog_compiler_static_works=yes
15031 lt_prog_compiler_static_works=yes
15035 LDFLAGS="$save_LDFLAGS"
15038 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15039 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15041 if test x"$lt_prog_compiler_static_works" = xyes; then
15044 lt_prog_compiler_static=
15048 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15049 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15050 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15051 echo $ECHO_N "(cached
) $ECHO_C" >&6
15053 lt_cv_prog_compiler_c_o=no
15054 $rm -r conftest 2>/dev/null
15058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.
", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 lt_compile=`echo "$ac_compile" | $SED \
15066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15068 -e 's:$: $lt_compiler_flag:'`
15069 (eval echo "\"\
$as_me:15069: $lt_compile\"" >&5)
15070 (eval "$lt_compile" 2>out/conftest.err)
15072 cat out/conftest.err >&5
15073 echo "$as_me:15073: \$?
= $ac_status" >&5
15074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings
15078 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15081 lt_cv_prog_compiler_c_o=yes
15086 # SGI C++ compiler will create directory out/ii_files/ for
15087 # template instantiation
15088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15089 $rm out/* && rmdir out
15095 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15099 hard_links="nottested
"
15100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15101 # do not overwrite the value of need_locks provided by the user
15102 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15103 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15108 ln conftest.a conftest.b 2>&5 || hard_links=no
15109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15110 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15111 echo "${ECHO_T}$hard_links" >&6; }
15112 if test "$hard_links" = no; then
15113 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15114 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15121 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15122 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15125 allow_undefined_flag=
15126 enable_shared_with_static_runtimes=no
15128 archive_expsym_cmds=
15129 old_archive_From_new_cmds=
15130 old_archive_from_expsyms_cmds=
15131 export_dynamic_flag_spec=
15132 whole_archive_flag_spec=
15133 thread_safe_flag_spec=
15134 hardcode_libdir_flag_spec=
15135 hardcode_libdir_flag_spec_ld=
15136 hardcode_libdir_separator=
15138 hardcode_minus_L=no
15139 hardcode_shlibpath_var=unsupported
15140 link_all_deplibs=unknown
15141 hardcode_automatic=no
15143 module_expsym_cmds=
15144 always_export_symbols=no
15145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15146 # include_expsyms should be a list of space-separated symbols to be *always*
15147 # included in the symbol list
15149 # exclude_expsyms can be an extended regexp of symbols to exclude
15150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15152 # as well as any symbol that contains `d'.
15153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15155 # platforms (ab)use it in PIC code, but their linkers get confused if
15156 # the symbol is explicitly referenced. Since portable code cannot
15157 # rely on this symbol name, it's probably fine to never include it in
15158 # preloaded symbol tables.
15159 extract_expsyms_cmds=
15160 # Just being paranoid about ensuring that cc_basename is set.
15161 for cc_temp in $compiler""; do
15163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15169 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15172 cygwin* | mingw* | pw32*)
15173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15174 # When not using gcc, we currently assume that we are using
15175 # Microsoft Visual C++.
15176 if test "$GCC" != yes; then
15181 # we just hope/assume this is gcc and not c89 (= MSVC++)
15190 if test "$with_gnu_ld" = yes; then
15191 # If archive_cmds runs LD, not CC, wlarc should be empty
15194 # Set some defaults for GNU ld with shared library support. These
15195 # are reset later if shared libraries are not supported. Putting them
15196 # here allows them to be overridden if necessary.
15197 runpath_var=LD_RUN_PATH
15198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15199 export_dynamic_flag_spec='${wl}--export-dynamic'
15200 # ancient GNU ld didn't support --whole-archive et. al.
15201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15204 whole_archive_flag_spec=
15206 supports_anon_versioning=no
15207 case `$LD -v 2>/dev/null` in
15208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15211 *\ 2.11.*) ;; # other 2.11 versions
15212 *) supports_anon_versioning=yes ;;
15215 # See if GNU ld supports shared libraries.
15217 aix3* | aix4* | aix5*)
15218 # On AIX/PPC, the GNU linker is very broken
15219 if test "$host_cpu" != ia64; then
15223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15224 *** to be unable to reliably create shared libraries on AIX.
15225 *** Therefore, libtool is disabling shared libraries support. If you
15226 *** really care for shared libraries, you may want to modify your PATH
15227 *** so that a non-GNU linker is found, and then restart.
15234 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)'
15235 hardcode_libdir_flag_spec
='-L$libdir'
15236 hardcode_minus_L
=yes
15238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15239 # that the semantics of dynamic libraries on AmigaOS, at least up
15240 # to version 4, is to share data among multiple programs linked
15241 # with the same dynamic library. Since this doesn't match the
15242 # behavior of shared libraries on other platforms, we can't use
15248 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15249 allow_undefined_flag
=unsupported
15250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15251 # support --undefined. This deserves some investigation. FIXME
15252 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258 cygwin
* | mingw
* | pw32
*)
15259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15260 # as there is no search path for DLLs.
15261 hardcode_libdir_flag_spec
='-L$libdir'
15262 allow_undefined_flag
=unsupported
15263 always_export_symbols
=no
15264 enable_shared_with_static_runtimes
=yes
15265 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15267 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15268 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15269 # If the export-symbols file already is a .def file (1st line
15270 # is EXPORTS), use it as is; otherwise, prepend...
15271 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15272 cp $export_symbols $output_objdir/$soname.def;
15274 echo EXPORTS > $output_objdir/$soname.def;
15275 cat $export_symbols >> $output_objdir/$soname.def;
15277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15285 hardcode_shlibpath_var
=no
15286 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15287 export_dynamic_flag_spec
='${wl}-E'
15288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15289 # Instead, shared libraries are loaded at an image base (0x10000000 by
15290 # default) and relocated if they conflict, which is a slow very memory
15291 # consuming and fragmenting process. To avoid this, we pick a random,
15292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15294 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15295 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'
15299 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15301 case $cc_basename,$host_cpu in
15302 pgcc
*) # Portland Group C compiler
15303 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'
15304 tmp_addflag
=' $pic_flag'
15306 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15307 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'
15308 tmp_addflag
=' $pic_flag -Mnomain' ;;
15309 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15310 tmp_addflag
=' -i_dynamic' ;;
15311 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15312 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15313 ifc
* | ifort
*) # Intel Fortran compiler
15314 tmp_addflag
=' -nofor_main' ;;
15316 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318 if test $supports_anon_versioning = yes; then
15319 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15321 $echo "local: *; };" >> $output_objdir/$libname.ver~
15322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15330 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15331 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15334 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15340 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15345 *** create shared libraries on Solaris systems. Therefore, libtool
15346 *** is disabling shared libraries support. We urge you to upgrade GNU
15347 *** binutils to release 2.9.1 or newer. Another option is to modify
15348 *** your PATH or compiler configuration so that the native linker is
15349 *** used, and then restart.
15352 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15353 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15354 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15360 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15361 case `$LD -v 2>&1` in
15362 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15367 *** reliably create shared libraries on SCO systems. Therefore, libtool
15368 *** is disabling shared libraries support. We urge you to upgrade GNU
15369 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15370 *** your PATH or compiler configuration so that the native linker is
15371 *** used, and then restart.
15376 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15377 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15378 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15379 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15388 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15390 hardcode_direct
=yes
15391 hardcode_shlibpath_var
=no
15395 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15396 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15404 if test "$ld_shlibs" = no
; then
15406 hardcode_libdir_flag_spec
=
15407 export_dynamic_flag_spec
=
15408 whole_archive_flag_spec
=
15411 # PORTME fill in a description of your system's linker (not GNU ld)
15414 allow_undefined_flag
=unsupported
15415 always_export_symbols
=yes
15416 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'
15417 # Note: this linker hardcodes the directories in LIBPATH if there
15418 # are no directories specified by -L.
15419 hardcode_minus_L
=yes
15420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15421 # Neither direct hardcoding nor static linking is supported with a
15423 hardcode_direct
=unsupported
15428 if test "$host_cpu" = ia64
; then
15429 # On IA64, the linker does run time linking by default, so we don't
15430 # have to do anything special.
15431 aix_use_runtimelinking
=no
15432 exp_sym_flag
='-Bexport'
15435 # If we're using GNU nm, then we don't want the "-C" option.
15436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15437 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15438 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'
15440 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'
15442 aix_use_runtimelinking
=no
15444 # Test if we are trying to use run time linking or normal
15445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15446 # need to do runtime linking.
15447 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15448 for ld_flag
in $LDFLAGS; do
15449 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15450 aix_use_runtimelinking
=yes
15457 exp_sym_flag
='-bexport'
15458 no_entry_flag
='-bnoentry'
15461 # When large executables or shared objects are built, AIX ld can
15462 # have problems creating the table of contents. If linking a library
15463 # or program results in "error TOC overflow" add -mminimal-toc to
15464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15468 hardcode_direct
=yes
15469 hardcode_libdir_separator
=':'
15470 link_all_deplibs
=yes
15472 if test "$GCC" = yes; then
15473 case $host_os in aix4.
[012]|aix4.
[012].
*)
15474 # We only want to do this on AIX 4.2 and lower, the check
15475 # below for broken collect2 doesn't work under 4.3+
15476 collect2name
=`${CC} -print-prog-name=collect2`
15477 if test -f "$collect2name" && \
15478 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15480 # We have reworked collect2
15481 hardcode_direct
=yes
15483 # We have old collect2
15484 hardcode_direct
=unsupported
15485 # It fails to find uninstalled libraries when the uninstalled
15486 # path is not listed in the libpath. Setting hardcode_minus_L
15487 # to unsupported forces relinking
15488 hardcode_minus_L
=yes
15489 hardcode_libdir_flag_spec
='-L$libdir'
15490 hardcode_libdir_separator
=
15494 shared_flag
='-shared'
15495 if test "$aix_use_runtimelinking" = yes; then
15496 shared_flag
="$shared_flag "'${wl}-G'
15500 if test "$host_cpu" = ia64
; then
15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15502 # chokes on -Wl,-G. The following line is correct:
15505 if test "$aix_use_runtimelinking" = yes; then
15506 shared_flag
='${wl}-G'
15508 shared_flag
='${wl}-bM:SRE'
15513 # It seems that -bexpall does not export symbols beginning with
15514 # underscore (_), so it is better to generate a list of symbols to export.
15515 always_export_symbols
=yes
15516 if test "$aix_use_runtimelinking" = yes; then
15517 # Warning - without using the other runtime loading flags (-brtl),
15518 # -berok will link without error, but may produce a broken library.
15519 allow_undefined_flag
='-berok'
15520 # Determine the default libpath from the value encoded in an empty executable.
15521 cat >conftest.
$ac_ext <<_ACEOF
15524 cat confdefs.h
>>conftest.
$ac_ext
15525 cat >>conftest.
$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15536 rm -f conftest.
$ac_objext conftest
$ac_exeext
15537 if { (ac_try
="$ac_link"
15538 case "(($ac_try" in
15539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_link") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15553 *) ac_try_echo
=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try
='test -s conftest$ac_exeext'
15561 { (case "(($ac_try" in
15562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15571 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15573 # Check for a 64-bit object if we didn't find anything.
15574 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; }
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15583 rm -f core conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15588 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"
15590 if test "$host_cpu" = ia64; then
15591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15592 allow_undefined_flag="-z nodefs"
15593 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"
15595 # Determine the default libpath from the value encoded in an empty executable.
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (ac_try="$ac_link"
15613 case "(($ac_try" in
15614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15615 *) ac_try_echo
=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_link") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1
>conftest.err
15622 cat conftest.err
>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15638 *) ac_try_echo
=$ac_try;;
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15646 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15648 # Check for a 64-bit object if we didn't find anything.
15649 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; }
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.
$ac_ext >&5
15658 rm -f core conftest.err conftest.
$ac_objext \
15659 conftest
$ac_exeext conftest.
$ac_ext
15660 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15662 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15663 # Warning - without using the other run time loading flags,
15664 # -berok will link without error, but may produce a broken library.
15665 no_undefined_flag
=' ${wl}-bernotok'
15666 allow_undefined_flag
=' ${wl}-berok'
15667 # Exported symbols can be pulled into shared objects from archives
15668 whole_archive_flag_spec
='$convenience'
15669 archive_cmds_need_lc
=yes
15670 # This is similar to how AIX traditionally builds its shared libraries.
15671 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'
15677 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)'
15678 hardcode_libdir_flag_spec
='-L$libdir'
15679 hardcode_minus_L
=yes
15680 # see comment about different semantics on the GNU ld section
15685 export_dynamic_flag_spec
=-rdynamic
15688 cygwin
* | mingw
* | pw32
*)
15689 # When not using gcc, we currently assume that we are using
15690 # Microsoft Visual C++.
15691 # hardcode_libdir_flag_spec is actually meaningless, as there is
15692 # no search path for DLLs.
15693 hardcode_libdir_flag_spec
=' '
15694 allow_undefined_flag
=unsupported
15695 # Tell ltmain to make .lib files, not .a files.
15697 # Tell ltmain to make .dll files, not .so files.
15699 # FIXME: Setting linknames here is a bad hack.
15700 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15701 # The linker will automatically build a .lib file if we build a DLL.
15702 old_archive_From_new_cmds
='true'
15703 # FIXME: Should let the user specify the lib program.
15704 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15705 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15706 enable_shared_with_static_runtimes
=yes
15709 darwin
* | rhapsody
*)
15711 rhapsody
* | darwin1.
[012])
15712 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15716 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15718 case ${MACOSX_DEPLOYMENT_TARGET} in
15720 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15723 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15729 archive_cmds_need_lc
=no
15731 hardcode_automatic
=yes
15732 hardcode_shlibpath_var
=unsupported
15733 whole_archive_flag_spec
=''
15734 link_all_deplibs
=yes
15735 if test "$GCC" = yes ; then
15736 output_verbose_link_cmd
='echo'
15737 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15738 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15740 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}'
15741 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}'
15743 case $cc_basename in
15745 output_verbose_link_cmd
='echo'
15746 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15747 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15749 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}'
15750 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}'
15760 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_libdir_flag_spec
='-L$libdir'
15762 hardcode_shlibpath_var
=no
15769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15770 # support. Future versions do this automatically, but an explicit c++rt0.o
15771 # does not break anything, and helps significantly (at the cost of a little
15774 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15775 hardcode_libdir_flag_spec
='-R$libdir'
15776 hardcode_direct
=yes
15777 hardcode_shlibpath_var
=no
15780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15782 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_direct
=yes
15784 hardcode_minus_L
=yes
15785 hardcode_shlibpath_var
=no
15788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15789 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15790 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15791 hardcode_libdir_flag_spec
='-R$libdir'
15792 hardcode_direct
=yes
15793 hardcode_shlibpath_var
=no
15797 if test "$GCC" = yes; then
15798 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'
15800 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'
15802 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15803 hardcode_libdir_separator
=:
15804 hardcode_direct
=yes
15806 # hardcode_minus_L: Not really in the search PATH,
15807 # but as the default location of the library.
15808 hardcode_minus_L
=yes
15809 export_dynamic_flag_spec
='${wl}-E'
15813 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15814 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15816 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15818 if test "$with_gnu_ld" = no
; then
15819 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15820 hardcode_libdir_separator
=:
15822 hardcode_direct
=yes
15823 export_dynamic_flag_spec
='${wl}-E'
15825 # hardcode_minus_L: Not really in the search PATH,
15826 # but as the default location of the library.
15827 hardcode_minus_L
=yes
15832 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15835 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15847 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15850 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15857 if test "$with_gnu_ld" = no
; then
15858 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15859 hardcode_libdir_separator
=:
15863 hardcode_libdir_flag_spec_ld
='+b $libdir'
15865 hardcode_shlibpath_var
=no
15868 hardcode_direct
=yes
15869 export_dynamic_flag_spec
='${wl}-E'
15871 # hardcode_minus_L: Not really in the search PATH,
15872 # but as the default location of the library.
15873 hardcode_minus_L
=yes
15879 irix5
* | irix6
* | nonstopux
*)
15880 if test "$GCC" = yes; then
15881 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'
15883 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'
15884 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15886 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15887 hardcode_libdir_separator
=:
15888 link_all_deplibs
=yes
15892 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15893 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15895 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15897 hardcode_libdir_flag_spec
='-R$libdir'
15898 hardcode_direct
=yes
15899 hardcode_shlibpath_var
=no
15903 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_direct
=yes
15905 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15906 hardcode_libdir_separator
=:
15907 hardcode_shlibpath_var
=no
15911 hardcode_direct
=yes
15912 hardcode_shlibpath_var
=no
15913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15914 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15915 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15916 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15917 export_dynamic_flag_spec
='${wl}-E'
15920 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15921 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_libdir_flag_spec
='-R$libdir'
15925 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15926 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15933 hardcode_libdir_flag_spec
='-L$libdir'
15934 hardcode_minus_L
=yes
15935 allow_undefined_flag
=unsupported
15936 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'
15937 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15941 if test "$GCC" = yes; then
15942 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15943 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'
15945 allow_undefined_flag
=' -expect_unresolved \*'
15946 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'
15948 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15949 hardcode_libdir_separator
=:
15952 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15953 if test "$GCC" = yes; then
15954 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15955 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'
15956 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15958 allow_undefined_flag
=' -expect_unresolved \*'
15959 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'
15960 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15961 $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'
15963 # Both c and cxx compiler support -rpath directly
15964 hardcode_libdir_flag_spec
='-rpath $libdir'
15966 hardcode_libdir_separator
=:
15970 no_undefined_flag
=' -z text'
15971 if test "$GCC" = yes; then
15973 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15978 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15982 hardcode_libdir_flag_spec
='-R$libdir'
15983 hardcode_shlibpath_var
=no
15985 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15987 # The compiler driver will combine linker options so we
15988 # cannot just pass the convience library names through
15989 # without $wl, iff we do not link with $LD.
15990 # Luckily, gcc supports the same syntax we need for Sun Studio.
15991 # Supported since Solaris 2.6 (maybe 2.5.1?)
15994 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
15996 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' ;;
15999 link_all_deplibs
=yes
16003 if test "x$host_vendor" = xsequent
; then
16004 # Use $CC to link under sequent, because it throws in some extra .o
16005 # files that make .init and .fini sections work.
16006 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16008 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16010 hardcode_libdir_flag_spec
='-L$libdir'
16011 hardcode_direct
=yes
16012 hardcode_minus_L
=yes
16013 hardcode_shlibpath_var
=no
16017 case $host_vendor in
16019 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_direct
=yes # is this really true???
16023 ## LD is ld it makes a PLAMLIB
16024 ## CC just makes a GrossModule.
16025 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16026 reload_cmds
='$CC -r -o $output$reload_objs'
16030 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16031 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16034 runpath_var
='LD_RUN_PATH'
16035 hardcode_shlibpath_var
=no
16039 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_shlibpath_var
=no
16041 export_dynamic_flag_spec
='-Bexport'
16045 if test -d /usr
/nec
; then
16046 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_shlibpath_var
=no
16048 runpath_var
=LD_RUN_PATH
16049 hardcode_runpath_var
=yes
16054 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16055 no_undefined_flag
='${wl}-z,text'
16056 archive_cmds_need_lc
=no
16057 hardcode_shlibpath_var
=no
16058 runpath_var
='LD_RUN_PATH'
16060 if test "$GCC" = yes; then
16061 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16064 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16065 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16069 sysv5
* | sco3.2v5
* | sco5v6
*)
16070 # Note: We can NOT use -z defs as we might desire, because we do not
16071 # link with -lc, and that would cause any symbols used from libc to
16072 # always be unresolved, which means just about no library would
16073 # ever link correctly. If we're not using GNU ld we use -z text
16074 # though, which does catch some bad symbols but isn't as heavy-handed
16076 no_undefined_flag
='${wl}-z,text'
16077 allow_undefined_flag
='${wl}-z,nodefs'
16078 archive_cmds_need_lc
=no
16079 hardcode_shlibpath_var
=no
16080 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16081 hardcode_libdir_separator
=':'
16082 link_all_deplibs
=yes
16083 export_dynamic_flag_spec
='${wl}-Bexport'
16084 runpath_var
='LD_RUN_PATH'
16086 if test "$GCC" = yes; then
16087 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16090 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16096 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097 hardcode_libdir_flag_spec
='-L$libdir'
16098 hardcode_shlibpath_var
=no
16107 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16108 echo "${ECHO_T}$ld_shlibs" >&6; }
16109 test "$ld_shlibs" = no
&& can_build_shared
=no
16112 # Do we need to explicitly link libc?
16114 case "x$archive_cmds_need_lc" in
16116 # Assume -lc should be added
16117 archive_cmds_need_lc
=yes
16119 if test "$enable_shared" = yes && test "$GCC" = yes; then
16120 case $archive_cmds in
16122 # FIXME: we may have to deal with multi-command sequences.
16125 # Test whether the compiler implicitly links with -lc since on some
16126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16127 # to ld, don't add -lc before -lgcc.
16128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16129 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16131 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } 2>conftest.err
; then
16140 libobjs
=conftest.
$ac_objext
16142 wl
=$lt_prog_compiler_wl
16143 pic_flag
=$lt_prog_compiler_pic
16149 lt_save_allow_undefined_flag
=$allow_undefined_flag
16150 allow_undefined_flag
=
16151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16152 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }
16157 archive_cmds_need_lc
=no
16159 archive_cmds_need_lc
=yes
16161 allow_undefined_flag
=$lt_save_allow_undefined_flag
16163 cat conftest.err
1>&5
16166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16167 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16174 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16176 library_names_spec
=
16177 libname_spec
='lib$name'
16181 postuninstall_cmds
=
16185 shlibpath_overrides_runpath
=unknown
16187 dynamic_linker
="$host_os ld.so"
16188 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16189 if test "$GCC" = yes; then
16190 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16191 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16192 # if the path contains ";" then we assume it to be the separator
16193 # otherwise default to the standard path separator (i.e. ":") - it is
16194 # assumed that no part of a normal pathname contains ";" but that should
16195 # okay in the real world where ";" in dirpaths is itself problematic.
16196 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16198 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16201 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16203 need_lib_prefix
=unknown
16204 hardcode_into_libs
=no
16206 # when you set need_version to no, make sure it does not cause -set_version
16207 # flags to be left without arguments
16208 need_version
=unknown
16213 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16214 shlibpath_var
=LIBPATH
16216 # AIX 3 has no versioning support, so we append a major version to the name.
16217 soname_spec
='${libname}${release}${shared_ext}$major'
16224 hardcode_into_libs
=yes
16225 if test "$host_cpu" = ia64
; then
16226 # AIX 5 supports IA64
16227 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16228 shlibpath_var
=LD_LIBRARY_PATH
16230 # With GCC up to 2.95.x, collect2 would create an import file
16231 # for dependence libraries. The import file would start with
16232 # the line `#! .'. This would cause the generated library to
16233 # depend on `.', always an invalid library. This was fixed in
16234 # development snapshots of GCC prior to 3.0.
16236 aix4 | aix4.
[01] | aix4.
[01].
*)
16237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16239 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16242 can_build_shared
=no
16246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16247 # soname into executable. Probably we can add versioning support to
16248 # collect2, so additional links can be useful in future.
16249 if test "$aix_use_runtimelinking" = yes; then
16250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16251 # instead of lib<name>.a to let people know that these are not
16252 # typical AIX shared libraries.
16253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255 # We preserve .a as extension for shared libraries through AIX4.2
16256 # and later when we are not doing run time linking.
16257 library_names_spec
='${libname}${release}.a $libname.a'
16258 soname_spec
='${libname}${release}${shared_ext}$major'
16260 shlibpath_var
=LIBPATH
16265 library_names_spec
='$libname.ixlibrary $libname.a'
16266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16267 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'
16271 library_names_spec
='${libname}${shared_ext}'
16272 dynamic_linker
="$host_os ld.so"
16273 shlibpath_var
=LIBRARY_PATH
16279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec
='${libname}${release}${shared_ext}$major'
16281 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16282 shlibpath_var
=LD_LIBRARY_PATH
16283 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16284 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16285 # the default ld.so.conf also contains /usr/contrib/lib and
16286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16287 # libtool to hard-code these into programs
16290 cygwin
* | mingw
* | pw32
*)
16291 version_type
=windows
16296 case $GCC,$host_os in
16297 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16298 library_names_spec
='$libname.dll.a'
16299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16300 postinstall_cmds
='base_file=`basename \${file}`~
16301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16302 dldir=$destdir/`dirname \$dlpath`~
16303 test -d \$dldir || mkdir -p \$dldir~
16304 $install_prog $dir/$dlname \$dldir/$dlname~
16305 chmod a+x \$dldir/$dlname'
16306 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16307 dlpath=$dir/\$dldll~
16309 shlibpath_overrides_runpath
=yes
16313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16314 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16318 # MinGW DLLs use traditional 'lib' prefix
16319 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16320 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16321 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16322 # It is most probably a Windows format PATH printed by
16323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16324 # path with ; separators, and with drive letters. We can handle the
16325 # drive letters (cygwin fileutils understands them), so leave them,
16326 # especially as we might pass files found there to a mingw objdump,
16327 # which wouldn't understand a cygwinified path. Ahh.
16328 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16330 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16334 # pw32 DLLs use 'pw' prefix rather than 'lib'
16335 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16341 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16344 dynamic_linker
='Win32 ld.exe'
16345 # FIXME: first we should search . and the directory the executable is in
16349 darwin
* | rhapsody
*)
16350 dynamic_linker
="$host_os dyld"
16351 version_type
=darwin
16354 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16355 soname_spec
='${libname}${release}${major}$shared_ext'
16356 shlibpath_overrides_runpath
=yes
16357 shlibpath_var
=DYLD_LIBRARY_PATH
16358 shrext_cmds
='.dylib'
16359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16360 if test "$GCC" = yes; then
16361 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"`
16363 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16365 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16373 soname_spec
='${libname}${release}${shared_ext}$major'
16374 shlibpath_var
=LD_LIBRARY_PATH
16385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386 soname_spec
='${libname}${release}${shared_ext}$major'
16387 shlibpath_var
=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath
=no
16389 hardcode_into_libs
=yes
16390 dynamic_linker
='GNU ld.so'
16393 freebsd
* | dragonfly
*)
16394 # DragonFly does not have aout. When/if they implement a new
16395 # versioning mechanism, adjust this.
16396 if test -x /usr
/bin
/objformat
; then
16397 objformat
=`/usr/bin/objformat`
16400 freebsd
[123]*) objformat
=aout
;;
16401 *) objformat
=elf
;;
16404 version_type
=freebsd-
$objformat
16405 case $version_type in
16407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16412 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16416 shlibpath_var
=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath
=yes
16421 freebsd3.
[01]* | freebsdelf3.
[01]*)
16422 shlibpath_overrides_runpath
=yes
16423 hardcode_into_libs
=yes
16425 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16426 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16427 shlibpath_overrides_runpath
=no
16428 hardcode_into_libs
=yes
16430 freebsd
*) # from 4.6 on
16431 shlibpath_overrides_runpath
=yes
16432 hardcode_into_libs
=yes
16441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16442 soname_spec
='${libname}${release}${shared_ext}$major'
16443 shlibpath_var
=LD_LIBRARY_PATH
16444 hardcode_into_libs
=yes
16447 hpux9
* | hpux10
* | hpux11
*)
16448 # Give a soname corresponding to the major version so that dld.sl refuses to
16449 # link against other versions.
16456 hardcode_into_libs
=yes
16457 dynamic_linker
="$host_os dld.so"
16458 shlibpath_var
=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec
='${libname}${release}${shared_ext}$major'
16462 if test "X$HPUX_IA64_MODE" = X32
; then
16463 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16465 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16467 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16471 hardcode_into_libs
=yes
16472 dynamic_linker
="$host_os dld.sl"
16473 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16474 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec
='${libname}${release}${shared_ext}$major'
16477 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16478 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16482 dynamic_linker
="$host_os dld.sl"
16483 shlibpath_var
=SHLIB_PATH
16484 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486 soname_spec
='${libname}${release}${shared_ext}$major'
16489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16490 postinstall_cmds
='chmod 555 $lib'
16497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16498 soname_spec
='${libname}${release}${shared_ext}$major'
16499 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16500 shlibpath_var
=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath
=no
16502 hardcode_into_libs
=yes
16505 irix5
* | irix6
* | nonstopux
*)
16507 nonstopux
*) version_type
=nonstopux
;;
16509 if test "$lt_cv_prog_gnu_ld" = yes; then
16517 soname_spec
='${libname}${release}${shared_ext}$major'
16518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16520 irix5
* | nonstopux
*)
16521 libsuff
= shlibsuff
=
16524 case $LD in # libtool.m4 will add one of these switches to LD
16525 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16526 libsuff
= shlibsuff
= libmagic
=32-bit;;
16527 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16528 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16529 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16530 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16531 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16535 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16536 shlibpath_overrides_runpath
=no
16537 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16538 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16539 hardcode_into_libs
=yes
16542 # No shared lib support for Linux oldld, aout, or coff.
16543 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16547 # This must be Linux ELF.
16552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec
='${libname}${release}${shared_ext}$major'
16554 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16555 shlibpath_var
=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath
=no
16557 # This implies no fast_install, which is unacceptable.
16558 # Some rework will be needed to allow for fast_install
16559 # before this can be enabled.
16560 hardcode_into_libs
=yes
16562 # Append ld.so.conf contents to the search path
16563 if test -f /etc
/ld.so.conf
; then
16564 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' ' '`
16565 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16568 # We used to test for /lib/ld.so.1 and disable shared libraries on
16569 # powerpc, because MkLinux only supported shared libraries with the
16570 # GNU dynamic linker. Since this was broken with cross compilers,
16571 # most powerpc-linux boxes support dynamic linking these days and
16572 # people can always --disable-shared, the test was removed, and we
16573 # assume the GNU/Linux dynamic linker is in use.
16574 dynamic_linker
='GNU/Linux ld.so'
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 shlibpath_var
=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath
=no
16585 hardcode_into_libs
=yes
16586 dynamic_linker
='GNU ld.so'
16593 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16595 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16596 dynamic_linker
='NetBSD (a.out) ld.so'
16598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16599 soname_spec
='${libname}${release}${shared_ext}$major'
16600 dynamic_linker
='NetBSD ld.elf_so'
16602 shlibpath_var
=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath
=yes
16604 hardcode_into_libs
=yes
16609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610 shlibpath_var
=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath
=yes
16618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec
='${libname}${release}${shared_ext}$major'
16620 shlibpath_var
=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath
=yes
16626 sys_lib_dlsearch_path_spec
="/usr/lib"
16628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16630 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16631 *) need_version
=no
;;
16633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16634 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16635 shlibpath_var
=LD_LIBRARY_PATH
16636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16638 openbsd2.
[89] | openbsd2.
[89].
*)
16639 shlibpath_overrides_runpath
=no
16642 shlibpath_overrides_runpath
=yes
16646 shlibpath_overrides_runpath
=yes
16651 libname_spec
='$name'
16654 library_names_spec
='$libname${shared_ext} $libname.a'
16655 dynamic_linker
='OS/2 ld.exe'
16656 shlibpath_var
=LIBPATH
16659 osf3
* | osf4
* | osf5
*)
16663 soname_spec
='${libname}${release}${shared_ext}$major'
16664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 shlibpath_var
=LD_LIBRARY_PATH
16666 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16667 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675 soname_spec
='${libname}${release}${shared_ext}$major'
16676 shlibpath_var
=LD_LIBRARY_PATH
16677 shlibpath_overrides_runpath
=yes
16678 hardcode_into_libs
=yes
16679 # ldd complains unless libraries are executable
16680 postinstall_cmds
='chmod +x $lib'
16685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16686 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16687 shlibpath_var
=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath
=yes
16689 if test "$with_gnu_ld" = yes; then
16697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec
='${libname}${release}${shared_ext}$major'
16699 shlibpath_var
=LD_LIBRARY_PATH
16700 case $host_vendor in
16702 shlibpath_overrides_runpath
=no
16704 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16705 runpath_var
=LD_RUN_PATH
16713 shlibpath_overrides_runpath
=no
16714 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16720 if test -d /usr
/nec
;then
16722 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16723 soname_spec
='$libname${shared_ext}.$major'
16724 shlibpath_var
=LD_LIBRARY_PATH
16728 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16729 version_type
=freebsd-elf
16732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16733 soname_spec
='${libname}${release}${shared_ext}$major'
16734 shlibpath_var
=LD_LIBRARY_PATH
16735 hardcode_into_libs
=yes
16736 if test "$with_gnu_ld" = yes; then
16737 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16738 shlibpath_overrides_runpath
=no
16740 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16741 shlibpath_overrides_runpath
=yes
16744 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16748 sys_lib_dlsearch_path_spec
='/usr/lib'
16753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 soname_spec
='${libname}${release}${shared_ext}$major'
16755 shlibpath_var
=LD_LIBRARY_PATH
16762 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16763 echo "${ECHO_T}$dynamic_linker" >&6; }
16764 test "$dynamic_linker" = no
&& can_build_shared
=no
16766 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16767 if test "$GCC" = yes; then
16768 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16771 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16774 if test -n "$hardcode_libdir_flag_spec" || \
16775 test -n "$runpath_var" || \
16776 test "X$hardcode_automatic" = "Xyes" ; then
16778 # We can hardcode non-existant directories.
16779 if test "$hardcode_direct" != no
&&
16780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16781 # have to relink, otherwise we might link with an installed library
16782 # when we should be linking with a yet-to-be-installed one
16783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16784 test "$hardcode_minus_L" != no
; then
16785 # Linking always hardcodes the temporary library directory.
16786 hardcode_action
=relink
16788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16789 hardcode_action
=immediate
16792 # We cannot hardcode anything, or else we can only hardcode existing
16794 hardcode_action
=unsupported
16796 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16797 echo "${ECHO_T}$hardcode_action" >&6; }
16799 if test "$hardcode_action" = relink
; then
16800 # Fast installation is not supported
16801 enable_fast_install
=no
16802 elif test "$shlibpath_overrides_runpath" = yes ||
16803 test "$enable_shared" = no
; then
16804 # Fast installation is not necessary
16805 enable_fast_install
=needless
16810 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16812 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16813 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16814 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16815 { echo "$as_me:$LINENO: result: yes" >&5
16816 echo "${ECHO_T}yes" >&6; }
16818 # FIXME - insert some real tests, host_os isn't really good enough
16821 if test -n "$STRIP" ; then
16822 striplib
="$STRIP -x"
16823 { echo "$as_me:$LINENO: result: yes" >&5
16824 echo "${ECHO_T}yes" >&6; }
16826 { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16831 { echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6; }
16837 if test "x$enable_dlopen" != xyes
; then
16838 enable_dlopen
=unknown
16839 enable_dlopen_self
=unknown
16840 enable_dlopen_self_static
=unknown
16847 lt_cv_dlopen
="load_add_on"
16849 lt_cv_dlopen_self
=yes
16853 lt_cv_dlopen
="LoadLibrary"
16858 lt_cv_dlopen
="dlopen"
16863 # if libdl is installed we need to link against it
16864 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 ac_check_lib_save_LIBS
=$LIBS
16871 cat >conftest.
$ac_ext <<_ACEOF
16874 cat confdefs.h
>>conftest.
$ac_ext
16875 cat >>conftest.
$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16878 /* Override any GCC internal prototype to avoid an error.
16879 Use char because int might match the return type of a GCC
16880 builtin and then its argument prototype would still apply. */
16893 rm -f conftest.
$ac_objext conftest
$ac_exeext
16894 if { (ac_try
="$ac_link"
16895 case "(($ac_try" in
16896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16908 { (case "(($ac_try" in
16909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16910 *) ac_try_echo
=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_try") 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try
='test -s conftest$ac_exeext'
16918 { (case "(($ac_try" in
16919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_try") 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_lib_dl_dlopen=yes
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_cv_lib_dl_dlopen=no
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16941 if test $ac_cv_lib_dl_dlopen = yes; then
16942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16945 lt_cv_dlopen="dyld"
16947 lt_cv_dlopen_self=yes
16954 { echo "$as_me:$LINENO: checking for shl_load" >&5
16955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16956 if test "${ac_cv_func_shl_load+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16967 #define shl_load innocuous_shl_load
16969 /* System header to define __stub macros and hopefully few prototypes,
16970 which can conflict with char shl_load (); below.
16971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16972 <limits.h> exists even on freestanding compilers. */
16975 # include <limits.h>
16977 # include <assert.h>
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16989 /* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
16992 #if defined __stub_shl_load || defined __stub___shl_load
16999 return shl_load ();
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17008 *) ac_try_echo
=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1
>conftest.err
17015 cat conftest.err
>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (case "(($ac_try" in
17020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17031 *) ac_try_echo
=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 ac_cv_func_shl_load
=yes
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.
$ac_ext >&5
17043 ac_cv_func_shl_load
=no
17046 rm -f core conftest.err conftest.
$ac_objext \
17047 conftest
$ac_exeext conftest.
$ac_ext
17049 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17050 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17051 if test $ac_cv_func_shl_load = yes; then
17052 lt_cv_dlopen
="shl_load"
17054 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17055 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17056 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 ac_check_lib_save_LIBS
=$LIBS
17061 cat >conftest.
$ac_ext <<_ACEOF
17064 cat confdefs.h
>>conftest.
$ac_ext
17065 cat >>conftest.
$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17068 /* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17078 return shl_load ();
17083 rm -f conftest.
$ac_objext conftest
$ac_exeext
17084 if { (ac_try
="$ac_link"
17085 case "(($ac_try" in
17086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1 >conftest.err
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17100 *) ac_try_echo
=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try
='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_lib_dld_shl_load=yes
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ac_cv_lib_dld_shl_load=no
17125 rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17127 LIBS=$ac_check_lib_save_LIBS
17129 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17130 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17131 if test $ac_cv_lib_dld_shl_load = yes; then
17132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17134 { echo "$as_me:$LINENO: checking for dlopen" >&5
17135 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17136 if test "${ac_cv_func_dlopen+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17147 #define dlopen innocuous_dlopen
17149 /* System header to define __stub macros and hopefully few prototypes,
17150 which can conflict with char dlopen (); below.
17151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17152 <limits.h> exists even on freestanding compilers. */
17155 # include <limits.h>
17157 # include <assert.h>
17162 /* Override any GCC internal prototype to avoid an error.
17163 Use char because int might match the return type of a GCC
17164 builtin and then its argument prototype would still apply. */
17169 /* The GNU C library defines this for functions which it implements
17170 to always fail with ENOSYS. Some functions are actually named
17171 something starting with __ and the normal name is an alias. */
17172 #if defined __stub_dlopen || defined __stub___dlopen
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17188 *) ac_try_echo
=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
17193 grep -v '^ *+' conftest.er1
>conftest.err
17195 cat conftest.err
>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17199 { (case "(($ac_try" in
17200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_try") 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (case "(($ac_try" in
17210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17211 *) ac_try_echo
=$ac_try;;
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_try") 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_func_dlopen
=yes
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.
$ac_ext >&5
17223 ac_cv_func_dlopen
=no
17226 rm -f core conftest.err conftest.
$ac_objext \
17227 conftest
$ac_exeext conftest.
$ac_ext
17229 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17230 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17231 if test $ac_cv_func_dlopen = yes; then
17232 lt_cv_dlopen
="dlopen"
17234 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 ac_check_lib_save_LIBS
=$LIBS
17241 cat >conftest.
$ac_ext <<_ACEOF
17244 cat confdefs.h
>>conftest.
$ac_ext
17245 cat >>conftest.
$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17263 rm -f conftest.
$ac_objext conftest
$ac_exeext
17264 if { (ac_try
="$ac_link"
17265 case "(($ac_try" in
17266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17280 *) ac_try_echo
=$ac_try;;
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try
='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_cv_lib_dl_dlopen=yes
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 ac_cv_lib_dl_dlopen=no
17305 rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307 LIBS=$ac_check_lib_save_LIBS
17309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17311 if test $ac_cv_lib_dl_dlopen = yes; then
17312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17314 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 ac_check_lib_save_LIBS=$LIBS
17320 LIBS="-lsvld $LIBS"
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17347 *) ac_try_echo
=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1
>conftest.err
17354 cat conftest.err
>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17358 { (case "(($ac_try" in
17359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest$ac_exeext'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17370 *) ac_try_echo
=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_lib_svld_dlopen
=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.
$ac_ext >&5
17382 ac_cv_lib_svld_dlopen
=no
17385 rm -f core conftest.err conftest.
$ac_objext \
17386 conftest
$ac_exeext conftest.
$ac_ext
17387 LIBS
=$ac_check_lib_save_LIBS
17389 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17390 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17391 if test $ac_cv_lib_svld_dlopen = yes; then
17392 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17394 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17395 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17396 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 ac_check_lib_save_LIBS
=$LIBS
17401 cat >conftest.
$ac_ext <<_ACEOF
17404 cat confdefs.h
>>conftest.
$ac_ext
17405 cat >>conftest.
$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17418 return dld_link ();
17423 rm -f conftest.
$ac_objext conftest
$ac_exeext
17424 if { (ac_try
="$ac_link"
17425 case "(($ac_try" in
17426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17440 *) ac_try_echo
=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try
='test -s conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_lib_dld_dld_link=yes
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_lib_dld_dld_link=no
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17469 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17470 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17471 if test $ac_cv_lib_dld_dld_link = yes; then
17472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17493 if test "x$lt_cv_dlopen" != xno; then
17499 case $lt_cv_dlopen in
17501 save_CPPFLAGS="$CPPFLAGS"
17502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17504 save_LDFLAGS="$LDFLAGS"
17505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17508 LIBS="$lt_cv_dlopen_libs $LIBS"
17510 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17511 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17512 if test "${lt_cv_dlopen_self+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 if test "$cross_compiling" = yes; then :
17516 lt_cv_dlopen_self=cross
17518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17519 lt_status=$lt_dlunknown
17520 cat > conftest.$ac_ext <<EOF
17521 #line 17521 "configure"
17522 #include "confdefs.h"
17531 # define LT_DLGLOBAL RTLD_GLOBAL
17534 # define LT_DLGLOBAL DL_GLOBAL
17536 # define LT_DLGLOBAL 0
17540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17541 find out it does not work in some platform. */
17542 #ifndef LT_DLLAZY_OR_NOW
17544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17547 # define LT_DLLAZY_OR_NOW DL_LAZY
17550 # define LT_DLLAZY_OR_NOW RTLD_NOW
17553 # define LT_DLLAZY_OR_NOW DL_NOW
17555 # define LT_DLLAZY_OR_NOW 0
17563 extern "C" void exit (int);
17566 void fnord() { int i=42;}
17569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17570 int status = $lt_dlunknown;
17574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17576 /* dlclose (self); */
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17589 (./conftest; exit; ) >&5 2>/dev/null
17591 case x$lt_status in
17592 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17593 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17594 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17597 # compilation failed
17598 lt_cv_dlopen_self=no
17605 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17606 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17608 if test "x$lt_cv_dlopen_self" = xyes; then
17609 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17610 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17611 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17612 if test "${lt_cv_dlopen_self_static+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 if test "$cross_compiling" = yes; then :
17616 lt_cv_dlopen_self_static=cross
17618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17619 lt_status=$lt_dlunknown
17620 cat > conftest.$ac_ext <<EOF
17621 #line 17621 "configure"
17622 #include "confdefs.h"
17631 # define LT_DLGLOBAL RTLD_GLOBAL
17634 # define LT_DLGLOBAL DL_GLOBAL
17636 # define LT_DLGLOBAL 0
17640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17641 find out it does not work in some platform. */
17642 #ifndef LT_DLLAZY_OR_NOW
17644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17647 # define LT_DLLAZY_OR_NOW DL_LAZY
17650 # define LT_DLLAZY_OR_NOW RTLD_NOW
17653 # define LT_DLLAZY_OR_NOW DL_NOW
17655 # define LT_DLLAZY_OR_NOW 0
17663 extern "C" void exit (int);
17666 void fnord() { int i=42;}
17669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17670 int status = $lt_dlunknown;
17674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17675 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17676 /* dlclose (self); */
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17689 (./conftest; exit; ) >&5 2>/dev/null
17691 case x$lt_status in
17692 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17693 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17694 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17697 # compilation failed
17698 lt_cv_dlopen_self_static=no
17705 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17706 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17709 CPPFLAGS="$save_CPPFLAGS"
17710 LDFLAGS="$save_LDFLAGS"
17715 case $lt_cv_dlopen_self in
17716 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17717 *) enable_dlopen_self=unknown ;;
17720 case $lt_cv_dlopen_self_static in
17721 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17722 *) enable_dlopen_self_static=unknown ;;
17727 # Report which library types will actually be built
17728 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17729 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17730 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17731 echo "${ECHO_T}$can_build_shared" >&6; }
17733 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17734 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17735 test "$can_build_shared" = "no" && enable_shared=no
17737 # On AIX, shared libraries and static libraries use the same namespace, and
17738 # are all built from PIC.
17741 test "$enable_shared" = yes && enable_static=no
17742 if test -n "$RANLIB"; then
17743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17744 postinstall_cmds='$RANLIB $lib'
17749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17750 test "$enable_shared" = yes && enable_static=no
17754 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17755 echo "${ECHO_T}$enable_shared" >&6; }
17757 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17758 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17759 # Make sure either enable_shared or enable_static is yes.
17760 test "$enable_shared" = yes || enable_static=yes
17761 { echo "$as_me:$LINENO: result: $enable_static" >&5
17762 echo "${ECHO_T}$enable_static" >&6; }
17764 # The else clause should only fire when bootstrapping the
17765 # libtool distribution, otherwise you forgot to ship ltmain.sh
17766 # with your package, and you will get complaints that there are
17767 # no rules to generate ltmain.sh.
17768 if test -f "$ltmain"; then
17769 # See if we are running on zsh, and set the options which allow our commands through
17770 # without removal of \ escapes.
17771 if test -n "${ZSH_VERSION+set}" ; then
17772 setopt NO_GLOB_SUBST
17774 # Now quote all the things that may contain metacharacters while being
17775 # careful not to overquote the AC_SUBSTed values. We take copies of the
17776 # variables and quote the copies for generation of the libtool script.
17777 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17779 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17780 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17781 deplibs_check_method reload_flag reload_cmds need_locks \
17782 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17783 lt_cv_sys_global_symbol_to_c_name_address \
17784 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17785 old_postinstall_cmds old_postuninstall_cmds \
17789 lt_prog_compiler_wl \
17790 lt_prog_compiler_pic \
17791 lt_prog_compiler_static \
17792 lt_prog_compiler_no_builtin_flag \
17793 export_dynamic_flag_spec \
17794 thread_safe_flag_spec \
17795 whole_archive_flag_spec \
17796 enable_shared_with_static_runtimes \
17798 old_archive_from_new_cmds \
17803 compiler_lib_search_path \
17805 archive_expsym_cmds \
17807 postuninstall_cmds \
17808 old_archive_from_expsyms_cmds \
17809 allow_undefined_flag \
17810 no_undefined_flag \
17811 export_symbols_cmds \
17812 hardcode_libdir_flag_spec \
17813 hardcode_libdir_flag_spec_ld \
17814 hardcode_libdir_separator \
17815 hardcode_automatic \
17817 module_expsym_cmds \
17818 lt_cv_prog_compiler_c_o \
17820 include_expsyms; do
17823 old_archive_cmds | \
17824 old_archive_from_new_cmds | \
17826 archive_expsym_cmds | \
17828 module_expsym_cmds | \
17829 old_archive_from_expsyms_cmds | \
17830 export_symbols_cmds | \
17831 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17832 postinstall_cmds | postuninstall_cmds | \
17833 old_postinstall_cmds | old_postuninstall_cmds | \
17834 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17835 # Double-quote double-evaled strings.
17836 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17839 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17845 *'\$0 --fallback-echo"')
17846 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17850 cfgfile="${ofile}T"
17851 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17853 { echo "$as_me:$LINENO: creating $ofile" >&5
17854 echo "$as_me: creating $ofile" >&6;}
17856 cat <<__EOF__ >> "$cfgfile"
17859 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17860 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17861 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17863 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17864 # Free Software Foundation, Inc.
17866 # This file is part of GNU Libtool:
17867 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17869 # This program is free software; you can redistribute it and/or modify
17870 # it under the terms of the GNU General Public License as published by
17871 # the Free Software Foundation; either version 2 of the License, or
17872 # (at your option) any later version.
17874 # This program is distributed in the hope that it will be useful, but
17875 # WITHOUT ANY WARRANTY; without even the implied warranty of
17876 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17877 # General Public License for more details.
17879 # You should have received a copy of the GNU General Public License
17880 # along with this program; if not, write to the Free Software
17881 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17883 # As a special exception to the GNU General Public License, if you
17884 # distribute this file as part of a program that contains a
17885 # configuration script generated by Autoconf, you may include it under
17886 # the same distribution terms that you use for the rest of that program.
17888 # A sed program that does not truncate output.
17891 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17892 Xsed="$SED -e 1s/^X//"
17894 # The HP-UX ksh and POSIX shell print the target directory to stdout
17895 # if CDPATH is set.
17896 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17898 # The names of the tagged configurations supported by this script.
17901 # ### BEGIN LIBTOOL CONFIG
17903 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17905 # Shell to use when invoking shell scripts.
17908 # Whether or not to build shared libraries.
17909 build_libtool_libs=$enable_shared
17911 # Whether or not to build static libraries.
17912 build_old_libs=$enable_static
17914 # Whether or not to add -lc for building shared libraries.
17915 build_libtool_need_lc=$archive_cmds_need_lc
17917 # Whether or not to disallow shared libs when runtime libs are static
17918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17920 # Whether or not to optimize for fast installation.
17921 fast_install=$enable_fast_install
17924 host_alias=$host_alias
17928 # The build system.
17929 build_alias=$build_alias
17933 # An echo program that does not interpret backslashes.
17938 AR_FLAGS=$lt_AR_FLAGS
17943 # LTCC compiler flags.
17944 LTCFLAGS=$lt_LTCFLAGS
17946 # A language-specific compiler.
17949 # Is the compiler the GNU C compiler?
17955 # The linker used to build libraries.
17958 # Whether we need hard or soft links.
17961 # A BSD-compatible nm program.
17964 # A symbol stripping program
17967 # Used to examine libraries when file_magic_cmd begins "file"
17968 MAGIC_CMD=$MAGIC_CMD
17970 # Used on cygwin: DLL creation program.
17973 # Used on cygwin: object dumper.
17976 # Used on cygwin: assembler.
17979 # The name of the directory that contains temporary libtool files.
17982 # How to create reloadable object files.
17983 reload_flag=$lt_reload_flag
17984 reload_cmds=$lt_reload_cmds
17986 # How to pass a linker flag through the compiler.
17987 wl=$lt_lt_prog_compiler_wl
17989 # Object file suffix (normally "o").
17990 objext="$ac_objext"
17992 # Old archive suffix (normally "a").
17995 # Shared library suffix (normally ".so").
17996 shrext_cmds='$shrext_cmds'
17998 # Executable file suffix (normally "").
18001 # Additional compiler flags for building library objects.
18002 pic_flag=$lt_lt_prog_compiler_pic
18005 # What is the maximum length of a command?
18006 max_cmd_len=$lt_cv_sys_max_cmd_len
18008 # Does compiler simultaneously support -c and -o options?
18009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18011 # Must we lock files when doing compilation?
18012 need_locks=$lt_need_locks
18014 # Do we need the lib prefix for modules?
18015 need_lib_prefix=$need_lib_prefix
18017 # Do we need a version for libraries?
18018 need_version=$need_version
18020 # Whether dlopen is supported.
18021 dlopen_support=$enable_dlopen
18023 # Whether dlopen of programs is supported.
18024 dlopen_self=$enable_dlopen_self
18026 # Whether dlopen of statically linked programs is supported.
18027 dlopen_self_static=$enable_dlopen_self_static
18029 # Compiler flag to prevent dynamic linking.
18030 link_static_flag=$lt_lt_prog_compiler_static
18032 # Compiler flag to turn off builtin functions.
18033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18035 # Compiler flag to allow reflexive dlopens.
18036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18038 # Compiler flag to generate shared objects directly from archives.
18039 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18041 # Compiler flag to generate thread-safe objects.
18042 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18044 # Library versioning type.
18045 version_type=$version_type
18047 # Format of library name prefix.
18048 libname_spec=$lt_libname_spec
18050 # List of archive names. First name is the real one, the rest are links.
18051 # The last name is the one that the linker finds with -lNAME.
18052 library_names_spec=$lt_library_names_spec
18054 # The coded name of the library, if different from the real name.
18055 soname_spec=$lt_soname_spec
18057 # Commands used to build and install an old-style archive.
18059 old_archive_cmds=$lt_old_archive_cmds
18060 old_postinstall_cmds=$lt_old_postinstall_cmds
18061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18063 # Create an old-style archive from a shared archive.
18064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18066 # Create a temporary old-style archive to link instead of a shared archive.
18067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18069 # Commands used to build and install a shared archive.
18070 archive_cmds=$lt_archive_cmds
18071 archive_expsym_cmds=$lt_archive_expsym_cmds
18072 postinstall_cmds=$lt_postinstall_cmds
18073 postuninstall_cmds=$lt_postuninstall_cmds
18075 # Commands used to build a loadable module (assumed same as above if empty)
18076 module_cmds=$lt_module_cmds
18077 module_expsym_cmds=$lt_module_expsym_cmds
18079 # Commands to strip libraries.
18080 old_striplib=$lt_old_striplib
18081 striplib=$lt_striplib
18083 # Dependencies to place before the objects being linked to create a
18085 predep_objects=$lt_predep_objects
18087 # Dependencies to place after the objects being linked to create a
18089 postdep_objects=$lt_postdep_objects
18091 # Dependencies to place before the objects being linked to create a
18093 predeps=$lt_predeps
18095 # Dependencies to place after the objects being linked to create a
18097 postdeps=$lt_postdeps
18099 # The library search path used internally by the compiler when linking
18100 # a shared library.
18101 compiler_lib_search_path=$lt_compiler_lib_search_path
18103 # Method to check whether dependent libraries are shared objects.
18104 deplibs_check_method=$lt_deplibs_check_method
18106 # Command to use when deplibs_check_method == file_magic.
18107 file_magic_cmd=$lt_file_magic_cmd
18109 # Flag that allows shared libraries with undefined symbols to be built.
18110 allow_undefined_flag=$lt_allow_undefined_flag
18112 # Flag that forces no undefined symbols.
18113 no_undefined_flag=$lt_no_undefined_flag
18115 # Commands used to finish a libtool library installation in a directory.
18116 finish_cmds=$lt_finish_cmds
18118 # Same as above, but a single script fragment to be evaled but not shown.
18119 finish_eval=$lt_finish_eval
18121 # Take the output of nm and produce a listing of raw symbols and C names.
18122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18124 # Transform the output of nm in a proper C declaration
18125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18127 # Transform the output of nm in a C name address pair
18128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18130 # This is the shared library runtime path variable.
18131 runpath_var=$runpath_var
18133 # This is the shared library path variable.
18134 shlibpath_var=$shlibpath_var
18136 # Is shlibpath searched before the hard-coded library search path?
18137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18139 # How to hardcode a shared library path into an executable.
18140 hardcode_action=$hardcode_action
18142 # Whether we should hardcode library paths into libraries.
18143 hardcode_into_libs=$hardcode_into_libs
18145 # Flag to hardcode \$libdir into a binary during linking.
18146 # This must work even if \$libdir does not exist.
18147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18149 # If ld is used when linking, flag to hardcode \$libdir into
18150 # a binary during linking. This must work even if \$libdir does
18152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18154 # Whether we need a single -rpath flag with a separated argument.
18155 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18158 # resulting binary.
18159 hardcode_direct=$hardcode_direct
18161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18162 # resulting binary.
18163 hardcode_minus_L=$hardcode_minus_L
18165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18166 # the resulting binary.
18167 hardcode_shlibpath_var=$hardcode_shlibpath_var
18169 # Set to yes if building a shared library automatically hardcodes DIR into the library
18170 # and all subsequent libraries and executables linked against it.
18171 hardcode_automatic=$hardcode_automatic
18173 # Variables whose values should be saved in libtool wrapper scripts and
18174 # restored at relink time.
18175 variables_saved_for_relink="$variables_saved_for_relink"
18177 # Whether libtool must link a program against all its dependency libraries.
18178 link_all_deplibs=$link_all_deplibs
18180 # Compile-time system search path for libraries
18181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18183 # Run-time system search path for libraries
18184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18186 # Fix the shell variable \$srcfile for the compiler.
18187 fix_srcfile_path="$fix_srcfile_path"
18189 # Set to yes if exported symbols are required.
18190 always_export_symbols=$always_export_symbols
18192 # The commands to list exported symbols.
18193 export_symbols_cmds=$lt_export_symbols_cmds
18195 # The commands to extract the exported symbol list from a shared archive.
18196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18198 # Symbols that should not be listed in the preloaded symbols.
18199 exclude_expsyms=$lt_exclude_expsyms
18201 # Symbols that must always be exported.
18202 include_expsyms=$lt_include_expsyms
18204 # ### END LIBTOOL CONFIG
18211 cat <<\EOF >> "$cfgfile"
18213 # AIX sometimes has problems with the GCC collect2 program. For some
18214 # reason, if we set the COLLECT_NAMES environment variable, the problems
18215 # vanish in a puff of smoke.
18216 if test "X${COLLECT_NAMES+set}" != Xset; then
18218 export COLLECT_NAMES
18224 # We use sed instead of cat because bash on DJGPP gets confused if
18225 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18226 # text mode, it properly converts lines to CR/LF. This bash problem
18227 # is reportedly fixed, but why not run on old versions too?
18228 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18230 mv -f "$cfgfile" "$ofile" || \
18231 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18235 # If there is no Makefile yet, we rely on a make rule to execute
18236 # `config.status
--recheck' to rerun these tests and create the
18237 # libtool script then.
18238 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18239 if test -f "$ltmain_in"; then
18240 test -f Makefile && make "$ltmain"
18246 ac_cpp='$CPP $CPPFLAGS'
18247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18248 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18254 # Check whether --with-tags was given.
18255 if test "${with_tags+set}" = set; then
18256 withval=$with_tags; tagnames="$withval"
18260 if test -f "$ltmain" && test -n "$tagnames"; then
18261 if test ! -f "${ofile}"; then
18262 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18263 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18266 if test -z "$LTCC"; then
18267 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18268 if test -z "$LTCC"; then
18269 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18270 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18272 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18273 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18276 if test -z "$LTCFLAGS"; then
18277 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18280 # Extract list of available tagged configurations in $ofile.
18281 # Note that this assumes the entire list is on one line.
18282 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18285 for tagname in $tagnames; do
18287 # Check whether tagname contains only valid characters
18288 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18290 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18291 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18292 { (exit 1); exit 1; }; }
18296 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18298 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18299 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18300 { (exit 1); exit 1; }; }
18303 # Update the list of available tags.
18304 if test -n "$tagname"; then
18305 echo appending configuration tag \"$tagname\" to $ofile
18309 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18310 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18311 (test "X$CXX" != "Xg++"))) ; then
18313 ac_cpp='$CXXCPP $CPPFLAGS'
18314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18321 archive_cmds_need_lc_CXX=no
18322 allow_undefined_flag_CXX=
18323 always_export_symbols_CXX=no
18324 archive_expsym_cmds_CXX=
18325 export_dynamic_flag_spec_CXX=
18326 hardcode_direct_CXX=no
18327 hardcode_libdir_flag_spec_CXX=
18328 hardcode_libdir_flag_spec_ld_CXX=
18329 hardcode_libdir_separator_CXX=
18330 hardcode_minus_L_CXX=no
18331 hardcode_shlibpath_var_CXX=unsupported
18332 hardcode_automatic_CXX=no
18334 module_expsym_cmds_CXX=
18335 link_all_deplibs_CXX=unknown
18336 old_archive_cmds_CXX=$old_archive_cmds
18337 no_undefined_flag_CXX=
18338 whole_archive_flag_spec_CXX=
18339 enable_shared_with_static_runtimes_CXX=no
18341 # Dependencies to place before and after the object being linked:
18342 predep_objects_CXX=
18343 postdep_objects_CXX=
18346 compiler_lib_search_path_CXX=
18348 # Source file extension for C++ test sources.
18351 # Object file extension for compiled C++ test sources.
18355 # Code to be used in simple compile tests
18356 lt_simple_compile_test_code="int some_variable = 0;\n"
18358 # Code to be used in simple link tests
18359 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18363 # If no C compiler was specified, use CC.
18366 # If no C compiler flags were specified, use CFLAGS.
18367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18369 # Allow CC to be a program name with arguments.
18373 # save warnings/boilerplate of simple test code
18374 ac_outfile=conftest.$ac_objext
18375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377 _lt_compiler_boilerplate=`cat conftest.err
`
18380 ac_outfile=conftest.$ac_objext
18381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383 _lt_linker_boilerplate=`cat conftest.err
`
18387 # Allow CC to be a program name with arguments.
18392 lt_save_with_gnu_ld=$with_gnu_ld
18393 lt_save_path_LD=$lt_cv_path_LD
18394 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18395 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18397 $as_unset lt_cv_prog_gnu_ld
18399 if test -n "${lt_cv_path_LDCXX+set}"; then
18400 lt_cv_path_LD=$lt_cv_path_LDCXX
18402 $as_unset lt_cv_path_LD
18404 test -z "${LDCXX+set}" || LD=$LDCXX
18408 for cc_temp in $compiler""; do
18410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18416 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18419 # We don't want -fno-exception wen compiling C++ code, so set the
18420 # no_builtin_flag separately
18421 if test "$GXX" = yes; then
18422 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18424 lt_prog_compiler_no_builtin_flag_CXX=
18427 if test "$GXX" = yes; then
18428 # Set up default GNU C++ configuration
18431 # Check whether --with-gnu-ld was given.
18432 if test "${with_gnu_ld+set}" = set; then
18433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18439 if test "$GCC" = yes; then
18440 # Check if gcc -print-prog-name=ld gives a path.
18441 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18442 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18445 # gcc leaves a trailing carriage return which upsets mingw
18446 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18448 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18451 # Accept absolute paths.
18453 re_direlt='/[^/][^/]*/\.\./'
18454 # Canonicalize the pathname of ld
18455 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18457 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18459 test -z "$LD" && LD="$ac_prog"
18462 # If it fails, then pretend we aren't using GCC.
18466 # If it is relative, then search for the first ld in PATH.
18467 with_gnu_ld=unknown
18470 elif test "$with_gnu_ld" = yes; then
18471 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18474 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18477 if test "${lt_cv_path_LD+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 if test -z "$LD"; then
18481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18482 for ac_dir in $PATH; do
18484 test -z "$ac_dir" && ac_dir=.
18485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18486 lt_cv_path_LD="$ac_dir/$ac_prog"
18487 # Check to see if the program is GNU ld. I'd rather use --version,
18488 # but apparently some variants of GNU ld only accept -v.
18489 # Break only if it was the GNU/non-GNU ld that we prefer.
18490 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18491 *GNU* | *'with BFD'*)
18492 test "$with_gnu_ld" != no && break
18495 test "$with_gnu_ld" != yes && break
18502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18506 LD="$lt_cv_path_LD"
18507 if test -n "$LD"; then
18508 { echo "$as_me:$LINENO: result: $LD" >&5
18509 echo "${ECHO_T}$LD" >&6; }
18511 { echo "$as_me:$LINENO: result: no" >&5
18512 echo "${ECHO_T}no" >&6; }
18514 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18515 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18516 { (exit 1); exit 1; }; }
18517 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18518 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18519 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18523 case `$LD -v 2>&1 </dev
/null
` in
18524 *GNU* | *'with BFD'*)
18525 lt_cv_prog_gnu_ld=yes
18528 lt_cv_prog_gnu_ld=no
18532 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18533 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18534 with_gnu_ld=$lt_cv_prog_gnu_ld
18538 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18539 # archiving commands below assume that GNU ld is being used.
18540 if test "$with_gnu_ld" = yes; then
18541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 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'
18544 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18547 # If archive_cmds runs LD, not CC, wlarc should be empty
18548 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18549 # investigate it a little bit more. (MM)
18552 # ancient GNU ld didn't support --whole-archive et. al.
18553 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18554 grep 'no-whole-archive' > /dev/null; then
18555 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18557 whole_archive_flag_spec_CXX=
18563 # A generic and very simple default shared library creation
18564 # command for GNU C++ for the case where it uses the native
18565 # linker, instead of GNU ld. If possible, this setting should
18566 # overridden to take advantage of the native linker features on
18567 # the platform it is being used on.
18568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18582 # PORTME: fill in a description of your system's C++ link characteristics
18583 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18588 # FIXME: insert proper C++ library support
18592 if test "$host_cpu" = ia64; then
18593 # On IA64, the linker does run time linking by default, so we don't
18594 # have to do anything special.
18595 aix_use_runtimelinking=no
18596 exp_sym_flag='-Bexport'
18599 aix_use_runtimelinking=no
18601 # Test if we are trying to use run time linking or normal
18602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18603 # need to do runtime linking.
18604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18605 for ld_flag in $LDFLAGS; do
18608 aix_use_runtimelinking=yes
18616 exp_sym_flag='-bexport'
18617 no_entry_flag='-bnoentry'
18620 # When large executables or shared objects are built, AIX ld can
18621 # have problems creating the table of contents. If linking a library
18622 # or program results in "error TOC overflow" add -mminimal-toc to
18623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18626 archive_cmds_CXX=''
18627 hardcode_direct_CXX=yes
18628 hardcode_libdir_separator_CXX=':'
18629 link_all_deplibs_CXX=yes
18631 if test "$GXX" = yes; then
18632 case $host_os in aix4.[012]|aix4.[012].*)
18633 # We only want to do this on AIX 4.2 and lower, the check
18634 # below for broken collect2 doesn't work under 4.3+
18635 collect2name=`${CC} -print-prog-name=collect2
`
18636 if test -f "$collect2name" && \
18637 strings "$collect2name" | grep resolve_lib_name >/dev/null
18639 # We have reworked collect2
18640 hardcode_direct_CXX=yes
18642 # We have old collect2
18643 hardcode_direct_CXX=unsupported
18644 # It fails to find uninstalled libraries when the uninstalled
18645 # path is not listed in the libpath. Setting hardcode_minus_L
18646 # to unsupported forces relinking
18647 hardcode_minus_L_CXX=yes
18648 hardcode_libdir_flag_spec_CXX='-L$libdir'
18649 hardcode_libdir_separator_CXX=
18653 shared_flag='-shared'
18654 if test "$aix_use_runtimelinking" = yes; then
18655 shared_flag="$shared_flag "'${wl}-G'
18659 if test "$host_cpu" = ia64; then
18660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18661 # chokes on -Wl,-G. The following line is correct:
18664 if test "$aix_use_runtimelinking" = yes; then
18665 shared_flag='${wl}-G'
18667 shared_flag='${wl}-bM:SRE'
18672 # It seems that -bexpall does not export symbols beginning with
18673 # underscore (_), so it is better to generate a list of symbols to export.
18674 always_export_symbols_CXX=yes
18675 if test "$aix_use_runtimelinking" = yes; then
18676 # Warning - without using the other runtime loading flags (-brtl),
18677 # -berok will link without error, but may produce a broken library.
18678 allow_undefined_flag_CXX='-berok'
18679 # Determine the default libpath from the value encoded in an empty executable.
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
18697 case "(($ac_try" in
18698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18699 *) ac_try_echo
=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1
>conftest.err
18706 cat conftest.err
>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18722 *) ac_try_echo
=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18730 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18732 # Check for a 64-bit object if we didn't find anything.
18733 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; }
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.
$ac_ext >&5
18742 rm -f core conftest.err conftest.
$ac_objext \
18743 conftest
$ac_exeext conftest.
$ac_ext
18744 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18746 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18748 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"
18750 if test "$host_cpu" = ia64
; then
18751 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18752 allow_undefined_flag_CXX
="-z nodefs"
18753 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"
18755 # Determine the default libpath from the value encoded in an empty executable.
18756 cat >conftest.
$ac_ext <<_ACEOF
18759 cat confdefs.h
>>conftest.
$ac_ext
18760 cat >>conftest.
$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18771 rm -f conftest.
$ac_objext conftest
$ac_exeext
18772 if { (ac_try
="$ac_link"
18773 case "(($ac_try" in
18774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18788 *) ac_try_echo
=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try
='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18806 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18808 # Check for a 64-bit object if we didn't find anything.
18809 if test -z "$aix_libpath"; then aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18818 rm -f core conftest.err conftest.$ac_objext \
18819 conftest$ac_exeext conftest.$ac_ext
18820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18823 # Warning - without using the other run time loading flags,
18824 # -berok will link without error, but may produce a broken library.
18825 no_undefined_flag_CXX=' ${wl}-bernotok'
18826 allow_undefined_flag_CXX=' ${wl}-berok'
18827 # Exported symbols can be pulled into shared objects from archives
18828 whole_archive_flag_spec_CXX='$convenience'
18829 archive_cmds_need_lc_CXX=yes
18830 # This is similar to how AIX traditionally builds its shared libraries.
18831 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'
18837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18838 allow_undefined_flag_CXX=unsupported
18839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18840 # support --undefined. This deserves some investigation. FIXME
18841 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18848 case $cc_basename in
18850 # FIXME: insert proper C++ library support
18856 cygwin* | mingw* | pw32*)
18857 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18858 # as there is no search path for DLLs.
18859 hardcode_libdir_flag_spec_CXX='-L$libdir'
18860 allow_undefined_flag_CXX=unsupported
18861 always_export_symbols_CXX=no
18862 enable_shared_with_static_runtimes_CXX=yes
18864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18865 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'
18866 # If the export-symbols file already is a .def file (1st line
18867 # is EXPORTS), use it as is; otherwise, prepend...
18868 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18869 cp $export_symbols $output_objdir/$soname.def;
18871 echo EXPORTS > $output_objdir/$soname.def;
18872 cat $export_symbols >> $output_objdir/$soname.def;
18874 $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'
18879 darwin* | rhapsody*)
18881 rhapsody* | darwin1.[012])
18882 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18885 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18886 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18888 case ${MACOSX_DEPLOYMENT_TARGET} in
18890 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18893 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18899 archive_cmds_need_lc_CXX=no
18900 hardcode_direct_CXX=no
18901 hardcode_automatic_CXX=yes
18902 hardcode_shlibpath_var_CXX=unsupported
18903 whole_archive_flag_spec_CXX=''
18904 link_all_deplibs_CXX=yes
18906 if test "$GXX" = yes ; then
18907 lt_int_apple_cc_single_mod=no
18908 output_verbose_link_cmd='echo'
18909 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18910 lt_int_apple_cc_single_mod=yes
18912 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18913 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18915 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'
18917 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18920 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}'
18922 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}'
18924 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}'
18926 case $cc_basename in
18928 output_verbose_link_cmd='echo'
18929 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'
18930 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18932 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}'
18933 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}'
18943 case $cc_basename in
18945 # FIXME: insert proper C++ library support
18949 # Green Hills C++ Compiler
18950 # FIXME: insert proper C++ library support
18954 # FIXME: insert proper C++ library support
18960 # C++ shared libraries reported to be fairly broken before switch to ELF
18964 archive_cmds_need_lc_CXX=no
18966 freebsd* | kfreebsd*-gnu | dragonfly*)
18967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18975 hardcode_libdir_separator_CXX=:
18976 export_dynamic_flag_spec_CXX='${wl}-E'
18977 hardcode_direct_CXX=yes
18978 hardcode_minus_L_CXX=yes # Not in the search PATH,
18979 # but as the default
18980 # location of the library.
18982 case $cc_basename in
18984 # FIXME: insert proper C++ library support
18988 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'
18989 # Commands to make compiler produce verbose output that lists
18990 # what "hidden" libraries, object files and flags are used when
18991 # linking a shared library.
18993 # There doesn't appear to be a way to prevent this compiler from
18994 # explicitly linking system object files so we need to strip them
18995 # from the output so that they don't get included in the library
18997 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'
19000 if test "$GXX" = yes; then
19001 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'
19003 # FIXME: insert proper C++ library support
19010 if test $with_gnu_ld = no; then
19011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19016 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19019 export_dynamic_flag_spec_CXX='${wl}-E'
19025 hardcode_direct_CXX=no
19026 hardcode_shlibpath_var_CXX=no
19029 hardcode_direct_CXX=yes
19030 hardcode_minus_L_CXX=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19036 case $cc_basename in
19038 # FIXME: insert proper C++ library support
19044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19061 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'
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no; then
19068 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 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'
19079 # FIXME: insert proper C++ library support
19086 hardcode_direct_CXX=no
19087 hardcode_shlibpath_var_CXX=no
19088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19091 # Instead, shared libraries are loaded at an image base (0x10000000 by
19092 # default) and relocated if they conflict, which is a slow very memory
19093 # consuming and fragmenting process. To avoid this, we pick a random,
19094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19096 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'
19097 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'
19100 case $cc_basename in
19103 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'
19105 # Archives containing C++ object files must be created using
19106 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19107 # necessary to make sure instantiated templates are included
19109 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19112 if test "$GXX" = yes; then
19113 if test "$with_gnu_ld" = no; then
19114 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'
19116 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'
19119 link_all_deplibs_CXX=yes
19122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19123 hardcode_libdir_separator_CXX=:
19126 case $cc_basename in
19128 # Kuck and Associates, Inc. (KAI) C++ Compiler
19130 # KCC will only create a shared library if the output file
19131 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19132 # to its proper name (with version) after linking.
19133 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'
19134 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'
19135 # Commands to make compiler produce verbose output that lists
19136 # what "hidden" libraries, object files and flags are used when
19137 # linking a shared library.
19139 # There doesn't appear to be a way to prevent this compiler from
19140 # explicitly linking system object files so we need to strip them
19141 # from the output so that they don't get included in the library
19143 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'
19145 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19146 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19148 # Archives containing C++ object files must be created using
19149 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19150 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19155 # version 8.0 and above of icpc choke on multiply defined symbols
19156 # if we add $predep_objects and $postdep_objects, however 7.1 and
19157 # earlier do not add the objects themselves.
19158 case `$CC -V 2>&1` in
19160 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 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'
19163 *) # Version 8.0 or newer
19166 ia64
*) tmp_idyn
=' -i_dynamic';;
19168 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169 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'
19172 archive_cmds_need_lc_CXX
=no
19173 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19174 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19175 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19178 # Portland Group C++ compiler
19179 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19180 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'
19182 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19183 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19184 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'
19188 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19189 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'
19191 runpath_var
=LD_RUN_PATH
19192 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19193 hardcode_libdir_separator_CXX
=:
19195 # Commands to make compiler produce verbose output that lists
19196 # what "hidden" libraries, object files and flags are used when
19197 # linking a shared library.
19199 # There doesn't appear to be a way to prevent this compiler from
19200 # explicitly linking system object files so we need to strip them
19201 # from the output so that they don't get included in the library
19203 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'
19208 # FIXME: insert proper C++ library support
19212 # FIXME: insert proper C++ library support
19216 case $cc_basename in
19218 # FIXME: insert proper C++ library support
19222 # FIXME: insert proper C++ library support
19228 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19229 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19231 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19232 hardcode_direct_CXX
=yes
19233 hardcode_shlibpath_var_CXX
=no
19235 # Workaround some broken pre-1.5 toolchains
19236 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19239 # C++ shared libraries are fairly broken
19243 hardcode_direct_CXX
=yes
19244 hardcode_shlibpath_var_CXX
=no
19245 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19246 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19248 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19249 export_dynamic_flag_spec_CXX
='${wl}-E'
19250 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19252 output_verbose_link_cmd
='echo'
19255 case $cc_basename in
19257 # Kuck and Associates, Inc. (KAI) C++ Compiler
19259 # KCC will only create a shared library if the output file
19260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19261 # to its proper name (with version) after linking.
19262 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'
19264 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19265 hardcode_libdir_separator_CXX
=:
19267 # Archives containing C++ object files must be created using
19268 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19269 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19273 # Rational C++ 2.4.1
19274 # FIXME: insert proper C++ library support
19278 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19279 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'
19281 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19282 hardcode_libdir_separator_CXX
=:
19284 # Commands to make compiler produce verbose output that lists
19285 # what "hidden" libraries, object files and flags are used when
19286 # linking a shared library.
19288 # There doesn't appear to be a way to prevent this compiler from
19289 # explicitly linking system object files so we need to strip them
19290 # from the output so that they don't get included in the library
19292 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'
19295 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19296 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19297 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'
19299 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19300 hardcode_libdir_separator_CXX
=:
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19305 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19308 # FIXME: insert proper C++ library support
19315 case $cc_basename in
19317 # Kuck and Associates, Inc. (KAI) C++ Compiler
19319 # KCC will only create a shared library if the output file
19320 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19321 # to its proper name (with version) after linking.
19322 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'
19324 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19325 hardcode_libdir_separator_CXX
=:
19327 # Archives containing C++ object files must be created using
19328 # the KAI C++ compiler.
19329 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19332 # Rational C++ 2.4.1
19333 # FIXME: insert proper C++ library support
19337 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19338 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'
19339 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19340 echo "-hidden">> $lib.exp~
19341 $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~
19344 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19345 hardcode_libdir_separator_CXX
=:
19347 # Commands to make compiler produce verbose output that lists
19348 # what "hidden" libraries, object files and flags are used when
19349 # linking a shared library.
19351 # There doesn't appear to be a way to prevent this compiler from
19352 # explicitly linking system object files so we need to strip them
19353 # from the output so that they don't get included in the library
19355 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'
19358 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19359 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19360 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'
19362 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19363 hardcode_libdir_separator_CXX
=:
19365 # Commands to make compiler produce verbose output that lists
19366 # what "hidden" libraries, object files and flags are used when
19367 # linking a shared library.
19368 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19371 # FIXME: insert proper C++ library support
19378 # FIXME: insert proper C++ library support
19382 case $cc_basename in
19385 # FIXME: insert proper C++ library support
19390 # FIXME: insert proper C++ library support
19394 # FIXME: insert proper C++ library support
19400 case $cc_basename in
19402 # Sun C++ 4.2, 5.x and Centerline C++
19403 archive_cmds_need_lc_CXX
=yes
19404 no_undefined_flag_CXX
=' -zdefs'
19405 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19406 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19407 $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'
19409 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19410 hardcode_shlibpath_var_CXX
=no
19412 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19414 # The C++ compiler is used as linker so we must use $wl
19415 # flag to pass the commands to the underlying system
19416 # linker. We must also pass each convience library through
19417 # to the system linker between allextract/defaultextract.
19418 # The C++ compiler will combine linker options so we
19419 # cannot just pass the convience library names through
19421 # Supported since Solaris 2.6 (maybe 2.5.1?)
19422 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'
19425 link_all_deplibs_CXX
=yes
19427 output_verbose_link_cmd
='echo'
19429 # Archives containing C++ object files must be created using
19430 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19431 # necessary to make sure instantiated templates are included
19433 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19436 # Green Hills C++ Compiler
19437 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19439 # The C++ compiler must be used to create the archive.
19440 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19443 # GNU C++ compiler with Solaris linker
19444 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19445 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19446 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19447 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19448 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19449 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19451 # Commands to make compiler produce verbose output that lists
19452 # what "hidden" libraries, object files and flags are used when
19453 # linking a shared library.
19454 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19456 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19458 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19459 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19460 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19468 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19473 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19474 no_undefined_flag_CXX
='${wl}-z,text'
19475 archive_cmds_need_lc_CXX
=no
19476 hardcode_shlibpath_var_CXX
=no
19477 runpath_var
='LD_RUN_PATH'
19479 case $cc_basename in
19481 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19485 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19486 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19490 sysv5
* | sco3.2v5
* | sco5v6
*)
19491 # Note: We can NOT use -z defs as we might desire, because we do not
19492 # link with -lc, and that would cause any symbols used from libc to
19493 # always be unresolved, which means just about no library would
19494 # ever link correctly. If we're not using GNU ld we use -z text
19495 # though, which does catch some bad symbols but isn't as heavy-handed
19497 # For security reasons, it is highly recommended that you always
19498 # use absolute paths for naming shared libraries, and exclude the
19499 # DT_RUNPATH tag from executables and libraries. But doing so
19500 # requires that you compile everything twice, which is a pain.
19501 # So that behaviour is only enabled if SCOABSPATH is set to a
19502 # non-empty value in the environment. Most likely only useful for
19503 # creating official distributions of packages.
19504 # This is a hack until libtool officially supports absolute path
19505 # names for shared libraries.
19506 no_undefined_flag_CXX
='${wl}-z,text'
19507 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19508 archive_cmds_need_lc_CXX
=no
19509 hardcode_shlibpath_var_CXX
=no
19510 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19511 hardcode_libdir_separator_CXX
=':'
19512 link_all_deplibs_CXX
=yes
19513 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19514 runpath_var
='LD_RUN_PATH'
19516 case $cc_basename in
19518 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19522 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19523 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19528 case $cc_basename in
19530 # NonStop-UX NCC 3.20
19531 # FIXME: insert proper C++ library support
19535 # FIXME: insert proper C++ library support
19541 # FIXME: insert proper C++ library support
19545 # FIXME: insert proper C++ library support
19549 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19550 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19551 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19557 cat > conftest.
$ac_ext <<EOF
19561 Foo (void) { a = 0; }
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; then
19572 # Parse the compiler output and extract the necessary
19573 # objects, libraries and library flags.
19575 # Sentinel used to keep track of whether or not we are before
19576 # the conftest object file.
19577 pre_test_object_deps_done
=no
19579 # The `*' in the case matches for architectures that use `case' in
19580 # $output_verbose_cmd can trigger glob expansion during the loop
19581 # eval without this substitution.
19582 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19584 for p
in `eval $output_verbose_link_cmd`; do
19588 # Some compilers place space between "-{L,R}" and the path.
19589 # Remove the space.
19590 if test $p = "-L" \
19591 ||
test $p = "-R"; then
19598 if test "$pre_test_object_deps_done" = no
; then
19601 # Internal compiler library paths should come after those
19602 # provided the user. The postdeps already come after the
19603 # user supplied libs so there is no need to process them.
19604 if test -z "$compiler_lib_search_path_CXX"; then
19605 compiler_lib_search_path_CXX
="${prev}${p}"
19607 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19610 # The "-l" case would never come before the object being
19611 # linked, so don't bother handling this case.
19614 if test -z "$postdeps_CXX"; then
19615 postdeps_CXX
="${prev}${p}"
19617 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19623 # This assumes that the test object file only shows up
19624 # once in the compiler output.
19625 if test "$p" = "conftest.$objext"; then
19626 pre_test_object_deps_done
=yes
19630 if test "$pre_test_object_deps_done" = no
; then
19631 if test -z "$predep_objects_CXX"; then
19632 predep_objects_CXX
="$p"
19634 predep_objects_CXX
="$predep_objects_CXX $p"
19637 if test -z "$postdep_objects_CXX"; then
19638 postdep_objects_CXX
="$p"
19640 postdep_objects_CXX
="$postdep_objects_CXX $p"
19645 *) ;; # Ignore the rest.
19653 echo "libtool.m4: error: problem compiling CXX test program"
19656 $rm -f confest.
$objext
19658 # PORTME: override above test on systems where it is broken
19661 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19662 # hack all around it, let's just trust "g++" to DTRT.
19663 predep_objects_CXX
=
19664 postdep_objects_CXX
=
19669 case $cc_basename in
19671 # Adding this requires a known-good setup of shared libraries for
19672 # Sun compiler versions before 5.6, else PIC objects from an old
19673 # archive will be linked into the output, leading to subtle bugs.
19674 postdeps_CXX
='-lCstd -lCrun'
19681 case " $postdeps_CXX " in
19682 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19685 lt_prog_compiler_wl_CXX
=
19686 lt_prog_compiler_pic_CXX
=
19687 lt_prog_compiler_static_CXX
=
19689 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19690 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19692 # C++ specific cases for pic, static, wl, etc.
19693 if test "$GXX" = yes; then
19694 lt_prog_compiler_wl_CXX
='-Wl,'
19695 lt_prog_compiler_static_CXX
='-static'
19699 # All AIX code is PIC.
19700 if test "$host_cpu" = ia64
; then
19701 # AIX 5 now supports IA64 processor
19702 lt_prog_compiler_static_CXX
='-Bstatic'
19706 # FIXME: we need at least 68020 code to build shared libraries, but
19707 # adding the `-m68020' flag to GCC prevents building anything better,
19709 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19711 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19712 # PIC is the default for these OSes.
19714 mingw
* | os2
* | pw32
*)
19715 # This hack is so that the source file can tell whether it is being
19716 # built for inclusion in a dll (and should export symbols for example).
19717 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19719 darwin
* | rhapsody
*)
19720 # PIC is the default on this platform
19721 # Common symbols not allowed in MH_DYLIB files
19722 lt_prog_compiler_pic_CXX
='-fno-common'
19725 # DJGPP does not support shared libraries at all
19726 lt_prog_compiler_pic_CXX
=
19729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19730 # Instead, we relocate shared libraries at runtime.
19733 if test -d /usr
/nec
; then
19734 lt_prog_compiler_pic_CXX
=-Kconform_pic
19738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19739 # not for PA HP-UX.
19744 lt_prog_compiler_pic_CXX
='-fPIC'
19749 lt_prog_compiler_pic_CXX
='-fPIC'
19755 # All AIX code is PIC.
19756 if test "$host_cpu" = ia64
; then
19757 # AIX 5 now supports IA64 processor
19758 lt_prog_compiler_static_CXX
='-Bstatic'
19760 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19764 case $cc_basename in
19766 # Green Hills C++ Compiler
19767 # _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"
19772 # PIC is the default on this platform
19773 # Common symbols not allowed in MH_DYLIB files
19774 case $cc_basename in
19776 lt_prog_compiler_pic_CXX
='-qnocommon'
19777 lt_prog_compiler_wl_CXX
='-Wl,'
19782 case $cc_basename in
19784 lt_prog_compiler_pic_CXX
='-KPIC'
19787 # Green Hills C++ Compiler
19788 lt_prog_compiler_pic_CXX
='-pic'
19794 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19795 # FreeBSD uses GNU C++
19797 hpux9
* | hpux10
* | hpux11
*)
19798 case $cc_basename in
19800 lt_prog_compiler_wl_CXX
='-Wl,'
19801 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19802 if test "$host_cpu" != ia64
; then
19803 lt_prog_compiler_pic_CXX
='+Z'
19807 lt_prog_compiler_wl_CXX
='-Wl,'
19808 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19814 lt_prog_compiler_pic_CXX
='+Z'
19823 # This is c89, which is MS Visual C++ (no shared libs)
19824 # Anyone wants to do a port?
19826 irix5
* | irix6
* | nonstopux
*)
19827 case $cc_basename in
19829 lt_prog_compiler_wl_CXX
='-Wl,'
19830 lt_prog_compiler_static_CXX
='-non_shared'
19831 # CC pic flag -KPIC is the default.
19838 case $cc_basename in
19841 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19842 lt_prog_compiler_pic_CXX
='-fPIC'
19846 lt_prog_compiler_wl_CXX
='-Wl,'
19847 lt_prog_compiler_pic_CXX
='-KPIC'
19848 lt_prog_compiler_static_CXX
='-static'
19851 # Portland Group C++ compiler.
19852 lt_prog_compiler_wl_CXX
='-Wl,'
19853 lt_prog_compiler_pic_CXX
='-fpic'
19854 lt_prog_compiler_static_CXX
='-Bstatic'
19858 # Make sure the PIC flag is empty. It appears that all Alpha
19859 # Linux and Compaq Tru64 Unix objects are PIC.
19860 lt_prog_compiler_pic_CXX
=
19861 lt_prog_compiler_static_CXX
='-non_shared'
19872 case $cc_basename in
19874 lt_prog_compiler_pic_CXX
='-W c,exportall'
19882 osf3
* | osf4
* | osf5
*)
19883 case $cc_basename in
19885 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19888 # Rational C++ 2.4.1
19889 lt_prog_compiler_pic_CXX
='-pic'
19892 # Digital/Compaq C++
19893 lt_prog_compiler_wl_CXX
='-Wl,'
19894 # Make sure the PIC flag is empty. It appears that all Alpha
19895 # Linux and Compaq Tru64 Unix objects are PIC.
19896 lt_prog_compiler_pic_CXX
=
19897 lt_prog_compiler_static_CXX
='-non_shared'
19906 case $cc_basename in
19908 # Sun C++ 4.2, 5.x and Centerline C++
19909 lt_prog_compiler_pic_CXX
='-KPIC'
19910 lt_prog_compiler_static_CXX
='-Bstatic'
19911 lt_prog_compiler_wl_CXX
='-Qoption ld '
19914 # Green Hills C++ Compiler
19915 lt_prog_compiler_pic_CXX
='-PIC'
19922 case $cc_basename in
19925 lt_prog_compiler_pic_CXX
='-pic'
19926 lt_prog_compiler_static_CXX
='-Bstatic'
19930 lt_prog_compiler_pic_CXX
='-pic'
19937 case $cc_basename in
19939 # NonStop-UX NCC 3.20
19940 lt_prog_compiler_pic_CXX
='-KPIC'
19946 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19947 case $cc_basename in
19949 lt_prog_compiler_wl_CXX
='-Wl,'
19950 lt_prog_compiler_pic_CXX
='-KPIC'
19951 lt_prog_compiler_static_CXX
='-Bstatic'
19958 lt_prog_compiler_can_build_shared_CXX
=no
19963 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19964 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19967 # Check to make sure the PIC flag actually works.
19969 if test -n "$lt_prog_compiler_pic_CXX"; then
19971 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19972 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19973 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 lt_prog_compiler_pic_works_CXX
=no
19977 ac_outfile
=conftest.
$ac_objext
19978 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19979 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19980 # Insert the option either (1) after the last *FLAGS variable, or
19981 # (2) before a word containing "conftest.", or (3) at the end.
19982 # Note that $ac_compile itself does not contain backslashes and begins
19983 # with a dollar sign (not a hyphen), so the echo should work correctly.
19984 # The option is referenced via a variable to avoid confusing sed.
19985 lt_compile
=`echo "$ac_compile" | $SED \
19986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19988 -e 's:$: $lt_compiler_flag:'`
19989 (eval echo "\"\$as_me:19989: $lt_compile\"" >&5)
19990 (eval "$lt_compile" 2>conftest.err
)
19992 cat conftest.err
>&5
19993 echo "$as_me:19993: \$? = $ac_status" >&5
19994 if (exit $ac_status) && test -s "$ac_outfile"; then
19995 # The compiler can only warn and ignore the option if not recognized
19996 # So say no if there are warnings other than the usual output.
19997 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19998 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19999 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20000 lt_prog_compiler_pic_works_CXX
=yes
20006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20007 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20009 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20010 case $lt_prog_compiler_pic_CXX in
20012 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20015 lt_prog_compiler_pic_CXX
=
20016 lt_prog_compiler_can_build_shared_CXX
=no
20021 # For platforms which do not support PIC, -DPIC is meaningless:
20023 lt_prog_compiler_pic_CXX
=
20026 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20031 # Check to make sure the static flag actually works.
20033 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20034 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20035 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20036 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 lt_prog_compiler_static_works_CXX
=no
20040 save_LDFLAGS
="$LDFLAGS"
20041 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20042 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20043 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20044 # The linker can only warn and ignore the option if not recognized
20045 # So say no if there are warnings
20046 if test -s conftest.err
; then
20047 # Append any errors to the config.log.
20048 cat conftest.err
1>&5
20049 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20050 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20051 if diff conftest.exp conftest.er2
>/dev
/null
; then
20052 lt_prog_compiler_static_works_CXX
=yes
20055 lt_prog_compiler_static_works_CXX
=yes
20059 LDFLAGS
="$save_LDFLAGS"
20062 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20063 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20065 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20068 lt_prog_compiler_static_CXX
=
20072 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20073 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20074 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 lt_cv_prog_compiler_c_o_CXX
=no
20078 $rm -r conftest
2>/dev
/null
20082 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20084 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20085 # Insert the option either (1) after the last *FLAGS variable, or
20086 # (2) before a word containing "conftest.", or (3) at the end.
20087 # Note that $ac_compile itself does not contain backslashes and begins
20088 # with a dollar sign (not a hyphen), so the echo should work correctly.
20089 lt_compile
=`echo "$ac_compile" | $SED \
20090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20092 -e 's:$: $lt_compiler_flag:'`
20093 (eval echo "\"\$as_me:20093: $lt_compile\"" >&5)
20094 (eval "$lt_compile" 2>out
/conftest.err
)
20096 cat out
/conftest.err
>&5
20097 echo "$as_me:20097: \$? = $ac_status" >&5
20098 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20100 # The compiler can only warn and ignore the option if not recognized
20101 # So say no if there are warnings
20102 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20103 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20104 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20105 lt_cv_prog_compiler_c_o_CXX
=yes
20110 # SGI C++ compiler will create directory out/ii_files/ for
20111 # template instantiation
20112 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20113 $rm out
/* && rmdir out
20119 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20120 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20123 hard_links
="nottested"
20124 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20125 # do not overwrite the value of need_locks provided by the user
20126 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20127 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20130 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20132 ln conftest.a conftest.b
2>&5 || hard_links
=no
20133 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20134 { echo "$as_me:$LINENO: result: $hard_links" >&5
20135 echo "${ECHO_T}$hard_links" >&6; }
20136 if test "$hard_links" = no
; then
20137 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20138 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20145 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20146 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20148 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20151 # If we're using GNU nm, then we don't want the "-C" option.
20152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20153 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20154 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'
20156 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'
20160 export_symbols_cmds_CXX
="$ltdll_cmds"
20163 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'
20166 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20170 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20171 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20172 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20175 # Do we need to explicitly link libc?
20177 case "x$archive_cmds_need_lc_CXX" in
20179 # Assume -lc should be added
20180 archive_cmds_need_lc_CXX
=yes
20182 if test "$enable_shared" = yes && test "$GCC" = yes; then
20183 case $archive_cmds_CXX in
20185 # FIXME: we may have to deal with multi-command sequences.
20188 # Test whether the compiler implicitly links with -lc since on some
20189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20190 # to ld, don't add -lc before -lgcc.
20191 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20194 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } 2>conftest.err
; then
20203 libobjs
=conftest.
$ac_objext
20205 wl
=$lt_prog_compiler_wl_CXX
20206 pic_flag
=$lt_prog_compiler_pic_CXX
20212 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20213 allow_undefined_flag_CXX
=
20214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20215 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }
20220 archive_cmds_need_lc_CXX
=no
20222 archive_cmds_need_lc_CXX
=yes
20224 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20226 cat conftest.err
1>&5
20229 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20230 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20237 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20239 library_names_spec
=
20240 libname_spec
='lib$name'
20244 postuninstall_cmds
=
20248 shlibpath_overrides_runpath
=unknown
20250 dynamic_linker
="$host_os ld.so"
20251 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20252 if test "$GCC" = yes; then
20253 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20254 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20255 # if the path contains ";" then we assume it to be the separator
20256 # otherwise default to the standard path separator (i.e. ":") - it is
20257 # assumed that no part of a normal pathname contains ";" but that should
20258 # okay in the real world where ";" in dirpaths is itself problematic.
20259 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20261 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20264 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20266 need_lib_prefix
=unknown
20267 hardcode_into_libs
=no
20269 # when you set need_version to no, make sure it does not cause -set_version
20270 # flags to be left without arguments
20271 need_version
=unknown
20276 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20277 shlibpath_var
=LIBPATH
20279 # AIX 3 has no versioning support, so we append a major version to the name.
20280 soname_spec
='${libname}${release}${shared_ext}$major'
20287 hardcode_into_libs
=yes
20288 if test "$host_cpu" = ia64
; then
20289 # AIX 5 supports IA64
20290 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20291 shlibpath_var
=LD_LIBRARY_PATH
20293 # With GCC up to 2.95.x, collect2 would create an import file
20294 # for dependence libraries. The import file would start with
20295 # the line `#! .'. This would cause the generated library to
20296 # depend on `.', always an invalid library. This was fixed in
20297 # development snapshots of GCC prior to 3.0.
20299 aix4 | aix4.
[01] | aix4.
[01].
*)
20300 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20302 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20305 can_build_shared
=no
20309 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20310 # soname into executable. Probably we can add versioning support to
20311 # collect2, so additional links can be useful in future.
20312 if test "$aix_use_runtimelinking" = yes; then
20313 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20314 # instead of lib<name>.a to let people know that these are not
20315 # typical AIX shared libraries.
20316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20318 # We preserve .a as extension for shared libraries through AIX4.2
20319 # and later when we are not doing run time linking.
20320 library_names_spec
='${libname}${release}.a $libname.a'
20321 soname_spec
='${libname}${release}${shared_ext}$major'
20323 shlibpath_var
=LIBPATH
20328 library_names_spec
='$libname.ixlibrary $libname.a'
20329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20330 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'
20334 library_names_spec
='${libname}${shared_ext}'
20335 dynamic_linker
="$host_os ld.so"
20336 shlibpath_var
=LIBRARY_PATH
20342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec
='${libname}${release}${shared_ext}$major'
20344 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20345 shlibpath_var
=LD_LIBRARY_PATH
20346 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20347 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20348 # the default ld.so.conf also contains /usr/contrib/lib and
20349 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20350 # libtool to hard-code these into programs
20353 cygwin
* | mingw
* | pw32
*)
20354 version_type
=windows
20359 case $GCC,$host_os in
20360 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20361 library_names_spec
='$libname.dll.a'
20362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20363 postinstall_cmds
='base_file=`basename \${file}`~
20364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20365 dldir=$destdir/`dirname \$dlpath`~
20366 test -d \$dldir || mkdir -p \$dldir~
20367 $install_prog $dir/$dlname \$dldir/$dlname~
20368 chmod a+x \$dldir/$dlname'
20369 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20370 dlpath=$dir/\$dldll~
20372 shlibpath_overrides_runpath
=yes
20376 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20377 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20378 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20381 # MinGW DLLs use traditional 'lib' prefix
20382 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20383 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20384 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20385 # It is most probably a Windows format PATH printed by
20386 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20387 # path with ; separators, and with drive letters. We can handle the
20388 # drive letters (cygwin fileutils understands them), so leave them,
20389 # especially as we might pass files found there to a mingw objdump,
20390 # which wouldn't understand a cygwinified path. Ahh.
20391 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20393 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20397 # pw32 DLLs use 'pw' prefix rather than 'lib'
20398 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20404 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20407 dynamic_linker
='Win32 ld.exe'
20408 # FIXME: first we should search . and the directory the executable is in
20412 darwin
* | rhapsody
*)
20413 dynamic_linker
="$host_os dyld"
20414 version_type
=darwin
20417 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20418 soname_spec
='${libname}${release}${major}$shared_ext'
20419 shlibpath_overrides_runpath
=yes
20420 shlibpath_var
=DYLD_LIBRARY_PATH
20421 shrext_cmds
='.dylib'
20422 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20423 if test "$GCC" = yes; then
20424 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"`
20426 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20428 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20436 soname_spec
='${libname}${release}${shared_ext}$major'
20437 shlibpath_var
=LD_LIBRARY_PATH
20448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20449 soname_spec
='${libname}${release}${shared_ext}$major'
20450 shlibpath_var
=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath
=no
20452 hardcode_into_libs
=yes
20453 dynamic_linker
='GNU ld.so'
20456 freebsd
* | dragonfly
*)
20457 # DragonFly does not have aout. When/if they implement a new
20458 # versioning mechanism, adjust this.
20459 if test -x /usr
/bin
/objformat
; then
20460 objformat
=`/usr/bin/objformat`
20463 freebsd
[123]*) objformat
=aout
;;
20464 *) objformat
=elf
;;
20467 version_type
=freebsd-
$objformat
20468 case $version_type in
20470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20475 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20479 shlibpath_var
=LD_LIBRARY_PATH
20482 shlibpath_overrides_runpath
=yes
20484 freebsd3.
[01]* | freebsdelf3.
[01]*)
20485 shlibpath_overrides_runpath
=yes
20486 hardcode_into_libs
=yes
20488 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20489 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20490 shlibpath_overrides_runpath
=no
20491 hardcode_into_libs
=yes
20493 freebsd
*) # from 4.6 on
20494 shlibpath_overrides_runpath
=yes
20495 hardcode_into_libs
=yes
20504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20505 soname_spec
='${libname}${release}${shared_ext}$major'
20506 shlibpath_var
=LD_LIBRARY_PATH
20507 hardcode_into_libs
=yes
20510 hpux9
* | hpux10
* | hpux11
*)
20511 # Give a soname corresponding to the major version so that dld.sl refuses to
20512 # link against other versions.
20519 hardcode_into_libs
=yes
20520 dynamic_linker
="$host_os dld.so"
20521 shlibpath_var
=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 soname_spec
='${libname}${release}${shared_ext}$major'
20525 if test "X$HPUX_IA64_MODE" = X32
; then
20526 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20528 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20530 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20534 hardcode_into_libs
=yes
20535 dynamic_linker
="$host_os dld.sl"
20536 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20537 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec
='${libname}${release}${shared_ext}$major'
20540 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20541 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20545 dynamic_linker
="$host_os dld.sl"
20546 shlibpath_var
=SHLIB_PATH
20547 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549 soname_spec
='${libname}${release}${shared_ext}$major'
20552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20553 postinstall_cmds
='chmod 555 $lib'
20560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20561 soname_spec
='${libname}${release}${shared_ext}$major'
20562 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20563 shlibpath_var
=LD_LIBRARY_PATH
20564 shlibpath_overrides_runpath
=no
20565 hardcode_into_libs
=yes
20568 irix5
* | irix6
* | nonstopux
*)
20570 nonstopux
*) version_type
=nonstopux
;;
20572 if test "$lt_cv_prog_gnu_ld" = yes; then
20580 soname_spec
='${libname}${release}${shared_ext}$major'
20581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20583 irix5
* | nonstopux
*)
20584 libsuff
= shlibsuff
=
20587 case $LD in # libtool.m4 will add one of these switches to LD
20588 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20589 libsuff
= shlibsuff
= libmagic
=32-bit;;
20590 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20591 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20592 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20593 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20594 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20598 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20599 shlibpath_overrides_runpath
=no
20600 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20601 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20602 hardcode_into_libs
=yes
20605 # No shared lib support for Linux oldld, aout, or coff.
20606 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20610 # This must be Linux ELF.
20615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec
='${libname}${release}${shared_ext}$major'
20617 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20618 shlibpath_var
=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath
=no
20620 # This implies no fast_install, which is unacceptable.
20621 # Some rework will be needed to allow for fast_install
20622 # before this can be enabled.
20623 hardcode_into_libs
=yes
20625 # Append ld.so.conf contents to the search path
20626 if test -f /etc
/ld.so.conf
; then
20627 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' ' '`
20628 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20631 # We used to test for /lib/ld.so.1 and disable shared libraries on
20632 # powerpc, because MkLinux only supported shared libraries with the
20633 # GNU dynamic linker. Since this was broken with cross compilers,
20634 # most powerpc-linux boxes support dynamic linking these days and
20635 # people can always --disable-shared, the test was removed, and we
20636 # assume the GNU/Linux dynamic linker is in use.
20637 dynamic_linker
='GNU/Linux ld.so'
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 shlibpath_var
=LD_LIBRARY_PATH
20647 shlibpath_overrides_runpath
=no
20648 hardcode_into_libs
=yes
20649 dynamic_linker
='GNU ld.so'
20656 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20658 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20659 dynamic_linker
='NetBSD (a.out) ld.so'
20661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20662 soname_spec
='${libname}${release}${shared_ext}$major'
20663 dynamic_linker
='NetBSD ld.elf_so'
20665 shlibpath_var
=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath
=yes
20667 hardcode_into_libs
=yes
20672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 shlibpath_var
=LD_LIBRARY_PATH
20674 shlibpath_overrides_runpath
=yes
20681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682 soname_spec
='${libname}${release}${shared_ext}$major'
20683 shlibpath_var
=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath
=yes
20689 sys_lib_dlsearch_path_spec
="/usr/lib"
20691 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20693 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20694 *) need_version
=no
;;
20696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20697 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20698 shlibpath_var
=LD_LIBRARY_PATH
20699 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20701 openbsd2.
[89] | openbsd2.
[89].
*)
20702 shlibpath_overrides_runpath
=no
20705 shlibpath_overrides_runpath
=yes
20709 shlibpath_overrides_runpath
=yes
20714 libname_spec
='$name'
20717 library_names_spec
='$libname${shared_ext} $libname.a'
20718 dynamic_linker
='OS/2 ld.exe'
20719 shlibpath_var
=LIBPATH
20722 osf3
* | osf4
* | osf5
*)
20726 soname_spec
='${libname}${release}${shared_ext}$major'
20727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 shlibpath_var
=LD_LIBRARY_PATH
20729 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20730 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738 soname_spec
='${libname}${release}${shared_ext}$major'
20739 shlibpath_var
=LD_LIBRARY_PATH
20740 shlibpath_overrides_runpath
=yes
20741 hardcode_into_libs
=yes
20742 # ldd complains unless libraries are executable
20743 postinstall_cmds
='chmod +x $lib'
20748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20749 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20750 shlibpath_var
=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath
=yes
20752 if test "$with_gnu_ld" = yes; then
20760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20761 soname_spec
='${libname}${release}${shared_ext}$major'
20762 shlibpath_var
=LD_LIBRARY_PATH
20763 case $host_vendor in
20765 shlibpath_overrides_runpath
=no
20767 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20768 runpath_var
=LD_RUN_PATH
20776 shlibpath_overrides_runpath
=no
20777 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20783 if test -d /usr
/nec
;then
20785 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20786 soname_spec
='$libname${shared_ext}.$major'
20787 shlibpath_var
=LD_LIBRARY_PATH
20791 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20792 version_type
=freebsd-elf
20795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20796 soname_spec
='${libname}${release}${shared_ext}$major'
20797 shlibpath_var
=LD_LIBRARY_PATH
20798 hardcode_into_libs
=yes
20799 if test "$with_gnu_ld" = yes; then
20800 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20801 shlibpath_overrides_runpath
=no
20803 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20804 shlibpath_overrides_runpath
=yes
20807 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20811 sys_lib_dlsearch_path_spec
='/usr/lib'
20816 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 soname_spec
='${libname}${release}${shared_ext}$major'
20818 shlibpath_var
=LD_LIBRARY_PATH
20825 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20826 echo "${ECHO_T}$dynamic_linker" >&6; }
20827 test "$dynamic_linker" = no
&& can_build_shared
=no
20829 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20830 if test "$GCC" = yes; then
20831 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20834 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20835 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20836 hardcode_action_CXX
=
20837 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20838 test -n "$runpath_var_CXX" || \
20839 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20841 # We can hardcode non-existant directories.
20842 if test "$hardcode_direct_CXX" != no
&&
20843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20844 # have to relink, otherwise we might link with an installed library
20845 # when we should be linking with a yet-to-be-installed one
20846 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20847 test "$hardcode_minus_L_CXX" != no
; then
20848 # Linking always hardcodes the temporary library directory.
20849 hardcode_action_CXX
=relink
20851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20852 hardcode_action_CXX
=immediate
20855 # We cannot hardcode anything, or else we can only hardcode existing
20857 hardcode_action_CXX
=unsupported
20859 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20860 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20862 if test "$hardcode_action_CXX" = relink
; then
20863 # Fast installation is not supported
20864 enable_fast_install
=no
20865 elif test "$shlibpath_overrides_runpath" = yes ||
20866 test "$enable_shared" = no
; then
20867 # Fast installation is not necessary
20868 enable_fast_install
=needless
20872 # The else clause should only fire when bootstrapping the
20873 # libtool distribution, otherwise you forgot to ship ltmain.sh
20874 # with your package, and you will get complaints that there are
20875 # no rules to generate ltmain.sh.
20876 if test -f "$ltmain"; then
20877 # See if we are running on zsh, and set the options which allow our commands through
20878 # without removal of \ escapes.
20879 if test -n "${ZSH_VERSION+set}" ; then
20880 setopt NO_GLOB_SUBST
20882 # Now quote all the things that may contain metacharacters while being
20883 # careful not to overquote the AC_SUBSTed values. We take copies of the
20884 # variables and quote the copies for generation of the libtool script.
20885 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20887 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20888 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20889 deplibs_check_method reload_flag reload_cmds need_locks \
20890 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20891 lt_cv_sys_global_symbol_to_c_name_address \
20892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20893 old_postinstall_cmds old_postuninstall_cmds \
20897 lt_prog_compiler_wl_CXX \
20898 lt_prog_compiler_pic_CXX \
20899 lt_prog_compiler_static_CXX \
20900 lt_prog_compiler_no_builtin_flag_CXX \
20901 export_dynamic_flag_spec_CXX \
20902 thread_safe_flag_spec_CXX \
20903 whole_archive_flag_spec_CXX \
20904 enable_shared_with_static_runtimes_CXX \
20905 old_archive_cmds_CXX \
20906 old_archive_from_new_cmds_CXX \
20907 predep_objects_CXX \
20908 postdep_objects_CXX \
20911 compiler_lib_search_path_CXX \
20913 archive_expsym_cmds_CXX \
20914 postinstall_cmds_CXX \
20915 postuninstall_cmds_CXX \
20916 old_archive_from_expsyms_cmds_CXX \
20917 allow_undefined_flag_CXX \
20918 no_undefined_flag_CXX \
20919 export_symbols_cmds_CXX \
20920 hardcode_libdir_flag_spec_CXX \
20921 hardcode_libdir_flag_spec_ld_CXX \
20922 hardcode_libdir_separator_CXX \
20923 hardcode_automatic_CXX \
20925 module_expsym_cmds_CXX \
20926 lt_cv_prog_compiler_c_o_CXX \
20927 exclude_expsyms_CXX \
20928 include_expsyms_CXX
; do
20931 old_archive_cmds_CXX | \
20932 old_archive_from_new_cmds_CXX | \
20933 archive_cmds_CXX | \
20934 archive_expsym_cmds_CXX | \
20935 module_cmds_CXX | \
20936 module_expsym_cmds_CXX | \
20937 old_archive_from_expsyms_cmds_CXX | \
20938 export_symbols_cmds_CXX | \
20939 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20940 postinstall_cmds | postuninstall_cmds | \
20941 old_postinstall_cmds | old_postuninstall_cmds | \
20942 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
20943 # Double-quote double-evaled strings.
20944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20953 *'\$0 --fallback-echo"')
20954 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20960 cat <<__EOF__ >> "$cfgfile"
20961 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20965 # Shell to use when invoking shell scripts.
20968 # Whether or not to build shared libraries.
20969 build_libtool_libs=$enable_shared
20971 # Whether or not to build static libraries.
20972 build_old_libs=$enable_static
20974 # Whether or not to add -lc for building shared libraries.
20975 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20977 # Whether or not to disallow shared libs when runtime libs are static
20978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20980 # Whether or not to optimize for fast installation.
20981 fast_install=$enable_fast_install
20984 host_alias=$host_alias
20988 # The build system.
20989 build_alias=$build_alias
20993 # An echo program that does not interpret backslashes.
20998 AR_FLAGS=$lt_AR_FLAGS
21003 # LTCC compiler flags.
21004 LTCFLAGS=$lt_LTCFLAGS
21006 # A language-specific compiler.
21007 CC=$lt_compiler_CXX
21009 # Is the compiler the GNU C compiler?
21015 # The linker used to build libraries.
21018 # Whether we need hard or soft links.
21021 # A BSD-compatible nm program.
21024 # A symbol stripping program
21027 # Used to examine libraries when file_magic_cmd begins "file"
21028 MAGIC_CMD=$MAGIC_CMD
21030 # Used on cygwin: DLL creation program.
21033 # Used on cygwin: object dumper.
21036 # Used on cygwin: assembler.
21039 # The name of the directory that contains temporary libtool files.
21042 # How to create reloadable object files.
21043 reload_flag=$lt_reload_flag
21044 reload_cmds=$lt_reload_cmds
21046 # How to pass a linker flag through the compiler.
21047 wl=$lt_lt_prog_compiler_wl_CXX
21049 # Object file suffix (normally "o").
21050 objext="$ac_objext"
21052 # Old archive suffix (normally "a").
21055 # Shared library suffix (normally ".so").
21056 shrext_cmds='$shrext_cmds'
21058 # Executable file suffix (normally "").
21061 # Additional compiler flags for building library objects.
21062 pic_flag=$lt_lt_prog_compiler_pic_CXX
21065 # What is the maximum length of a command?
21066 max_cmd_len=$lt_cv_sys_max_cmd_len
21068 # Does compiler simultaneously support -c and -o options?
21069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21071 # Must we lock files when doing compilation?
21072 need_locks=$lt_need_locks
21074 # Do we need the lib prefix for modules?
21075 need_lib_prefix=$need_lib_prefix
21077 # Do we need a version for libraries?
21078 need_version=$need_version
21080 # Whether dlopen is supported.
21081 dlopen_support=$enable_dlopen
21083 # Whether dlopen of programs is supported.
21084 dlopen_self=$enable_dlopen_self
21086 # Whether dlopen of statically linked programs is supported.
21087 dlopen_self_static=$enable_dlopen_self_static
21089 # Compiler flag to prevent dynamic linking.
21090 link_static_flag=$lt_lt_prog_compiler_static_CXX
21092 # Compiler flag to turn off builtin functions.
21093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21095 # Compiler flag to allow reflexive dlopens.
21096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21098 # Compiler flag to generate shared objects directly from archives.
21099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21101 # Compiler flag to generate thread-safe objects.
21102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21104 # Library versioning type.
21105 version_type=$version_type
21107 # Format of library name prefix.
21108 libname_spec=$lt_libname_spec
21110 # List of archive names. First name is the real one, the rest are links.
21111 # The last name is the one that the linker finds with -lNAME.
21112 library_names_spec=$lt_library_names_spec
21114 # The coded name of the library, if different from the real name.
21115 soname_spec=$lt_soname_spec
21117 # Commands used to build and install an old-style archive.
21119 old_archive_cmds=$lt_old_archive_cmds_CXX
21120 old_postinstall_cmds=$lt_old_postinstall_cmds
21121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21123 # Create an old-style archive from a shared archive.
21124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21126 # Create a temporary old-style archive to link instead of a shared archive.
21127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21129 # Commands used to build and install a shared archive.
21130 archive_cmds=$lt_archive_cmds_CXX
21131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21132 postinstall_cmds=$lt_postinstall_cmds
21133 postuninstall_cmds=$lt_postuninstall_cmds
21135 # Commands used to build a loadable module (assumed same as above if empty)
21136 module_cmds=$lt_module_cmds_CXX
21137 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21139 # Commands to strip libraries.
21140 old_striplib=$lt_old_striplib
21141 striplib=$lt_striplib
21143 # Dependencies to place before the objects being linked to create a
21145 predep_objects=$lt_predep_objects_CXX
21147 # Dependencies to place after the objects being linked to create a
21149 postdep_objects=$lt_postdep_objects_CXX
21151 # Dependencies to place before the objects being linked to create a
21153 predeps=$lt_predeps_CXX
21155 # Dependencies to place after the objects being linked to create a
21157 postdeps=$lt_postdeps_CXX
21159 # The library search path used internally by the compiler when linking
21160 # a shared library.
21161 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21163 # Method to check whether dependent libraries are shared objects.
21164 deplibs_check_method=$lt_deplibs_check_method
21166 # Command to use when deplibs_check_method == file_magic.
21167 file_magic_cmd=$lt_file_magic_cmd
21169 # Flag that allows shared libraries with undefined symbols to be built.
21170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21172 # Flag that forces no undefined symbols.
21173 no_undefined_flag=$lt_no_undefined_flag_CXX
21175 # Commands used to finish a libtool library installation in a directory.
21176 finish_cmds=$lt_finish_cmds
21178 # Same as above, but a single script fragment to be evaled but not shown.
21179 finish_eval=$lt_finish_eval
21181 # Take the output of nm and produce a listing of raw symbols and C names.
21182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21184 # Transform the output of nm in a proper C declaration
21185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21187 # Transform the output of nm in a C name address pair
21188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21190 # This is the shared library runtime path variable.
21191 runpath_var=$runpath_var
21193 # This is the shared library path variable.
21194 shlibpath_var=$shlibpath_var
21196 # Is shlibpath searched before the hard-coded library search path?
21197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21199 # How to hardcode a shared library path into an executable.
21200 hardcode_action=$hardcode_action_CXX
21202 # Whether we should hardcode library paths into libraries.
21203 hardcode_into_libs=$hardcode_into_libs
21205 # Flag to hardcode \$libdir into a binary during linking.
21206 # This must work even if \$libdir does not exist.
21207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21209 # If ld is used when linking, flag to hardcode \$libdir into
21210 # a binary during linking. This must work even if \$libdir does
21212 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21214 # Whether we need a single -rpath flag with a separated argument.
21215 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21217 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21218 # resulting binary.
21219 hardcode_direct=$hardcode_direct_CXX
21221 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21222 # resulting binary.
21223 hardcode_minus_L=$hardcode_minus_L_CXX
21225 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21226 # the resulting binary.
21227 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21229 # Set to yes if building a shared library automatically hardcodes DIR into the library
21230 # and all subsequent libraries and executables linked against it.
21231 hardcode_automatic=$hardcode_automatic_CXX
21233 # Variables whose values should be saved in libtool wrapper scripts and
21234 # restored at relink time.
21235 variables_saved_for_relink="$variables_saved_for_relink"
21237 # Whether libtool must link a program against all its dependency libraries.
21238 link_all_deplibs=$link_all_deplibs_CXX
21240 # Compile-time system search path for libraries
21241 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21243 # Run-time system search path for libraries
21244 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21246 # Fix the shell variable \$srcfile for the compiler.
21247 fix_srcfile_path="$fix_srcfile_path_CXX"
21249 # Set to yes if exported symbols are required.
21250 always_export_symbols=$always_export_symbols_CXX
21252 # The commands to list exported symbols.
21253 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21255 # The commands to extract the exported symbol list from a shared archive.
21256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21258 # Symbols that should not be listed in the preloaded symbols.
21259 exclude_expsyms=$lt_exclude_expsyms_CXX
21261 # Symbols that must always be exported.
21262 include_expsyms=$lt_include_expsyms_CXX
21264 # ### END LIBTOOL TAG CONFIG: $tagname
21270 # If there is no Makefile yet, we rely on a make rule to execute
21271 # `config.status --recheck' to rerun these tests and create the
21272 # libtool script then.
21273 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21274 if test -f "$ltmain_in"; then
21275 test -f Makefile
&& make "$ltmain"
21281 ac_cpp
='$CPP $CPPFLAGS'
21282 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21290 with_gnu_ldcxx
=$with_gnu_ld
21291 with_gnu_ld
=$lt_save_with_gnu_ld
21292 lt_cv_path_LDCXX
=$lt_cv_path_LD
21293 lt_cv_path_LD
=$lt_save_path_LD
21294 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21295 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21303 if test -n "$F77" && test "X$F77" != "Xno"; then
21306 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21307 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21311 archive_cmds_need_lc_F77
=no
21312 allow_undefined_flag_F77
=
21313 always_export_symbols_F77
=no
21314 archive_expsym_cmds_F77
=
21315 export_dynamic_flag_spec_F77
=
21316 hardcode_direct_F77
=no
21317 hardcode_libdir_flag_spec_F77
=
21318 hardcode_libdir_flag_spec_ld_F77
=
21319 hardcode_libdir_separator_F77
=
21320 hardcode_minus_L_F77
=no
21321 hardcode_automatic_F77
=no
21323 module_expsym_cmds_F77
=
21324 link_all_deplibs_F77
=unknown
21325 old_archive_cmds_F77
=$old_archive_cmds
21326 no_undefined_flag_F77
=
21327 whole_archive_flag_spec_F77
=
21328 enable_shared_with_static_runtimes_F77
=no
21330 # Source file extension for f77 test sources.
21333 # Object file extension for compiled f77 test sources.
21337 # Code to be used in simple compile tests
21338 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21340 # Code to be used in simple link tests
21341 lt_simple_link_test_code
=" program t\n end\n"
21343 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21345 # If no C compiler was specified, use CC.
21348 # If no C compiler flags were specified, use CFLAGS.
21349 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21351 # Allow CC to be a program name with arguments.
21355 # save warnings/boilerplate of simple test code
21356 ac_outfile
=conftest.
$ac_objext
21357 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21358 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21359 _lt_compiler_boilerplate
=`cat conftest.err`
21362 ac_outfile
=conftest.
$ac_objext
21363 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21364 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21365 _lt_linker_boilerplate
=`cat conftest.err`
21369 # Allow CC to be a program name with arguments.
21374 for cc_temp
in $compiler""; do
21376 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21377 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21382 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21385 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21386 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21387 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21388 echo "${ECHO_T}$can_build_shared" >&6; }
21390 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21391 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21392 test "$can_build_shared" = "no" && enable_shared
=no
21394 # On AIX, shared libraries and static libraries use the same namespace, and
21395 # are all built from PIC.
21398 test "$enable_shared" = yes && enable_static
=no
21399 if test -n "$RANLIB"; then
21400 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21401 postinstall_cmds
='$RANLIB $lib'
21405 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21406 test "$enable_shared" = yes && enable_static
=no
21410 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21411 echo "${ECHO_T}$enable_shared" >&6; }
21413 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21414 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21415 # Make sure either enable_shared or enable_static is yes.
21416 test "$enable_shared" = yes || enable_static
=yes
21417 { echo "$as_me:$LINENO: result: $enable_static" >&5
21418 echo "${ECHO_T}$enable_static" >&6; }
21423 lt_prog_compiler_wl_F77
=
21424 lt_prog_compiler_pic_F77
=
21425 lt_prog_compiler_static_F77
=
21427 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21430 if test "$GCC" = yes; then
21431 lt_prog_compiler_wl_F77
='-Wl,'
21432 lt_prog_compiler_static_F77
='-static'
21436 # All AIX code is PIC.
21437 if test "$host_cpu" = ia64
; then
21438 # AIX 5 now supports IA64 processor
21439 lt_prog_compiler_static_F77
='-Bstatic'
21444 # FIXME: we need at least 68020 code to build shared libraries, but
21445 # adding the `-m68020' flag to GCC prevents building anything better,
21447 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21450 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21451 # PIC is the default for these OSes.
21454 mingw
* | pw32
* | os2
*)
21455 # This hack is so that the source file can tell whether it is being
21456 # built for inclusion in a dll (and should export symbols for example).
21457 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21460 darwin
* | rhapsody
*)
21461 # PIC is the default on this platform
21462 # Common symbols not allowed in MH_DYLIB files
21463 lt_prog_compiler_pic_F77
='-fno-common'
21467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21468 # Instead, we relocate shared libraries at runtime.
21472 # Just because we use GCC doesn't mean we suddenly get shared libraries
21473 # on systems that don't support them.
21474 lt_prog_compiler_can_build_shared_F77
=no
21479 if test -d /usr
/nec
; then
21480 lt_prog_compiler_pic_F77
=-Kconform_pic
21485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21486 # not for PA HP-UX.
21492 lt_prog_compiler_pic_F77
='-fPIC'
21498 lt_prog_compiler_pic_F77
='-fPIC'
21502 # PORTME Check for flag to pass linker flags through the system compiler.
21505 lt_prog_compiler_wl_F77
='-Wl,'
21506 if test "$host_cpu" = ia64
; then
21507 # AIX 5 now supports IA64 processor
21508 lt_prog_compiler_static_F77
='-Bstatic'
21510 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21514 # PIC is the default on this platform
21515 # Common symbols not allowed in MH_DYLIB files
21516 case $cc_basename in
21518 lt_prog_compiler_pic_F77
='-qnocommon'
21519 lt_prog_compiler_wl_F77
='-Wl,'
21524 mingw
* | pw32
* | os2
*)
21525 # This hack is so that the source file can tell whether it is being
21526 # built for inclusion in a dll (and should export symbols for example).
21527 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21530 hpux9
* | hpux10
* | hpux11
*)
21531 lt_prog_compiler_wl_F77
='-Wl,'
21532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21533 # not for PA HP-UX.
21539 lt_prog_compiler_pic_F77
='+Z'
21542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21543 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21546 irix5
* | irix6
* | nonstopux
*)
21547 lt_prog_compiler_wl_F77
='-Wl,'
21548 # PIC (with -KPIC) is the default.
21549 lt_prog_compiler_static_F77
='-non_shared'
21553 lt_prog_compiler_pic_F77
='-KPIC'
21554 lt_prog_compiler_static_F77
='-Bstatic'
21558 case $cc_basename in
21560 lt_prog_compiler_wl_F77
='-Wl,'
21561 lt_prog_compiler_pic_F77
='-KPIC'
21562 lt_prog_compiler_static_F77
='-static'
21564 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21565 # Portland Group compilers (*not* the Pentium gcc compiler,
21566 # which looks to be a dead project)
21567 lt_prog_compiler_wl_F77
='-Wl,'
21568 lt_prog_compiler_pic_F77
='-fpic'
21569 lt_prog_compiler_static_F77
='-Bstatic'
21572 lt_prog_compiler_wl_F77
='-Wl,'
21573 # All Alpha code is PIC.
21574 lt_prog_compiler_static_F77
='-non_shared'
21579 osf3
* | osf4
* | osf5
*)
21580 lt_prog_compiler_wl_F77
='-Wl,'
21581 # All OSF/1 code is PIC.
21582 lt_prog_compiler_static_F77
='-non_shared'
21586 lt_prog_compiler_pic_F77
='-KPIC'
21587 lt_prog_compiler_static_F77
='-Bstatic'
21588 case $cc_basename in
21589 f77
* | f90
* | f95
*)
21590 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21592 lt_prog_compiler_wl_F77
='-Wl,';;
21597 lt_prog_compiler_wl_F77
='-Qoption ld '
21598 lt_prog_compiler_pic_F77
='-PIC'
21599 lt_prog_compiler_static_F77
='-Bstatic'
21602 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21603 lt_prog_compiler_wl_F77
='-Wl,'
21604 lt_prog_compiler_pic_F77
='-KPIC'
21605 lt_prog_compiler_static_F77
='-Bstatic'
21609 if test -d /usr
/nec
;then
21610 lt_prog_compiler_pic_F77
='-Kconform_pic'
21611 lt_prog_compiler_static_F77
='-Bstatic'
21615 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21616 lt_prog_compiler_wl_F77
='-Wl,'
21617 lt_prog_compiler_pic_F77
='-KPIC'
21618 lt_prog_compiler_static_F77
='-Bstatic'
21622 lt_prog_compiler_wl_F77
='-Wl,'
21623 lt_prog_compiler_can_build_shared_F77
=no
21627 lt_prog_compiler_pic_F77
='-pic'
21628 lt_prog_compiler_static_F77
='-Bstatic'
21632 lt_prog_compiler_can_build_shared_F77
=no
21637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21638 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21641 # Check to make sure the PIC flag actually works.
21643 if test -n "$lt_prog_compiler_pic_F77"; then
21645 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21647 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 lt_prog_compiler_pic_works_F77
=no
21651 ac_outfile
=conftest.
$ac_objext
21652 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21653 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21654 # Insert the option either (1) after the last *FLAGS variable, or
21655 # (2) before a word containing "conftest.", or (3) at the end.
21656 # Note that $ac_compile itself does not contain backslashes and begins
21657 # with a dollar sign (not a hyphen), so the echo should work correctly.
21658 # The option is referenced via a variable to avoid confusing sed.
21659 lt_compile
=`echo "$ac_compile" | $SED \
21660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21662 -e 's:$: $lt_compiler_flag:'`
21663 (eval echo "\"\$as_me:21663: $lt_compile\"" >&5)
21664 (eval "$lt_compile" 2>conftest.err
)
21666 cat conftest.err
>&5
21667 echo "$as_me:21667: \$? = $ac_status" >&5
21668 if (exit $ac_status) && test -s "$ac_outfile"; then
21669 # The compiler can only warn and ignore the option if not recognized
21670 # So say no if there are warnings other than the usual output.
21671 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21672 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21673 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21674 lt_prog_compiler_pic_works_F77
=yes
21680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21681 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21683 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21684 case $lt_prog_compiler_pic_F77 in
21686 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21689 lt_prog_compiler_pic_F77
=
21690 lt_prog_compiler_can_build_shared_F77
=no
21695 # For platforms which do not support PIC, -DPIC is meaningless:
21697 lt_prog_compiler_pic_F77
=
21700 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21705 # Check to make sure the static flag actually works.
21707 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21708 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21709 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21710 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 lt_prog_compiler_static_works_F77
=no
21714 save_LDFLAGS
="$LDFLAGS"
21715 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21716 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21717 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21718 # The linker can only warn and ignore the option if not recognized
21719 # So say no if there are warnings
21720 if test -s conftest.err
; then
21721 # Append any errors to the config.log.
21722 cat conftest.err
1>&5
21723 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21724 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21725 if diff conftest.exp conftest.er2
>/dev
/null
; then
21726 lt_prog_compiler_static_works_F77
=yes
21729 lt_prog_compiler_static_works_F77
=yes
21733 LDFLAGS
="$save_LDFLAGS"
21736 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21737 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21739 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21742 lt_prog_compiler_static_F77
=
21746 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21747 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21748 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 lt_cv_prog_compiler_c_o_F77
=no
21752 $rm -r conftest
2>/dev
/null
21756 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21758 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21759 # Insert the option either (1) after the last *FLAGS variable, or
21760 # (2) before a word containing "conftest.", or (3) at the end.
21761 # Note that $ac_compile itself does not contain backslashes and begins
21762 # with a dollar sign (not a hyphen), so the echo should work correctly.
21763 lt_compile
=`echo "$ac_compile" | $SED \
21764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21766 -e 's:$: $lt_compiler_flag:'`
21767 (eval echo "\"\$as_me:21767: $lt_compile\"" >&5)
21768 (eval "$lt_compile" 2>out
/conftest.err
)
21770 cat out
/conftest.err
>&5
21771 echo "$as_me:21771: \$? = $ac_status" >&5
21772 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21774 # The compiler can only warn and ignore the option if not recognized
21775 # So say no if there are warnings
21776 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21777 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21778 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21779 lt_cv_prog_compiler_c_o_F77
=yes
21784 # SGI C++ compiler will create directory out/ii_files/ for
21785 # template instantiation
21786 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21787 $rm out
/* && rmdir out
21793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21794 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21797 hard_links
="nottested"
21798 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21799 # do not overwrite the value of need_locks provided by the user
21800 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21801 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21804 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21806 ln conftest.a conftest.b
2>&5 || hard_links
=no
21807 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21808 { echo "$as_me:$LINENO: result: $hard_links" >&5
21809 echo "${ECHO_T}$hard_links" >&6; }
21810 if test "$hard_links" = no
; then
21811 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21812 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21819 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21820 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21823 allow_undefined_flag_F77
=
21824 enable_shared_with_static_runtimes_F77
=no
21826 archive_expsym_cmds_F77
=
21827 old_archive_From_new_cmds_F77
=
21828 old_archive_from_expsyms_cmds_F77
=
21829 export_dynamic_flag_spec_F77
=
21830 whole_archive_flag_spec_F77
=
21831 thread_safe_flag_spec_F77
=
21832 hardcode_libdir_flag_spec_F77
=
21833 hardcode_libdir_flag_spec_ld_F77
=
21834 hardcode_libdir_separator_F77
=
21835 hardcode_direct_F77
=no
21836 hardcode_minus_L_F77
=no
21837 hardcode_shlibpath_var_F77
=unsupported
21838 link_all_deplibs_F77
=unknown
21839 hardcode_automatic_F77
=no
21841 module_expsym_cmds_F77
=
21842 always_export_symbols_F77
=no
21843 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21844 # include_expsyms should be a list of space-separated symbols to be *always*
21845 # included in the symbol list
21846 include_expsyms_F77
=
21847 # exclude_expsyms can be an extended regexp of symbols to exclude
21848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21850 # as well as any symbol that contains `d'.
21851 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21853 # platforms (ab)use it in PIC code, but their linkers get confused if
21854 # the symbol is explicitly referenced. Since portable code cannot
21855 # rely on this symbol name, it's probably fine to never include it in
21856 # preloaded symbol tables.
21857 extract_expsyms_cmds
=
21858 # Just being paranoid about ensuring that cc_basename is set.
21859 for cc_temp
in $compiler""; do
21861 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21862 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21867 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21870 cygwin
* | mingw
* | pw32
*)
21871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21872 # When not using gcc, we currently assume that we are using
21873 # Microsoft Visual C++.
21874 if test "$GCC" != yes; then
21879 # we just hope/assume this is gcc and not c89 (= MSVC++)
21888 if test "$with_gnu_ld" = yes; then
21889 # If archive_cmds runs LD, not CC, wlarc should be empty
21892 # Set some defaults for GNU ld with shared library support. These
21893 # are reset later if shared libraries are not supported. Putting them
21894 # here allows them to be overridden if necessary.
21895 runpath_var
=LD_RUN_PATH
21896 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21897 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21898 # ancient GNU ld didn't support --whole-archive et. al.
21899 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21900 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21902 whole_archive_flag_spec_F77
=
21904 supports_anon_versioning
=no
21905 case `$LD -v 2>/dev/null` in
21906 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21907 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21908 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21909 *\
2.11.
*) ;; # other 2.11 versions
21910 *) supports_anon_versioning
=yes ;;
21913 # See if GNU ld supports shared libraries.
21915 aix3
* | aix4
* | aix5
*)
21916 # On AIX/PPC, the GNU linker is very broken
21917 if test "$host_cpu" != ia64
; then
21921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21922 *** to be unable to reliably create shared libraries on AIX.
21923 *** Therefore, libtool is disabling shared libraries support. If you
21924 *** really care for shared libraries, you may want to modify your PATH
21925 *** so that a non-GNU linker is found, and then restart.
21932 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)'
21933 hardcode_libdir_flag_spec_F77
='-L$libdir'
21934 hardcode_minus_L_F77
=yes
21936 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21937 # that the semantics of dynamic libraries on AmigaOS, at least up
21938 # to version 4, is to share data among multiple programs linked
21939 # with the same dynamic library. Since this doesn't match the
21940 # behavior of shared libraries on other platforms, we can't use
21946 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21947 allow_undefined_flag_F77
=unsupported
21948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21949 # support --undefined. This deserves some investigation. FIXME
21950 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21956 cygwin
* | mingw
* | pw32
*)
21957 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21958 # as there is no search path for DLLs.
21959 hardcode_libdir_flag_spec_F77
='-L$libdir'
21960 allow_undefined_flag_F77
=unsupported
21961 always_export_symbols_F77
=no
21962 enable_shared_with_static_runtimes_F77
=yes
21963 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21965 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
21966 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21967 # If the export-symbols file already is a .def file (1st line
21968 # is EXPORTS), use it as is; otherwise, prepend...
21969 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21970 cp $export_symbols $output_objdir/$soname.def;
21972 echo EXPORTS > $output_objdir/$soname.def;
21973 cat $export_symbols >> $output_objdir/$soname.def;
21975 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21982 hardcode_direct_F77
=no
21983 hardcode_shlibpath_var_F77
=no
21984 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
21985 export_dynamic_flag_spec_F77
='${wl}-E'
21986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21987 # Instead, shared libraries are loaded at an image base (0x10000000 by
21988 # default) and relocated if they conflict, which is a slow very memory
21989 # consuming and fragmenting process. To avoid this, we pick a random,
21990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21992 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'
21993 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'
21997 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
21999 case $cc_basename,$host_cpu in
22000 pgcc
*) # Portland Group C compiler
22001 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'
22002 tmp_addflag
=' $pic_flag'
22004 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22005 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'
22006 tmp_addflag
=' $pic_flag -Mnomain' ;;
22007 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22008 tmp_addflag
=' -i_dynamic' ;;
22009 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22010 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22011 ifc
* | ifort
*) # Intel Fortran compiler
22012 tmp_addflag
=' -nofor_main' ;;
22014 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22016 if test $supports_anon_versioning = yes; then
22017 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22019 $echo "local: *; };" >> $output_objdir/$libname.ver~
22020 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22028 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22029 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22032 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22033 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22038 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22043 *** create shared libraries on Solaris systems. Therefore, libtool
22044 *** is disabling shared libraries support. We urge you to upgrade GNU
22045 *** binutils to release 2.9.1 or newer. Another option is to modify
22046 *** your PATH or compiler configuration so that the native linker is
22047 *** used, and then restart.
22050 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22051 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22052 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22058 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22059 case `$LD -v 2>&1` in
22060 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22065 *** reliably create shared libraries on SCO systems. Therefore, libtool
22066 *** is disabling shared libraries support. We urge you to upgrade GNU
22067 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22068 *** your PATH or compiler configuration so that the native linker is
22069 *** used, and then restart.
22074 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22075 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22076 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22077 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22086 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22088 hardcode_direct_F77
=yes
22089 hardcode_shlibpath_var_F77
=no
22093 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22094 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22095 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22102 if test "$ld_shlibs_F77" = no
; then
22104 hardcode_libdir_flag_spec_F77
=
22105 export_dynamic_flag_spec_F77
=
22106 whole_archive_flag_spec_F77
=
22109 # PORTME fill in a description of your system's linker (not GNU ld)
22112 allow_undefined_flag_F77
=unsupported
22113 always_export_symbols_F77
=yes
22114 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'
22115 # Note: this linker hardcodes the directories in LIBPATH if there
22116 # are no directories specified by -L.
22117 hardcode_minus_L_F77
=yes
22118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22119 # Neither direct hardcoding nor static linking is supported with a
22121 hardcode_direct_F77
=unsupported
22126 if test "$host_cpu" = ia64
; then
22127 # On IA64, the linker does run time linking by default, so we don't
22128 # have to do anything special.
22129 aix_use_runtimelinking
=no
22130 exp_sym_flag
='-Bexport'
22133 # If we're using GNU nm, then we don't want the "-C" option.
22134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22135 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22136 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'
22138 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'
22140 aix_use_runtimelinking
=no
22142 # Test if we are trying to use run time linking or normal
22143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22144 # need to do runtime linking.
22145 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22146 for ld_flag
in $LDFLAGS; do
22147 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22148 aix_use_runtimelinking
=yes
22155 exp_sym_flag
='-bexport'
22156 no_entry_flag
='-bnoentry'
22159 # When large executables or shared objects are built, AIX ld can
22160 # have problems creating the table of contents. If linking a library
22161 # or program results in "error TOC overflow" add -mminimal-toc to
22162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22165 archive_cmds_F77
=''
22166 hardcode_direct_F77
=yes
22167 hardcode_libdir_separator_F77
=':'
22168 link_all_deplibs_F77
=yes
22170 if test "$GCC" = yes; then
22171 case $host_os in aix4.
[012]|aix4.
[012].
*)
22172 # We only want to do this on AIX 4.2 and lower, the check
22173 # below for broken collect2 doesn't work under 4.3+
22174 collect2name
=`${CC} -print-prog-name=collect2`
22175 if test -f "$collect2name" && \
22176 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22178 # We have reworked collect2
22179 hardcode_direct_F77
=yes
22181 # We have old collect2
22182 hardcode_direct_F77
=unsupported
22183 # It fails to find uninstalled libraries when the uninstalled
22184 # path is not listed in the libpath. Setting hardcode_minus_L
22185 # to unsupported forces relinking
22186 hardcode_minus_L_F77
=yes
22187 hardcode_libdir_flag_spec_F77
='-L$libdir'
22188 hardcode_libdir_separator_F77
=
22192 shared_flag
='-shared'
22193 if test "$aix_use_runtimelinking" = yes; then
22194 shared_flag
="$shared_flag "'${wl}-G'
22198 if test "$host_cpu" = ia64
; then
22199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22200 # chokes on -Wl,-G. The following line is correct:
22203 if test "$aix_use_runtimelinking" = yes; then
22204 shared_flag
='${wl}-G'
22206 shared_flag
='${wl}-bM:SRE'
22211 # It seems that -bexpall does not export symbols beginning with
22212 # underscore (_), so it is better to generate a list of symbols to export.
22213 always_export_symbols_F77
=yes
22214 if test "$aix_use_runtimelinking" = yes; then
22215 # Warning - without using the other runtime loading flags (-brtl),
22216 # -berok will link without error, but may produce a broken library.
22217 allow_undefined_flag_F77
='-berok'
22218 # Determine the default libpath from the value encoded in an empty executable.
22219 cat >conftest.
$ac_ext <<_ACEOF
22224 rm -f conftest.
$ac_objext conftest
$ac_exeext
22225 if { (ac_try
="$ac_link"
22226 case "(($ac_try" in
22227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>conftest.er1
22233 grep -v '^ *+' conftest.er1 >conftest.err
22235 cat conftest.err >&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22241 *) ac_try_echo
=$ac_try;;
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; } &&
22248 { ac_try
='test -s conftest$ac_exeext'
22249 { (case "(($ac_try" in
22250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22259 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22261 # Check for a 64-bit object if we didn't find anything.
22262 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; }
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22271 rm -f core conftest.err conftest.$ac_objext \
22272 conftest$ac_exeext conftest.$ac_ext
22273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22275 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22276 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"
22278 if test "$host_cpu" = ia64; then
22279 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22280 allow_undefined_flag_F77="-z nodefs"
22281 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"
22283 # Determine the default libpath from the value encoded in an empty executable.
22284 cat >conftest.$ac_ext <<_ACEOF
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (ac_try="$ac_link"
22291 case "(($ac_try" in
22292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22293 *) ac_try_echo
=$ac_try;;
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_link") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1
>conftest.err
22300 cat conftest.err
>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22304 { (case "(($ac_try" in
22305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_try") 2>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; } &&
22313 { ac_try='test -s conftest$ac_exeext'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22316 *) ac_try_echo
=$ac_try;;
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22324 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22326 # Check for a 64-bit object if we didn't find anything.
22327 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; }
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.
$ac_ext >&5
22336 rm -f core conftest.err conftest.
$ac_objext \
22337 conftest
$ac_exeext conftest.
$ac_ext
22338 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22340 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22341 # Warning - without using the other run time loading flags,
22342 # -berok will link without error, but may produce a broken library.
22343 no_undefined_flag_F77
=' ${wl}-bernotok'
22344 allow_undefined_flag_F77
=' ${wl}-berok'
22345 # Exported symbols can be pulled into shared objects from archives
22346 whole_archive_flag_spec_F77
='$convenience'
22347 archive_cmds_need_lc_F77
=yes
22348 # This is similar to how AIX traditionally builds its shared libraries.
22349 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'
22355 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)'
22356 hardcode_libdir_flag_spec_F77
='-L$libdir'
22357 hardcode_minus_L_F77
=yes
22358 # see comment about different semantics on the GNU ld section
22363 export_dynamic_flag_spec_F77
=-rdynamic
22366 cygwin
* | mingw
* | pw32
*)
22367 # When not using gcc, we currently assume that we are using
22368 # Microsoft Visual C++.
22369 # hardcode_libdir_flag_spec is actually meaningless, as there is
22370 # no search path for DLLs.
22371 hardcode_libdir_flag_spec_F77
=' '
22372 allow_undefined_flag_F77
=unsupported
22373 # Tell ltmain to make .lib files, not .a files.
22375 # Tell ltmain to make .dll files, not .so files.
22377 # FIXME: Setting linknames here is a bad hack.
22378 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22379 # The linker will automatically build a .lib file if we build a DLL.
22380 old_archive_From_new_cmds_F77
='true'
22381 # FIXME: Should let the user specify the lib program.
22382 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22383 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22384 enable_shared_with_static_runtimes_F77
=yes
22387 darwin
* | rhapsody
*)
22389 rhapsody
* | darwin1.
[012])
22390 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22394 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22396 case ${MACOSX_DEPLOYMENT_TARGET} in
22398 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22401 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22407 archive_cmds_need_lc_F77
=no
22408 hardcode_direct_F77
=no
22409 hardcode_automatic_F77
=yes
22410 hardcode_shlibpath_var_F77
=unsupported
22411 whole_archive_flag_spec_F77
=''
22412 link_all_deplibs_F77
=yes
22413 if test "$GCC" = yes ; then
22414 output_verbose_link_cmd
='echo'
22415 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22416 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22418 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}'
22419 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}'
22421 case $cc_basename in
22423 output_verbose_link_cmd
='echo'
22424 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22425 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22427 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}'
22428 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}'
22438 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22439 hardcode_libdir_flag_spec_F77
='-L$libdir'
22440 hardcode_shlibpath_var_F77
=no
22447 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22448 # support. Future versions do this automatically, but an explicit c++rt0.o
22449 # does not break anything, and helps significantly (at the cost of a little
22452 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22453 hardcode_libdir_flag_spec_F77
='-R$libdir'
22454 hardcode_direct_F77
=yes
22455 hardcode_shlibpath_var_F77
=no
22458 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22460 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22461 hardcode_direct_F77
=yes
22462 hardcode_minus_L_F77
=yes
22463 hardcode_shlibpath_var_F77
=no
22466 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22467 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22468 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22469 hardcode_libdir_flag_spec_F77
='-R$libdir'
22470 hardcode_direct_F77
=yes
22471 hardcode_shlibpath_var_F77
=no
22475 if test "$GCC" = yes; then
22476 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'
22478 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'
22480 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22481 hardcode_libdir_separator_F77
=:
22482 hardcode_direct_F77
=yes
22484 # hardcode_minus_L: Not really in the search PATH,
22485 # but as the default location of the library.
22486 hardcode_minus_L_F77
=yes
22487 export_dynamic_flag_spec_F77
='${wl}-E'
22491 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22492 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22494 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22496 if test "$with_gnu_ld" = no
; then
22497 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22498 hardcode_libdir_separator_F77
=:
22500 hardcode_direct_F77
=yes
22501 export_dynamic_flag_spec_F77
='${wl}-E'
22503 # hardcode_minus_L: Not really in the search PATH,
22504 # but as the default location of the library.
22505 hardcode_minus_L_F77
=yes
22510 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22513 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22516 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22519 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22525 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22528 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22531 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22535 if test "$with_gnu_ld" = no
; then
22536 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22537 hardcode_libdir_separator_F77
=:
22541 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22542 hardcode_direct_F77
=no
22543 hardcode_shlibpath_var_F77
=no
22546 hardcode_direct_F77
=yes
22547 export_dynamic_flag_spec_F77
='${wl}-E'
22549 # hardcode_minus_L: Not really in the search PATH,
22550 # but as the default location of the library.
22551 hardcode_minus_L_F77
=yes
22557 irix5
* | irix6
* | nonstopux
*)
22558 if test "$GCC" = yes; then
22559 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'
22561 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'
22562 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22564 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22565 hardcode_libdir_separator_F77
=:
22566 link_all_deplibs_F77
=yes
22570 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22571 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22573 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22575 hardcode_libdir_flag_spec_F77
='-R$libdir'
22576 hardcode_direct_F77
=yes
22577 hardcode_shlibpath_var_F77
=no
22581 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22582 hardcode_direct_F77
=yes
22583 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22584 hardcode_libdir_separator_F77
=:
22585 hardcode_shlibpath_var_F77
=no
22589 hardcode_direct_F77
=yes
22590 hardcode_shlibpath_var_F77
=no
22591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22592 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22593 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22594 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22595 export_dynamic_flag_spec_F77
='${wl}-E'
22598 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22599 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22600 hardcode_libdir_flag_spec_F77
='-R$libdir'
22603 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22604 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22611 hardcode_libdir_flag_spec_F77
='-L$libdir'
22612 hardcode_minus_L_F77
=yes
22613 allow_undefined_flag_F77
=unsupported
22614 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'
22615 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22619 if test "$GCC" = yes; then
22620 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22621 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'
22623 allow_undefined_flag_F77
=' -expect_unresolved \*'
22624 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'
22626 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22627 hardcode_libdir_separator_F77
=:
22630 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22631 if test "$GCC" = yes; then
22632 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22633 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'
22634 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22636 allow_undefined_flag_F77
=' -expect_unresolved \*'
22637 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'
22638 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~
22639 $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'
22641 # Both c and cxx compiler support -rpath directly
22642 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22644 hardcode_libdir_separator_F77
=:
22648 no_undefined_flag_F77
=' -z text'
22649 if test "$GCC" = yes; then
22651 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22652 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22656 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22657 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22660 hardcode_libdir_flag_spec_F77
='-R$libdir'
22661 hardcode_shlibpath_var_F77
=no
22663 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22665 # The compiler driver will combine linker options so we
22666 # cannot just pass the convience library names through
22667 # without $wl, iff we do not link with $LD.
22668 # Luckily, gcc supports the same syntax we need for Sun Studio.
22669 # Supported since Solaris 2.6 (maybe 2.5.1?)
22672 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22674 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' ;;
22677 link_all_deplibs_F77
=yes
22681 if test "x$host_vendor" = xsequent
; then
22682 # Use $CC to link under sequent, because it throws in some extra .o
22683 # files that make .init and .fini sections work.
22684 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22686 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22688 hardcode_libdir_flag_spec_F77
='-L$libdir'
22689 hardcode_direct_F77
=yes
22690 hardcode_minus_L_F77
=yes
22691 hardcode_shlibpath_var_F77
=no
22695 case $host_vendor in
22697 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22698 hardcode_direct_F77
=yes # is this really true???
22701 ## LD is ld it makes a PLAMLIB
22702 ## CC just makes a GrossModule.
22703 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22704 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22705 hardcode_direct_F77
=no
22708 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22709 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22712 runpath_var
='LD_RUN_PATH'
22713 hardcode_shlibpath_var_F77
=no
22717 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22718 hardcode_shlibpath_var_F77
=no
22719 export_dynamic_flag_spec_F77
='-Bexport'
22723 if test -d /usr
/nec
; then
22724 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22725 hardcode_shlibpath_var_F77
=no
22726 runpath_var
=LD_RUN_PATH
22727 hardcode_runpath_var
=yes
22732 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22733 no_undefined_flag_F77
='${wl}-z,text'
22734 archive_cmds_need_lc_F77
=no
22735 hardcode_shlibpath_var_F77
=no
22736 runpath_var
='LD_RUN_PATH'
22738 if test "$GCC" = yes; then
22739 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22740 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22742 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22743 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22747 sysv5
* | sco3.2v5
* | sco5v6
*)
22748 # Note: We can NOT use -z defs as we might desire, because we do not
22749 # link with -lc, and that would cause any symbols used from libc to
22750 # always be unresolved, which means just about no library would
22751 # ever link correctly. If we're not using GNU ld we use -z text
22752 # though, which does catch some bad symbols but isn't as heavy-handed
22754 no_undefined_flag_F77
='${wl}-z,text'
22755 allow_undefined_flag_F77
='${wl}-z,nodefs'
22756 archive_cmds_need_lc_F77
=no
22757 hardcode_shlibpath_var_F77
=no
22758 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22759 hardcode_libdir_separator_F77
=':'
22760 link_all_deplibs_F77
=yes
22761 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22762 runpath_var
='LD_RUN_PATH'
22764 if test "$GCC" = yes; then
22765 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22766 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22768 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22774 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22775 hardcode_libdir_flag_spec_F77
='-L$libdir'
22776 hardcode_shlibpath_var_F77
=no
22785 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22786 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22787 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22790 # Do we need to explicitly link libc?
22792 case "x$archive_cmds_need_lc_F77" in
22794 # Assume -lc should be added
22795 archive_cmds_need_lc_F77
=yes
22797 if test "$enable_shared" = yes && test "$GCC" = yes; then
22798 case $archive_cmds_F77 in
22800 # FIXME: we may have to deal with multi-command sequences.
22803 # Test whether the compiler implicitly links with -lc since on some
22804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22805 # to ld, don't add -lc before -lgcc.
22806 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22807 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22809 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812 (eval $ac_compile) 2>&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } 2>conftest.err
; then
22818 libobjs
=conftest.
$ac_objext
22820 wl
=$lt_prog_compiler_wl_F77
22821 pic_flag
=$lt_prog_compiler_pic_F77
22827 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22828 allow_undefined_flag_F77
=
22829 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22830 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }
22835 archive_cmds_need_lc_F77
=no
22837 archive_cmds_need_lc_F77
=yes
22839 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22841 cat conftest.err
1>&5
22844 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22845 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22852 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22853 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22854 library_names_spec
=
22855 libname_spec
='lib$name'
22859 postuninstall_cmds
=
22863 shlibpath_overrides_runpath
=unknown
22865 dynamic_linker
="$host_os ld.so"
22866 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22867 if test "$GCC" = yes; then
22868 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22869 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22870 # if the path contains ";" then we assume it to be the separator
22871 # otherwise default to the standard path separator (i.e. ":") - it is
22872 # assumed that no part of a normal pathname contains ";" but that should
22873 # okay in the real world where ";" in dirpaths is itself problematic.
22874 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22876 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22879 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22881 need_lib_prefix
=unknown
22882 hardcode_into_libs
=no
22884 # when you set need_version to no, make sure it does not cause -set_version
22885 # flags to be left without arguments
22886 need_version
=unknown
22891 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22892 shlibpath_var
=LIBPATH
22894 # AIX 3 has no versioning support, so we append a major version to the name.
22895 soname_spec
='${libname}${release}${shared_ext}$major'
22902 hardcode_into_libs
=yes
22903 if test "$host_cpu" = ia64
; then
22904 # AIX 5 supports IA64
22905 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22906 shlibpath_var
=LD_LIBRARY_PATH
22908 # With GCC up to 2.95.x, collect2 would create an import file
22909 # for dependence libraries. The import file would start with
22910 # the line `#! .'. This would cause the generated library to
22911 # depend on `.', always an invalid library. This was fixed in
22912 # development snapshots of GCC prior to 3.0.
22914 aix4 | aix4.
[01] | aix4.
[01].
*)
22915 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22917 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22920 can_build_shared
=no
22924 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22925 # soname into executable. Probably we can add versioning support to
22926 # collect2, so additional links can be useful in future.
22927 if test "$aix_use_runtimelinking" = yes; then
22928 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22929 # instead of lib<name>.a to let people know that these are not
22930 # typical AIX shared libraries.
22931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22933 # We preserve .a as extension for shared libraries through AIX4.2
22934 # and later when we are not doing run time linking.
22935 library_names_spec
='${libname}${release}.a $libname.a'
22936 soname_spec
='${libname}${release}${shared_ext}$major'
22938 shlibpath_var
=LIBPATH
22943 library_names_spec
='$libname.ixlibrary $libname.a'
22944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22945 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'
22949 library_names_spec
='${libname}${shared_ext}'
22950 dynamic_linker
="$host_os ld.so"
22951 shlibpath_var
=LIBRARY_PATH
22957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec
='${libname}${release}${shared_ext}$major'
22959 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22960 shlibpath_var
=LD_LIBRARY_PATH
22961 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22962 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22963 # the default ld.so.conf also contains /usr/contrib/lib and
22964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22965 # libtool to hard-code these into programs
22968 cygwin
* | mingw
* | pw32
*)
22969 version_type
=windows
22974 case $GCC,$host_os in
22975 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
22976 library_names_spec
='$libname.dll.a'
22977 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22978 postinstall_cmds
='base_file=`basename \${file}`~
22979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22980 dldir=$destdir/`dirname \$dlpath`~
22981 test -d \$dldir || mkdir -p \$dldir~
22982 $install_prog $dir/$dlname \$dldir/$dlname~
22983 chmod a+x \$dldir/$dlname'
22984 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22985 dlpath=$dir/\$dldll~
22987 shlibpath_overrides_runpath
=yes
22991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22992 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22993 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
22996 # MinGW DLLs use traditional 'lib' prefix
22997 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22998 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22999 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23000 # It is most probably a Windows format PATH printed by
23001 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23002 # path with ; separators, and with drive letters. We can handle the
23003 # drive letters (cygwin fileutils understands them), so leave them,
23004 # especially as we might pass files found there to a mingw objdump,
23005 # which wouldn't understand a cygwinified path. Ahh.
23006 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23008 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23012 # pw32 DLLs use 'pw' prefix rather than 'lib'
23013 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23019 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23022 dynamic_linker
='Win32 ld.exe'
23023 # FIXME: first we should search . and the directory the executable is in
23027 darwin
* | rhapsody
*)
23028 dynamic_linker
="$host_os dyld"
23029 version_type
=darwin
23032 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23033 soname_spec
='${libname}${release}${major}$shared_ext'
23034 shlibpath_overrides_runpath
=yes
23035 shlibpath_var
=DYLD_LIBRARY_PATH
23036 shrext_cmds
='.dylib'
23037 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23038 if test "$GCC" = yes; then
23039 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"`
23041 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23043 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23051 soname_spec
='${libname}${release}${shared_ext}$major'
23052 shlibpath_var
=LD_LIBRARY_PATH
23063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23064 soname_spec
='${libname}${release}${shared_ext}$major'
23065 shlibpath_var
=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath
=no
23067 hardcode_into_libs
=yes
23068 dynamic_linker
='GNU ld.so'
23071 freebsd
* | dragonfly
*)
23072 # DragonFly does not have aout. When/if they implement a new
23073 # versioning mechanism, adjust this.
23074 if test -x /usr
/bin
/objformat
; then
23075 objformat
=`/usr/bin/objformat`
23078 freebsd
[123]*) objformat
=aout
;;
23079 *) objformat
=elf
;;
23082 version_type
=freebsd-
$objformat
23083 case $version_type in
23085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23090 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23094 shlibpath_var
=LD_LIBRARY_PATH
23097 shlibpath_overrides_runpath
=yes
23099 freebsd3.
[01]* | freebsdelf3.
[01]*)
23100 shlibpath_overrides_runpath
=yes
23101 hardcode_into_libs
=yes
23103 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23104 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23105 shlibpath_overrides_runpath
=no
23106 hardcode_into_libs
=yes
23108 freebsd
*) # from 4.6 on
23109 shlibpath_overrides_runpath
=yes
23110 hardcode_into_libs
=yes
23119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23120 soname_spec
='${libname}${release}${shared_ext}$major'
23121 shlibpath_var
=LD_LIBRARY_PATH
23122 hardcode_into_libs
=yes
23125 hpux9
* | hpux10
* | hpux11
*)
23126 # Give a soname corresponding to the major version so that dld.sl refuses to
23127 # link against other versions.
23134 hardcode_into_libs
=yes
23135 dynamic_linker
="$host_os dld.so"
23136 shlibpath_var
=LD_LIBRARY_PATH
23137 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23139 soname_spec
='${libname}${release}${shared_ext}$major'
23140 if test "X$HPUX_IA64_MODE" = X32
; then
23141 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23143 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23145 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23149 hardcode_into_libs
=yes
23150 dynamic_linker
="$host_os dld.sl"
23151 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23152 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154 soname_spec
='${libname}${release}${shared_ext}$major'
23155 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23156 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23160 dynamic_linker
="$host_os dld.sl"
23161 shlibpath_var
=SHLIB_PATH
23162 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23164 soname_spec
='${libname}${release}${shared_ext}$major'
23167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23168 postinstall_cmds
='chmod 555 $lib'
23175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23176 soname_spec
='${libname}${release}${shared_ext}$major'
23177 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23178 shlibpath_var
=LD_LIBRARY_PATH
23179 shlibpath_overrides_runpath
=no
23180 hardcode_into_libs
=yes
23183 irix5
* | irix6
* | nonstopux
*)
23185 nonstopux
*) version_type
=nonstopux
;;
23187 if test "$lt_cv_prog_gnu_ld" = yes; then
23195 soname_spec
='${libname}${release}${shared_ext}$major'
23196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23198 irix5
* | nonstopux
*)
23199 libsuff
= shlibsuff
=
23202 case $LD in # libtool.m4 will add one of these switches to LD
23203 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23204 libsuff
= shlibsuff
= libmagic
=32-bit;;
23205 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23206 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23207 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23208 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23209 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23213 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23214 shlibpath_overrides_runpath
=no
23215 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23216 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23217 hardcode_into_libs
=yes
23220 # No shared lib support for Linux oldld, aout, or coff.
23221 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23225 # This must be Linux ELF.
23230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec
='${libname}${release}${shared_ext}$major'
23232 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23233 shlibpath_var
=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath
=no
23235 # This implies no fast_install, which is unacceptable.
23236 # Some rework will be needed to allow for fast_install
23237 # before this can be enabled.
23238 hardcode_into_libs
=yes
23240 # Append ld.so.conf contents to the search path
23241 if test -f /etc
/ld.so.conf
; then
23242 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' ' '`
23243 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23246 # We used to test for /lib/ld.so.1 and disable shared libraries on
23247 # powerpc, because MkLinux only supported shared libraries with the
23248 # GNU dynamic linker. Since this was broken with cross compilers,
23249 # most powerpc-linux boxes support dynamic linking these days and
23250 # people can always --disable-shared, the test was removed, and we
23251 # assume the GNU/Linux dynamic linker is in use.
23252 dynamic_linker
='GNU/Linux ld.so'
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 shlibpath_var
=LD_LIBRARY_PATH
23262 shlibpath_overrides_runpath
=no
23263 hardcode_into_libs
=yes
23264 dynamic_linker
='GNU ld.so'
23271 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23273 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23274 dynamic_linker
='NetBSD (a.out) ld.so'
23276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23277 soname_spec
='${libname}${release}${shared_ext}$major'
23278 dynamic_linker
='NetBSD ld.elf_so'
23280 shlibpath_var
=LD_LIBRARY_PATH
23281 shlibpath_overrides_runpath
=yes
23282 hardcode_into_libs
=yes
23287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23288 shlibpath_var
=LD_LIBRARY_PATH
23289 shlibpath_overrides_runpath
=yes
23296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23297 soname_spec
='${libname}${release}${shared_ext}$major'
23298 shlibpath_var
=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath
=yes
23304 sys_lib_dlsearch_path_spec
="/usr/lib"
23306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23308 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23309 *) need_version
=no
;;
23311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23312 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23313 shlibpath_var
=LD_LIBRARY_PATH
23314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23316 openbsd2.
[89] | openbsd2.
[89].
*)
23317 shlibpath_overrides_runpath
=no
23320 shlibpath_overrides_runpath
=yes
23324 shlibpath_overrides_runpath
=yes
23329 libname_spec
='$name'
23332 library_names_spec
='$libname${shared_ext} $libname.a'
23333 dynamic_linker
='OS/2 ld.exe'
23334 shlibpath_var
=LIBPATH
23337 osf3
* | osf4
* | osf5
*)
23341 soname_spec
='${libname}${release}${shared_ext}$major'
23342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343 shlibpath_var
=LD_LIBRARY_PATH
23344 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23345 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23353 soname_spec
='${libname}${release}${shared_ext}$major'
23354 shlibpath_var
=LD_LIBRARY_PATH
23355 shlibpath_overrides_runpath
=yes
23356 hardcode_into_libs
=yes
23357 # ldd complains unless libraries are executable
23358 postinstall_cmds
='chmod +x $lib'
23363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23364 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23365 shlibpath_var
=LD_LIBRARY_PATH
23366 shlibpath_overrides_runpath
=yes
23367 if test "$with_gnu_ld" = yes; then
23375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23376 soname_spec
='${libname}${release}${shared_ext}$major'
23377 shlibpath_var
=LD_LIBRARY_PATH
23378 case $host_vendor in
23380 shlibpath_overrides_runpath
=no
23382 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23383 runpath_var
=LD_RUN_PATH
23391 shlibpath_overrides_runpath
=no
23392 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23398 if test -d /usr
/nec
;then
23400 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23401 soname_spec
='$libname${shared_ext}.$major'
23402 shlibpath_var
=LD_LIBRARY_PATH
23406 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23407 version_type
=freebsd-elf
23410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23411 soname_spec
='${libname}${release}${shared_ext}$major'
23412 shlibpath_var
=LD_LIBRARY_PATH
23413 hardcode_into_libs
=yes
23414 if test "$with_gnu_ld" = yes; then
23415 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23416 shlibpath_overrides_runpath
=no
23418 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23419 shlibpath_overrides_runpath
=yes
23422 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23426 sys_lib_dlsearch_path_spec
='/usr/lib'
23431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23432 soname_spec
='${libname}${release}${shared_ext}$major'
23433 shlibpath_var
=LD_LIBRARY_PATH
23440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23441 echo "${ECHO_T}$dynamic_linker" >&6; }
23442 test "$dynamic_linker" = no
&& can_build_shared
=no
23444 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23445 if test "$GCC" = yes; then
23446 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23449 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23451 hardcode_action_F77
=
23452 if test -n "$hardcode_libdir_flag_spec_F77" || \
23453 test -n "$runpath_var_F77" || \
23454 test "X$hardcode_automatic_F77" = "Xyes" ; then
23456 # We can hardcode non-existant directories.
23457 if test "$hardcode_direct_F77" != no
&&
23458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23459 # have to relink, otherwise we might link with an installed library
23460 # when we should be linking with a yet-to-be-installed one
23461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23462 test "$hardcode_minus_L_F77" != no
; then
23463 # Linking always hardcodes the temporary library directory.
23464 hardcode_action_F77
=relink
23466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23467 hardcode_action_F77
=immediate
23470 # We cannot hardcode anything, or else we can only hardcode existing
23472 hardcode_action_F77
=unsupported
23474 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23475 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23477 if test "$hardcode_action_F77" = relink
; then
23478 # Fast installation is not supported
23479 enable_fast_install
=no
23480 elif test "$shlibpath_overrides_runpath" = yes ||
23481 test "$enable_shared" = no
; then
23482 # Fast installation is not necessary
23483 enable_fast_install
=needless
23487 # The else clause should only fire when bootstrapping the
23488 # libtool distribution, otherwise you forgot to ship ltmain.sh
23489 # with your package, and you will get complaints that there are
23490 # no rules to generate ltmain.sh.
23491 if test -f "$ltmain"; then
23492 # See if we are running on zsh, and set the options which allow our commands through
23493 # without removal of \ escapes.
23494 if test -n "${ZSH_VERSION+set}" ; then
23495 setopt NO_GLOB_SUBST
23497 # Now quote all the things that may contain metacharacters while being
23498 # careful not to overquote the AC_SUBSTed values. We take copies of the
23499 # variables and quote the copies for generation of the libtool script.
23500 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23504 deplibs_check_method reload_flag reload_cmds need_locks \
23505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23506 lt_cv_sys_global_symbol_to_c_name_address \
23507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23508 old_postinstall_cmds old_postuninstall_cmds \
23512 lt_prog_compiler_wl_F77 \
23513 lt_prog_compiler_pic_F77 \
23514 lt_prog_compiler_static_F77 \
23515 lt_prog_compiler_no_builtin_flag_F77 \
23516 export_dynamic_flag_spec_F77 \
23517 thread_safe_flag_spec_F77 \
23518 whole_archive_flag_spec_F77 \
23519 enable_shared_with_static_runtimes_F77 \
23520 old_archive_cmds_F77 \
23521 old_archive_from_new_cmds_F77 \
23522 predep_objects_F77 \
23523 postdep_objects_F77 \
23526 compiler_lib_search_path_F77 \
23528 archive_expsym_cmds_F77 \
23529 postinstall_cmds_F77 \
23530 postuninstall_cmds_F77 \
23531 old_archive_from_expsyms_cmds_F77 \
23532 allow_undefined_flag_F77 \
23533 no_undefined_flag_F77 \
23534 export_symbols_cmds_F77 \
23535 hardcode_libdir_flag_spec_F77 \
23536 hardcode_libdir_flag_spec_ld_F77 \
23537 hardcode_libdir_separator_F77 \
23538 hardcode_automatic_F77 \
23540 module_expsym_cmds_F77 \
23541 lt_cv_prog_compiler_c_o_F77 \
23542 exclude_expsyms_F77 \
23543 include_expsyms_F77
; do
23546 old_archive_cmds_F77 | \
23547 old_archive_from_new_cmds_F77 | \
23548 archive_cmds_F77 | \
23549 archive_expsym_cmds_F77 | \
23550 module_cmds_F77 | \
23551 module_expsym_cmds_F77 | \
23552 old_archive_from_expsyms_cmds_F77 | \
23553 export_symbols_cmds_F77 | \
23554 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23555 postinstall_cmds | postuninstall_cmds | \
23556 old_postinstall_cmds | old_postuninstall_cmds | \
23557 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23558 # Double-quote double-evaled strings.
23559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23568 *'\$0 --fallback-echo"')
23569 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23575 cat <<__EOF__ >> "$cfgfile"
23576 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23580 # Shell to use when invoking shell scripts.
23583 # Whether or not to build shared libraries.
23584 build_libtool_libs=$enable_shared
23586 # Whether or not to build static libraries.
23587 build_old_libs=$enable_static
23589 # Whether or not to add -lc for building shared libraries.
23590 build_libtool_need_lc=$archive_cmds_need_lc_F77
23592 # Whether or not to disallow shared libs when runtime libs are static
23593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23595 # Whether or not to optimize for fast installation.
23596 fast_install=$enable_fast_install
23599 host_alias=$host_alias
23603 # The build system.
23604 build_alias=$build_alias
23608 # An echo program that does not interpret backslashes.
23613 AR_FLAGS=$lt_AR_FLAGS
23618 # LTCC compiler flags.
23619 LTCFLAGS=$lt_LTCFLAGS
23621 # A language-specific compiler.
23622 CC=$lt_compiler_F77
23624 # Is the compiler the GNU C compiler?
23630 # The linker used to build libraries.
23633 # Whether we need hard or soft links.
23636 # A BSD-compatible nm program.
23639 # A symbol stripping program
23642 # Used to examine libraries when file_magic_cmd begins "file"
23643 MAGIC_CMD=$MAGIC_CMD
23645 # Used on cygwin: DLL creation program.
23648 # Used on cygwin: object dumper.
23651 # Used on cygwin: assembler.
23654 # The name of the directory that contains temporary libtool files.
23657 # How to create reloadable object files.
23658 reload_flag=$lt_reload_flag
23659 reload_cmds=$lt_reload_cmds
23661 # How to pass a linker flag through the compiler.
23662 wl=$lt_lt_prog_compiler_wl_F77
23664 # Object file suffix (normally "o").
23665 objext="$ac_objext"
23667 # Old archive suffix (normally "a").
23670 # Shared library suffix (normally ".so").
23671 shrext_cmds='$shrext_cmds'
23673 # Executable file suffix (normally "").
23676 # Additional compiler flags for building library objects.
23677 pic_flag=$lt_lt_prog_compiler_pic_F77
23680 # What is the maximum length of a command?
23681 max_cmd_len=$lt_cv_sys_max_cmd_len
23683 # Does compiler simultaneously support -c and -o options?
23684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23686 # Must we lock files when doing compilation?
23687 need_locks=$lt_need_locks
23689 # Do we need the lib prefix for modules?
23690 need_lib_prefix=$need_lib_prefix
23692 # Do we need a version for libraries?
23693 need_version=$need_version
23695 # Whether dlopen is supported.
23696 dlopen_support=$enable_dlopen
23698 # Whether dlopen of programs is supported.
23699 dlopen_self=$enable_dlopen_self
23701 # Whether dlopen of statically linked programs is supported.
23702 dlopen_self_static=$enable_dlopen_self_static
23704 # Compiler flag to prevent dynamic linking.
23705 link_static_flag=$lt_lt_prog_compiler_static_F77
23707 # Compiler flag to turn off builtin functions.
23708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23710 # Compiler flag to allow reflexive dlopens.
23711 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23713 # Compiler flag to generate shared objects directly from archives.
23714 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23716 # Compiler flag to generate thread-safe objects.
23717 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23719 # Library versioning type.
23720 version_type=$version_type
23722 # Format of library name prefix.
23723 libname_spec=$lt_libname_spec
23725 # List of archive names. First name is the real one, the rest are links.
23726 # The last name is the one that the linker finds with -lNAME.
23727 library_names_spec=$lt_library_names_spec
23729 # The coded name of the library, if different from the real name.
23730 soname_spec=$lt_soname_spec
23732 # Commands used to build and install an old-style archive.
23734 old_archive_cmds=$lt_old_archive_cmds_F77
23735 old_postinstall_cmds=$lt_old_postinstall_cmds
23736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23738 # Create an old-style archive from a shared archive.
23739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23741 # Create a temporary old-style archive to link instead of a shared archive.
23742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23744 # Commands used to build and install a shared archive.
23745 archive_cmds=$lt_archive_cmds_F77
23746 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23747 postinstall_cmds=$lt_postinstall_cmds
23748 postuninstall_cmds=$lt_postuninstall_cmds
23750 # Commands used to build a loadable module (assumed same as above if empty)
23751 module_cmds=$lt_module_cmds_F77
23752 module_expsym_cmds=$lt_module_expsym_cmds_F77
23754 # Commands to strip libraries.
23755 old_striplib=$lt_old_striplib
23756 striplib=$lt_striplib
23758 # Dependencies to place before the objects being linked to create a
23760 predep_objects=$lt_predep_objects_F77
23762 # Dependencies to place after the objects being linked to create a
23764 postdep_objects=$lt_postdep_objects_F77
23766 # Dependencies to place before the objects being linked to create a
23768 predeps=$lt_predeps_F77
23770 # Dependencies to place after the objects being linked to create a
23772 postdeps=$lt_postdeps_F77
23774 # The library search path used internally by the compiler when linking
23775 # a shared library.
23776 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23778 # Method to check whether dependent libraries are shared objects.
23779 deplibs_check_method=$lt_deplibs_check_method
23781 # Command to use when deplibs_check_method == file_magic.
23782 file_magic_cmd=$lt_file_magic_cmd
23784 # Flag that allows shared libraries with undefined symbols to be built.
23785 allow_undefined_flag=$lt_allow_undefined_flag_F77
23787 # Flag that forces no undefined symbols.
23788 no_undefined_flag=$lt_no_undefined_flag_F77
23790 # Commands used to finish a libtool library installation in a directory.
23791 finish_cmds=$lt_finish_cmds
23793 # Same as above, but a single script fragment to be evaled but not shown.
23794 finish_eval=$lt_finish_eval
23796 # Take the output of nm and produce a listing of raw symbols and C names.
23797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23799 # Transform the output of nm in a proper C declaration
23800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23802 # Transform the output of nm in a C name address pair
23803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23805 # This is the shared library runtime path variable.
23806 runpath_var=$runpath_var
23808 # This is the shared library path variable.
23809 shlibpath_var=$shlibpath_var
23811 # Is shlibpath searched before the hard-coded library search path?
23812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23814 # How to hardcode a shared library path into an executable.
23815 hardcode_action=$hardcode_action_F77
23817 # Whether we should hardcode library paths into libraries.
23818 hardcode_into_libs=$hardcode_into_libs
23820 # Flag to hardcode \$libdir into a binary during linking.
23821 # This must work even if \$libdir does not exist.
23822 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23824 # If ld is used when linking, flag to hardcode \$libdir into
23825 # a binary during linking. This must work even if \$libdir does
23827 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23829 # Whether we need a single -rpath flag with a separated argument.
23830 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23832 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23833 # resulting binary.
23834 hardcode_direct=$hardcode_direct_F77
23836 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23837 # resulting binary.
23838 hardcode_minus_L=$hardcode_minus_L_F77
23840 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23841 # the resulting binary.
23842 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23844 # Set to yes if building a shared library automatically hardcodes DIR into the library
23845 # and all subsequent libraries and executables linked against it.
23846 hardcode_automatic=$hardcode_automatic_F77
23848 # Variables whose values should be saved in libtool wrapper scripts and
23849 # restored at relink time.
23850 variables_saved_for_relink="$variables_saved_for_relink"
23852 # Whether libtool must link a program against all its dependency libraries.
23853 link_all_deplibs=$link_all_deplibs_F77
23855 # Compile-time system search path for libraries
23856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23858 # Run-time system search path for libraries
23859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23861 # Fix the shell variable \$srcfile for the compiler.
23862 fix_srcfile_path="$fix_srcfile_path_F77"
23864 # Set to yes if exported symbols are required.
23865 always_export_symbols=$always_export_symbols_F77
23867 # The commands to list exported symbols.
23868 export_symbols_cmds=$lt_export_symbols_cmds_F77
23870 # The commands to extract the exported symbol list from a shared archive.
23871 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23873 # Symbols that should not be listed in the preloaded symbols.
23874 exclude_expsyms=$lt_exclude_expsyms_F77
23876 # Symbols that must always be exported.
23877 include_expsyms=$lt_include_expsyms_F77
23879 # ### END LIBTOOL TAG CONFIG: $tagname
23885 # If there is no Makefile yet, we rely on a make rule to execute
23886 # `config.status --recheck' to rerun these tests and create the
23887 # libtool script then.
23888 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23889 if test -f "$ltmain_in"; then
23890 test -f Makefile
&& make "$ltmain"
23896 ac_cpp
='$CPP $CPPFLAGS'
23897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23909 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23911 ac_cpp
='$CPP $CPPFLAGS'
23912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23917 # Source file extension for Java test sources.
23920 # Object file extension for compiled Java test sources.
23924 # Code to be used in simple compile tests
23925 lt_simple_compile_test_code
="class foo {}\n"
23927 # Code to be used in simple link tests
23928 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
23930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23932 # If no C compiler was specified, use CC.
23935 # If no C compiler flags were specified, use CFLAGS.
23936 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
23938 # Allow CC to be a program name with arguments.
23942 # save warnings/boilerplate of simple test code
23943 ac_outfile
=conftest.
$ac_objext
23944 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
23945 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23946 _lt_compiler_boilerplate
=`cat conftest.err`
23949 ac_outfile
=conftest.
$ac_objext
23950 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
23951 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23952 _lt_linker_boilerplate
=`cat conftest.err`
23956 # Allow CC to be a program name with arguments.
23961 for cc_temp
in $compiler""; do
23963 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23964 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23969 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23972 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23973 archive_cmds_need_lc_GCJ
=no
23975 old_archive_cmds_GCJ
=$old_archive_cmds
23978 lt_prog_compiler_no_builtin_flag_GCJ
=
23980 if test "$GCC" = yes; then
23981 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
23984 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23985 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23989 lt_cv_prog_compiler_rtti_exceptions
=no
23990 ac_outfile
=conftest.
$ac_objext
23991 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23992 lt_compiler_flag
="-fno-rtti -fno-exceptions"
23993 # Insert the option either (1) after the last *FLAGS variable, or
23994 # (2) before a word containing "conftest.", or (3) at the end.
23995 # Note that $ac_compile itself does not contain backslashes and begins
23996 # with a dollar sign (not a hyphen), so the echo should work correctly.
23997 # The option is referenced via a variable to avoid confusing sed.
23998 lt_compile
=`echo "$ac_compile" | $SED \
23999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24001 -e 's:$: $lt_compiler_flag:'`
24002 (eval echo "\"\$as_me:24002: $lt_compile\"" >&5)
24003 (eval "$lt_compile" 2>conftest.err
)
24005 cat conftest.err
>&5
24006 echo "$as_me:24006: \$? = $ac_status" >&5
24007 if (exit $ac_status) && test -s "$ac_outfile"; then
24008 # The compiler can only warn and ignore the option if not recognized
24009 # So say no if there are warnings other than the usual output.
24010 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24011 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24012 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24013 lt_cv_prog_compiler_rtti_exceptions
=yes
24019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24022 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24023 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24030 lt_prog_compiler_wl_GCJ
=
24031 lt_prog_compiler_pic_GCJ
=
24032 lt_prog_compiler_static_GCJ
=
24034 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24037 if test "$GCC" = yes; then
24038 lt_prog_compiler_wl_GCJ
='-Wl,'
24039 lt_prog_compiler_static_GCJ
='-static'
24043 # All AIX code is PIC.
24044 if test "$host_cpu" = ia64
; then
24045 # AIX 5 now supports IA64 processor
24046 lt_prog_compiler_static_GCJ
='-Bstatic'
24051 # FIXME: we need at least 68020 code to build shared libraries, but
24052 # adding the `-m68020' flag to GCC prevents building anything better,
24054 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24057 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24058 # PIC is the default for these OSes.
24061 mingw
* | pw32
* | os2
*)
24062 # This hack is so that the source file can tell whether it is being
24063 # built for inclusion in a dll (and should export symbols for example).
24064 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24067 darwin
* | rhapsody
*)
24068 # PIC is the default on this platform
24069 # Common symbols not allowed in MH_DYLIB files
24070 lt_prog_compiler_pic_GCJ
='-fno-common'
24074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24075 # Instead, we relocate shared libraries at runtime.
24079 # Just because we use GCC doesn't mean we suddenly get shared libraries
24080 # on systems that don't support them.
24081 lt_prog_compiler_can_build_shared_GCJ
=no
24086 if test -d /usr
/nec
; then
24087 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24093 # not for PA HP-UX.
24099 lt_prog_compiler_pic_GCJ
='-fPIC'
24105 lt_prog_compiler_pic_GCJ
='-fPIC'
24109 # PORTME Check for flag to pass linker flags through the system compiler.
24112 lt_prog_compiler_wl_GCJ
='-Wl,'
24113 if test "$host_cpu" = ia64
; then
24114 # AIX 5 now supports IA64 processor
24115 lt_prog_compiler_static_GCJ
='-Bstatic'
24117 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24121 # PIC is the default on this platform
24122 # Common symbols not allowed in MH_DYLIB files
24123 case $cc_basename in
24125 lt_prog_compiler_pic_GCJ
='-qnocommon'
24126 lt_prog_compiler_wl_GCJ
='-Wl,'
24131 mingw
* | pw32
* | os2
*)
24132 # This hack is so that the source file can tell whether it is being
24133 # built for inclusion in a dll (and should export symbols for example).
24134 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24137 hpux9
* | hpux10
* | hpux11
*)
24138 lt_prog_compiler_wl_GCJ
='-Wl,'
24139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24140 # not for PA HP-UX.
24146 lt_prog_compiler_pic_GCJ
='+Z'
24149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24150 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24153 irix5
* | irix6
* | nonstopux
*)
24154 lt_prog_compiler_wl_GCJ
='-Wl,'
24155 # PIC (with -KPIC) is the default.
24156 lt_prog_compiler_static_GCJ
='-non_shared'
24160 lt_prog_compiler_pic_GCJ
='-KPIC'
24161 lt_prog_compiler_static_GCJ
='-Bstatic'
24165 case $cc_basename in
24167 lt_prog_compiler_wl_GCJ
='-Wl,'
24168 lt_prog_compiler_pic_GCJ
='-KPIC'
24169 lt_prog_compiler_static_GCJ
='-static'
24171 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24172 # Portland Group compilers (*not* the Pentium gcc compiler,
24173 # which looks to be a dead project)
24174 lt_prog_compiler_wl_GCJ
='-Wl,'
24175 lt_prog_compiler_pic_GCJ
='-fpic'
24176 lt_prog_compiler_static_GCJ
='-Bstatic'
24179 lt_prog_compiler_wl_GCJ
='-Wl,'
24180 # All Alpha code is PIC.
24181 lt_prog_compiler_static_GCJ
='-non_shared'
24186 osf3
* | osf4
* | osf5
*)
24187 lt_prog_compiler_wl_GCJ
='-Wl,'
24188 # All OSF/1 code is PIC.
24189 lt_prog_compiler_static_GCJ
='-non_shared'
24193 lt_prog_compiler_pic_GCJ
='-KPIC'
24194 lt_prog_compiler_static_GCJ
='-Bstatic'
24195 case $cc_basename in
24196 f77
* | f90
* | f95
*)
24197 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24199 lt_prog_compiler_wl_GCJ
='-Wl,';;
24204 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24205 lt_prog_compiler_pic_GCJ
='-PIC'
24206 lt_prog_compiler_static_GCJ
='-Bstatic'
24209 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24210 lt_prog_compiler_wl_GCJ
='-Wl,'
24211 lt_prog_compiler_pic_GCJ
='-KPIC'
24212 lt_prog_compiler_static_GCJ
='-Bstatic'
24216 if test -d /usr
/nec
;then
24217 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24218 lt_prog_compiler_static_GCJ
='-Bstatic'
24222 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24223 lt_prog_compiler_wl_GCJ
='-Wl,'
24224 lt_prog_compiler_pic_GCJ
='-KPIC'
24225 lt_prog_compiler_static_GCJ
='-Bstatic'
24229 lt_prog_compiler_wl_GCJ
='-Wl,'
24230 lt_prog_compiler_can_build_shared_GCJ
=no
24234 lt_prog_compiler_pic_GCJ
='-pic'
24235 lt_prog_compiler_static_GCJ
='-Bstatic'
24239 lt_prog_compiler_can_build_shared_GCJ
=no
24244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24245 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24248 # Check to make sure the PIC flag actually works.
24250 if test -n "$lt_prog_compiler_pic_GCJ"; then
24252 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24253 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24254 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24255 echo $ECHO_N "(cached) $ECHO_C" >&6
24257 lt_prog_compiler_pic_works_GCJ
=no
24258 ac_outfile
=conftest.
$ac_objext
24259 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24260 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24261 # Insert the option either (1) after the last *FLAGS variable, or
24262 # (2) before a word containing "conftest.", or (3) at the end.
24263 # Note that $ac_compile itself does not contain backslashes and begins
24264 # with a dollar sign (not a hyphen), so the echo should work correctly.
24265 # The option is referenced via a variable to avoid confusing sed.
24266 lt_compile
=`echo "$ac_compile" | $SED \
24267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24269 -e 's:$: $lt_compiler_flag:'`
24270 (eval echo "\"\$as_me:24270: $lt_compile\"" >&5)
24271 (eval "$lt_compile" 2>conftest.err
)
24273 cat conftest.err
>&5
24274 echo "$as_me:24274: \$? = $ac_status" >&5
24275 if (exit $ac_status) && test -s "$ac_outfile"; then
24276 # The compiler can only warn and ignore the option if not recognized
24277 # So say no if there are warnings other than the usual output.
24278 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24279 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24280 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24281 lt_prog_compiler_pic_works_GCJ
=yes
24287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24288 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24290 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24291 case $lt_prog_compiler_pic_GCJ in
24293 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24296 lt_prog_compiler_pic_GCJ
=
24297 lt_prog_compiler_can_build_shared_GCJ
=no
24302 # For platforms which do not support PIC, -DPIC is meaningless:
24304 lt_prog_compiler_pic_GCJ
=
24307 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24312 # Check to make sure the static flag actually works.
24314 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24315 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24316 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24317 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 lt_prog_compiler_static_works_GCJ
=no
24321 save_LDFLAGS
="$LDFLAGS"
24322 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24323 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24324 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24325 # The linker can only warn and ignore the option if not recognized
24326 # So say no if there are warnings
24327 if test -s conftest.err
; then
24328 # Append any errors to the config.log.
24329 cat conftest.err
1>&5
24330 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24331 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24332 if diff conftest.exp conftest.er2
>/dev
/null
; then
24333 lt_prog_compiler_static_works_GCJ
=yes
24336 lt_prog_compiler_static_works_GCJ
=yes
24340 LDFLAGS
="$save_LDFLAGS"
24343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24344 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24346 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24349 lt_prog_compiler_static_GCJ
=
24353 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24355 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24358 lt_cv_prog_compiler_c_o_GCJ
=no
24359 $rm -r conftest
2>/dev
/null
24363 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24365 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24366 # Insert the option either (1) after the last *FLAGS variable, or
24367 # (2) before a word containing "conftest.", or (3) at the end.
24368 # Note that $ac_compile itself does not contain backslashes and begins
24369 # with a dollar sign (not a hyphen), so the echo should work correctly.
24370 lt_compile
=`echo "$ac_compile" | $SED \
24371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24373 -e 's:$: $lt_compiler_flag:'`
24374 (eval echo "\"\$as_me:24374: $lt_compile\"" >&5)
24375 (eval "$lt_compile" 2>out
/conftest.err
)
24377 cat out
/conftest.err
>&5
24378 echo "$as_me:24378: \$? = $ac_status" >&5
24379 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24381 # The compiler can only warn and ignore the option if not recognized
24382 # So say no if there are warnings
24383 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24384 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24385 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24386 lt_cv_prog_compiler_c_o_GCJ
=yes
24391 # SGI C++ compiler will create directory out/ii_files/ for
24392 # template instantiation
24393 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24394 $rm out
/* && rmdir out
24400 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24401 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24404 hard_links
="nottested"
24405 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24406 # do not overwrite the value of need_locks provided by the user
24407 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24408 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24411 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24413 ln conftest.a conftest.b
2>&5 || hard_links
=no
24414 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24415 { echo "$as_me:$LINENO: result: $hard_links" >&5
24416 echo "${ECHO_T}$hard_links" >&6; }
24417 if test "$hard_links" = no
; then
24418 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24419 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24426 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24427 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24430 allow_undefined_flag_GCJ
=
24431 enable_shared_with_static_runtimes_GCJ
=no
24433 archive_expsym_cmds_GCJ
=
24434 old_archive_From_new_cmds_GCJ
=
24435 old_archive_from_expsyms_cmds_GCJ
=
24436 export_dynamic_flag_spec_GCJ
=
24437 whole_archive_flag_spec_GCJ
=
24438 thread_safe_flag_spec_GCJ
=
24439 hardcode_libdir_flag_spec_GCJ
=
24440 hardcode_libdir_flag_spec_ld_GCJ
=
24441 hardcode_libdir_separator_GCJ
=
24442 hardcode_direct_GCJ
=no
24443 hardcode_minus_L_GCJ
=no
24444 hardcode_shlibpath_var_GCJ
=unsupported
24445 link_all_deplibs_GCJ
=unknown
24446 hardcode_automatic_GCJ
=no
24448 module_expsym_cmds_GCJ
=
24449 always_export_symbols_GCJ
=no
24450 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24451 # include_expsyms should be a list of space-separated symbols to be *always*
24452 # included in the symbol list
24453 include_expsyms_GCJ
=
24454 # exclude_expsyms can be an extended regexp of symbols to exclude
24455 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24456 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24457 # as well as any symbol that contains `d'.
24458 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24460 # platforms (ab)use it in PIC code, but their linkers get confused if
24461 # the symbol is explicitly referenced. Since portable code cannot
24462 # rely on this symbol name, it's probably fine to never include it in
24463 # preloaded symbol tables.
24464 extract_expsyms_cmds
=
24465 # Just being paranoid about ensuring that cc_basename is set.
24466 for cc_temp
in $compiler""; do
24468 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24469 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24474 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24477 cygwin
* | mingw
* | pw32
*)
24478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24479 # When not using gcc, we currently assume that we are using
24480 # Microsoft Visual C++.
24481 if test "$GCC" != yes; then
24486 # we just hope/assume this is gcc and not c89 (= MSVC++)
24495 if test "$with_gnu_ld" = yes; then
24496 # If archive_cmds runs LD, not CC, wlarc should be empty
24499 # Set some defaults for GNU ld with shared library support. These
24500 # are reset later if shared libraries are not supported. Putting them
24501 # here allows them to be overridden if necessary.
24502 runpath_var
=LD_RUN_PATH
24503 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24504 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24505 # ancient GNU ld didn't support --whole-archive et. al.
24506 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24507 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24509 whole_archive_flag_spec_GCJ
=
24511 supports_anon_versioning
=no
24512 case `$LD -v 2>/dev/null` in
24513 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24514 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24515 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24516 *\
2.11.
*) ;; # other 2.11 versions
24517 *) supports_anon_versioning
=yes ;;
24520 # See if GNU ld supports shared libraries.
24522 aix3
* | aix4
* | aix5
*)
24523 # On AIX/PPC, the GNU linker is very broken
24524 if test "$host_cpu" != ia64
; then
24528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24529 *** to be unable to reliably create shared libraries on AIX.
24530 *** Therefore, libtool is disabling shared libraries support. If you
24531 *** really care for shared libraries, you may want to modify your PATH
24532 *** so that a non-GNU linker is found, and then restart.
24539 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)'
24540 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24541 hardcode_minus_L_GCJ
=yes
24543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24544 # that the semantics of dynamic libraries on AmigaOS, at least up
24545 # to version 4, is to share data among multiple programs linked
24546 # with the same dynamic library. Since this doesn't match the
24547 # behavior of shared libraries on other platforms, we can't use
24553 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24554 allow_undefined_flag_GCJ
=unsupported
24555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24556 # support --undefined. This deserves some investigation. FIXME
24557 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24563 cygwin
* | mingw
* | pw32
*)
24564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24565 # as there is no search path for DLLs.
24566 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24567 allow_undefined_flag_GCJ
=unsupported
24568 always_export_symbols_GCJ
=no
24569 enable_shared_with_static_runtimes_GCJ
=yes
24570 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24572 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24573 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24574 # If the export-symbols file already is a .def file (1st line
24575 # is EXPORTS), use it as is; otherwise, prepend...
24576 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24577 cp $export_symbols $output_objdir/$soname.def;
24579 echo EXPORTS > $output_objdir/$soname.def;
24580 cat $export_symbols >> $output_objdir/$soname.def;
24582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24589 hardcode_direct_GCJ
=no
24590 hardcode_shlibpath_var_GCJ
=no
24591 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24592 export_dynamic_flag_spec_GCJ
='${wl}-E'
24593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24594 # Instead, shared libraries are loaded at an image base (0x10000000 by
24595 # default) and relocated if they conflict, which is a slow very memory
24596 # consuming and fragmenting process. To avoid this, we pick a random,
24597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24598 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24599 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'
24600 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'
24604 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24606 case $cc_basename,$host_cpu in
24607 pgcc
*) # Portland Group C compiler
24608 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'
24609 tmp_addflag
=' $pic_flag'
24611 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24612 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'
24613 tmp_addflag
=' $pic_flag -Mnomain' ;;
24614 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24615 tmp_addflag
=' -i_dynamic' ;;
24616 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24617 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24618 ifc
* | ifort
*) # Intel Fortran compiler
24619 tmp_addflag
=' -nofor_main' ;;
24621 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24623 if test $supports_anon_versioning = yes; then
24624 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24626 $echo "local: *; };" >> $output_objdir/$libname.ver~
24627 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24635 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24636 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24639 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24640 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24645 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24650 *** create shared libraries on Solaris systems. Therefore, libtool
24651 *** is disabling shared libraries support. We urge you to upgrade GNU
24652 *** binutils to release 2.9.1 or newer. Another option is to modify
24653 *** your PATH or compiler configuration so that the native linker is
24654 *** used, and then restart.
24657 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24658 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24659 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24665 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24666 case `$LD -v 2>&1` in
24667 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24672 *** reliably create shared libraries on SCO systems. Therefore, libtool
24673 *** is disabling shared libraries support. We urge you to upgrade GNU
24674 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24675 *** your PATH or compiler configuration so that the native linker is
24676 *** used, and then restart.
24681 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24682 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24683 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24684 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24693 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24695 hardcode_direct_GCJ
=yes
24696 hardcode_shlibpath_var_GCJ
=no
24700 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24701 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24709 if test "$ld_shlibs_GCJ" = no
; then
24711 hardcode_libdir_flag_spec_GCJ
=
24712 export_dynamic_flag_spec_GCJ
=
24713 whole_archive_flag_spec_GCJ
=
24716 # PORTME fill in a description of your system's linker (not GNU ld)
24719 allow_undefined_flag_GCJ
=unsupported
24720 always_export_symbols_GCJ
=yes
24721 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'
24722 # Note: this linker hardcodes the directories in LIBPATH if there
24723 # are no directories specified by -L.
24724 hardcode_minus_L_GCJ
=yes
24725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24726 # Neither direct hardcoding nor static linking is supported with a
24728 hardcode_direct_GCJ
=unsupported
24733 if test "$host_cpu" = ia64
; then
24734 # On IA64, the linker does run time linking by default, so we don't
24735 # have to do anything special.
24736 aix_use_runtimelinking
=no
24737 exp_sym_flag
='-Bexport'
24740 # If we're using GNU nm, then we don't want the "-C" option.
24741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24742 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24743 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'
24745 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'
24747 aix_use_runtimelinking
=no
24749 # Test if we are trying to use run time linking or normal
24750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24751 # need to do runtime linking.
24752 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24753 for ld_flag
in $LDFLAGS; do
24754 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24755 aix_use_runtimelinking
=yes
24762 exp_sym_flag
='-bexport'
24763 no_entry_flag
='-bnoentry'
24766 # When large executables or shared objects are built, AIX ld can
24767 # have problems creating the table of contents. If linking a library
24768 # or program results in "error TOC overflow" add -mminimal-toc to
24769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24772 archive_cmds_GCJ
=''
24773 hardcode_direct_GCJ
=yes
24774 hardcode_libdir_separator_GCJ
=':'
24775 link_all_deplibs_GCJ
=yes
24777 if test "$GCC" = yes; then
24778 case $host_os in aix4.
[012]|aix4.
[012].
*)
24779 # We only want to do this on AIX 4.2 and lower, the check
24780 # below for broken collect2 doesn't work under 4.3+
24781 collect2name
=`${CC} -print-prog-name=collect2`
24782 if test -f "$collect2name" && \
24783 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24785 # We have reworked collect2
24786 hardcode_direct_GCJ
=yes
24788 # We have old collect2
24789 hardcode_direct_GCJ
=unsupported
24790 # It fails to find uninstalled libraries when the uninstalled
24791 # path is not listed in the libpath. Setting hardcode_minus_L
24792 # to unsupported forces relinking
24793 hardcode_minus_L_GCJ
=yes
24794 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24795 hardcode_libdir_separator_GCJ
=
24799 shared_flag
='-shared'
24800 if test "$aix_use_runtimelinking" = yes; then
24801 shared_flag
="$shared_flag "'${wl}-G'
24805 if test "$host_cpu" = ia64
; then
24806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24807 # chokes on -Wl,-G. The following line is correct:
24810 if test "$aix_use_runtimelinking" = yes; then
24811 shared_flag
='${wl}-G'
24813 shared_flag
='${wl}-bM:SRE'
24818 # It seems that -bexpall does not export symbols beginning with
24819 # underscore (_), so it is better to generate a list of symbols to export.
24820 always_export_symbols_GCJ
=yes
24821 if test "$aix_use_runtimelinking" = yes; then
24822 # Warning - without using the other runtime loading flags (-brtl),
24823 # -berok will link without error, but may produce a broken library.
24824 allow_undefined_flag_GCJ
='-berok'
24825 # Determine the default libpath from the value encoded in an empty executable.
24826 cat >conftest.
$ac_ext <<_ACEOF
24829 cat confdefs.h
>>conftest.
$ac_ext
24830 cat >>conftest.
$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24841 rm -f conftest.
$ac_objext conftest
$ac_exeext
24842 if { (ac_try
="$ac_link"
24843 case "(($ac_try" in
24844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_link") 2>conftest.er1
24850 grep -v '^ *+' conftest.er1 >conftest.err
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856 { (case "(($ac_try" in
24857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24858 *) ac_try_echo
=$ac_try;;
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_try") 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; } &&
24865 { ac_try
='test -s conftest$ac_exeext'
24866 { (case "(($ac_try" in
24867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_try") 2>&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24876 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24878 # Check for a 64-bit object if we didn't find anything.
24879 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; }
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24888 rm -f core conftest.err conftest.$ac_objext \
24889 conftest$ac_exeext conftest.$ac_ext
24890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24892 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24893 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"
24895 if test "$host_cpu" = ia64; then
24896 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24897 allow_undefined_flag_GCJ="-z nodefs"
24898 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"
24900 # Determine the default libpath from the value encoded in an empty executable.
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (ac_try="$ac_link"
24918 case "(($ac_try" in
24919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24920 *) ac_try_echo
=$ac_try;;
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_link") 2>conftest.er1
24925 grep -v '^ *+' conftest.er1
>conftest.err
24927 cat conftest.err
>&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (case "(($ac_try" in
24932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_try") 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24943 *) ac_try_echo
=$ac_try;;
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_try") 2>&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
24951 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24953 # Check for a 64-bit object if we didn't find anything.
24954 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; }
24957 echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.
$ac_ext >&5
24963 rm -f core conftest.err conftest.
$ac_objext \
24964 conftest
$ac_exeext conftest.
$ac_ext
24965 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
24967 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
24968 # Warning - without using the other run time loading flags,
24969 # -berok will link without error, but may produce a broken library.
24970 no_undefined_flag_GCJ
=' ${wl}-bernotok'
24971 allow_undefined_flag_GCJ
=' ${wl}-berok'
24972 # Exported symbols can be pulled into shared objects from archives
24973 whole_archive_flag_spec_GCJ
='$convenience'
24974 archive_cmds_need_lc_GCJ
=yes
24975 # This is similar to how AIX traditionally builds its shared libraries.
24976 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'
24982 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)'
24983 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24984 hardcode_minus_L_GCJ
=yes
24985 # see comment about different semantics on the GNU ld section
24990 export_dynamic_flag_spec_GCJ
=-rdynamic
24993 cygwin
* | mingw
* | pw32
*)
24994 # When not using gcc, we currently assume that we are using
24995 # Microsoft Visual C++.
24996 # hardcode_libdir_flag_spec is actually meaningless, as there is
24997 # no search path for DLLs.
24998 hardcode_libdir_flag_spec_GCJ
=' '
24999 allow_undefined_flag_GCJ
=unsupported
25000 # Tell ltmain to make .lib files, not .a files.
25002 # Tell ltmain to make .dll files, not .so files.
25004 # FIXME: Setting linknames here is a bad hack.
25005 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25006 # The linker will automatically build a .lib file if we build a DLL.
25007 old_archive_From_new_cmds_GCJ
='true'
25008 # FIXME: Should let the user specify the lib program.
25009 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25010 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25011 enable_shared_with_static_runtimes_GCJ
=yes
25014 darwin
* | rhapsody
*)
25016 rhapsody
* | darwin1.
[012])
25017 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25021 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25023 case ${MACOSX_DEPLOYMENT_TARGET} in
25025 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25028 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25034 archive_cmds_need_lc_GCJ
=no
25035 hardcode_direct_GCJ
=no
25036 hardcode_automatic_GCJ
=yes
25037 hardcode_shlibpath_var_GCJ
=unsupported
25038 whole_archive_flag_spec_GCJ
=''
25039 link_all_deplibs_GCJ
=yes
25040 if test "$GCC" = yes ; then
25041 output_verbose_link_cmd
='echo'
25042 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25043 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25045 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}'
25046 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}'
25048 case $cc_basename in
25050 output_verbose_link_cmd
='echo'
25051 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25052 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25054 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}'
25055 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}'
25065 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25066 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25067 hardcode_shlibpath_var_GCJ
=no
25074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25075 # support. Future versions do this automatically, but an explicit c++rt0.o
25076 # does not break anything, and helps significantly (at the cost of a little
25079 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25080 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25081 hardcode_direct_GCJ
=yes
25082 hardcode_shlibpath_var_GCJ
=no
25085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25087 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25088 hardcode_direct_GCJ
=yes
25089 hardcode_minus_L_GCJ
=yes
25090 hardcode_shlibpath_var_GCJ
=no
25093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25094 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25095 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25096 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25097 hardcode_direct_GCJ
=yes
25098 hardcode_shlibpath_var_GCJ
=no
25102 if test "$GCC" = yes; then
25103 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'
25105 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'
25107 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25108 hardcode_libdir_separator_GCJ
=:
25109 hardcode_direct_GCJ
=yes
25111 # hardcode_minus_L: Not really in the search PATH,
25112 # but as the default location of the library.
25113 hardcode_minus_L_GCJ
=yes
25114 export_dynamic_flag_spec_GCJ
='${wl}-E'
25118 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25119 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25121 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25123 if test "$with_gnu_ld" = no
; then
25124 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25125 hardcode_libdir_separator_GCJ
=:
25127 hardcode_direct_GCJ
=yes
25128 export_dynamic_flag_spec_GCJ
='${wl}-E'
25130 # hardcode_minus_L: Not really in the search PATH,
25131 # but as the default location of the library.
25132 hardcode_minus_L_GCJ
=yes
25137 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25140 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25143 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25146 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25152 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25155 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25158 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25162 if test "$with_gnu_ld" = no
; then
25163 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25164 hardcode_libdir_separator_GCJ
=:
25168 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25169 hardcode_direct_GCJ
=no
25170 hardcode_shlibpath_var_GCJ
=no
25173 hardcode_direct_GCJ
=yes
25174 export_dynamic_flag_spec_GCJ
='${wl}-E'
25176 # hardcode_minus_L: Not really in the search PATH,
25177 # but as the default location of the library.
25178 hardcode_minus_L_GCJ
=yes
25184 irix5
* | irix6
* | nonstopux
*)
25185 if test "$GCC" = yes; then
25186 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'
25188 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'
25189 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25191 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25192 hardcode_libdir_separator_GCJ
=:
25193 link_all_deplibs_GCJ
=yes
25197 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25198 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25200 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25202 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25203 hardcode_direct_GCJ
=yes
25204 hardcode_shlibpath_var_GCJ
=no
25208 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25209 hardcode_direct_GCJ
=yes
25210 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25211 hardcode_libdir_separator_GCJ
=:
25212 hardcode_shlibpath_var_GCJ
=no
25216 hardcode_direct_GCJ
=yes
25217 hardcode_shlibpath_var_GCJ
=no
25218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25219 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25220 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25221 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25222 export_dynamic_flag_spec_GCJ
='${wl}-E'
25225 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25226 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25227 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25230 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25231 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25238 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25239 hardcode_minus_L_GCJ
=yes
25240 allow_undefined_flag_GCJ
=unsupported
25241 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'
25242 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25246 if test "$GCC" = yes; then
25247 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25248 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'
25250 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25251 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'
25253 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25254 hardcode_libdir_separator_GCJ
=:
25257 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25258 if test "$GCC" = yes; then
25259 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25260 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'
25261 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25263 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25264 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'
25265 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~
25266 $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'
25268 # Both c and cxx compiler support -rpath directly
25269 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25271 hardcode_libdir_separator_GCJ
=:
25275 no_undefined_flag_GCJ
=' -z text'
25276 if test "$GCC" = yes; then
25278 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25279 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25283 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25284 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25287 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25288 hardcode_shlibpath_var_GCJ
=no
25290 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25292 # The compiler driver will combine linker options so we
25293 # cannot just pass the convience library names through
25294 # without $wl, iff we do not link with $LD.
25295 # Luckily, gcc supports the same syntax we need for Sun Studio.
25296 # Supported since Solaris 2.6 (maybe 2.5.1?)
25299 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25301 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' ;;
25304 link_all_deplibs_GCJ
=yes
25308 if test "x$host_vendor" = xsequent
; then
25309 # Use $CC to link under sequent, because it throws in some extra .o
25310 # files that make .init and .fini sections work.
25311 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25313 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25315 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25316 hardcode_direct_GCJ
=yes
25317 hardcode_minus_L_GCJ
=yes
25318 hardcode_shlibpath_var_GCJ
=no
25322 case $host_vendor in
25324 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25325 hardcode_direct_GCJ
=yes # is this really true???
25328 ## LD is ld it makes a PLAMLIB
25329 ## CC just makes a GrossModule.
25330 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25331 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25332 hardcode_direct_GCJ
=no
25335 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25336 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25339 runpath_var
='LD_RUN_PATH'
25340 hardcode_shlibpath_var_GCJ
=no
25344 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25345 hardcode_shlibpath_var_GCJ
=no
25346 export_dynamic_flag_spec_GCJ
='-Bexport'
25350 if test -d /usr
/nec
; then
25351 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25352 hardcode_shlibpath_var_GCJ
=no
25353 runpath_var
=LD_RUN_PATH
25354 hardcode_runpath_var
=yes
25359 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25360 no_undefined_flag_GCJ
='${wl}-z,text'
25361 archive_cmds_need_lc_GCJ
=no
25362 hardcode_shlibpath_var_GCJ
=no
25363 runpath_var
='LD_RUN_PATH'
25365 if test "$GCC" = yes; then
25366 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25367 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25369 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25370 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25374 sysv5
* | sco3.2v5
* | sco5v6
*)
25375 # Note: We can NOT use -z defs as we might desire, because we do not
25376 # link with -lc, and that would cause any symbols used from libc to
25377 # always be unresolved, which means just about no library would
25378 # ever link correctly. If we're not using GNU ld we use -z text
25379 # though, which does catch some bad symbols but isn't as heavy-handed
25381 no_undefined_flag_GCJ
='${wl}-z,text'
25382 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25383 archive_cmds_need_lc_GCJ
=no
25384 hardcode_shlibpath_var_GCJ
=no
25385 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25386 hardcode_libdir_separator_GCJ
=':'
25387 link_all_deplibs_GCJ
=yes
25388 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25389 runpath_var
='LD_RUN_PATH'
25391 if test "$GCC" = yes; then
25392 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25393 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25395 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25396 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25401 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25402 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25403 hardcode_shlibpath_var_GCJ
=no
25412 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25413 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25414 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25417 # Do we need to explicitly link libc?
25419 case "x$archive_cmds_need_lc_GCJ" in
25421 # Assume -lc should be added
25422 archive_cmds_need_lc_GCJ
=yes
25424 if test "$enable_shared" = yes && test "$GCC" = yes; then
25425 case $archive_cmds_GCJ in
25427 # FIXME: we may have to deal with multi-command sequences.
25430 # Test whether the compiler implicitly links with -lc since on some
25431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25432 # to ld, don't add -lc before -lgcc.
25433 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25436 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439 (eval $ac_compile) 2>&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } 2>conftest.err
; then
25445 libobjs
=conftest.
$ac_objext
25447 wl
=$lt_prog_compiler_wl_GCJ
25448 pic_flag
=$lt_prog_compiler_pic_GCJ
25454 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25455 allow_undefined_flag_GCJ
=
25456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25457 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }
25462 archive_cmds_need_lc_GCJ
=no
25464 archive_cmds_need_lc_GCJ
=yes
25466 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25468 cat conftest.err
1>&5
25471 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25472 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25479 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25480 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25481 library_names_spec
=
25482 libname_spec
='lib$name'
25486 postuninstall_cmds
=
25490 shlibpath_overrides_runpath
=unknown
25492 dynamic_linker
="$host_os ld.so"
25493 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25494 if test "$GCC" = yes; then
25495 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25496 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25497 # if the path contains ";" then we assume it to be the separator
25498 # otherwise default to the standard path separator (i.e. ":") - it is
25499 # assumed that no part of a normal pathname contains ";" but that should
25500 # okay in the real world where ";" in dirpaths is itself problematic.
25501 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25503 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25506 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25508 need_lib_prefix
=unknown
25509 hardcode_into_libs
=no
25511 # when you set need_version to no, make sure it does not cause -set_version
25512 # flags to be left without arguments
25513 need_version
=unknown
25518 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25519 shlibpath_var
=LIBPATH
25521 # AIX 3 has no versioning support, so we append a major version to the name.
25522 soname_spec
='${libname}${release}${shared_ext}$major'
25529 hardcode_into_libs
=yes
25530 if test "$host_cpu" = ia64
; then
25531 # AIX 5 supports IA64
25532 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25533 shlibpath_var
=LD_LIBRARY_PATH
25535 # With GCC up to 2.95.x, collect2 would create an import file
25536 # for dependence libraries. The import file would start with
25537 # the line `#! .'. This would cause the generated library to
25538 # depend on `.', always an invalid library. This was fixed in
25539 # development snapshots of GCC prior to 3.0.
25541 aix4 | aix4.
[01] | aix4.
[01].
*)
25542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25544 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25547 can_build_shared
=no
25551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25552 # soname into executable. Probably we can add versioning support to
25553 # collect2, so additional links can be useful in future.
25554 if test "$aix_use_runtimelinking" = yes; then
25555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25556 # instead of lib<name>.a to let people know that these are not
25557 # typical AIX shared libraries.
25558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25560 # We preserve .a as extension for shared libraries through AIX4.2
25561 # and later when we are not doing run time linking.
25562 library_names_spec
='${libname}${release}.a $libname.a'
25563 soname_spec
='${libname}${release}${shared_ext}$major'
25565 shlibpath_var
=LIBPATH
25570 library_names_spec
='$libname.ixlibrary $libname.a'
25571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25572 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'
25576 library_names_spec
='${libname}${shared_ext}'
25577 dynamic_linker
="$host_os ld.so"
25578 shlibpath_var
=LIBRARY_PATH
25584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25585 soname_spec
='${libname}${release}${shared_ext}$major'
25586 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25587 shlibpath_var
=LD_LIBRARY_PATH
25588 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25589 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25590 # the default ld.so.conf also contains /usr/contrib/lib and
25591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25592 # libtool to hard-code these into programs
25595 cygwin
* | mingw
* | pw32
*)
25596 version_type
=windows
25601 case $GCC,$host_os in
25602 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25603 library_names_spec
='$libname.dll.a'
25604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25605 postinstall_cmds
='base_file=`basename \${file}`~
25606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25607 dldir=$destdir/`dirname \$dlpath`~
25608 test -d \$dldir || mkdir -p \$dldir~
25609 $install_prog $dir/$dlname \$dldir/$dlname~
25610 chmod a+x \$dldir/$dlname'
25611 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25612 dlpath=$dir/\$dldll~
25614 shlibpath_overrides_runpath
=yes
25618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25619 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25620 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25623 # MinGW DLLs use traditional 'lib' prefix
25624 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25625 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25626 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25627 # It is most probably a Windows format PATH printed by
25628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25629 # path with ; separators, and with drive letters. We can handle the
25630 # drive letters (cygwin fileutils understands them), so leave them,
25631 # especially as we might pass files found there to a mingw objdump,
25632 # which wouldn't understand a cygwinified path. Ahh.
25633 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25635 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25639 # pw32 DLLs use 'pw' prefix rather than 'lib'
25640 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25646 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25649 dynamic_linker
='Win32 ld.exe'
25650 # FIXME: first we should search . and the directory the executable is in
25654 darwin
* | rhapsody
*)
25655 dynamic_linker
="$host_os dyld"
25656 version_type
=darwin
25659 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25660 soname_spec
='${libname}${release}${major}$shared_ext'
25661 shlibpath_overrides_runpath
=yes
25662 shlibpath_var
=DYLD_LIBRARY_PATH
25663 shrext_cmds
='.dylib'
25664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25665 if test "$GCC" = yes; then
25666 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"`
25668 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25670 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25678 soname_spec
='${libname}${release}${shared_ext}$major'
25679 shlibpath_var
=LD_LIBRARY_PATH
25690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25691 soname_spec
='${libname}${release}${shared_ext}$major'
25692 shlibpath_var
=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath
=no
25694 hardcode_into_libs
=yes
25695 dynamic_linker
='GNU ld.so'
25698 freebsd
* | dragonfly
*)
25699 # DragonFly does not have aout. When/if they implement a new
25700 # versioning mechanism, adjust this.
25701 if test -x /usr
/bin
/objformat
; then
25702 objformat
=`/usr/bin/objformat`
25705 freebsd
[123]*) objformat
=aout
;;
25706 *) objformat
=elf
;;
25709 version_type
=freebsd-
$objformat
25710 case $version_type in
25712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25717 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25721 shlibpath_var
=LD_LIBRARY_PATH
25724 shlibpath_overrides_runpath
=yes
25726 freebsd3.
[01]* | freebsdelf3.
[01]*)
25727 shlibpath_overrides_runpath
=yes
25728 hardcode_into_libs
=yes
25730 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25731 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25732 shlibpath_overrides_runpath
=no
25733 hardcode_into_libs
=yes
25735 freebsd
*) # from 4.6 on
25736 shlibpath_overrides_runpath
=yes
25737 hardcode_into_libs
=yes
25746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25747 soname_spec
='${libname}${release}${shared_ext}$major'
25748 shlibpath_var
=LD_LIBRARY_PATH
25749 hardcode_into_libs
=yes
25752 hpux9
* | hpux10
* | hpux11
*)
25753 # Give a soname corresponding to the major version so that dld.sl refuses to
25754 # link against other versions.
25761 hardcode_into_libs
=yes
25762 dynamic_linker
="$host_os dld.so"
25763 shlibpath_var
=LD_LIBRARY_PATH
25764 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25766 soname_spec
='${libname}${release}${shared_ext}$major'
25767 if test "X$HPUX_IA64_MODE" = X32
; then
25768 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25770 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25772 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25776 hardcode_into_libs
=yes
25777 dynamic_linker
="$host_os dld.sl"
25778 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25779 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781 soname_spec
='${libname}${release}${shared_ext}$major'
25782 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25783 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25787 dynamic_linker
="$host_os dld.sl"
25788 shlibpath_var
=SHLIB_PATH
25789 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25791 soname_spec
='${libname}${release}${shared_ext}$major'
25794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25795 postinstall_cmds
='chmod 555 $lib'
25802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25803 soname_spec
='${libname}${release}${shared_ext}$major'
25804 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25805 shlibpath_var
=LD_LIBRARY_PATH
25806 shlibpath_overrides_runpath
=no
25807 hardcode_into_libs
=yes
25810 irix5
* | irix6
* | nonstopux
*)
25812 nonstopux
*) version_type
=nonstopux
;;
25814 if test "$lt_cv_prog_gnu_ld" = yes; then
25822 soname_spec
='${libname}${release}${shared_ext}$major'
25823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25825 irix5
* | nonstopux
*)
25826 libsuff
= shlibsuff
=
25829 case $LD in # libtool.m4 will add one of these switches to LD
25830 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25831 libsuff
= shlibsuff
= libmagic
=32-bit;;
25832 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25833 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25834 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25835 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25836 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25840 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25841 shlibpath_overrides_runpath
=no
25842 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25843 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25844 hardcode_into_libs
=yes
25847 # No shared lib support for Linux oldld, aout, or coff.
25848 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25852 # This must be Linux ELF.
25857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec
='${libname}${release}${shared_ext}$major'
25859 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25860 shlibpath_var
=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath
=no
25862 # This implies no fast_install, which is unacceptable.
25863 # Some rework will be needed to allow for fast_install
25864 # before this can be enabled.
25865 hardcode_into_libs
=yes
25867 # Append ld.so.conf contents to the search path
25868 if test -f /etc
/ld.so.conf
; then
25869 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' ' '`
25870 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25873 # We used to test for /lib/ld.so.1 and disable shared libraries on
25874 # powerpc, because MkLinux only supported shared libraries with the
25875 # GNU dynamic linker. Since this was broken with cross compilers,
25876 # most powerpc-linux boxes support dynamic linking these days and
25877 # people can always --disable-shared, the test was removed, and we
25878 # assume the GNU/Linux dynamic linker is in use.
25879 dynamic_linker
='GNU/Linux ld.so'
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 shlibpath_var
=LD_LIBRARY_PATH
25889 shlibpath_overrides_runpath
=no
25890 hardcode_into_libs
=yes
25891 dynamic_linker
='GNU ld.so'
25898 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25900 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25901 dynamic_linker
='NetBSD (a.out) ld.so'
25903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25904 soname_spec
='${libname}${release}${shared_ext}$major'
25905 dynamic_linker
='NetBSD ld.elf_so'
25907 shlibpath_var
=LD_LIBRARY_PATH
25908 shlibpath_overrides_runpath
=yes
25909 hardcode_into_libs
=yes
25914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25915 shlibpath_var
=LD_LIBRARY_PATH
25916 shlibpath_overrides_runpath
=yes
25923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25924 soname_spec
='${libname}${release}${shared_ext}$major'
25925 shlibpath_var
=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath
=yes
25931 sys_lib_dlsearch_path_spec
="/usr/lib"
25933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25935 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
25936 *) need_version
=no
;;
25938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25939 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25940 shlibpath_var
=LD_LIBRARY_PATH
25941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25943 openbsd2.
[89] | openbsd2.
[89].
*)
25944 shlibpath_overrides_runpath
=no
25947 shlibpath_overrides_runpath
=yes
25951 shlibpath_overrides_runpath
=yes
25956 libname_spec
='$name'
25959 library_names_spec
='$libname${shared_ext} $libname.a'
25960 dynamic_linker
='OS/2 ld.exe'
25961 shlibpath_var
=LIBPATH
25964 osf3
* | osf4
* | osf5
*)
25968 soname_spec
='${libname}${release}${shared_ext}$major'
25969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970 shlibpath_var
=LD_LIBRARY_PATH
25971 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25972 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
25979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25980 soname_spec
='${libname}${release}${shared_ext}$major'
25981 shlibpath_var
=LD_LIBRARY_PATH
25982 shlibpath_overrides_runpath
=yes
25983 hardcode_into_libs
=yes
25984 # ldd complains unless libraries are executable
25985 postinstall_cmds
='chmod +x $lib'
25990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25991 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25992 shlibpath_var
=LD_LIBRARY_PATH
25993 shlibpath_overrides_runpath
=yes
25994 if test "$with_gnu_ld" = yes; then
26002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26003 soname_spec
='${libname}${release}${shared_ext}$major'
26004 shlibpath_var
=LD_LIBRARY_PATH
26005 case $host_vendor in
26007 shlibpath_overrides_runpath
=no
26009 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26010 runpath_var
=LD_RUN_PATH
26018 shlibpath_overrides_runpath
=no
26019 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26025 if test -d /usr
/nec
;then
26027 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26028 soname_spec
='$libname${shared_ext}.$major'
26029 shlibpath_var
=LD_LIBRARY_PATH
26033 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26034 version_type
=freebsd-elf
26037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26038 soname_spec
='${libname}${release}${shared_ext}$major'
26039 shlibpath_var
=LD_LIBRARY_PATH
26040 hardcode_into_libs
=yes
26041 if test "$with_gnu_ld" = yes; then
26042 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26043 shlibpath_overrides_runpath
=no
26045 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26046 shlibpath_overrides_runpath
=yes
26049 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26053 sys_lib_dlsearch_path_spec
='/usr/lib'
26058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059 soname_spec
='${libname}${release}${shared_ext}$major'
26060 shlibpath_var
=LD_LIBRARY_PATH
26067 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26068 echo "${ECHO_T}$dynamic_linker" >&6; }
26069 test "$dynamic_linker" = no
&& can_build_shared
=no
26071 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26072 if test "$GCC" = yes; then
26073 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26076 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26078 hardcode_action_GCJ
=
26079 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26080 test -n "$runpath_var_GCJ" || \
26081 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26083 # We can hardcode non-existant directories.
26084 if test "$hardcode_direct_GCJ" != no
&&
26085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26086 # have to relink, otherwise we might link with an installed library
26087 # when we should be linking with a yet-to-be-installed one
26088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26089 test "$hardcode_minus_L_GCJ" != no
; then
26090 # Linking always hardcodes the temporary library directory.
26091 hardcode_action_GCJ
=relink
26093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26094 hardcode_action_GCJ
=immediate
26097 # We cannot hardcode anything, or else we can only hardcode existing
26099 hardcode_action_GCJ
=unsupported
26101 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26102 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26104 if test "$hardcode_action_GCJ" = relink
; then
26105 # Fast installation is not supported
26106 enable_fast_install
=no
26107 elif test "$shlibpath_overrides_runpath" = yes ||
26108 test "$enable_shared" = no
; then
26109 # Fast installation is not necessary
26110 enable_fast_install
=needless
26114 # The else clause should only fire when bootstrapping the
26115 # libtool distribution, otherwise you forgot to ship ltmain.sh
26116 # with your package, and you will get complaints that there are
26117 # no rules to generate ltmain.sh.
26118 if test -f "$ltmain"; then
26119 # See if we are running on zsh, and set the options which allow our commands through
26120 # without removal of \ escapes.
26121 if test -n "${ZSH_VERSION+set}" ; then
26122 setopt NO_GLOB_SUBST
26124 # Now quote all the things that may contain metacharacters while being
26125 # careful not to overquote the AC_SUBSTed values. We take copies of the
26126 # variables and quote the copies for generation of the libtool script.
26127 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26131 deplibs_check_method reload_flag reload_cmds need_locks \
26132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26133 lt_cv_sys_global_symbol_to_c_name_address \
26134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26135 old_postinstall_cmds old_postuninstall_cmds \
26139 lt_prog_compiler_wl_GCJ \
26140 lt_prog_compiler_pic_GCJ \
26141 lt_prog_compiler_static_GCJ \
26142 lt_prog_compiler_no_builtin_flag_GCJ \
26143 export_dynamic_flag_spec_GCJ \
26144 thread_safe_flag_spec_GCJ \
26145 whole_archive_flag_spec_GCJ \
26146 enable_shared_with_static_runtimes_GCJ \
26147 old_archive_cmds_GCJ \
26148 old_archive_from_new_cmds_GCJ \
26149 predep_objects_GCJ \
26150 postdep_objects_GCJ \
26153 compiler_lib_search_path_GCJ \
26155 archive_expsym_cmds_GCJ \
26156 postinstall_cmds_GCJ \
26157 postuninstall_cmds_GCJ \
26158 old_archive_from_expsyms_cmds_GCJ \
26159 allow_undefined_flag_GCJ \
26160 no_undefined_flag_GCJ \
26161 export_symbols_cmds_GCJ \
26162 hardcode_libdir_flag_spec_GCJ \
26163 hardcode_libdir_flag_spec_ld_GCJ \
26164 hardcode_libdir_separator_GCJ \
26165 hardcode_automatic_GCJ \
26167 module_expsym_cmds_GCJ \
26168 lt_cv_prog_compiler_c_o_GCJ \
26169 exclude_expsyms_GCJ \
26170 include_expsyms_GCJ
; do
26173 old_archive_cmds_GCJ | \
26174 old_archive_from_new_cmds_GCJ | \
26175 archive_cmds_GCJ | \
26176 archive_expsym_cmds_GCJ | \
26177 module_cmds_GCJ | \
26178 module_expsym_cmds_GCJ | \
26179 old_archive_from_expsyms_cmds_GCJ | \
26180 export_symbols_cmds_GCJ | \
26181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26182 postinstall_cmds | postuninstall_cmds | \
26183 old_postinstall_cmds | old_postuninstall_cmds | \
26184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26185 # Double-quote double-evaled strings.
26186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26195 *'\$0 --fallback-echo"')
26196 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26202 cat <<__EOF__ >> "$cfgfile"
26203 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26207 # Shell to use when invoking shell scripts.
26210 # Whether or not to build shared libraries.
26211 build_libtool_libs=$enable_shared
26213 # Whether or not to build static libraries.
26214 build_old_libs=$enable_static
26216 # Whether or not to add -lc for building shared libraries.
26217 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26219 # Whether or not to disallow shared libs when runtime libs are static
26220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26222 # Whether or not to optimize for fast installation.
26223 fast_install=$enable_fast_install
26226 host_alias=$host_alias
26230 # The build system.
26231 build_alias=$build_alias
26235 # An echo program that does not interpret backslashes.
26240 AR_FLAGS=$lt_AR_FLAGS
26245 # LTCC compiler flags.
26246 LTCFLAGS=$lt_LTCFLAGS
26248 # A language-specific compiler.
26249 CC=$lt_compiler_GCJ
26251 # Is the compiler the GNU C compiler?
26257 # The linker used to build libraries.
26260 # Whether we need hard or soft links.
26263 # A BSD-compatible nm program.
26266 # A symbol stripping program
26269 # Used to examine libraries when file_magic_cmd begins "file"
26270 MAGIC_CMD=$MAGIC_CMD
26272 # Used on cygwin: DLL creation program.
26275 # Used on cygwin: object dumper.
26278 # Used on cygwin: assembler.
26281 # The name of the directory that contains temporary libtool files.
26284 # How to create reloadable object files.
26285 reload_flag=$lt_reload_flag
26286 reload_cmds=$lt_reload_cmds
26288 # How to pass a linker flag through the compiler.
26289 wl=$lt_lt_prog_compiler_wl_GCJ
26291 # Object file suffix (normally "o").
26292 objext="$ac_objext"
26294 # Old archive suffix (normally "a").
26297 # Shared library suffix (normally ".so").
26298 shrext_cmds='$shrext_cmds'
26300 # Executable file suffix (normally "").
26303 # Additional compiler flags for building library objects.
26304 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26307 # What is the maximum length of a command?
26308 max_cmd_len=$lt_cv_sys_max_cmd_len
26310 # Does compiler simultaneously support -c and -o options?
26311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26313 # Must we lock files when doing compilation?
26314 need_locks=$lt_need_locks
26316 # Do we need the lib prefix for modules?
26317 need_lib_prefix=$need_lib_prefix
26319 # Do we need a version for libraries?
26320 need_version=$need_version
26322 # Whether dlopen is supported.
26323 dlopen_support=$enable_dlopen
26325 # Whether dlopen of programs is supported.
26326 dlopen_self=$enable_dlopen_self
26328 # Whether dlopen of statically linked programs is supported.
26329 dlopen_self_static=$enable_dlopen_self_static
26331 # Compiler flag to prevent dynamic linking.
26332 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26334 # Compiler flag to turn off builtin functions.
26335 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26337 # Compiler flag to allow reflexive dlopens.
26338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26340 # Compiler flag to generate shared objects directly from archives.
26341 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26343 # Compiler flag to generate thread-safe objects.
26344 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26346 # Library versioning type.
26347 version_type=$version_type
26349 # Format of library name prefix.
26350 libname_spec=$lt_libname_spec
26352 # List of archive names. First name is the real one, the rest are links.
26353 # The last name is the one that the linker finds with -lNAME.
26354 library_names_spec=$lt_library_names_spec
26356 # The coded name of the library, if different from the real name.
26357 soname_spec=$lt_soname_spec
26359 # Commands used to build and install an old-style archive.
26361 old_archive_cmds=$lt_old_archive_cmds_GCJ
26362 old_postinstall_cmds=$lt_old_postinstall_cmds
26363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26365 # Create an old-style archive from a shared archive.
26366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26368 # Create a temporary old-style archive to link instead of a shared archive.
26369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26371 # Commands used to build and install a shared archive.
26372 archive_cmds=$lt_archive_cmds_GCJ
26373 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26374 postinstall_cmds=$lt_postinstall_cmds
26375 postuninstall_cmds=$lt_postuninstall_cmds
26377 # Commands used to build a loadable module (assumed same as above if empty)
26378 module_cmds=$lt_module_cmds_GCJ
26379 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26381 # Commands to strip libraries.
26382 old_striplib=$lt_old_striplib
26383 striplib=$lt_striplib
26385 # Dependencies to place before the objects being linked to create a
26387 predep_objects=$lt_predep_objects_GCJ
26389 # Dependencies to place after the objects being linked to create a
26391 postdep_objects=$lt_postdep_objects_GCJ
26393 # Dependencies to place before the objects being linked to create a
26395 predeps=$lt_predeps_GCJ
26397 # Dependencies to place after the objects being linked to create a
26399 postdeps=$lt_postdeps_GCJ
26401 # The library search path used internally by the compiler when linking
26402 # a shared library.
26403 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26405 # Method to check whether dependent libraries are shared objects.
26406 deplibs_check_method=$lt_deplibs_check_method
26408 # Command to use when deplibs_check_method == file_magic.
26409 file_magic_cmd=$lt_file_magic_cmd
26411 # Flag that allows shared libraries with undefined symbols to be built.
26412 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26414 # Flag that forces no undefined symbols.
26415 no_undefined_flag=$lt_no_undefined_flag_GCJ
26417 # Commands used to finish a libtool library installation in a directory.
26418 finish_cmds=$lt_finish_cmds
26420 # Same as above, but a single script fragment to be evaled but not shown.
26421 finish_eval=$lt_finish_eval
26423 # Take the output of nm and produce a listing of raw symbols and C names.
26424 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26426 # Transform the output of nm in a proper C declaration
26427 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26429 # Transform the output of nm in a C name address pair
26430 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26432 # This is the shared library runtime path variable.
26433 runpath_var=$runpath_var
26435 # This is the shared library path variable.
26436 shlibpath_var=$shlibpath_var
26438 # Is shlibpath searched before the hard-coded library search path?
26439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26441 # How to hardcode a shared library path into an executable.
26442 hardcode_action=$hardcode_action_GCJ
26444 # Whether we should hardcode library paths into libraries.
26445 hardcode_into_libs=$hardcode_into_libs
26447 # Flag to hardcode \$libdir into a binary during linking.
26448 # This must work even if \$libdir does not exist.
26449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26451 # If ld is used when linking, flag to hardcode \$libdir into
26452 # a binary during linking. This must work even if \$libdir does
26454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26456 # Whether we need a single -rpath flag with a separated argument.
26457 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26459 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26460 # resulting binary.
26461 hardcode_direct=$hardcode_direct_GCJ
26463 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26464 # resulting binary.
26465 hardcode_minus_L=$hardcode_minus_L_GCJ
26467 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26468 # the resulting binary.
26469 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26471 # Set to yes if building a shared library automatically hardcodes DIR into the library
26472 # and all subsequent libraries and executables linked against it.
26473 hardcode_automatic=$hardcode_automatic_GCJ
26475 # Variables whose values should be saved in libtool wrapper scripts and
26476 # restored at relink time.
26477 variables_saved_for_relink="$variables_saved_for_relink"
26479 # Whether libtool must link a program against all its dependency libraries.
26480 link_all_deplibs=$link_all_deplibs_GCJ
26482 # Compile-time system search path for libraries
26483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26485 # Run-time system search path for libraries
26486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26488 # Fix the shell variable \$srcfile for the compiler.
26489 fix_srcfile_path="$fix_srcfile_path_GCJ"
26491 # Set to yes if exported symbols are required.
26492 always_export_symbols=$always_export_symbols_GCJ
26494 # The commands to list exported symbols.
26495 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26497 # The commands to extract the exported symbol list from a shared archive.
26498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26500 # Symbols that should not be listed in the preloaded symbols.
26501 exclude_expsyms=$lt_exclude_expsyms_GCJ
26503 # Symbols that must always be exported.
26504 include_expsyms=$lt_include_expsyms_GCJ
26506 # ### END LIBTOOL TAG CONFIG: $tagname
26512 # If there is no Makefile yet, we rely on a make rule to execute
26513 # `config.status --recheck' to rerun these tests and create the
26514 # libtool script then.
26515 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26516 if test -f "$ltmain_in"; then
26517 test -f Makefile
&& make "$ltmain"
26523 ac_cpp
='$CPP $CPPFLAGS'
26524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26537 ac_cpp
='$CPP $CPPFLAGS'
26538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26543 # Source file extension for RC test sources.
26546 # Object file extension for compiled RC test sources.
26550 # Code to be used in simple compile tests
26551 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26553 # Code to be used in simple link tests
26554 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26558 # If no C compiler was specified, use CC.
26561 # If no C compiler flags were specified, use CFLAGS.
26562 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26564 # Allow CC to be a program name with arguments.
26568 # save warnings/boilerplate of simple test code
26569 ac_outfile
=conftest.
$ac_objext
26570 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26571 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26572 _lt_compiler_boilerplate
=`cat conftest.err`
26575 ac_outfile
=conftest.
$ac_objext
26576 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26577 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26578 _lt_linker_boilerplate
=`cat conftest.err`
26582 # Allow CC to be a program name with arguments.
26587 for cc_temp
in $compiler""; do
26589 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26590 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26595 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26597 lt_cv_prog_compiler_c_o_RC
=yes
26599 # The else clause should only fire when bootstrapping the
26600 # libtool distribution, otherwise you forgot to ship ltmain.sh
26601 # with your package, and you will get complaints that there are
26602 # no rules to generate ltmain.sh.
26603 if test -f "$ltmain"; then
26604 # See if we are running on zsh, and set the options which allow our commands through
26605 # without removal of \ escapes.
26606 if test -n "${ZSH_VERSION+set}" ; then
26607 setopt NO_GLOB_SUBST
26609 # Now quote all the things that may contain metacharacters while being
26610 # careful not to overquote the AC_SUBSTed values. We take copies of the
26611 # variables and quote the copies for generation of the libtool script.
26612 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26616 deplibs_check_method reload_flag reload_cmds need_locks \
26617 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26618 lt_cv_sys_global_symbol_to_c_name_address \
26619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26620 old_postinstall_cmds old_postuninstall_cmds \
26624 lt_prog_compiler_wl_RC \
26625 lt_prog_compiler_pic_RC \
26626 lt_prog_compiler_static_RC \
26627 lt_prog_compiler_no_builtin_flag_RC \
26628 export_dynamic_flag_spec_RC \
26629 thread_safe_flag_spec_RC \
26630 whole_archive_flag_spec_RC \
26631 enable_shared_with_static_runtimes_RC \
26632 old_archive_cmds_RC \
26633 old_archive_from_new_cmds_RC \
26634 predep_objects_RC \
26635 postdep_objects_RC \
26638 compiler_lib_search_path_RC \
26640 archive_expsym_cmds_RC \
26641 postinstall_cmds_RC \
26642 postuninstall_cmds_RC \
26643 old_archive_from_expsyms_cmds_RC \
26644 allow_undefined_flag_RC \
26645 no_undefined_flag_RC \
26646 export_symbols_cmds_RC \
26647 hardcode_libdir_flag_spec_RC \
26648 hardcode_libdir_flag_spec_ld_RC \
26649 hardcode_libdir_separator_RC \
26650 hardcode_automatic_RC \
26652 module_expsym_cmds_RC \
26653 lt_cv_prog_compiler_c_o_RC \
26654 exclude_expsyms_RC \
26655 include_expsyms_RC
; do
26658 old_archive_cmds_RC | \
26659 old_archive_from_new_cmds_RC | \
26660 archive_cmds_RC | \
26661 archive_expsym_cmds_RC | \
26663 module_expsym_cmds_RC | \
26664 old_archive_from_expsyms_cmds_RC | \
26665 export_symbols_cmds_RC | \
26666 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26667 postinstall_cmds | postuninstall_cmds | \
26668 old_postinstall_cmds | old_postuninstall_cmds | \
26669 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26670 # Double-quote double-evaled strings.
26671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26680 *'\$0 --fallback-echo"')
26681 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26687 cat <<__EOF__ >> "$cfgfile"
26688 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26690 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26692 # Shell to use when invoking shell scripts.
26695 # Whether or not to build shared libraries.
26696 build_libtool_libs=$enable_shared
26698 # Whether or not to build static libraries.
26699 build_old_libs=$enable_static
26701 # Whether or not to add -lc for building shared libraries.
26702 build_libtool_need_lc=$archive_cmds_need_lc_RC
26704 # Whether or not to disallow shared libs when runtime libs are static
26705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26707 # Whether or not to optimize for fast installation.
26708 fast_install=$enable_fast_install
26711 host_alias=$host_alias
26715 # The build system.
26716 build_alias=$build_alias
26720 # An echo program that does not interpret backslashes.
26725 AR_FLAGS=$lt_AR_FLAGS
26730 # LTCC compiler flags.
26731 LTCFLAGS=$lt_LTCFLAGS
26733 # A language-specific compiler.
26736 # Is the compiler the GNU C compiler?
26742 # The linker used to build libraries.
26745 # Whether we need hard or soft links.
26748 # A BSD-compatible nm program.
26751 # A symbol stripping program
26754 # Used to examine libraries when file_magic_cmd begins "file"
26755 MAGIC_CMD=$MAGIC_CMD
26757 # Used on cygwin: DLL creation program.
26760 # Used on cygwin: object dumper.
26763 # Used on cygwin: assembler.
26766 # The name of the directory that contains temporary libtool files.
26769 # How to create reloadable object files.
26770 reload_flag=$lt_reload_flag
26771 reload_cmds=$lt_reload_cmds
26773 # How to pass a linker flag through the compiler.
26774 wl=$lt_lt_prog_compiler_wl_RC
26776 # Object file suffix (normally "o").
26777 objext="$ac_objext"
26779 # Old archive suffix (normally "a").
26782 # Shared library suffix (normally ".so").
26783 shrext_cmds='$shrext_cmds'
26785 # Executable file suffix (normally "").
26788 # Additional compiler flags for building library objects.
26789 pic_flag=$lt_lt_prog_compiler_pic_RC
26792 # What is the maximum length of a command?
26793 max_cmd_len=$lt_cv_sys_max_cmd_len
26795 # Does compiler simultaneously support -c and -o options?
26796 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26798 # Must we lock files when doing compilation?
26799 need_locks=$lt_need_locks
26801 # Do we need the lib prefix for modules?
26802 need_lib_prefix=$need_lib_prefix
26804 # Do we need a version for libraries?
26805 need_version=$need_version
26807 # Whether dlopen is supported.
26808 dlopen_support=$enable_dlopen
26810 # Whether dlopen of programs is supported.
26811 dlopen_self=$enable_dlopen_self
26813 # Whether dlopen of statically linked programs is supported.
26814 dlopen_self_static=$enable_dlopen_self_static
26816 # Compiler flag to prevent dynamic linking.
26817 link_static_flag=$lt_lt_prog_compiler_static_RC
26819 # Compiler flag to turn off builtin functions.
26820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26822 # Compiler flag to allow reflexive dlopens.
26823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26825 # Compiler flag to generate shared objects directly from archives.
26826 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26828 # Compiler flag to generate thread-safe objects.
26829 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26831 # Library versioning type.
26832 version_type=$version_type
26834 # Format of library name prefix.
26835 libname_spec=$lt_libname_spec
26837 # List of archive names. First name is the real one, the rest are links.
26838 # The last name is the one that the linker finds with -lNAME.
26839 library_names_spec=$lt_library_names_spec
26841 # The coded name of the library, if different from the real name.
26842 soname_spec=$lt_soname_spec
26844 # Commands used to build and install an old-style archive.
26846 old_archive_cmds=$lt_old_archive_cmds_RC
26847 old_postinstall_cmds=$lt_old_postinstall_cmds
26848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26850 # Create an old-style archive from a shared archive.
26851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26853 # Create a temporary old-style archive to link instead of a shared archive.
26854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26856 # Commands used to build and install a shared archive.
26857 archive_cmds=$lt_archive_cmds_RC
26858 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26859 postinstall_cmds=$lt_postinstall_cmds
26860 postuninstall_cmds=$lt_postuninstall_cmds
26862 # Commands used to build a loadable module (assumed same as above if empty)
26863 module_cmds=$lt_module_cmds_RC
26864 module_expsym_cmds=$lt_module_expsym_cmds_RC
26866 # Commands to strip libraries.
26867 old_striplib=$lt_old_striplib
26868 striplib=$lt_striplib
26870 # Dependencies to place before the objects being linked to create a
26872 predep_objects=$lt_predep_objects_RC
26874 # Dependencies to place after the objects being linked to create a
26876 postdep_objects=$lt_postdep_objects_RC
26878 # Dependencies to place before the objects being linked to create a
26880 predeps=$lt_predeps_RC
26882 # Dependencies to place after the objects being linked to create a
26884 postdeps=$lt_postdeps_RC
26886 # The library search path used internally by the compiler when linking
26887 # a shared library.
26888 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26890 # Method to check whether dependent libraries are shared objects.
26891 deplibs_check_method=$lt_deplibs_check_method
26893 # Command to use when deplibs_check_method == file_magic.
26894 file_magic_cmd=$lt_file_magic_cmd
26896 # Flag that allows shared libraries with undefined symbols to be built.
26897 allow_undefined_flag=$lt_allow_undefined_flag_RC
26899 # Flag that forces no undefined symbols.
26900 no_undefined_flag=$lt_no_undefined_flag_RC
26902 # Commands used to finish a libtool library installation in a directory.
26903 finish_cmds=$lt_finish_cmds
26905 # Same as above, but a single script fragment to be evaled but not shown.
26906 finish_eval=$lt_finish_eval
26908 # Take the output of nm and produce a listing of raw symbols and C names.
26909 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26911 # Transform the output of nm in a proper C declaration
26912 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26914 # Transform the output of nm in a C name address pair
26915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26917 # This is the shared library runtime path variable.
26918 runpath_var=$runpath_var
26920 # This is the shared library path variable.
26921 shlibpath_var=$shlibpath_var
26923 # Is shlibpath searched before the hard-coded library search path?
26924 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26926 # How to hardcode a shared library path into an executable.
26927 hardcode_action=$hardcode_action_RC
26929 # Whether we should hardcode library paths into libraries.
26930 hardcode_into_libs=$hardcode_into_libs
26932 # Flag to hardcode \$libdir into a binary during linking.
26933 # This must work even if \$libdir does not exist.
26934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26936 # If ld is used when linking, flag to hardcode \$libdir into
26937 # a binary during linking. This must work even if \$libdir does
26939 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26941 # Whether we need a single -rpath flag with a separated argument.
26942 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26944 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26945 # resulting binary.
26946 hardcode_direct=$hardcode_direct_RC
26948 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26949 # resulting binary.
26950 hardcode_minus_L=$hardcode_minus_L_RC
26952 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26953 # the resulting binary.
26954 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26956 # Set to yes if building a shared library automatically hardcodes DIR into the library
26957 # and all subsequent libraries and executables linked against it.
26958 hardcode_automatic=$hardcode_automatic_RC
26960 # Variables whose values should be saved in libtool wrapper scripts and
26961 # restored at relink time.
26962 variables_saved_for_relink="$variables_saved_for_relink"
26964 # Whether libtool must link a program against all its dependency libraries.
26965 link_all_deplibs=$link_all_deplibs_RC
26967 # Compile-time system search path for libraries
26968 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26970 # Run-time system search path for libraries
26971 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26973 # Fix the shell variable \$srcfile for the compiler.
26974 fix_srcfile_path="$fix_srcfile_path_RC"
26976 # Set to yes if exported symbols are required.
26977 always_export_symbols=$always_export_symbols_RC
26979 # The commands to list exported symbols.
26980 export_symbols_cmds=$lt_export_symbols_cmds_RC
26982 # The commands to extract the exported symbol list from a shared archive.
26983 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26985 # Symbols that should not be listed in the preloaded symbols.
26986 exclude_expsyms=$lt_exclude_expsyms_RC
26988 # Symbols that must always be exported.
26989 include_expsyms=$lt_include_expsyms_RC
26991 # ### END LIBTOOL TAG CONFIG: $tagname
26997 # If there is no Makefile yet, we rely on a make rule to execute
26998 # `config.status --recheck' to rerun these tests and create the
26999 # libtool script then.
27000 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27001 if test -f "$ltmain_in"; then
27002 test -f Makefile
&& make "$ltmain"
27008 ac_cpp
='$CPP $CPPFLAGS'
27009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27018 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27019 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27020 { (exit 1); exit 1; }; }
27024 # Append the new tag name to the list of available tags.
27025 if test -n "$tagname" ; then
27026 available_tags
="$available_tags $tagname"
27032 # Now substitute the updated list of available tags.
27033 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27034 mv "${ofile}T" "$ofile"
27038 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27039 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27040 { (exit 1); exit 1; }; }
27046 # This can be used to rebuild libtool when needed
27047 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27049 # Always use our own libtool.
27050 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27052 # Prevent multiple expansion
27074 if test "$lt_cv_dlopen_self" = "yes" ; then
27076 cat >>confdefs.h
<<\_ACEOF
27077 #define CAN_DLOPEN_SELF 1
27082 if test "$WITH_LLVMGCCDIR" = "default" ; then
27083 LLVMGCC
="llvm-gcc${EXEEXT}"
27084 LLVMGXX
="llvm-g++${EXEEXT}"
27085 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27086 set dummy
$LLVMGCC; ac_word
=$2
27087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27089 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27094 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27098 for as_dir
in $PATH
27101 test -z "$as_dir" && as_dir
=.
27102 for ac_exec_ext
in '' $ac_executable_extensions; do
27103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27104 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27115 LLVMGCC
=$ac_cv_path_LLVMGCC
27116 if test -n "$LLVMGCC"; then
27117 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27118 echo "${ECHO_T}$LLVMGCC" >&6; }
27120 { echo "$as_me:$LINENO: result: no" >&5
27121 echo "${ECHO_T}no" >&6; }
27125 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27126 set dummy
$LLVMGXX; ac_word
=$2
27127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27129 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27138 for as_dir
in $PATH
27141 test -z "$as_dir" && as_dir
=.
27142 for ac_exec_ext
in '' $ac_executable_extensions; do
27143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27144 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27155 LLVMGXX
=$ac_cv_path_LLVMGXX
27156 if test -n "$LLVMGXX"; then
27157 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27158 echo "${ECHO_T}$LLVMGXX" >&6; }
27160 { echo "$as_me:$LINENO: result: no" >&5
27161 echo "${ECHO_T}no" >&6; }
27166 if test -z "$LLVMGCC"; then
27167 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27169 if test -z "$LLVMGXX"; then
27170 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27178 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27179 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27192 if test "$GCC" != "yes" && test "$ICC" != "yes"
27194 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27195 echo "$as_me: error: gcc|icc required but not found" >&2;}
27196 { (exit 1); exit 1; }; }
27199 if test "$GXX" != "yes" && test "$IXX" != "yes"
27201 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27202 echo "$as_me: error: g++|icc required but not found" >&2;}
27203 { (exit 1); exit 1; }; }
27206 if test "$GCC" = "yes"
27208 cat >conftest.
$ac_ext <<_ACEOF
27209 #if !defined(__GNUC__) || __GNUC__ < 3
27210 #error Unsupported GCC version
27214 rm -f conftest.
$ac_objext
27215 if { (ac_try
="$ac_compile"
27216 case "(($ac_try" in
27217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27223 grep -v '^ *+' conftest.er1 >conftest.err
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27231 *) ac_try_echo
=$ac_try;;
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try
='test -s conftest.$ac_objext'
27239 { (case "(($ac_try" in
27240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27250 echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27254 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27255 { (exit 1); exit 1; }; }
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27261 if test -z "$llvm_cv_gnu_make_command"
27263 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27264 echo "$as_me: error: GNU Make required but not found" >&2;}
27265 { (exit 1); exit 1; }; }
27268 { echo "$as_me:$LINENO: result: ok" >&5
27269 echo "${ECHO_T}ok" >&6; }
27273 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27274 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27275 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27278 ac_check_lib_save_LIBS=$LIBS
27280 cat >conftest.$ac_ext <<_ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27287 /* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27297 return elf_begin ();
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (ac_try="$ac_link"
27304 case "(($ac_try" in
27305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27306 *) ac_try_echo
=$ac_try;;
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_link") 2>conftest.er1
27311 grep -v '^ *+' conftest.er1
>conftest.err
27313 cat conftest.err
>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } &&
27316 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27317 { (case "(($ac_try" in
27318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_try") 2>&5
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; } &&
27326 { ac_try='test -s conftest$ac_exeext'
27327 { (case "(($ac_try" in
27328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27329 *) ac_try_echo
=$ac_try;;
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_try") 2>&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
27336 ac_cv_lib_elf_elf_begin
=yes
27338 echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.
$ac_ext >&5
27341 ac_cv_lib_elf_elf_begin
=no
27344 rm -f core conftest.err conftest.
$ac_objext \
27345 conftest
$ac_exeext conftest.
$ac_ext
27346 LIBS
=$ac_check_lib_save_LIBS
27348 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27349 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27350 if test $ac_cv_lib_elf_elf_begin = yes; then
27351 cat >>confdefs.h
<<_ACEOF
27352 #define HAVE_LIBELF 1
27360 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27361 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_m_sin+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27365 ac_check_lib_save_LIBS
=$LIBS
27367 cat >conftest.
$ac_ext <<_ACEOF
27370 cat confdefs.h
>>conftest.
$ac_ext
27371 cat >>conftest.
$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27374 /* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27389 rm -f conftest.
$ac_objext conftest
$ac_exeext
27390 if { (ac_try
="$ac_link"
27391 case "(($ac_try" in
27392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
27398 grep -v '^ *+' conftest.er1 >conftest.err
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404 { (case "(($ac_try" in
27405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27406 *) ac_try_echo
=$ac_try;;
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_try") 2>&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try
='test -s conftest$ac_exeext'
27414 { (case "(($ac_try" in
27415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_lib_m_sin=yes
27425 echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27431 rm -f core conftest.err conftest.$ac_objext \
27432 conftest$ac_exeext conftest.$ac_ext
27433 LIBS=$ac_check_lib_save_LIBS
27435 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27436 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27437 if test $ac_cv_lib_m_sin = yes; then
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_LIBM 1
27446 if test "$llvm_cv_os_type" = "MingW" ; then
27448 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27449 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27450 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27451 echo $ECHO_N "(cached) $ECHO_C" >&6
27453 ac_check_lib_save_LIBS=$LIBS
27454 LIBS="-limagehlp $LIBS"
27455 cat >conftest.$ac_ext <<_ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27475 *) ac_try_echo
=$ac_try;;
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_link") 2>conftest.er1
27480 grep -v '^ *+' conftest.er1
>conftest.err
27482 cat conftest.err
>&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486 { (case "(($ac_try" in
27487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27498 *) ac_try_echo
=$ac_try;;
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 ac_cv_lib_imagehlp_main
=yes
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.
$ac_ext >&5
27510 ac_cv_lib_imagehlp_main
=no
27513 rm -f core conftest.err conftest.
$ac_objext \
27514 conftest
$ac_exeext conftest.
$ac_ext
27515 LIBS
=$ac_check_lib_save_LIBS
27517 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27518 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27519 if test $ac_cv_lib_imagehlp_main = yes; then
27520 cat >>confdefs.h
<<_ACEOF
27521 #define HAVE_LIBIMAGEHLP 1
27524 LIBS
="-limagehlp $LIBS"
27529 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27530 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27531 if test "${ac_cv_lib_psapi_main+set}" = set; then
27532 echo $ECHO_N "(cached) $ECHO_C" >&6
27534 ac_check_lib_save_LIBS
=$LIBS
27535 LIBS
="-lpsapi $LIBS"
27536 cat >conftest.
$ac_ext <<_ACEOF
27539 cat confdefs.h
>>conftest.
$ac_ext
27540 cat >>conftest.
$ac_ext <<_ACEOF
27541 /* end confdefs.h. */
27552 rm -f conftest.
$ac_objext conftest
$ac_exeext
27553 if { (ac_try
="$ac_link"
27554 case "(($ac_try" in
27555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_link") 2>conftest.er1
27561 grep -v '^ *+' conftest.er1 >conftest.err
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27569 *) ac_try_echo
=$ac_try;;
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try
='test -s conftest$ac_exeext'
27577 { (case "(($ac_try" in
27578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 ac_cv_lib_psapi_main=yes
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_cv_lib_psapi_main=no
27594 rm -f core conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext conftest.$ac_ext
27596 LIBS=$ac_check_lib_save_LIBS
27598 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27599 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27600 if test $ac_cv_lib_psapi_main = yes; then
27601 cat >>confdefs.h <<_ACEOF
27602 #define HAVE_LIBPSAPI 1
27605 LIBS="-lpsapi $LIBS"
27611 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27612 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27613 if test "${ac_cv_search_dlopen+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 ac_func_search_save_LIBS=$LIBS
27617 cat >conftest.$ac_ext <<_ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h. */
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27639 for ac_lib in '' dl; do
27640 if test -z "$ac_lib"; then
27641 ac_res="none required"
27644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27650 *) ac_try_echo
=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>conftest.er1
27655 grep -v '^ *+' conftest.er1
>conftest.err
27657 cat conftest.err
>&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661 { (case "(($ac_try" in
27662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; } &&
27670 { ac_try='test -s conftest$ac_exeext'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27673 *) ac_try_echo
=$ac_try;;
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680 ac_cv_search_dlopen
=$ac_res
27682 echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.
$ac_ext >&5
27688 rm -f core conftest.err conftest.
$ac_objext \
27690 if test "${ac_cv_search_dlopen+set}" = set; then
27694 if test "${ac_cv_search_dlopen+set}" = set; then
27697 ac_cv_search_dlopen
=no
27699 rm conftest.
$ac_ext
27700 LIBS
=$ac_func_search_save_LIBS
27702 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27703 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27704 ac_res
=$ac_cv_search_dlopen
27705 if test "$ac_res" != no
; then
27706 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27708 cat >>confdefs.h
<<\_ACEOF
27709 #define HAVE_DLOPEN 1
27713 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27714 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27718 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27719 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27720 if test "${ac_cv_search_mallinfo+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27723 ac_func_search_save_LIBS
=$LIBS
27724 cat >conftest.
$ac_ext <<_ACEOF
27727 cat confdefs.h
>>conftest.
$ac_ext
27728 cat >>conftest.
$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27731 /* Override any GCC internal prototype to avoid an error.
27732 Use char because int might match the return type of a GCC
27733 builtin and then its argument prototype would still apply. */
27741 return mallinfo ();
27746 for ac_lib
in '' malloc
; do
27747 if test -z "$ac_lib"; then
27748 ac_res
="none required"
27751 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27753 rm -f conftest.
$ac_objext conftest
$ac_exeext
27754 if { (ac_try
="$ac_link"
27755 case "(($ac_try" in
27756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_link") 2>conftest.er1
27762 grep -v '^ *+' conftest.er1 >conftest.err
27764 cat conftest.err >&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } &&
27767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27770 *) ac_try_echo
=$ac_try;;
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try
='test -s conftest$ac_exeext'
27778 { (case "(($ac_try" in
27779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; }; then
27787 ac_cv_search_mallinfo=$ac_res
27789 echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27795 rm -f core conftest.err conftest.$ac_objext \
27797 if test "${ac_cv_search_mallinfo+set}" = set; then
27801 if test "${ac_cv_search_mallinfo+set}" = set; then
27804 ac_cv_search_mallinfo=no
27806 rm conftest.$ac_ext
27807 LIBS=$ac_func_search_save_LIBS
27809 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27810 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27811 ac_res=$ac_cv_search_mallinfo
27812 if test "$ac_res" != no; then
27813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27815 cat >>confdefs.h <<\_ACEOF
27816 #define HAVE_MALLINFO 1
27822 if test "$ENABLE_THREADS" -eq 1 ; then
27824 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27825 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27826 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27829 ac_check_lib_save_LIBS=$LIBS
27830 LIBS="-lpthread $LIBS"
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27838 /* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27844 char pthread_mutex_init ();
27848 return pthread_mutex_init ();
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27857 *) ac_try_echo
=$ac_try;;
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_link") 2>conftest.er1
27862 grep -v '^ *+' conftest.er1
>conftest.err
27864 cat conftest.err
>&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } &&
27867 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (case "(($ac_try" in
27869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest$ac_exeext'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27880 *) ac_try_echo
=$ac_try;;
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
27887 ac_cv_lib_pthread_pthread_mutex_init
=yes
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.
$ac_ext >&5
27892 ac_cv_lib_pthread_pthread_mutex_init
=no
27895 rm -f core conftest.err conftest.
$ac_objext \
27896 conftest
$ac_exeext conftest.
$ac_ext
27897 LIBS
=$ac_check_lib_save_LIBS
27899 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27900 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27901 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27902 cat >>confdefs.h
<<_ACEOF
27903 #define HAVE_LIBPTHREAD 1
27906 LIBS
="-lpthread $LIBS"
27910 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27911 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27912 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 ac_func_search_save_LIBS
=$LIBS
27916 cat >conftest.
$ac_ext <<_ACEOF
27919 cat confdefs.h
>>conftest.
$ac_ext
27920 cat >>conftest.
$ac_ext <<_ACEOF
27921 /* end confdefs.h. */
27923 /* Override any GCC internal prototype to avoid an error.
27924 Use char because int might match the return type of a GCC
27925 builtin and then its argument prototype would still apply. */
27929 char pthread_mutex_lock ();
27933 return pthread_mutex_lock ();
27938 for ac_lib
in '' pthread
; do
27939 if test -z "$ac_lib"; then
27940 ac_res
="none required"
27943 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27945 rm -f conftest.
$ac_objext conftest
$ac_exeext
27946 if { (ac_try
="$ac_link"
27947 case "(($ac_try" in
27948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_link") 2>conftest.er1
27954 grep -v '^ *+' conftest.er1 >conftest.err
27956 cat conftest.err >&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } &&
27959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27960 { (case "(($ac_try" in
27961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27962 *) ac_try_echo
=$ac_try;;
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_try") 2>&5
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; } &&
27969 { ac_try
='test -s conftest$ac_exeext'
27970 { (case "(($ac_try" in
27971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_try") 2>&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
27979 ac_cv_search_pthread_mutex_lock=$ac_res
27981 echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27987 rm -f core conftest.err conftest.$ac_objext \
27989 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27993 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27996 ac_cv_search_pthread_mutex_lock=no
27998 rm conftest.$ac_ext
27999 LIBS=$ac_func_search_save_LIBS
28001 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28002 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28003 ac_res=$ac_cv_search_pthread_mutex_lock
28004 if test "$ac_res" != no; then
28005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28007 cat >>confdefs.h <<\_ACEOF
28008 #define HAVE_PTHREAD_MUTEX_LOCK 1
28016 # Check whether --with-udis86 was given.
28017 if test "${with_udis86+set}" = set; then
28018 withval=$with_udis86;
28023 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28026 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28027 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28028 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28031 ac_check_lib_save_LIBS=$LIBS
28032 LIBS="-ludis86 $LIBS"
28033 cat >conftest.$ac_ext <<_ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h. */
28040 /* Override any GCC internal prototype to avoid an error.
28041 Use char because int might match the return type of a GCC
28042 builtin and then its argument prototype would still apply. */
28055 rm -f conftest.$ac_objext conftest$ac_exeext
28056 if { (ac_try="$ac_link"
28057 case "(($ac_try" in
28058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28059 *) ac_try_echo
=$ac_try;;
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_link") 2>conftest.er1
28064 grep -v '^ *+' conftest.er1
>conftest.err
28066 cat conftest.err
>&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
28069 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070 { (case "(($ac_try" in
28071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try='test -s conftest$ac_exeext'
28080 { (case "(($ac_try" in
28081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28082 *) ac_try_echo
=$ac_try;;
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_try") 2>&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
28089 ac_cv_lib_udis86_ud_init
=yes
28091 echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.
$ac_ext >&5
28094 ac_cv_lib_udis86_ud_init
=no
28097 rm -f core conftest.err conftest.
$ac_objext \
28098 conftest
$ac_exeext conftest.
$ac_ext
28099 LIBS
=$ac_check_lib_save_LIBS
28101 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28102 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28103 if test $ac_cv_lib_udis86_ud_init = yes; then
28104 cat >>confdefs.h
<<_ACEOF
28105 #define HAVE_LIBUDIS86 1
28108 LIBS
="-ludis86 $LIBS"
28112 echo "Error! You need to have libudis86 around."
28124 cat >>confdefs.h
<<_ACEOF
28125 #define USE_UDIS86 $USE_UDIS86
28135 ac_header_dirent
=no
28136 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
28137 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28138 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28139 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28140 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28143 cat >conftest.
$ac_ext <<_ACEOF
28146 cat confdefs.h
>>conftest.
$ac_ext
28147 cat >>conftest.
$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28149 #include <sys/types.h>
28161 rm -f conftest.
$ac_objext
28162 if { (ac_try
="$ac_compile"
28163 case "(($ac_try" in
28164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_compile") 2>conftest.er1
28170 grep -v '^ *+' conftest.er1 >conftest.err
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28178 *) ac_try_echo
=$ac_try;;
28180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try
='test -s conftest.$ac_objext'
28186 { (case "(($ac_try" in
28187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
28195 eval "$as_ac_Header=yes"
28197 echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28200 eval "$as_ac_Header=no"
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28205 ac_res=`eval echo '${'$as_ac_Header'}'`
28206 { echo "$as_me:$LINENO: result: $ac_res" >&5
28207 echo "${ECHO_T}$ac_res" >&6; }
28208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28209 cat >>confdefs.h <<_ACEOF
28210 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
28213 ac_header_dirent=$ac_hdr; break
28217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28218 if test $ac_header_dirent = dirent.h; then
28219 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28221 if test "${ac_cv_search_opendir+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28224 ac_func_search_save_LIBS=$LIBS
28225 cat >conftest.$ac_ext <<_ACEOF
28228 cat confdefs.h >>conftest.$ac_ext
28229 cat >>conftest.$ac_ext <<_ACEOF
28230 /* end confdefs.h. */
28232 /* Override any GCC internal prototype to avoid an error.
28233 Use char because int might match the return type of a GCC
28234 builtin and then its argument prototype would still apply. */
28247 for ac_lib in '' dir; do
28248 if test -z "$ac_lib"; then
28249 ac_res="none required"
28252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28254 rm -f conftest.$ac_objext conftest$ac_exeext
28255 if { (ac_try="$ac_link"
28256 case "(($ac_try" in
28257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28258 *) ac_try_echo
=$ac_try;;
28260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261 (eval "$ac_link") 2>conftest.er1
28263 grep -v '^ *+' conftest.er1
>conftest.err
28265 cat conftest.err
>&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); } &&
28268 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28269 { (case "(($ac_try" in
28270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28274 (eval "$ac_try") 2>&5
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; } &&
28278 { ac_try='test -s conftest$ac_exeext'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28281 *) ac_try_echo
=$ac_try;;
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
28288 ac_cv_search_opendir
=$ac_res
28290 echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.
$ac_ext >&5
28296 rm -f core conftest.err conftest.
$ac_objext \
28298 if test "${ac_cv_search_opendir+set}" = set; then
28302 if test "${ac_cv_search_opendir+set}" = set; then
28305 ac_cv_search_opendir
=no
28307 rm conftest.
$ac_ext
28308 LIBS
=$ac_func_search_save_LIBS
28310 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28311 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28312 ac_res
=$ac_cv_search_opendir
28313 if test "$ac_res" != no
; then
28314 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28319 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28321 if test "${ac_cv_search_opendir+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28324 ac_func_search_save_LIBS
=$LIBS
28325 cat >conftest.
$ac_ext <<_ACEOF
28328 cat confdefs.h
>>conftest.
$ac_ext
28329 cat >>conftest.
$ac_ext <<_ACEOF
28330 /* end confdefs.h. */
28332 /* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28347 for ac_lib
in '' x
; do
28348 if test -z "$ac_lib"; then
28349 ac_res
="none required"
28352 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28354 rm -f conftest.
$ac_objext conftest
$ac_exeext
28355 if { (ac_try
="$ac_link"
28356 case "(($ac_try" in
28357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_link") 2>conftest.er1
28363 grep -v '^ *+' conftest.er1 >conftest.err
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } &&
28368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28369 { (case "(($ac_try" in
28370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28371 *) ac_try_echo
=$ac_try;;
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; } &&
28378 { ac_try
='test -s conftest$ac_exeext'
28379 { (case "(($ac_try" in
28380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28381 *) ac_try_echo=$ac_try;;
28383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384 (eval "$ac_try") 2>&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 ac_cv_search_opendir=$ac_res
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28396 rm -f core conftest.err conftest.$ac_objext \
28398 if test "${ac_cv_search_opendir+set}" = set; then
28402 if test "${ac_cv_search_opendir+set}" = set; then
28405 ac_cv_search_opendir=no
28407 rm conftest.$ac_ext
28408 LIBS=$ac_func_search_save_LIBS
28410 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28411 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28412 ac_res=$ac_cv_search_opendir
28413 if test "$ac_res" != no; then
28414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28420 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28421 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28422 if test "${ac_cv_header_mmap_anon+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28426 ac_cpp='$CPP $CPPFLAGS'
28427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28431 cat >conftest.$ac_ext <<_ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437 #include <sys/mman.h>
28438 #include <unistd.h>
28443 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28448 rm -f conftest.$ac_objext
28449 if { (ac_try="$ac_compile"
28450 case "(($ac_try" in
28451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28452 *) ac_try_echo
=$ac_try;;
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_compile") 2>conftest.er1
28457 grep -v '^ *+' conftest.er1
>conftest.err
28459 cat conftest.err
>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } &&
28462 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28463 { (case "(($ac_try" in
28464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; } &&
28472 { ac_try='test -s conftest.$ac_objext'
28473 { (case "(($ac_try" in
28474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28475 *) ac_try_echo
=$ac_try;;
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_try") 2>&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; }; then
28482 ac_cv_header_mmap_anon
=yes
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.
$ac_ext >&5
28487 ac_cv_header_mmap_anon
=no
28490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28492 ac_cpp
='$CPP $CPPFLAGS'
28493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28499 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28500 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28501 if test "$ac_cv_header_mmap_anon" = yes; then
28503 cat >>confdefs.h
<<\_ACEOF
28504 #define HAVE_MMAP_ANONYMOUS 1
28509 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28510 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28511 if test "${ac_cv_header_stat_broken+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 cat >conftest.
$ac_ext <<_ACEOF
28517 cat confdefs.h
>>conftest.
$ac_ext
28518 cat >>conftest.
$ac_ext <<_ACEOF
28519 /* end confdefs.h. */
28520 #include <sys/types.h>
28521 #include <sys/stat.h>
28523 #if defined S_ISBLK && defined S_IFDIR
28524 # if S_ISBLK (S_IFDIR)
28529 #if defined S_ISBLK && defined S_IFCHR
28530 # if S_ISBLK (S_IFCHR)
28535 #if defined S_ISLNK && defined S_IFREG
28536 # if S_ISLNK (S_IFREG)
28541 #if defined S_ISSOCK && defined S_IFREG
28542 # if S_ISSOCK (S_IFREG)
28548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28549 $EGREP "You lose" >/dev
/null
2>&1; then
28550 ac_cv_header_stat_broken
=yes
28552 ac_cv_header_stat_broken
=no
28557 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28558 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28559 if test $ac_cv_header_stat_broken = yes; then
28561 cat >>confdefs.h
<<\_ACEOF
28562 #define STAT_MACROS_BROKEN 1
28567 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28569 if test "${ac_cv_header_stdc+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28572 cat >conftest.
$ac_ext <<_ACEOF
28575 cat confdefs.h
>>conftest.
$ac_ext
28576 cat >>conftest.
$ac_ext <<_ACEOF
28577 /* end confdefs.h. */
28578 #include <stdlib.h>
28579 #include <stdarg.h>
28580 #include <string.h>
28591 rm -f conftest.
$ac_objext
28592 if { (ac_try
="$ac_compile"
28593 case "(($ac_try" in
28594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28595 *) ac_try_echo=$ac_try;;
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598 (eval "$ac_compile") 2>conftest.er1
28600 grep -v '^ *+' conftest.er1 >conftest.err
28602 cat conftest.err >&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28606 { (case "(($ac_try" in
28607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28608 *) ac_try_echo
=$ac_try;;
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_try") 2>&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try
='test -s conftest.$ac_objext'
28616 { (case "(($ac_try" in
28617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_try") 2>&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
28625 ac_cv_header_stdc=yes
28627 echo "$as_me: failed program was:" >&5
28628 sed 's/^/| /' conftest.$ac_ext >&5
28630 ac_cv_header_stdc=no
28633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28635 if test $ac_cv_header_stdc = yes; then
28636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28637 cat >conftest.$ac_ext <<_ACEOF
28640 cat confdefs.h >>conftest.$ac_ext
28641 cat >>conftest.$ac_ext <<_ACEOF
28642 /* end confdefs.h. */
28643 #include <string.h>
28646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28647 $EGREP "memchr" >/dev/null 2>&1; then
28650 ac_cv_header_stdc=no
28656 if test $ac_cv_header_stdc = yes; then
28657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28658 cat >conftest.$ac_ext <<_ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h. */
28664 #include <stdlib.h>
28667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28668 $EGREP "free" >/dev/null 2>&1; then
28671 ac_cv_header_stdc=no
28677 if test $ac_cv_header_stdc = yes; then
28678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28679 if test "$cross_compiling" = yes; then
28682 cat >conftest.$ac_ext <<_ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28689 #include <stdlib.h>
28690 #if ((' ' & 0x0FF) == 0x020)
28691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28694 # define ISLOWER(c) \
28695 (('a' <= (c) && (c) <= 'i') \
28696 || ('j' <= (c) && (c) <= 'r') \
28697 || ('s' <= (c) && (c) <= 'z'))
28698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28706 for (i = 0; i < 256; i++)
28707 if (XOR (islower (i), ISLOWER (i))
28708 || toupper (i) != TOUPPER (i))
28713 rm -f conftest$ac_exeext
28714 if { (ac_try="$ac_link"
28715 case "(($ac_try" in
28716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28717 *) ac_try_echo
=$ac_try;;
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_link") 2>&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28724 { (case "(($ac_try" in
28725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_try") 2>&5
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28735 echo "$as_me: program exited with status $ac_status" >&5
28736 echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28739 ( exit $ac_status )
28740 ac_cv_header_stdc=no
28742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28748 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28749 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28750 if test $ac_cv_header_stdc = yes; then
28752 cat >>confdefs.h <<\_ACEOF
28753 #define STDC_HEADERS 1
28758 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28759 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28760 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28763 cat >conftest.$ac_ext <<_ACEOF
28766 cat confdefs.h >>conftest.$ac_ext
28767 cat >>conftest.$ac_ext <<_ACEOF
28768 /* end confdefs.h. */
28769 #include <sys/types.h>
28770 #include <sys/wait.h>
28771 #ifndef WEXITSTATUS
28772 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28775 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28783 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28788 rm -f conftest.$ac_objext
28789 if { (ac_try="$ac_compile"
28790 case "(($ac_try" in
28791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28792 *) ac_try_echo
=$ac_try;;
28794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795 (eval "$ac_compile") 2>conftest.er1
28797 grep -v '^ *+' conftest.er1
>conftest.err
28799 cat conftest.err
>&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28803 { (case "(($ac_try" in
28804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28805 *) ac_try_echo=$ac_try;;
28807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808 (eval "$ac_try") 2>&5
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; } &&
28812 { ac_try='test -s conftest.$ac_objext'
28813 { (case "(($ac_try" in
28814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28815 *) ac_try_echo
=$ac_try;;
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_try") 2>&5
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
28822 ac_cv_header_sys_wait_h
=yes
28824 echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.
$ac_ext >&5
28827 ac_cv_header_sys_wait_h
=no
28830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28832 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28833 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28834 if test $ac_cv_header_sys_wait_h = yes; then
28836 cat >>confdefs.h
<<\_ACEOF
28837 #define HAVE_SYS_WAIT_H 1
28842 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28843 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28844 if test "${ac_cv_header_time+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 cat >conftest.
$ac_ext <<_ACEOF
28850 cat confdefs.h
>>conftest.
$ac_ext
28851 cat >>conftest.
$ac_ext <<_ACEOF
28852 /* end confdefs.h. */
28853 #include <sys/types.h>
28854 #include <sys/time.h>
28860 if ((struct tm *) 0)
28866 rm -f conftest.
$ac_objext
28867 if { (ac_try
="$ac_compile"
28868 case "(($ac_try" in
28869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
28875 grep -v '^ *+' conftest.er1 >conftest.err
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
28880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28883 *) ac_try_echo
=$ac_try;;
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try
='test -s conftest.$ac_objext'
28891 { (case "(($ac_try" in
28892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_try") 2>&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 ac_cv_header_time=yes
28902 echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28905 ac_cv_header_time=no
28908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28910 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28911 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28912 if test $ac_cv_header_time = yes; then
28914 cat >>confdefs.h <<\_ACEOF
28915 #define TIME_WITH_SYS_TIME 1
28927 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28929 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28936 ac_res=`eval echo '${'$as_ac_Header'}'`
28937 { echo "$as_me:$LINENO: result: $ac_res" >&5
28938 echo "${ECHO_T}$ac_res" >&6; }
28940 # Is the header compilable?
28941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28943 cat >conftest.$ac_ext <<_ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 $ac_includes_default
28950 #include <$ac_header>
28952 rm -f conftest.$ac_objext
28953 if { (ac_try="$ac_compile"
28954 case "(($ac_try" in
28955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28956 *) ac_try_echo
=$ac_try;;
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_compile") 2>conftest.er1
28961 grep -v '^ *+' conftest.er1
>conftest.err
28963 cat conftest.err
>&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } &&
28966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28967 { (case "(($ac_try" in
28968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_try") 2>&5
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); }; } &&
28976 { ac_try='test -s conftest.$ac_objext'
28977 { (case "(($ac_try" in
28978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28979 *) ac_try_echo
=$ac_try;;
28981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982 (eval "$ac_try") 2>&5
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; }; then
28986 ac_header_compiler
=yes
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.
$ac_ext >&5
28991 ac_header_compiler
=no
28994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28996 echo "${ECHO_T}$ac_header_compiler" >&6; }
28998 # Is the header present?
28999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29001 cat >conftest.
$ac_ext <<_ACEOF
29004 cat confdefs.h
>>conftest.
$ac_ext
29005 cat >>conftest.
$ac_ext <<_ACEOF
29006 /* end confdefs.h. */
29007 #include <$ac_header>
29009 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29010 case "(($ac_try" in
29011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29017 grep -v '^ *+' conftest.er1 >conftest.err
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } >/dev/null; then
29022 if test -s conftest.err; then
29023 ac_cpp_err=$ac_c_preproc_warn_flag
29024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29031 if test -z "$ac_cpp_err"; then
29032 ac_header_preproc=yes
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29037 ac_header_preproc=no
29040 rm -f conftest.err conftest.$ac_ext
29041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6; }
29044 # So? What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29051 ac_header_preproc=yes
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29067 ## ----------------------------------- ##
29068 ## Report this to llvmbugs@cs.uiuc.edu ##
29069 ## ----------------------------------- ##
29071 ) | sed "s/^/$as_me: WARNING: /" >&2
29074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29079 eval "$as_ac_Header=\$ac_header_preproc"
29081 ac_res=`eval echo '${'$as_ac_Header'}'`
29082 { echo "$as_me:$LINENO: result: $ac_res" >&5
29083 echo "${ECHO_T}$ac_res" >&6; }
29086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29087 cat >>confdefs.h <<_ACEOF
29088 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29101 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29103 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 ac_res=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112 echo "${ECHO_T}$ac_res" >&6; }
29114 # Is the header compilable?
29115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29117 cat >conftest.$ac_ext <<_ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h. */
29123 $ac_includes_default
29124 #include <$ac_header>
29126 rm -f conftest.$ac_objext
29127 if { (ac_try="$ac_compile"
29128 case "(($ac_try" in
29129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29130 *) ac_try_echo
=$ac_try;;
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_compile") 2>conftest.er1
29135 grep -v '^ *+' conftest.er1
>conftest.err
29137 cat conftest.err
>&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); } &&
29140 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29141 { (case "(($ac_try" in
29142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29143 *) ac_try_echo=$ac_try;;
29145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146 (eval "$ac_try") 2>&5
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; } &&
29150 { ac_try='test -s conftest.$ac_objext'
29151 { (case "(($ac_try" in
29152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29153 *) ac_try_echo
=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; }; then
29160 ac_header_compiler
=yes
29162 echo "$as_me: failed program was:" >&5
29163 sed 's/^/| /' conftest.
$ac_ext >&5
29165 ac_header_compiler
=no
29168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29170 echo "${ECHO_T}$ac_header_compiler" >&6; }
29172 # Is the header present?
29173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29175 cat >conftest.
$ac_ext <<_ACEOF
29178 cat confdefs.h
>>conftest.
$ac_ext
29179 cat >>conftest.
$ac_ext <<_ACEOF
29180 /* end confdefs.h. */
29181 #include <$ac_header>
29183 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29184 case "(($ac_try" in
29185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29191 grep -v '^ *+' conftest.er1 >conftest.err
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } >/dev/null; then
29196 if test -s conftest.err; then
29197 ac_cpp_err=$ac_c_preproc_warn_flag
29198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29205 if test -z "$ac_cpp_err"; then
29206 ac_header_preproc=yes
29208 echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29211 ac_header_preproc=no
29214 rm -f conftest.err conftest.$ac_ext
29215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29216 echo "${ECHO_T}$ac_header_preproc" >&6; }
29218 # So? What about this header?
29219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29225 ac_header_preproc=yes
29228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29241 ## ----------------------------------- ##
29242 ## Report this to llvmbugs@cs.uiuc.edu ##
29243 ## ----------------------------------- ##
29245 ) | sed "s/^/$as_me: WARNING: /" >&2
29248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29253 eval "$as_ac_Header=\$ac_header_preproc"
29255 ac_res=`eval echo '${'$as_ac_Header'}'`
29256 { echo "$as_me:$LINENO: result: $ac_res" >&5
29257 echo "${ECHO_T}$ac_res" >&6; }
29260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29261 cat >>confdefs.h <<_ACEOF
29262 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29270 for ac_header in windows.h
29272 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 ac_res=`eval echo '${'$as_ac_Header'}'`
29280 { echo "$as_me:$LINENO: result: $ac_res" >&5
29281 echo "${ECHO_T}$ac_res" >&6; }
29283 # Is the header compilable?
29284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29286 cat >conftest.$ac_ext <<_ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29292 $ac_includes_default
29293 #include <$ac_header>
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29299 *) ac_try_echo
=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_compile") 2>conftest.er1
29304 grep -v '^ *+' conftest.er1
>conftest.err
29306 cat conftest.err
>&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } &&
29309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29310 { (case "(($ac_try" in
29311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
29319 { ac_try='test -s conftest.$ac_objext'
29320 { (case "(($ac_try" in
29321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29322 *) ac_try_echo
=$ac_try;;
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_try") 2>&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
29329 ac_header_compiler
=yes
29331 echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.
$ac_ext >&5
29334 ac_header_compiler
=no
29337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339 echo "${ECHO_T}$ac_header_compiler" >&6; }
29341 # Is the header present?
29342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29344 cat >conftest.
$ac_ext <<_ACEOF
29347 cat confdefs.h
>>conftest.
$ac_ext
29348 cat >>conftest.
$ac_ext <<_ACEOF
29349 /* end confdefs.h. */
29350 #include <$ac_header>
29352 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29353 case "(($ac_try" in
29354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29360 grep -v '^ *+' conftest.er1 >conftest.err
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } >/dev/null; then
29365 if test -s conftest.err; then
29366 ac_cpp_err=$ac_c_preproc_warn_flag
29367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29374 if test -z "$ac_cpp_err"; then
29375 ac_header_preproc=yes
29377 echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29380 ac_header_preproc=no
29383 rm -f conftest.err conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6; }
29387 # So? What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29410 ## ----------------------------------- ##
29411 ## Report this to llvmbugs@cs.uiuc.edu ##
29412 ## ----------------------------------- ##
29414 ) | sed "s/^/$as_me: WARNING: /" >&2
29417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 eval "$as_ac_Header=\$ac_header_preproc"
29424 ac_res=`eval echo '${'$as_ac_Header'}'`
29425 { echo "$as_me:$LINENO: result: $ac_res" >&5
29426 echo "${ECHO_T}$ac_res" >&6; }
29429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29430 cat >>confdefs.h <<_ACEOF
29431 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29442 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29444 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
29452 { echo "$as_me:$LINENO: result: $ac_res" >&5
29453 echo "${ECHO_T}$ac_res" >&6; }
29455 # Is the header compilable?
29456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29458 cat >conftest.$ac_ext <<_ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h. */
29464 $ac_includes_default
29465 #include <$ac_header>
29467 rm -f conftest.$ac_objext
29468 if { (ac_try="$ac_compile"
29469 case "(($ac_try" in
29470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29471 *) ac_try_echo
=$ac_try;;
29473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474 (eval "$ac_compile") 2>conftest.er1
29476 grep -v '^ *+' conftest.er1
>conftest.err
29478 cat conftest.err
>&5
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); } &&
29481 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29482 { (case "(($ac_try" in
29483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_try") 2>&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; } &&
29491 { ac_try='test -s conftest.$ac_objext'
29492 { (case "(($ac_try" in
29493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29494 *) ac_try_echo
=$ac_try;;
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497 (eval "$ac_try") 2>&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_header_compiler
=yes
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.
$ac_ext >&5
29506 ac_header_compiler
=no
29509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29511 echo "${ECHO_T}$ac_header_compiler" >&6; }
29513 # Is the header present?
29514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29516 cat >conftest.
$ac_ext <<_ACEOF
29519 cat confdefs.h
>>conftest.
$ac_ext
29520 cat >>conftest.
$ac_ext <<_ACEOF
29521 /* end confdefs.h. */
29522 #include <$ac_header>
29524 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29525 case "(($ac_try" in
29526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29532 grep -v '^ *+' conftest.er1 >conftest.err
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } >/dev/null; then
29537 if test -s conftest.err; then
29538 ac_cpp_err=$ac_c_preproc_warn_flag
29539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29546 if test -z "$ac_cpp_err"; then
29547 ac_header_preproc=yes
29549 echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 ac_header_preproc=no
29555 rm -f conftest.err conftest.$ac_ext
29556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557 echo "${ECHO_T}$ac_header_preproc" >&6; }
29559 # So? What about this header?
29560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29566 ac_header_preproc=yes
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29582 ## ----------------------------------- ##
29583 ## Report this to llvmbugs@cs.uiuc.edu ##
29584 ## ----------------------------------- ##
29586 ) | sed "s/^/$as_me: WARNING: /" >&2
29589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29592 echo $ECHO_N "(cached) $ECHO_C" >&6
29594 eval "$as_ac_Header=\$ac_header_preproc"
29596 ac_res=`eval echo '${'$as_ac_Header'}'`
29597 { echo "$as_me:$LINENO: result: $ac_res" >&5
29598 echo "${ECHO_T}$ac_res" >&6; }
29601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29602 cat >>confdefs.h <<_ACEOF
29603 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29613 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29615 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 ac_res=`eval echo '${'$as_ac_Header'}'`
29623 { echo "$as_me:$LINENO: result: $ac_res" >&5
29624 echo "${ECHO_T}$ac_res" >&6; }
29626 # Is the header compilable?
29627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29629 cat >conftest.$ac_ext <<_ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29635 $ac_includes_default
29636 #include <$ac_header>
29638 rm -f conftest.$ac_objext
29639 if { (ac_try="$ac_compile"
29640 case "(($ac_try" in
29641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29642 *) ac_try_echo
=$ac_try;;
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_compile") 2>conftest.er1
29647 grep -v '^ *+' conftest.er1
>conftest.err
29649 cat conftest.err
>&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
29652 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29653 { (case "(($ac_try" in
29654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_try") 2>&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); }; } &&
29662 { ac_try='test -s conftest.$ac_objext'
29663 { (case "(($ac_try" in
29664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29665 *) ac_try_echo
=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_try") 2>&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; }; then
29672 ac_header_compiler
=yes
29674 echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.
$ac_ext >&5
29677 ac_header_compiler
=no
29680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29682 echo "${ECHO_T}$ac_header_compiler" >&6; }
29684 # Is the header present?
29685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29687 cat >conftest.
$ac_ext <<_ACEOF
29690 cat confdefs.h
>>conftest.
$ac_ext
29691 cat >>conftest.
$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 #include <$ac_header>
29695 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29696 case "(($ac_try" in
29697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29703 grep -v '^ *+' conftest.er1 >conftest.err
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); } >/dev/null; then
29708 if test -s conftest.err; then
29709 ac_cpp_err=$ac_c_preproc_warn_flag
29710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29717 if test -z "$ac_cpp_err"; then
29718 ac_header_preproc=yes
29720 echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29723 ac_header_preproc=no
29726 rm -f conftest.err conftest.$ac_ext
29727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29728 echo "${ECHO_T}$ac_header_preproc" >&6; }
29730 # So? What about this header?
29731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29737 ac_header_preproc=yes
29740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29753 ## ----------------------------------- ##
29754 ## Report this to llvmbugs@cs.uiuc.edu ##
29755 ## ----------------------------------- ##
29757 ) | sed "s/^/$as_me: WARNING: /" >&2
29760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29765 eval "$as_ac_Header=\$ac_header_preproc"
29767 ac_res=`eval echo '${'$as_ac_Header'}'`
29768 { echo "$as_me:$LINENO: result: $ac_res" >&5
29769 echo "${ECHO_T}$ac_res" >&6; }
29772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29773 cat >>confdefs.h <<_ACEOF
29774 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29781 if test "$ENABLE_THREADS" -eq 1 ; then
29783 for ac_header in pthread.h
29785 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 ac_res=`eval echo '${'$as_ac_Header'}'`
29793 { echo "$as_me:$LINENO: result: $ac_res" >&5
29794 echo "${ECHO_T}$ac_res" >&6; }
29796 # Is the header compilable?
29797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29799 cat >conftest.$ac_ext <<_ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h. */
29805 $ac_includes_default
29806 #include <$ac_header>
29808 rm -f conftest.$ac_objext
29809 if { (ac_try="$ac_compile"
29810 case "(($ac_try" in
29811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29812 *) ac_try_echo
=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_compile") 2>conftest.er1
29817 grep -v '^ *+' conftest.er1
>conftest.err
29819 cat conftest.err
>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } &&
29822 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29823 { (case "(($ac_try" in
29824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_try") 2>&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (case "(($ac_try" in
29834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29835 *) ac_try_echo
=$ac_try;;
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_try") 2>&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29842 ac_header_compiler
=yes
29844 echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.
$ac_ext >&5
29847 ac_header_compiler
=no
29850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29852 echo "${ECHO_T}$ac_header_compiler" >&6; }
29854 # Is the header present?
29855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29857 cat >conftest.
$ac_ext <<_ACEOF
29860 cat confdefs.h
>>conftest.
$ac_ext
29861 cat >>conftest.
$ac_ext <<_ACEOF
29862 /* end confdefs.h. */
29863 #include <$ac_header>
29865 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29866 case "(($ac_try" in
29867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29873 grep -v '^ *+' conftest.er1 >conftest.err
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } >/dev/null; then
29878 if test -s conftest.err; then
29879 ac_cpp_err=$ac_c_preproc_warn_flag
29880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29887 if test -z "$ac_cpp_err"; then
29888 ac_header_preproc=yes
29890 echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29893 ac_header_preproc=no
29896 rm -f conftest.err conftest.$ac_ext
29897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29898 echo "${ECHO_T}$ac_header_preproc" >&6; }
29900 # So? What about this header?
29901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29907 ac_header_preproc=yes
29910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29923 ## ----------------------------------- ##
29924 ## Report this to llvmbugs@cs.uiuc.edu ##
29925 ## ----------------------------------- ##
29927 ) | sed "s/^/$as_me: WARNING: /" >&2
29930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29935 eval "$as_ac_Header=\$ac_header_preproc"
29937 ac_res=`eval echo '${'$as_ac_Header'}'`
29938 { echo "$as_me:$LINENO: result: $ac_res" >&5
29939 echo "${ECHO_T}$ac_res" >&6; }
29942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29943 cat >>confdefs.h <<_ACEOF
29944 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29962 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29963 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29964 if test "${ac_cv_huge_val_sanity+set}" = set; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29969 ac_cpp='$CXXCPP $CPPFLAGS'
29970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29975 if test "$cross_compiling" = yes; then
29976 ac_cv_huge_val_sanity=yes
29978 cat >conftest.$ac_ext <<_ACEOF
29981 cat confdefs.h >>conftest.$ac_ext
29982 cat >>conftest.$ac_ext <<_ACEOF
29983 /* end confdefs.h. */
29988 double x = HUGE_VAL; return x != x;
29993 rm -f conftest$ac_exeext
29994 if { (ac_try="$ac_link"
29995 case "(($ac_try" in
29996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29997 *) ac_try_echo
=$ac_try;;
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_link") 2>&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30004 { (case "(($ac_try" in
30005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
30013 ac_cv_huge_val_sanity=yes
30015 echo "$as_me: program exited with status $ac_status" >&5
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 ( exit $ac_status )
30020 ac_cv_huge_val_sanity=no
30022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30027 ac_cpp='$CPP $CPPFLAGS'
30028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30034 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30035 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30036 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30039 { echo "$as_me:$LINENO: checking for pid_t" >&5
30040 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30041 if test "${ac_cv_type_pid_t+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30044 cat >conftest.$ac_ext <<_ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h. */
30050 $ac_includes_default
30051 typedef pid_t ac__type_new_;
30055 if ((ac__type_new_ *) 0)
30057 if (sizeof (ac__type_new_))
30063 rm -f conftest.$ac_objext
30064 if { (ac_try="$ac_compile"
30065 case "(($ac_try" in
30066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30067 *) ac_try_echo
=$ac_try;;
30069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_compile") 2>conftest.er1
30072 grep -v '^ *+' conftest.er1
>conftest.err
30074 cat conftest.err
>&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); } &&
30077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30078 { (case "(($ac_try" in
30079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_try") 2>&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest.$ac_objext'
30088 { (case "(($ac_try" in
30089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30090 *) ac_try_echo
=$ac_try;;
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_try") 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 ac_cv_type_pid_t
=yes
30099 echo "$as_me: failed program was:" >&5
30100 sed 's/^/| /' conftest.
$ac_ext >&5
30102 ac_cv_type_pid_t
=no
30105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30107 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30108 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30109 if test $ac_cv_type_pid_t = yes; then
30113 cat >>confdefs.h
<<_ACEOF
30119 { echo "$as_me:$LINENO: checking for size_t" >&5
30120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30121 if test "${ac_cv_type_size_t+set}" = set; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 cat >conftest.
$ac_ext <<_ACEOF
30127 cat confdefs.h
>>conftest.
$ac_ext
30128 cat >>conftest.
$ac_ext <<_ACEOF
30129 /* end confdefs.h. */
30130 $ac_includes_default
30131 typedef size_t ac__type_new_;
30135 if ((ac__type_new_ *) 0)
30137 if (sizeof (ac__type_new_))
30143 rm -f conftest.
$ac_objext
30144 if { (ac_try
="$ac_compile"
30145 case "(($ac_try" in
30146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30147 *) ac_try_echo=$ac_try;;
30149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30150 (eval "$ac_compile") 2>conftest.er1
30152 grep -v '^ *+' conftest.er1 >conftest.err
30154 cat conftest.err >&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
30157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30158 { (case "(($ac_try" in
30159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30160 *) ac_try_echo
=$ac_try;;
30162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_try") 2>&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; } &&
30167 { ac_try
='test -s conftest.$ac_objext'
30168 { (case "(($ac_try" in
30169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
30177 ac_cv_type_size_t=yes
30179 echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ac_cv_type_size_t=no
30185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30187 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30188 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30189 if test $ac_cv_type_size_t = yes; then
30193 cat >>confdefs.h <<_ACEOF
30194 #define size_t unsigned int
30199 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30200 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30201 if test "${ac_cv_type_signal+set}" = set; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30204 cat >conftest.$ac_ext <<_ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h. */
30210 #include <sys/types.h>
30211 #include <signal.h>
30216 return *(signal (0, 0)) (0) == 1;
30221 rm -f conftest.$ac_objext
30222 if { (ac_try="$ac_compile"
30223 case "(($ac_try" in
30224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30225 *) ac_try_echo
=$ac_try;;
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_compile") 2>conftest.er1
30230 grep -v '^ *+' conftest.er1
>conftest.err
30232 cat conftest.err
>&5
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); } &&
30235 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30236 { (case "(($ac_try" in
30237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_try") 2>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; } &&
30245 { ac_try='test -s conftest.$ac_objext'
30246 { (case "(($ac_try" in
30247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30248 *) ac_try_echo
=$ac_try;;
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_try") 2>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 ac_cv_type_signal
=int
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.
$ac_ext >&5
30260 ac_cv_type_signal
=void
30263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30265 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30266 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30268 cat >>confdefs.h
<<_ACEOF
30269 #define RETSIGTYPE $ac_cv_type_signal
30273 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30275 if test "${ac_cv_struct_tm+set}" = set; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30278 cat >conftest.
$ac_ext <<_ACEOF
30281 cat confdefs.h
>>conftest.
$ac_ext
30282 cat >>conftest.
$ac_ext <<_ACEOF
30283 /* end confdefs.h. */
30284 #include <sys/types.h>
30290 struct tm *tp; tp->tm_sec;
30295 rm -f conftest.
$ac_objext
30296 if { (ac_try
="$ac_compile"
30297 case "(($ac_try" in
30298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_compile") 2>conftest.er1
30304 grep -v '^ *+' conftest.er1 >conftest.err
30306 cat conftest.err >&5
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } &&
30309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30310 { (case "(($ac_try" in
30311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30312 *) ac_try_echo
=$ac_try;;
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_try") 2>&5
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); }; } &&
30319 { ac_try
='test -s conftest.$ac_objext'
30320 { (case "(($ac_try" in
30321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325 (eval "$ac_try") 2>&5
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; }; then
30329 ac_cv_struct_tm=time.h
30331 echo "$as_me: failed program was:" >&5
30332 sed 's/^/| /' conftest.$ac_ext >&5
30334 ac_cv_struct_tm=sys/time.h
30337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30339 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30340 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30341 if test $ac_cv_struct_tm = sys/time.h; then
30343 cat >>confdefs.h <<\_ACEOF
30344 #define TM_IN_SYS_TIME 1
30349 { echo "$as_me:$LINENO: checking for int64_t" >&5
30350 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30351 if test "${ac_cv_type_int64_t+set}" = set; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30354 cat >conftest.$ac_ext <<_ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 $ac_includes_default
30361 typedef int64_t ac__type_new_;
30365 if ((ac__type_new_ *) 0)
30367 if (sizeof (ac__type_new_))
30373 rm -f conftest.$ac_objext
30374 if { (ac_try="$ac_compile"
30375 case "(($ac_try" in
30376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30377 *) ac_try_echo
=$ac_try;;
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_compile") 2>conftest.er1
30382 grep -v '^ *+' conftest.er1
>conftest.err
30384 cat conftest.err
>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } &&
30387 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30388 { (case "(($ac_try" in
30389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_try") 2>&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; } &&
30397 { ac_try='test -s conftest.$ac_objext'
30398 { (case "(($ac_try" in
30399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30400 *) ac_try_echo
=$ac_try;;
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_try") 2>&5
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; }; then
30407 ac_cv_type_int64_t
=yes
30409 echo "$as_me: failed program was:" >&5
30410 sed 's/^/| /' conftest.
$ac_ext >&5
30412 ac_cv_type_int64_t
=no
30415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30417 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30418 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30419 if test $ac_cv_type_int64_t = yes; then
30421 cat >>confdefs.h
<<_ACEOF
30422 #define HAVE_INT64_T 1
30427 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30428 echo "$as_me: error: Type int64_t required but not found" >&2;}
30429 { (exit 1); exit 1; }; }
30432 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30433 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30434 if test "${ac_cv_type_uint64_t+set}" = set; then
30435 echo $ECHO_N "(cached) $ECHO_C" >&6
30437 cat >conftest.
$ac_ext <<_ACEOF
30440 cat confdefs.h
>>conftest.
$ac_ext
30441 cat >>conftest.
$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30443 $ac_includes_default
30444 typedef uint64_t ac__type_new_;
30448 if ((ac__type_new_ *) 0)
30450 if (sizeof (ac__type_new_))
30456 rm -f conftest.
$ac_objext
30457 if { (ac_try
="$ac_compile"
30458 case "(($ac_try" in
30459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_compile") 2>conftest.er1
30465 grep -v '^ *+' conftest.er1 >conftest.err
30467 cat conftest.err >&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
30470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30473 *) ac_try_echo
=$ac_try;;
30475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 (eval "$ac_try") 2>&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try
='test -s conftest.$ac_objext'
30481 { (case "(($ac_try" in
30482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; }; then
30490 ac_cv_type_uint64_t=yes
30492 echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30495 ac_cv_type_uint64_t=no
30498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30500 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30501 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30502 if test $ac_cv_type_uint64_t = yes; then
30504 cat >>confdefs.h <<_ACEOF
30505 #define HAVE_UINT64_T 1
30510 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30511 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30512 if test "${ac_cv_type_u_int64_t+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30515 cat >conftest.$ac_ext <<_ACEOF
30518 cat confdefs.h >>conftest.$ac_ext
30519 cat >>conftest.$ac_ext <<_ACEOF
30520 /* end confdefs.h. */
30521 $ac_includes_default
30522 typedef u_int64_t ac__type_new_;
30526 if ((ac__type_new_ *) 0)
30528 if (sizeof (ac__type_new_))
30534 rm -f conftest.$ac_objext
30535 if { (ac_try="$ac_compile"
30536 case "(($ac_try" in
30537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30538 *) ac_try_echo
=$ac_try;;
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_compile") 2>conftest.er1
30543 grep -v '^ *+' conftest.er1
>conftest.err
30545 cat conftest.err
>&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); } &&
30548 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549 { (case "(($ac_try" in
30550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; } &&
30558 { ac_try='test -s conftest.$ac_objext'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30561 *) ac_try_echo
=$ac_try;;
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 ac_cv_type_u_int64_t
=yes
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.
$ac_ext >&5
30573 ac_cv_type_u_int64_t
=no
30576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30578 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30579 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30580 if test $ac_cv_type_u_int64_t = yes; then
30582 cat >>confdefs.h
<<_ACEOF
30583 #define HAVE_U_INT64_T 1
30588 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30589 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30590 { (exit 1); exit 1; }; }
30604 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30606 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30609 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30610 echo $ECHO_N "(cached) $ECHO_C" >&6
30612 cat >conftest.
$ac_ext <<_ACEOF
30615 cat confdefs.h
>>conftest.
$ac_ext
30616 cat >>conftest.
$ac_ext <<_ACEOF
30617 /* end confdefs.h. */
30618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30620 #define $ac_func innocuous_$ac_func
30622 /* System header to define __stub macros and hopefully few prototypes,
30623 which can conflict with char $ac_func (); below.
30624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30625 <limits.h> exists even on freestanding compilers. */
30628 # include <limits.h>
30630 # include <assert.h>
30635 /* Override any GCC internal prototype to avoid an error.
30636 Use char because int might match the return type of a GCC
30637 builtin and then its argument prototype would still apply. */
30642 /* The GNU C library defines this for functions which it implements
30643 to always fail with ENOSYS. Some functions are actually named
30644 something starting with __ and the normal name is an alias. */
30645 #if defined __stub_$ac_func || defined __stub___$ac_func
30652 return $ac_func ();
30657 rm -f conftest.
$ac_objext conftest
$ac_exeext
30658 if { (ac_try
="$ac_link"
30659 case "(($ac_try" in
30660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664 (eval "$ac_link") 2>conftest.er1
30666 grep -v '^ *+' conftest.er1 >conftest.err
30668 cat conftest.err >&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); } &&
30671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30672 { (case "(($ac_try" in
30673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30674 *) ac_try_echo
=$ac_try;;
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_try") 2>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try
='test -s conftest$ac_exeext'
30682 { (case "(($ac_try" in
30683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_try") 2>&5
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
30691 eval "$as_ac_var=yes"
30693 echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30696 eval "$as_ac_var=no"
30699 rm -f core conftest.err conftest.$ac_objext \
30700 conftest$ac_exeext conftest.$ac_ext
30702 ac_res=`eval echo '${'$as_ac_var'}'`
30703 { echo "$as_me:$LINENO: result: $ac_res" >&5
30704 echo "${ECHO_T}$ac_res" >&6; }
30705 if test `eval echo '${'$as_ac_var'}'` = yes; then
30706 cat >>confdefs.h <<_ACEOF
30707 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30717 for ac_func in powf fmodf strtof round
30719 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30723 echo $ECHO_N "(cached) $ECHO_C" >&6
30725 cat >conftest.$ac_ext <<_ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h. */
30731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30733 #define $ac_func innocuous_$ac_func
30735 /* System header to define __stub macros and hopefully few prototypes,
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30741 # include <limits.h>
30743 # include <assert.h>
30748 /* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30755 /* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
30758 #if defined __stub_$ac_func || defined __stub___$ac_func
30765 return $ac_func ();
30770 rm -f conftest.$ac_objext conftest$ac_exeext
30771 if { (ac_try="$ac_link"
30772 case "(($ac_try" in
30773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30774 *) ac_try_echo
=$ac_try;;
30776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_link") 2>conftest.er1
30779 grep -v '^ *+' conftest.er1
>conftest.err
30781 cat conftest.err
>&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
30784 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30785 { (case "(($ac_try" in
30786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
30795 { (case "(($ac_try" in
30796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30797 *) ac_try_echo
=$ac_try;;
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.
$ac_ext >&5
30809 eval "$as_ac_var=no"
30812 rm -f core conftest.err conftest.
$ac_objext \
30813 conftest
$ac_exeext conftest.
$ac_ext
30815 ac_res
=`eval echo '${'$as_ac_var'}'`
30816 { echo "$as_me:$LINENO: result: $ac_res" >&5
30817 echo "${ECHO_T}$ac_res" >&6; }
30818 if test `eval echo '${'$as_ac_var'}'` = yes; then
30819 cat >>confdefs.h
<<_ACEOF
30820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30831 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
30833 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30836 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30839 cat >conftest.
$ac_ext <<_ACEOF
30842 cat confdefs.h
>>conftest.
$ac_ext
30843 cat >>conftest.
$ac_ext <<_ACEOF
30844 /* end confdefs.h. */
30845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30847 #define $ac_func innocuous_$ac_func
30849 /* System header to define __stub macros and hopefully few prototypes,
30850 which can conflict with char $ac_func (); below.
30851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30852 <limits.h> exists even on freestanding compilers. */
30855 # include <limits.h>
30857 # include <assert.h>
30862 /* Override any GCC internal prototype to avoid an error.
30863 Use char because int might match the return type of a GCC
30864 builtin and then its argument prototype would still apply. */
30869 /* The GNU C library defines this for functions which it implements
30870 to always fail with ENOSYS. Some functions are actually named
30871 something starting with __ and the normal name is an alias. */
30872 #if defined __stub_$ac_func || defined __stub___$ac_func
30879 return $ac_func ();
30884 rm -f conftest.
$ac_objext conftest
$ac_exeext
30885 if { (ac_try
="$ac_link"
30886 case "(($ac_try" in
30887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30888 *) ac_try_echo=$ac_try;;
30890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30891 (eval "$ac_link") 2>conftest.er1
30893 grep -v '^ *+' conftest.er1 >conftest.err
30895 cat conftest.err >&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } &&
30898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30899 { (case "(($ac_try" in
30900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30901 *) ac_try_echo
=$ac_try;;
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_try") 2>&5
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; } &&
30908 { ac_try
='test -s conftest$ac_exeext'
30909 { (case "(($ac_try" in
30910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30911 *) ac_try_echo=$ac_try;;
30913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914 (eval "$ac_try") 2>&5
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
30918 eval "$as_ac_var=yes"
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30923 eval "$as_ac_var=no"
30926 rm -f core conftest.err conftest.$ac_objext \
30927 conftest$ac_exeext conftest.$ac_ext
30929 ac_res=`eval echo '${'$as_ac_var'}'`
30930 { echo "$as_me:$LINENO: result: $ac_res" >&5
30931 echo "${ECHO_T}$ac_res" >&6; }
30932 if test `eval echo '${'$as_ac_var'}'` = yes; then
30933 cat >>confdefs.h <<_ACEOF
30934 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30943 for ac_func in isatty mkdtemp mkstemp
30945 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30949 echo $ECHO_N "(cached) $ECHO_C" >&6
30951 cat >conftest.$ac_ext <<_ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30959 #define $ac_func innocuous_$ac_func
30961 /* System header to define __stub macros and hopefully few prototypes,
30962 which can conflict with char $ac_func (); below.
30963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30964 <limits.h> exists even on freestanding compilers. */
30967 # include <limits.h>
30969 # include <assert.h>
30974 /* Override any GCC internal prototype to avoid an error.
30975 Use char because int might match the return type of a GCC
30976 builtin and then its argument prototype would still apply. */
30981 /* The GNU C library defines this for functions which it implements
30982 to always fail with ENOSYS. Some functions are actually named
30983 something starting with __ and the normal name is an alias. */
30984 #if defined __stub_$ac_func || defined __stub___$ac_func
30991 return $ac_func ();
30996 rm -f conftest.$ac_objext conftest$ac_exeext
30997 if { (ac_try="$ac_link"
30998 case "(($ac_try" in
30999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31000 *) ac_try_echo
=$ac_try;;
31002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_link") 2>conftest.er1
31005 grep -v '^ *+' conftest.er1
>conftest.err
31007 cat conftest.err
>&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
31010 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31011 { (case "(($ac_try" in
31012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_try") 2>&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; } &&
31020 { ac_try='test -s conftest$ac_exeext'
31021 { (case "(($ac_try" in
31022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31023 *) ac_try_echo
=$ac_try;;
31025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_try") 2>&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; }; then
31030 eval "$as_ac_var=yes"
31032 echo "$as_me: failed program was:" >&5
31033 sed 's/^/| /' conftest.
$ac_ext >&5
31035 eval "$as_ac_var=no"
31038 rm -f core conftest.err conftest.
$ac_objext \
31039 conftest
$ac_exeext conftest.
$ac_ext
31041 ac_res
=`eval echo '${'$as_ac_var'}'`
31042 { echo "$as_me:$LINENO: result: $ac_res" >&5
31043 echo "${ECHO_T}$ac_res" >&6; }
31044 if test `eval echo '${'$as_ac_var'}'` = yes; then
31045 cat >>confdefs.h
<<_ACEOF
31046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31059 for ac_func
in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31061 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31064 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31067 cat >conftest.
$ac_ext <<_ACEOF
31070 cat confdefs.h
>>conftest.
$ac_ext
31071 cat >>conftest.
$ac_ext <<_ACEOF
31072 /* end confdefs.h. */
31073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075 #define $ac_func innocuous_$ac_func
31077 /* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31083 # include <limits.h>
31085 # include <assert.h>
31090 /* Override any GCC internal prototype to avoid an error.
31091 Use char because int might match the return type of a GCC
31092 builtin and then its argument prototype would still apply. */
31097 /* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
31100 #if defined __stub_$ac_func || defined __stub___$ac_func
31107 return $ac_func ();
31112 rm -f conftest.
$ac_objext conftest
$ac_exeext
31113 if { (ac_try
="$ac_link"
31114 case "(($ac_try" in
31115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_link") 2>conftest.er1
31121 grep -v '^ *+' conftest.er1 >conftest.err
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } &&
31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31129 *) ac_try_echo
=$ac_try;;
31131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try
='test -s conftest$ac_exeext'
31137 { (case "(($ac_try" in
31138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
31146 eval "$as_ac_var=yes"
31148 echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.$ac_ext >&5
31151 eval "$as_ac_var=no"
31154 rm -f core conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
31157 ac_res=`eval echo '${'$as_ac_var'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159 echo "${ECHO_T}$ac_res" >&6; }
31160 if test `eval echo '${'$as_ac_var'}'` = yes; then
31161 cat >>confdefs.h <<_ACEOF
31162 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31172 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31174 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31178 echo $ECHO_N "(cached) $ECHO_C" >&6
31180 cat >conftest.$ac_ext <<_ACEOF
31183 cat confdefs.h >>conftest.$ac_ext
31184 cat >>conftest.$ac_ext <<_ACEOF
31185 /* end confdefs.h. */
31186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31188 #define $ac_func innocuous_$ac_func
31190 /* System header to define __stub macros and hopefully few prototypes,
31191 which can conflict with char $ac_func (); below.
31192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31193 <limits.h> exists even on freestanding compilers. */
31196 # include <limits.h>
31198 # include <assert.h>
31203 /* Override any GCC internal prototype to avoid an error.
31204 Use char because int might match the return type of a GCC
31205 builtin and then its argument prototype would still apply. */
31210 /* The GNU C library defines this for functions which it implements
31211 to always fail with ENOSYS. Some functions are actually named
31212 something starting with __ and the normal name is an alias. */
31213 #if defined __stub_$ac_func || defined __stub___$ac_func
31220 return $ac_func ();
31225 rm -f conftest.$ac_objext conftest$ac_exeext
31226 if { (ac_try="$ac_link"
31227 case "(($ac_try" in
31228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31229 *) ac_try_echo
=$ac_try;;
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_link") 2>conftest.er1
31234 grep -v '^ *+' conftest.er1
>conftest.err
31236 cat conftest.err
>&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); } &&
31239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31240 { (case "(($ac_try" in
31241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31242 *) ac_try_echo=$ac_try;;
31244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245 (eval "$ac_try") 2>&5
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; } &&
31249 { ac_try='test -s conftest$ac_exeext'
31250 { (case "(($ac_try" in
31251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31252 *) ac_try_echo
=$ac_try;;
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_try") 2>&5
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); }; }; then
31259 eval "$as_ac_var=yes"
31261 echo "$as_me: failed program was:" >&5
31262 sed 's/^/| /' conftest.
$ac_ext >&5
31264 eval "$as_ac_var=no"
31267 rm -f core conftest.err conftest.
$ac_objext \
31268 conftest
$ac_exeext conftest.
$ac_ext
31270 ac_res
=`eval echo '${'$as_ac_var'}'`
31271 { echo "$as_me:$LINENO: result: $ac_res" >&5
31272 echo "${ECHO_T}$ac_res" >&6; }
31273 if test `eval echo '${'$as_ac_var'}'` = yes; then
31274 cat >>confdefs.h
<<_ACEOF
31275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31285 for ac_func
in setjmp longjmp sigsetjmp siglongjmp
31287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31290 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31291 echo $ECHO_N "(cached) $ECHO_C" >&6
31293 cat >conftest.
$ac_ext <<_ACEOF
31296 cat confdefs.h
>>conftest.
$ac_ext
31297 cat >>conftest.
$ac_ext <<_ACEOF
31298 /* end confdefs.h. */
31299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31301 #define $ac_func innocuous_$ac_func
31303 /* System header to define __stub macros and hopefully few prototypes,
31304 which can conflict with char $ac_func (); below.
31305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31306 <limits.h> exists even on freestanding compilers. */
31309 # include <limits.h>
31311 # include <assert.h>
31316 /* Override any GCC internal prototype to avoid an error.
31317 Use char because int might match the return type of a GCC
31318 builtin and then its argument prototype would still apply. */
31323 /* The GNU C library defines this for functions which it implements
31324 to always fail with ENOSYS. Some functions are actually named
31325 something starting with __ and the normal name is an alias. */
31326 #if defined __stub_$ac_func || defined __stub___$ac_func
31333 return $ac_func ();
31338 rm -f conftest.
$ac_objext conftest
$ac_exeext
31339 if { (ac_try
="$ac_link"
31340 case "(($ac_try" in
31341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_link") 2>conftest.er1
31347 grep -v '^ *+' conftest.er1 >conftest.err
31349 cat conftest.err >&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); } &&
31352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31353 { (case "(($ac_try" in
31354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31355 *) ac_try_echo
=$ac_try;;
31357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_try") 2>&5
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; } &&
31362 { ac_try
='test -s conftest$ac_exeext'
31363 { (case "(($ac_try" in
31364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31365 *) ac_try_echo=$ac_try;;
31367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368 (eval "$ac_try") 2>&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); }; }; then
31372 eval "$as_ac_var=yes"
31374 echo "$as_me: failed program was:" >&5
31375 sed 's/^/| /' conftest.$ac_ext >&5
31377 eval "$as_ac_var=no"
31380 rm -f core conftest.err conftest.$ac_objext \
31381 conftest$ac_exeext conftest.$ac_ext
31383 ac_res=`eval echo '${'$as_ac_var'}'`
31384 { echo "$as_me:$LINENO: result: $ac_res" >&5
31385 echo "${ECHO_T}$ac_res" >&6; }
31386 if test `eval echo '${'$as_ac_var'}'` = yes; then
31387 cat >>confdefs.h <<_ACEOF
31388 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31394 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31395 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31396 if test "${llvm_cv_c_printf_a+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31400 ac_cpp='$CPP $CPPFLAGS'
31401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31405 if test "$cross_compiling" = yes; then
31406 llvmac_cv_c_printf_a=no
31408 cat >conftest.$ac_ext <<_ACEOF
31412 cat confdefs.h >>conftest.$ac_ext
31413 cat >>conftest.$ac_ext <<_ACEOF
31414 /* end confdefs.h. */
31417 #include <stdlib.h>
31423 volatile double A, B;
31427 sprintf(Buffer, "%a", A);
31431 if (A != 0x1.999999999999ap-4)
31438 rm -f conftest$ac_exeext
31439 if { (ac_try="$ac_link"
31440 case "(($ac_try" in
31441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31442 *) ac_try_echo
=$ac_try;;
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_link") 2>&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31449 { (case "(($ac_try" in
31450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_try") 2>&5
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
31458 llvm_cv_c_printf_a=yes
31460 echo "$as_me: program exited with status $ac_status" >&5
31461 echo "$as_me: failed program was:" >&5
31462 sed 's/^/| /' conftest.$ac_ext >&5
31464 ( exit $ac_status )
31465 llvmac_cv_c_printf_a=no
31467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31472 ac_cpp='$CPP $CPPFLAGS'
31473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31478 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31479 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31480 if test "$llvm_cv_c_printf_a" = "yes"; then
31482 cat >>confdefs.h <<\_ACEOF
31483 #define HAVE_PRINTF_A 1
31488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31489 # for constant arguments. Useless!
31490 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31492 if test "${ac_cv_working_alloca_h+set}" = set; then
31493 echo $ECHO_N "(cached) $ECHO_C" >&6
31495 cat >conftest.$ac_ext <<_ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31501 #include <alloca.h>
31505 char *p = (char *) alloca (2 * sizeof (int));
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31515 *) ac_try_echo
=$ac_try;;
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_link") 2>conftest.er1
31520 grep -v '^ *+' conftest.er1
>conftest.err
31522 cat conftest.err
>&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31538 *) ac_try_echo
=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_working_alloca_h
=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.
$ac_ext >&5
31550 ac_cv_working_alloca_h
=no
31553 rm -f core conftest.err conftest.
$ac_objext \
31554 conftest
$ac_exeext conftest.
$ac_ext
31556 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31557 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31558 if test $ac_cv_working_alloca_h = yes; then
31560 cat >>confdefs.h
<<\_ACEOF
31561 #define HAVE_ALLOCA_H 1
31566 { echo "$as_me:$LINENO: checking for alloca" >&5
31567 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31568 if test "${ac_cv_func_alloca_works+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 cat >conftest.
$ac_ext <<_ACEOF
31574 cat confdefs.h
>>conftest.
$ac_ext
31575 cat >>conftest.
$ac_ext <<_ACEOF
31576 /* end confdefs.h. */
31578 # define alloca __builtin_alloca
31581 # include <malloc.h>
31582 # define alloca _alloca
31585 # include <alloca.h>
31590 # ifndef alloca /* predefined by HP cc +Olibcalls */
31601 char *p = (char *) alloca (1);
31607 rm -f conftest.
$ac_objext conftest
$ac_exeext
31608 if { (ac_try
="$ac_link"
31609 case "(($ac_try" in
31610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_link") 2>conftest.er1
31616 grep -v '^ *+' conftest.er1 >conftest.err
31618 cat conftest.err >&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); } &&
31621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31622 { (case "(($ac_try" in
31623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31624 *) ac_try_echo
=$ac_try;;
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627 (eval "$ac_try") 2>&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; } &&
31631 { ac_try
='test -s conftest$ac_exeext'
31632 { (case "(($ac_try" in
31633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_try") 2>&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 ac_cv_func_alloca_works=yes
31643 echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31646 ac_cv_func_alloca_works=no
31649 rm -f core conftest.err conftest.$ac_objext \
31650 conftest$ac_exeext conftest.$ac_ext
31652 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31655 if test $ac_cv_func_alloca_works = yes; then
31657 cat >>confdefs.h <<\_ACEOF
31658 #define HAVE_ALLOCA 1
31662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31663 # that cause trouble. Some versions do not even contain alloca or
31664 # contain a buggy version. If you still want to use their alloca,
31665 # use ar to extract alloca.o from them instead of compiling alloca.c.
31667 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31669 cat >>confdefs.h <<\_ACEOF
31674 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
31675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
31676 if test "${ac_cv_os_cray+set}" = set; then
31677 echo $ECHO_N "(cached
) $ECHO_C" >&6
31679 cat >conftest.$ac_ext <<_ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h. */
31685 #if defined CRAY && ! defined CRAY2
31692 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
31693 $EGREP "webecray
" >/dev/null 2>&1; then
31701 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
31702 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31703 if test $ac_cv_os_cray = yes; then
31704 for ac_func in _getb67 GETB67 getb67; do
31705 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
31706 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
31707 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
31708 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
31709 echo $ECHO_N "(cached
) $ECHO_C" >&6
31711 cat >conftest.$ac_ext <<_ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h. */
31717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31719 #define $ac_func innocuous_$ac_func
31721 /* System header to define __stub macros and hopefully few prototypes,
31722 which can conflict with char $ac_func (); below.
31723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724 <limits.h> exists even on freestanding compilers. */
31727 # include <limits.h>
31729 # include <assert.h>
31734 /* Override any GCC internal prototype to avoid an error.
31735 Use char because int might match the return type of a GCC
31736 builtin and then its argument prototype would still apply. */
31741 /* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
31744 #if defined __stub_$ac_func || defined __stub___$ac_func
31751 return $ac_func ();
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (ac_try="$ac_link"
31758 case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_link") 2>conftest.er1
31765 grep -v '^ *+' conftest.er1 >conftest.err
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31769 (exit $ac_status); } &&
31770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31771 { (case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31776 (eval "$ac_try") 2>&5
31778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31779 (exit $ac_status); }; } &&
31780 { ac_try='test -s conftest$ac_exeext'
31781 { (case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_try") 2>&5
31788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 eval "$as_ac_var=yes"
31792 echo "$as_me: failed program was
:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31795 eval "$as_ac_var=no
"
31798 rm -f core conftest.err conftest.$ac_objext \
31799 conftest$ac_exeext conftest.$ac_ext
31801 ac_res=`eval echo '${'$as_ac_var'}'`
31802 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31803 echo "${ECHO_T}$ac_res" >&6; }
31804 if test `eval echo '${'$as_ac_var'}'` = yes; then
31806 cat >>confdefs.h <<_ACEOF
31807 #define CRAY_STACKSEG_END $ac_func
31816 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
31817 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
31818 if test "${ac_cv_c_stack_direction+set}" = set; then
31819 echo $ECHO_N "(cached
) $ECHO_C" >&6
31821 if test "$cross_compiling" = yes; then
31822 ac_cv_c_stack_direction=0
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 $ac_includes_default
31832 find_stack_direction ()
31834 static char *addr = 0;
31839 return find_stack_direction ();
31842 return (&dummy > addr) ? 1 : -1;
31848 return find_stack_direction () < 0;
31851 rm -f conftest$ac_exeext
31852 if { (ac_try="$ac_link"
31853 case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_link") 2>&5
31860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31862 { (case "(($ac_try" in
31863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864 *) ac_try_echo=$ac_try;;
31866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31867 (eval "$ac_try") 2>&5
31869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31870 (exit $ac_status); }; }; then
31871 ac_cv_c_stack_direction=1
31873 echo "$as_me: program exited with status
$ac_status" >&5
31874 echo "$as_me: failed program was
:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31877 ( exit $ac_status )
31878 ac_cv_c_stack_direction=-1
31880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31885 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
31886 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31888 cat >>confdefs.h <<_ACEOF
31889 #define STACK_DIRECTION $ac_cv_c_stack_direction
31896 { echo "$as_me:$LINENO: checking
for srand48
/lrand48
/drand48
in <stdlib.h
>" >&5
31897 echo $ECHO_N "checking
for srand48
/lrand48
/drand48
in <stdlib.h
>...
$ECHO_C" >&6; }
31898 if test "${ac_cv_func_rand48+set}" = set; then
31899 echo $ECHO_N "(cached
) $ECHO_C" >&6
31902 ac_cpp='$CXXCPP $CPPFLAGS'
31903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31907 cat >conftest.$ac_ext <<_ACEOF
31910 cat confdefs.h >>conftest.$ac_ext
31911 cat >>conftest.$ac_ext <<_ACEOF
31912 /* end confdefs.h. */
31913 #include <stdlib.h>
31917 srand48(0);lrand48();drand48();
31922 rm -f conftest.$ac_objext
31923 if { (ac_try="$ac_compile"
31924 case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_compile") 2>conftest.er1
31931 grep -v '^ *+' conftest.er1 >conftest.err
31933 cat conftest.err >&5
31934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31935 (exit $ac_status); } &&
31936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
31944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31945 (exit $ac_status); }; } &&
31946 { ac_try='test -s conftest.$ac_objext'
31947 { (case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_try") 2>&5
31954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31955 (exit $ac_status); }; }; then
31956 ac_cv_func_rand48=yes
31958 echo "$as_me: failed program was
:" >&5
31959 sed 's/^/| /' conftest.$ac_ext >&5
31961 ac_cv_func_rand48=no
31964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31966 ac_cpp='$CPP $CPPFLAGS'
31967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31972 { echo "$as_me:$LINENO: result
: $ac_cv_func_rand48" >&5
31973 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31975 if test "$ac_cv_func_rand48" = "yes" ; then
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_RAND48 1
31984 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces
" >&5
31985 echo $ECHO_N "checking whether the compiler implements namespaces...
$ECHO_C" >&6; }
31986 if test "${ac_cv_cxx_namespaces+set}" = set; then
31987 echo $ECHO_N "(cached
) $ECHO_C" >&6
31990 ac_cpp='$CXXCPP $CPPFLAGS'
31991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32001 namespace Outer { namespace Inner { int i = 0; }}
32005 using namespace Outer::Inner; return i;
32010 rm -f conftest.$ac_objext
32011 if { (ac_try="$ac_compile"
32012 case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_compile") 2>conftest.er1
32019 grep -v '^ *+' conftest.er1 >conftest.err
32021 cat conftest.err >&5
32022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32023 (exit $ac_status); } &&
32024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32025 { (case "(($ac_try" in
32026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32027 *) ac_try_echo=$ac_try;;
32029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32030 (eval "$ac_try") 2>&5
32032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32033 (exit $ac_status); }; } &&
32034 { ac_try='test -s conftest.$ac_objext'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32043 (exit $ac_status); }; }; then
32044 ac_cv_cxx_namespaces=yes
32046 echo "$as_me: failed program was
:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32049 ac_cv_cxx_namespaces=no
32052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32054 ac_cpp='$CPP $CPPFLAGS'
32055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32061 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_namespaces" >&5
32062 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32063 if test "$ac_cv_cxx_namespaces" = yes; then
32065 cat >>confdefs.h <<\_ACEOF
32066 #define HAVE_NAMESPACES
32071 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map
" >&5
32072 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map...
$ECHO_C" >&6; }
32073 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32074 echo $ECHO_N "(cached
) $ECHO_C" >&6
32078 ac_cpp='$CXXCPP $CPPFLAGS'
32079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32083 cat >conftest.$ac_ext <<_ACEOF
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h. */
32089 #include <ext/hash_map>
32090 #ifdef HAVE_NAMESPACES
32091 using namespace std;
32096 hash_map<int, int> t;
32101 rm -f conftest.$ac_objext
32102 if { (ac_try="$ac_compile"
32103 case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
32110 grep -v '^ *+' conftest.er1 >conftest.err
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32134 (exit $ac_status); }; }; then
32135 ac_cv_cxx_have_std_ext_hash_map=yes
32137 echo "$as_me: failed program was
:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ac_cv_cxx_have_std_ext_hash_map=no
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32145 ac_cpp='$CPP $CPPFLAGS'
32146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32151 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_map" >&5
32152 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32153 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32156 cat >>confdefs.h <<\_ACEOF
32157 #define HAVE_STD_EXT_HASH_MAP 1
32162 cat >>confdefs.h <<\_ACEOF
32163 #define HAVE_STD_EXT_HASH_MAP 0
32168 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map
" >&5
32169 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map...
$ECHO_C" >&6; }
32170 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32171 echo $ECHO_N "(cached
) $ECHO_C" >&6
32175 ac_cpp='$CXXCPP $CPPFLAGS'
32176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32180 cat >conftest.$ac_ext <<_ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h. */
32186 #include <ext/hash_map>
32187 #ifdef HAVE_NAMESPACES
32188 using namespace __gnu_cxx;
32193 hash_map<int,int> t;
32198 rm -f conftest.$ac_objext
32199 if { (ac_try="$ac_compile"
32200 case "(($ac_try" in
32201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 *) ac_try_echo=$ac_try;;
32204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32205 (eval "$ac_compile") 2>conftest.er1
32207 grep -v '^ *+' conftest.er1 >conftest.err
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32231 (exit $ac_status); }; }; then
32232 ac_cv_cxx_have_gnu_ext_hash_map=yes
32234 echo "$as_me: failed program was
:" >&5
32235 sed 's/^/| /' conftest.$ac_ext >&5
32237 ac_cv_cxx_have_gnu_ext_hash_map=no
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242 ac_cpp='$CPP $CPPFLAGS'
32243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32248 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32249 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32250 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32253 cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_GNU_EXT_HASH_MAP 1
32259 cat >>confdefs.h <<\_ACEOF
32260 #define HAVE_GNU_EXT_HASH_MAP 0
32265 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_map
> defining template class
::hash_map
" >&5
32266 echo $ECHO_N "checking whether the compiler has
<hash_map
> defining template class
::hash_map...
$ECHO_C" >&6; }
32267 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32268 echo $ECHO_N "(cached
) $ECHO_C" >&6
32272 ac_cpp='$CXXCPP $CPPFLAGS'
32273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32277 cat >conftest.$ac_ext <<_ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h. */
32283 #include <hash_map>
32287 hash_map<int,int> t;
32292 rm -f conftest.$ac_objext
32293 if { (ac_try="$ac_compile"
32294 case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_compile") 2>conftest.er1
32301 grep -v '^ *+' conftest.er1 >conftest.err
32303 cat conftest.err >&5
32304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32305 (exit $ac_status); } &&
32306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32307 { (case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_try") 2>&5
32314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32315 (exit $ac_status); }; } &&
32316 { ac_try='test -s conftest.$ac_objext'
32317 { (case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_try") 2>&5
32324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32325 (exit $ac_status); }; }; then
32326 ac_cv_cxx_have_global_hash_map=yes
32328 echo "$as_me: failed program was
:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32331 ac_cv_cxx_have_global_hash_map=no
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32336 ac_cpp='$CPP $CPPFLAGS'
32337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32342 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_map" >&5
32343 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32344 if test "$ac_cv_cxx_have_global_hash_map" = yes
32347 cat >>confdefs.h <<\_ACEOF
32348 #define HAVE_GLOBAL_HASH_MAP 1
32353 cat >>confdefs.h <<\_ACEOF
32354 #define HAVE_GLOBAL_HASH_MAP 0
32359 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set
" >&5
32360 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set...
$ECHO_C" >&6; }
32361 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32362 echo $ECHO_N "(cached
) $ECHO_C" >&6
32366 ac_cpp='$CXXCPP $CPPFLAGS'
32367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371 cat >conftest.$ac_ext <<_ACEOF
32374 cat confdefs.h >>conftest.$ac_ext
32375 cat >>conftest.$ac_ext <<_ACEOF
32376 /* end confdefs.h. */
32377 #include <ext/hash_set>
32378 #ifdef HAVE_NAMESPACES
32379 using namespace std;
32389 rm -f conftest.$ac_objext
32390 if { (ac_try="$ac_compile"
32391 case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_compile") 2>conftest.er1
32398 grep -v '^ *+' conftest.er1 >conftest.err
32400 cat conftest.err >&5
32401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest.$ac_objext'
32414 { (case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 ac_cv_cxx_have_std_ext_hash_set=yes
32425 echo "$as_me: failed program was
:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 ac_cv_cxx_have_std_ext_hash_set=no
32431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32433 ac_cpp='$CPP $CPPFLAGS'
32434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32439 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_set" >&5
32440 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32441 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32444 cat >>confdefs.h <<\_ACEOF
32445 #define HAVE_STD_EXT_HASH_SET 1
32450 cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_STD_EXT_HASH_SET 0
32456 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set
" >&5
32457 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set...
$ECHO_C" >&6; }
32458 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32459 echo $ECHO_N "(cached
) $ECHO_C" >&6
32463 ac_cpp='$CXXCPP $CPPFLAGS'
32464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468 cat >conftest.$ac_ext <<_ACEOF
32471 cat confdefs.h >>conftest.$ac_ext
32472 cat >>conftest.$ac_ext <<_ACEOF
32473 /* end confdefs.h. */
32474 #include <ext/hash_set>
32475 #ifdef HAVE_NAMESPACES
32476 using namespace __gnu_cxx;
32486 rm -f conftest.$ac_objext
32487 if { (ac_try="$ac_compile"
32488 case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_compile") 2>conftest.er1
32495 grep -v '^ *+' conftest.er1 >conftest.err
32497 cat conftest.err >&5
32498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32519 (exit $ac_status); }; }; then
32520 ac_cv_cxx_have_gnu_ext_hash_set=yes
32522 echo "$as_me: failed program was
:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32525 ac_cv_cxx_have_gnu_ext_hash_set=no
32528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530 ac_cpp='$CPP $CPPFLAGS'
32531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32536 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32537 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32538 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_GNU_EXT_HASH_SET 1
32547 cat >>confdefs.h <<\_ACEOF
32548 #define HAVE_GNU_EXT_HASH_SET 0
32553 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_set
> defining template class
::hash_set
" >&5
32554 echo $ECHO_N "checking whether the compiler has
<hash_set
> defining template class
::hash_set...
$ECHO_C" >&6; }
32555 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32556 echo $ECHO_N "(cached
) $ECHO_C" >&6
32560 ac_cpp='$CXXCPP $CPPFLAGS'
32561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565 cat >conftest.$ac_ext <<_ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h. */
32571 #include <hash_set>
32575 hash_set<int> t; return 0;
32580 rm -f conftest.$ac_objext
32581 if { (ac_try="$ac_compile"
32582 case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_compile") 2>conftest.er1
32589 grep -v '^ *+' conftest.er1 >conftest.err
32591 cat conftest.err >&5
32592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32593 (exit $ac_status); } &&
32594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
32602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest.$ac_objext'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 ac_cv_cxx_have_global_hash_set=yes
32616 echo "$as_me: failed program was
:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32619 ac_cv_cxx_have_global_hash_set=no
32622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32624 ac_cpp='$CPP $CPPFLAGS'
32625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_set" >&5
32631 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32632 if test "$ac_cv_cxx_have_global_hash_set" = yes
32635 cat >>confdefs.h <<\_ACEOF
32636 #define HAVE_GLOBAL_HASH_SET 1
32641 cat >>confdefs.h <<\_ACEOF
32642 #define HAVE_GLOBAL_HASH_SET 0
32647 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator
" >&5
32648 echo $ECHO_N "checking whether the compiler has the standard iterator...
$ECHO_C" >&6; }
32649 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32650 echo $ECHO_N "(cached
) $ECHO_C" >&6
32654 ac_cpp='$CXXCPP $CPPFLAGS'
32655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32659 cat >conftest.$ac_ext <<_ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h. */
32665 #include <iterator>
32666 #ifdef HAVE_NAMESPACES
32667 using namespace std;
32672 iterator<int,int,int> t; return 0;
32677 rm -f conftest.$ac_objext
32678 if { (ac_try="$ac_compile"
32679 case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_compile") 2>conftest.er1
32686 grep -v '^ *+' conftest.er1 >conftest.err
32688 cat conftest.err >&5
32689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest.$ac_objext'
32702 { (case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32707 (eval "$ac_try") 2>&5
32709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32710 (exit $ac_status); }; }; then
32711 ac_cv_cxx_have_std_iterator=yes
32713 echo "$as_me: failed program was
:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32716 ac_cv_cxx_have_std_iterator=no
32719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721 ac_cpp='$CPP $CPPFLAGS'
32722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_iterator" >&5
32729 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32730 if test "$ac_cv_cxx_have_std_iterator" = yes
32733 cat >>confdefs.h <<\_ACEOF
32734 #define HAVE_STD_ITERATOR 1
32739 cat >>confdefs.h <<\_ACEOF
32740 #define HAVE_STD_ITERATOR 0
32745 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator
" >&5
32746 echo $ECHO_N "checking whether the compiler has the bidirectional iterator...
$ECHO_C" >&6; }
32747 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32748 echo $ECHO_N "(cached
) $ECHO_C" >&6
32752 ac_cpp='$CXXCPP $CPPFLAGS'
32753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32763 #include <iterator>
32764 #ifdef HAVE_NAMESPACES
32765 using namespace std;
32770 bidirectional_iterator<int,int> t; return 0;
32775 rm -f conftest.$ac_objext
32776 if { (ac_try="$ac_compile"
32777 case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_cv_cxx_have_bi_iterator=yes
32811 echo "$as_me: failed program was
:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 ac_cv_cxx_have_bi_iterator=no
32817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 ac_cpp='$CPP $CPPFLAGS'
32820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32826 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_bi_iterator" >&5
32827 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32828 if test "$ac_cv_cxx_have_bi_iterator" = yes
32831 cat >>confdefs.h <<\_ACEOF
32832 #define HAVE_BI_ITERATOR 1
32837 cat >>confdefs.h <<\_ACEOF
32838 #define HAVE_BI_ITERATOR 0
32843 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators
" >&5
32844 echo $ECHO_N "checking whether the compiler has forward iterators...
$ECHO_C" >&6; }
32845 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32846 echo $ECHO_N "(cached
) $ECHO_C" >&6
32850 ac_cpp='$CXXCPP $CPPFLAGS'
32851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32855 cat >conftest.$ac_ext <<_ACEOF
32858 cat confdefs.h >>conftest.$ac_ext
32859 cat >>conftest.$ac_ext <<_ACEOF
32860 /* end confdefs.h. */
32861 #include <iterator>
32862 #ifdef HAVE_NAMESPACES
32863 using namespace std;
32868 forward_iterator<int,int> t; return 0;
32873 rm -f conftest.$ac_objext
32874 if { (ac_try="$ac_compile"
32875 case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_compile") 2>conftest.er1
32882 grep -v '^ *+' conftest.er1 >conftest.err
32884 cat conftest.err >&5
32885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32886 (exit $ac_status); } &&
32887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32888 { (case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32893 (eval "$ac_try") 2>&5
32895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32896 (exit $ac_status); }; } &&
32897 { ac_try='test -s conftest.$ac_objext'
32898 { (case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_try") 2>&5
32905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32906 (exit $ac_status); }; }; then
32907 ac_cv_cxx_have_fwd_iterator=yes
32909 echo "$as_me: failed program was
:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32912 ac_cv_cxx_have_fwd_iterator=no
32915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32917 ac_cpp='$CPP $CPPFLAGS'
32918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32924 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_fwd_iterator" >&5
32925 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32926 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32929 cat >>confdefs.h <<\_ACEOF
32930 #define HAVE_FWD_ITERATOR 1
32935 cat >>confdefs.h <<\_ACEOF
32936 #define HAVE_FWD_ITERATOR 0
32942 { echo "$as_me:$LINENO: checking
for isnan
in <math.h
>" >&5
32943 echo $ECHO_N "checking
for isnan
in <math.h
>...
$ECHO_C" >&6; }
32944 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32945 echo $ECHO_N "(cached
) $ECHO_C" >&6
32948 ac_cpp='$CXXCPP $CPPFLAGS'
32949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32953 cat >conftest.$ac_ext <<_ACEOF
32956 cat confdefs.h >>conftest.$ac_ext
32957 cat >>conftest.$ac_ext <<_ACEOF
32958 /* end confdefs.h. */
32968 rm -f conftest.$ac_objext
32969 if { (ac_try="$ac_compile"
32970 case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_compile") 2>conftest.er1
32977 grep -v '^ *+' conftest.er1 >conftest.err
32979 cat conftest.err >&5
32980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32981 (exit $ac_status); } &&
32982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32991 (exit $ac_status); }; } &&
32992 { ac_try='test -s conftest.$ac_objext'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
33000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33001 (exit $ac_status); }; }; then
33002 ac_cv_func_isnan_in_math_h=yes
33004 echo "$as_me: failed program was
:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33007 ac_cv_func_isnan_in_math_h=no
33010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33012 ac_cpp='$CPP $CPPFLAGS'
33013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33018 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_math_h" >&5
33019 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33022 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33024 cat >>confdefs.h <<\_ACEOF
33025 #define HAVE_ISNAN_IN_MATH_H 1
33030 { echo "$as_me:$LINENO: checking
for isnan
in <cmath
>" >&5
33031 echo $ECHO_N "checking
for isnan
in <cmath
>...
$ECHO_C" >&6; }
33032 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33033 echo $ECHO_N "(cached
) $ECHO_C" >&6
33036 ac_cpp='$CXXCPP $CPPFLAGS'
33037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33041 cat >conftest.$ac_ext <<_ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h. */
33056 rm -f conftest.$ac_objext
33057 if { (ac_try="$ac_compile"
33058 case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_compile") 2>conftest.er1
33065 grep -v '^ *+' conftest.er1 >conftest.err
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
33088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 ac_cv_func_isnan_in_cmath=yes
33092 echo "$as_me: failed program was
:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 ac_cv_func_isnan_in_cmath=no
33098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33100 ac_cpp='$CPP $CPPFLAGS'
33101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33106 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_cmath" >&5
33107 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33109 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33111 cat >>confdefs.h <<\_ACEOF
33112 #define HAVE_ISNAN_IN_CMATH 1
33117 { echo "$as_me:$LINENO: checking
for std
::isnan
in <cmath
>" >&5
33118 echo $ECHO_N "checking
for std
::isnan
in <cmath
>...
$ECHO_C" >&6; }
33119 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33120 echo $ECHO_N "(cached
) $ECHO_C" >&6
33123 ac_cpp='$CXXCPP $CPPFLAGS'
33124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33128 cat >conftest.$ac_ext <<_ACEOF
33131 cat confdefs.h >>conftest.$ac_ext
33132 cat >>conftest.$ac_ext <<_ACEOF
33133 /* end confdefs.h. */
33138 float f; std::isnan(f);
33143 rm -f conftest.$ac_objext
33144 if { (ac_try="$ac_compile"
33145 case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_compile") 2>conftest.er1
33152 grep -v '^ *+' conftest.er1 >conftest.err
33154 cat conftest.err >&5
33155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33156 (exit $ac_status); } &&
33157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33166 (exit $ac_status); }; } &&
33167 { ac_try='test -s conftest.$ac_objext'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33176 (exit $ac_status); }; }; then
33177 ac_cv_func_std_isnan_in_cmath=yes
33179 echo "$as_me: failed program was
:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33182 ac_cv_func_std_isnan_in_cmath=no
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187 ac_cpp='$CPP $CPPFLAGS'
33188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33193 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isnan_in_cmath" >&5
33194 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33196 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_STD_ISNAN_IN_CMATH 1
33205 { echo "$as_me:$LINENO: checking
for isinf
in <math.h
>" >&5
33206 echo $ECHO_N "checking
for isinf
in <math.h
>...
$ECHO_C" >&6; }
33207 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33208 echo $ECHO_N "(cached
) $ECHO_C" >&6
33211 ac_cpp='$CXXCPP $CPPFLAGS'
33212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33216 cat >conftest.$ac_ext <<_ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h. */
33231 rm -f conftest.$ac_objext
33232 if { (ac_try="$ac_compile"
33233 case "(($ac_try" in
33234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 *) ac_try_echo=$ac_try;;
33237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33238 (eval "$ac_compile") 2>conftest.er1
33240 grep -v '^ *+' conftest.er1 >conftest.err
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33244 (exit $ac_status); } &&
33245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33246 { (case "(($ac_try" in
33247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33248 *) ac_try_echo=$ac_try;;
33250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33251 (eval "$ac_try") 2>&5
33253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33254 (exit $ac_status); }; } &&
33255 { ac_try='test -s conftest.$ac_objext'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33264 (exit $ac_status); }; }; then
33265 ac_cv_func_isinf_in_math_h=yes
33267 echo "$as_me: failed program was
:" >&5
33268 sed 's/^/| /' conftest.$ac_ext >&5
33270 ac_cv_func_isinf_in_math_h=no
33273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33275 ac_cpp='$CPP $CPPFLAGS'
33276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33281 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_math_h" >&5
33282 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33284 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33286 cat >>confdefs.h <<\_ACEOF
33287 #define HAVE_ISINF_IN_MATH_H 1
33292 { echo "$as_me:$LINENO: checking
for isinf
in <cmath
>" >&5
33293 echo $ECHO_N "checking
for isinf
in <cmath
>...
$ECHO_C" >&6; }
33294 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33295 echo $ECHO_N "(cached
) $ECHO_C" >&6
33298 ac_cpp='$CXXCPP $CPPFLAGS'
33299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33303 cat >conftest.$ac_ext <<_ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33318 rm -f conftest.$ac_objext
33319 if { (ac_try="$ac_compile"
33320 case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_compile") 2>conftest.er1
33327 grep -v '^ *+' conftest.er1 >conftest.err
33329 cat conftest.err >&5
33330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33331 (exit $ac_status); } &&
33332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33333 { (case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_try") 2>&5
33340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33341 (exit $ac_status); }; } &&
33342 { ac_try='test -s conftest.$ac_objext'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33351 (exit $ac_status); }; }; then
33352 ac_cv_func_isinf_in_cmath=yes
33354 echo "$as_me: failed program was
:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33357 ac_cv_func_isinf_in_cmath=no
33360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33362 ac_cpp='$CPP $CPPFLAGS'
33363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33368 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_cmath" >&5
33369 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33371 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33373 cat >>confdefs.h <<\_ACEOF
33374 #define HAVE_ISINF_IN_CMATH 1
33379 { echo "$as_me:$LINENO: checking
for std
::isinf
in <cmath
>" >&5
33380 echo $ECHO_N "checking
for std
::isinf
in <cmath
>...
$ECHO_C" >&6; }
33381 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33382 echo $ECHO_N "(cached
) $ECHO_C" >&6
33385 ac_cpp='$CXXCPP $CPPFLAGS'
33386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33390 cat >conftest.$ac_ext <<_ACEOF
33393 cat confdefs.h >>conftest.$ac_ext
33394 cat >>conftest.$ac_ext <<_ACEOF
33395 /* end confdefs.h. */
33400 float f; std::isinf(f)}
33405 rm -f conftest.$ac_objext
33406 if { (ac_try="$ac_compile"
33407 case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_compile") 2>conftest.er1
33414 grep -v '^ *+' conftest.er1 >conftest.err
33416 cat conftest.err >&5
33417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33418 (exit $ac_status); } &&
33419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33420 { (case "(($ac_try" in
33421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422 *) ac_try_echo=$ac_try;;
33424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33425 (eval "$ac_try") 2>&5
33427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33428 (exit $ac_status); }; } &&
33429 { ac_try='test -s conftest.$ac_objext'
33430 { (case "(($ac_try" in
33431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33432 *) ac_try_echo=$ac_try;;
33434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33435 (eval "$ac_try") 2>&5
33437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33438 (exit $ac_status); }; }; then
33439 ac_cv_func_std_isinf_in_cmath=yes
33441 echo "$as_me: failed program was
:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33444 ac_cv_func_std_isinf_in_cmath=no
33447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33449 ac_cpp='$CPP $CPPFLAGS'
33450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33455 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isinf_in_cmath" >&5
33456 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33458 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33460 cat >>confdefs.h <<\_ACEOF
33461 #define HAVE_STD_ISINF_IN_CMATH 1
33466 { echo "$as_me:$LINENO: checking
for finite
in <ieeefp.h
>" >&5
33467 echo $ECHO_N "checking
for finite
in <ieeefp.h
>...
$ECHO_C" >&6; }
33468 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33469 echo $ECHO_N "(cached
) $ECHO_C" >&6
33472 ac_cpp='$CXXCPP $CPPFLAGS'
33473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33477 cat >conftest.$ac_ext <<_ACEOF
33480 cat confdefs.h >>conftest.$ac_ext
33481 cat >>conftest.$ac_ext <<_ACEOF
33482 /* end confdefs.h. */
33483 #include <ieeefp.h>
33487 float f; finite(f);
33492 rm -f conftest.$ac_objext
33493 if { (ac_try="$ac_compile"
33494 case "(($ac_try" in
33495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33496 *) ac_try_echo=$ac_try;;
33498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33499 (eval "$ac_compile") 2>conftest.er1
33501 grep -v '^ *+' conftest.er1 >conftest.err
33503 cat conftest.err >&5
33504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33505 (exit $ac_status); } &&
33506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33507 { (case "(($ac_try" in
33508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33509 *) ac_try_echo=$ac_try;;
33511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33512 (eval "$ac_try") 2>&5
33514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33515 (exit $ac_status); }; } &&
33516 { ac_try='test -s conftest.$ac_objext'
33517 { (case "(($ac_try" in
33518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33519 *) ac_try_echo=$ac_try;;
33521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33522 (eval "$ac_try") 2>&5
33524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33525 (exit $ac_status); }; }; then
33526 ac_cv_func_finite_in_ieeefp_h=yes
33528 echo "$as_me: failed program was
:" >&5
33529 sed 's/^/| /' conftest.$ac_ext >&5
33531 ac_cv_func_finite_in_ieeefp_h=no
33534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33536 ac_cpp='$CPP $CPPFLAGS'
33537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33542 { echo "$as_me:$LINENO: result
: $ac_cv_func_finite_in_ieeefp_h" >&5
33543 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33545 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33547 cat >>confdefs.h <<\_ACEOF
33548 #define HAVE_FINITE_IN_IEEEFP_H 1
33555 if test "$llvm_cv_platform_type" = "Unix
" ; then
33558 for ac_header in stdlib.h unistd.h
33560 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
33561 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33562 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
33563 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
33564 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33565 echo $ECHO_N "(cached
) $ECHO_C" >&6
33567 ac_res=`eval echo '${'$as_ac_Header'}'`
33568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33569 echo "${ECHO_T}$ac_res" >&6; }
33571 # Is the header compilable?
33572 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
33573 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
33574 cat >conftest.$ac_ext <<_ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h. */
33580 $ac_includes_default
33581 #include <$ac_header>
33583 rm -f conftest.$ac_objext
33584 if { (ac_try="$ac_compile"
33585 case "(($ac_try" in
33586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33587 *) ac_try_echo=$ac_try;;
33589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33590 (eval "$ac_compile") 2>conftest.er1
33592 grep -v '^ *+' conftest.er1 >conftest.err
33594 cat conftest.err >&5
33595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33596 (exit $ac_status); } &&
33597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33598 { (case "(($ac_try" in
33599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33600 *) ac_try_echo=$ac_try;;
33602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33603 (eval "$ac_try") 2>&5
33605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33606 (exit $ac_status); }; } &&
33607 { ac_try='test -s conftest.$ac_objext'
33608 { (case "(($ac_try" in
33609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 *) ac_try_echo=$ac_try;;
33612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33613 (eval "$ac_try") 2>&5
33615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33616 (exit $ac_status); }; }; then
33617 ac_header_compiler=yes
33619 echo "$as_me: failed program was
:" >&5
33620 sed 's/^/| /' conftest.$ac_ext >&5
33622 ac_header_compiler=no
33625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33626 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
33627 echo "${ECHO_T}$ac_header_compiler" >&6; }
33629 # Is the header present?
33630 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
33631 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
33632 cat >conftest.$ac_ext <<_ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33638 #include <$ac_header>
33640 if { (ac_try="$ac_cpp conftest.
$ac_ext"
33641 case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
33648 grep -v '^ *+' conftest.er1 >conftest.err
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33652 (exit $ac_status); } >/dev/null; then
33653 if test -s conftest.err; then
33654 ac_cpp_err=$ac_c_preproc_warn_flag
33655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33662 if test -z "$ac_cpp_err"; then
33663 ac_header_preproc=yes
33665 echo "$as_me: failed program was
:" >&5
33666 sed 's/^/| /' conftest.$ac_ext >&5
33668 ac_header_preproc=no
33671 rm -f conftest.err conftest.$ac_ext
33672 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
33673 echo "${ECHO_T}$ac_header_preproc" >&6; }
33675 # So? What about this header?
33676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33678 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
33679 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
33680 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
33681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
33682 ac_header_preproc=yes
33685 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
33686 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
33687 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
33688 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
33689 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
33690 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
33691 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
33692 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
33693 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
33694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
33695 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
33696 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
33698 ## ----------------------------------- ##
33699 ## Report this to llvmbugs@cs.uiuc.edu ##
33700 ## ----------------------------------- ##
33702 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
33705 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
33706 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
33707 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
33708 echo $ECHO_N "(cached
) $ECHO_C" >&6
33710 eval "$as_ac_Header=\
$ac_header_preproc"
33712 ac_res=`eval echo '${'$as_ac_Header'}'`
33713 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33714 echo "${ECHO_T}$ac_res" >&6; }
33717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33718 cat >>confdefs.h <<_ACEOF
33719 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
33727 for ac_func in getpagesize
33729 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
33730 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
33731 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
33732 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
33733 echo $ECHO_N "(cached
) $ECHO_C" >&6
33735 cat >conftest.$ac_ext <<_ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h. */
33741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33743 #define $ac_func innocuous_$ac_func
33745 /* System header to define __stub macros and hopefully few prototypes,
33746 which can conflict with char $ac_func (); below.
33747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33748 <limits.h> exists even on freestanding compilers. */
33751 # include <limits.h>
33753 # include <assert.h>
33758 /* Override any GCC internal prototype to avoid an error.
33759 Use char because int might match the return type of a GCC
33760 builtin and then its argument prototype would still apply. */
33765 /* The GNU C library defines this for functions which it implements
33766 to always fail with ENOSYS. Some functions are actually named
33767 something starting with __ and the normal name is an alias. */
33768 #if defined __stub_$ac_func || defined __stub___$ac_func
33775 return $ac_func ();
33780 rm -f conftest.$ac_objext conftest$ac_exeext
33781 if { (ac_try="$ac_link"
33782 case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_link") 2>conftest.er1
33789 grep -v '^ *+' conftest.er1 >conftest.err
33791 cat conftest.err >&5
33792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33793 (exit $ac_status); } &&
33794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33795 { (case "(($ac_try" in
33796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797 *) ac_try_echo=$ac_try;;
33799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33800 (eval "$ac_try") 2>&5
33802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33803 (exit $ac_status); }; } &&
33804 { ac_try='test -s conftest$ac_exeext'
33805 { (case "(($ac_try" in
33806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807 *) ac_try_echo=$ac_try;;
33809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33810 (eval "$ac_try") 2>&5
33812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33813 (exit $ac_status); }; }; then
33814 eval "$as_ac_var=yes"
33816 echo "$as_me: failed program was
:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 eval "$as_ac_var=no
"
33822 rm -f core conftest.err conftest.$ac_objext \
33823 conftest$ac_exeext conftest.$ac_ext
33825 ac_res=`eval echo '${'$as_ac_var'}'`
33826 { echo "$as_me:$LINENO: result
: $ac_res" >&5
33827 echo "${ECHO_T}$ac_res" >&6; }
33828 if test `eval echo '${'$as_ac_var'}'` = yes; then
33829 cat >>confdefs.h <<_ACEOF
33830 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
33836 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
33837 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
33838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33839 echo $ECHO_N "(cached
) $ECHO_C" >&6
33841 if test "$cross_compiling" = yes; then
33842 ac_cv_func_mmap_fixed_mapped=no
33844 cat >conftest.$ac_ext <<_ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33850 $ac_includes_default
33851 /* malloc might have been renamed as rpl_malloc. */
33854 /* Thanks to Mike Haertel and Jim Avera for this test.
33855 Here is a matrix of mmap possibilities:
33856 mmap private not fixed
33857 mmap private fixed at somewhere currently unmapped
33858 mmap private fixed at somewhere already mapped
33859 mmap shared not fixed
33860 mmap shared fixed at somewhere currently unmapped
33861 mmap shared fixed at somewhere already mapped
33862 For private mappings, we should verify that changes cannot be read()
33863 back from the file, nor mmap's back from the file at a different
33864 address. (There have been systems where private was not correctly
33865 implemented like the infamous i386 svr4.0, and systems where the
33866 VM page cache was not coherent with the file system buffer cache
33867 like early versions of FreeBSD and possibly contemporary NetBSD.)
33868 For shared mappings, we should conversely verify that changes get
33869 propagated back to all the places they're supposed to be.
33871 Grep wants private fixed already mapped.
33872 The main things grep needs to know about mmap are:
33873 * does it exist and is it safe to write into the mmap'd area
33874 * how to use it (BSD variants) */
33877 #include <sys/mman.h>
33879 #if !STDC_HEADERS && !HAVE_STDLIB_H
33883 /* This mess was copied from the GNU getpagesize.h. */
33884 #if !HAVE_GETPAGESIZE
33885 /* Assume that all systems that can run configure have sys/param.h. */
33886 # if !HAVE_SYS_PARAM_H
33887 # define HAVE_SYS_PARAM_H 1
33890 # ifdef _SC_PAGESIZE
33891 # define getpagesize() sysconf(_SC_PAGESIZE)
33892 # else /* no _SC_PAGESIZE */
33893 # if HAVE_SYS_PARAM_H
33894 # include <sys/param.h>
33895 # ifdef EXEC_PAGESIZE
33896 # define getpagesize() EXEC_PAGESIZE
33897 # else /* no EXEC_PAGESIZE */
33899 # define getpagesize() NBPG * CLSIZE
33902 # endif /* no CLSIZE */
33903 # else /* no NBPG */
33905 # define getpagesize() NBPC
33906 # else /* no NBPC */
33908 # define getpagesize() PAGESIZE
33909 # endif /* PAGESIZE */
33910 # endif /* no NBPC */
33911 # endif /* no NBPG */
33912 # endif /* no EXEC_PAGESIZE */
33913 # else /* no HAVE_SYS_PARAM_H */
33914 # define getpagesize() 8192 /* punt totally */
33915 # endif /* no HAVE_SYS_PARAM_H */
33916 # endif /* no _SC_PAGESIZE */
33918 #endif /* no HAVE_GETPAGESIZE */
33923 char *data, *data2, *data3;
33927 pagesize = getpagesize ();
33929 /* First, make a file with some known garbage in it. */
33930 data = (char *) malloc (pagesize);
33933 for (i = 0; i < pagesize; ++i)
33934 *(data + i) = rand ();
33936 fd = creat ("conftest.mmap
", 0600);
33939 if (write (fd, data, pagesize) != pagesize)
33943 /* Next, try to mmap the file at a fixed address which already has
33944 something else allocated at it. If we can, also make sure that
33945 we see the same garbage. */
33946 fd = open ("conftest.mmap
", O_RDWR);
33949 data2 = (char *) malloc (2 * pagesize);
33952 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33956 for (i = 0; i < pagesize; ++i)
33957 if (*(data + i) != *(data2 + i))
33960 /* Finally, make sure that changes to the mapped area do not
33961 percolate back to the file as seen by read(). (This is a bug on
33962 some variants of i386 svr4.0.) */
33963 for (i = 0; i < pagesize; ++i)
33964 *(data2 + i) = *(data2 + i) + 1;
33965 data3 = (char *) malloc (pagesize);
33968 if (read (fd, data3, pagesize) != pagesize)
33970 for (i = 0; i < pagesize; ++i)
33971 if (*(data + i) != *(data3 + i))
33977 rm -f conftest$ac_exeext
33978 if { (ac_try="$ac_link"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>&5
33986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
33995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
33996 (exit $ac_status); }; }; then
33997 ac_cv_func_mmap_fixed_mapped=yes
33999 echo "$as_me: program exited with status
$ac_status" >&5
34000 echo "$as_me: failed program was
:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 ( exit $ac_status )
34004 ac_cv_func_mmap_fixed_mapped=no
34006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34011 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
34012 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34013 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34015 cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_MMAP 1
34020 rm -f conftest.mmap
34022 { echo "$as_me:$LINENO: checking
for mmap of files
" >&5
34023 echo $ECHO_N "checking
for mmap of files...
$ECHO_C" >&6; }
34024 if test "${ac_cv_func_mmap_file+set}" = set; then
34025 echo $ECHO_N "(cached
) $ECHO_C" >&6
34028 ac_cpp='$CPP $CPPFLAGS'
34029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34033 if test "$cross_compiling" = yes; then
34034 ac_cv_func_mmap_file=no
34036 cat >conftest.$ac_ext <<_ACEOF
34040 cat confdefs.h >>conftest.$ac_ext
34041 cat >>conftest.$ac_ext <<_ACEOF
34042 /* end confdefs.h. */
34044 #include <sys/types.h>
34045 #include <sys/mman.h>
34053 fd = creat ("foo
",0777);
34054 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34056 return (fd != (int) MAP_FAILED);
34061 rm -f conftest$ac_exeext
34062 if { (ac_try="$ac_link"
34063 case "(($ac_try" in
34064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_link") 2>&5
34070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34072 { (case "(($ac_try" in
34073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074 *) ac_try_echo=$ac_try;;
34076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34077 (eval "$ac_try") 2>&5
34079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34080 (exit $ac_status); }; }; then
34081 ac_cv_func_mmap_file=yes
34083 echo "$as_me: program exited with status
$ac_status" >&5
34084 echo "$as_me: failed program was
:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34087 ( exit $ac_status )
34088 ac_cv_func_mmap_file=no
34090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34095 ac_cpp='$CPP $CPPFLAGS'
34096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34102 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_file" >&5
34103 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34104 if test "$ac_cv_func_mmap_file" = yes; then
34106 cat >>confdefs.h <<\_ACEOF
34107 #define HAVE_MMAP_FILE
34114 { echo "$as_me:$LINENO: checking
if /dev
/zero is needed
for mmap
" >&5
34115 echo $ECHO_N "checking
if /dev
/zero is needed
for mmap...
$ECHO_C" >&6; }
34116 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34117 echo $ECHO_N "(cached
) $ECHO_C" >&6
34119 if test "$llvm_cv_os_type" = "Interix
" ; then
34120 ac_cv_need_dev_zero_for_mmap=yes
34122 ac_cv_need_dev_zero_for_mmap=no
34126 { echo "$as_me:$LINENO: result
: $ac_cv_need_dev_zero_for_mmap" >&5
34127 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34128 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34130 cat >>confdefs.h <<\_ACEOF
34131 #define NEED_DEV_ZERO_FOR_MMAP 1
34136 if test "$ac_cv_func_mmap_fixed_mapped" = "no
"
34138 { echo "$as_me:$LINENO: WARNING
: mmap
() of a fixed address required but not supported
" >&5
34139 echo "$as_me: WARNING
: mmap
() of a fixed address required but not supported
" >&2;}
34141 if test "$ac_cv_func_mmap_file" = "no
"
34143 { echo "$as_me:$LINENO: WARNING
: mmap
() of files required but not found
" >&5
34144 echo "$as_me: WARNING
: mmap
() of files required but not found
" >&2;}
34150 for ac_func in __dso_handle
34152 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
34153 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
34154 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
34155 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
34156 echo $ECHO_N "(cached
) $ECHO_C" >&6
34158 cat >conftest.$ac_ext <<_ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h. */
34164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34166 #define $ac_func innocuous_$ac_func
34168 /* System header to define __stub macros and hopefully few prototypes,
34169 which can conflict with char $ac_func (); below.
34170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34171 <limits.h> exists even on freestanding compilers. */
34174 # include <limits.h>
34176 # include <assert.h>
34181 /* Override any GCC internal prototype to avoid an error.
34182 Use char because int might match the return type of a GCC
34183 builtin and then its argument prototype would still apply. */
34188 /* The GNU C library defines this for functions which it implements
34189 to always fail with ENOSYS. Some functions are actually named
34190 something starting with __ and the normal name is an alias. */
34191 #if defined __stub_$ac_func || defined __stub___$ac_func
34198 return $ac_func ();
34203 rm -f conftest.$ac_objext conftest$ac_exeext
34204 if { (ac_try="$ac_link"
34205 case "(($ac_try" in
34206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207 *) ac_try_echo=$ac_try;;
34209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34210 (eval "$ac_link") 2>conftest.er1
34212 grep -v '^ *+' conftest.er1 >conftest.err
34214 cat conftest.err >&5
34215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34216 (exit $ac_status); } &&
34217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34218 { (case "(($ac_try" in
34219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220 *) ac_try_echo=$ac_try;;
34222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34223 (eval "$ac_try") 2>&5
34225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34226 (exit $ac_status); }; } &&
34227 { ac_try='test -s conftest$ac_exeext'
34228 { (case "(($ac_try" in
34229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230 *) ac_try_echo=$ac_try;;
34232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34233 (eval "$ac_try") 2>&5
34235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34236 (exit $ac_status); }; }; then
34237 eval "$as_ac_var=yes"
34239 echo "$as_me: failed program was
:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34242 eval "$as_ac_var=no
"
34245 rm -f core conftest.err conftest.$ac_objext \
34246 conftest$ac_exeext conftest.$ac_ext
34248 ac_res=`eval echo '${'$as_ac_var'}'`
34249 { echo "$as_me:$LINENO: result
: $ac_res" >&5
34250 echo "${ECHO_T}$ac_res" >&6; }
34251 if test `eval echo '${'$as_ac_var'}'` = yes; then
34252 cat >>confdefs.h <<_ACEOF
34253 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
34260 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane
" >&5
34261 echo $ECHO_N "checking whether llvm-gcc is sane...
$ECHO_C" >&6; }
34262 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34263 echo $ECHO_N "(cached
) $ECHO_C" >&6
34265 llvm_cv_llvmgcc_sanity="no
"
34266 if test -x "$LLVMGCC" ; then
34267 cp /dev/null conftest.c
34268 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34269 grep 'target datalayout =' > /dev/null 2>&1
34270 if test $? -eq 0 ; then
34271 llvm_cv_llvmgcc_sanity="yes"
34276 { echo "$as_me:$LINENO: result
: $llvm_cv_llvmgcc_sanity" >&5
34277 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34279 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34280 { echo "$as_me:$LINENO: checking llvm-gcc component support
" >&5
34281 echo $ECHO_N "checking llvm-gcc component support...
$ECHO_C" >&6; }
34282 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34283 LLVMCC1=$llvmcc1path
34285 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34286 LLVMCC1PLUS=$llvmcc1pluspath
34288 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34289 LLVMGCCDIR=$llvmgccdir
34291 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34292 LLVMGCCLIBEXEC=$llvmgcclibexec
34294 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34295 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34296 LLVMGCC_VERSION=$llvmgccversion
34298 LLVMGCC_MAJVERS=$llvmgccmajvers
34300 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34301 LLVMGCC_LANGS=$llvmgcclangs
34303 { echo "$as_me:$LINENO: result
: ok
" >&5
34304 echo "${ECHO_T}ok
" >&6; }
34307 SHLIBEXT=$libltdl_cv_shlibext
34310 # Translate the various configuration directories and other basic
34311 # information into substitutions that will end up in Makefile.config.in
34312 # that these configured values can be used by the makefiles
34313 if test "${prefix}" = "NONE
" ; then
34314 prefix="/usr
/local"
34316 eval LLVM_PREFIX="${prefix}";
34317 eval LLVM_BINDIR="${prefix}/bin
";
34318 eval LLVM_LIBDIR="${prefix}/lib
";
34319 eval LLVM_DATADIR="${prefix}/share
/llvm
";
34320 eval LLVM_DOCSDIR="${prefix}/docs
/llvm
";
34321 eval LLVM_ETCDIR="${prefix}/etc
/llvm
";
34322 eval LLVM_INCLUDEDIR="${prefix}/include
";
34323 eval LLVM_INFODIR="${prefix}/info
";
34324 eval LLVM_MANDIR="${prefix}/man
";
34325 LLVM_CONFIGTIME=`date`
34337 # Place the various directores into the config.h file as #defines so that we
34338 # can know about the installation paths within LLVM.
34340 cat >>confdefs.h <<_ACEOF
34341 #define LLVM_PREFIX "$LLVM_PREFIX"
34345 cat >>confdefs.h <<_ACEOF
34346 #define LLVM_BINDIR "$LLVM_BINDIR"
34350 cat >>confdefs.h <<_ACEOF
34351 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34355 cat >>confdefs.h <<_ACEOF
34356 #define LLVM_DATADIR "$LLVM_DATADIR"
34360 cat >>confdefs.h <<_ACEOF
34361 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34365 cat >>confdefs.h <<_ACEOF
34366 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34370 cat >>confdefs.h <<_ACEOF
34371 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34375 cat >>confdefs.h <<_ACEOF
34376 #define LLVM_INFODIR "$LLVM_INFODIR"
34380 cat >>confdefs.h <<_ACEOF
34381 #define LLVM_MANDIR "$LLVM_MANDIR"
34385 cat >>confdefs.h <<_ACEOF
34386 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34390 cat >>confdefs.h <<_ACEOF
34391 #define LLVM_HOSTTRIPLE "$host"
34395 # Determine which bindings to build.
34396 if test "$BINDINGS_TO_BUILD" = auto ; then
34397 BINDINGS_TO_BUILD=""
34398 if test "x
$OCAMLC" != x -a "x
$OCAMLDEP" != x ; then
34399 BINDINGS_TO_BUILD="ocaml
$BINDINGS_TO_BUILD"
34402 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34405 # This isn't really configurey, but it avoids having to repeat the list in
34410 # Do any work necessary to ensure that bindings have what they need.
34411 binding_prereqs_failed=0
34412 for a_binding in $BINDINGS_TO_BUILD ; do
34413 case "$a_binding" in
34415 if test "x
$OCAMLC" = x ; then
34416 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&5
34417 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&2;}
34418 binding_prereqs_failed=1
34420 if test "x
$OCAMLDEP" = x ; then
34421 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&5
34422 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&2;}
34423 binding_prereqs_failed=1
34425 if test "x
$OCAMLOPT" = x ; then
34426 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&5
34427 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&2;}
34429 if test "x
$with_ocaml_libdir" != xauto ; then
34430 OCAML_LIBDIR=$with_ocaml_libdir
34433 ocaml_stdlib="`"$OCAMLC" -where`"
34434 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~
"
34436 # ocaml stdlib is beneath our prefix; use stdlib
34437 OCAML_LIBDIR=$ocaml_stdlib
34440 # ocaml stdlib is outside our prefix; use libdir/ocaml
34441 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34448 if test "$binding_prereqs_failed" = 1 ; then
34449 { { echo "$as_me:$LINENO: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&5
34450 echo "$as_me: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&2;}
34451 { (exit 1); exit 1; }; }
34454 { echo "$as_me:$LINENO: checking
for compiler
-fvisibility-inlines-hidden option
" >&5
34455 echo $ECHO_N "checking
for compiler
-fvisibility-inlines-hidden option...
$ECHO_C" >&6; }
34456 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34457 echo $ECHO_N "(cached
) $ECHO_C" >&6
34460 ac_cpp='$CXXCPP $CPPFLAGS'
34461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34465 oldcxxflags="$CXXFLAGS"
34466 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34467 cat >conftest.$ac_ext <<_ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h. */
34482 rm -f conftest.$ac_objext
34483 if { (ac_try="$ac_compile"
34484 case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34489 (eval "$ac_compile") 2>conftest.er1
34491 grep -v '^ *+' conftest.er1 >conftest.err
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34495 (exit $ac_status); } &&
34496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34497 { (case "(($ac_try" in
34498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34499 *) ac_try_echo=$ac_try;;
34501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34502 (eval "$ac_try") 2>&5
34504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34505 (exit $ac_status); }; } &&
34506 { ac_try='test -s conftest.$ac_objext'
34507 { (case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_try") 2>&5
34514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
34515 (exit $ac_status); }; }; then
34516 llvm_cv_cxx_visibility_inlines_hidden=yes
34518 echo "$as_me: failed program was
:" >&5
34519 sed 's/^/| /' conftest.$ac_ext >&5
34521 llvm_cv_cxx_visibility_inlines_hidden=no
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525 CXXFLAGS="$oldcxxflags"
34527 ac_cpp='$CPP $CPPFLAGS'
34528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34534 { echo "$as_me:$LINENO: result
: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34535 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34536 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34537 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34540 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34546 ac_config_headers="$ac_config_headers include
/llvm
/Config
/config.h
"
34548 ac_config_headers="$ac_config_headers include
/llvm
/Support
/DataTypes.h
"
34550 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_map.h
"
34552 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_set.h
"
34554 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/iterator.h
"
34557 ac_config_files="$ac_config_files Makefile.config
"
34560 ac_config_files="$ac_config_files llvm.spec
"
34563 ac_config_files="$ac_config_files docs
/doxygen.cfg
"
34566 ac_config_files="$ac_config_files tools
/llvm-config
/llvm-config.
in"
34569 ac_config_commands="$ac_config_commands setup
"
34571 ac_config_commands="$ac_config_commands Makefile
"
34574 ac_config_commands="$ac_config_commands Makefile.common
"
34577 ac_config_commands="$ac_config_commands examples
/Makefile
"
34580 ac_config_commands="$ac_config_commands lib
/Makefile
"
34583 ac_config_commands="$ac_config_commands runtime
/Makefile
"
34586 ac_config_commands="$ac_config_commands test
/Makefile
"
34589 ac_config_commands="$ac_config_commands test
/Makefile.tests
"
34592 ac_config_commands="$ac_config_commands unittests
/Makefile
"
34595 ac_config_commands="$ac_config_commands tools
/Makefile
"
34598 ac_config_commands="$ac_config_commands utils
/Makefile
"
34601 ac_config_commands="$ac_config_commands projects
/Makefile
"
34604 ac_config_commands="$ac_config_commands bindings
/Makefile
"
34607 ac_config_commands="$ac_config_commands bindings
/ocaml
/Makefile.ocaml
"
34611 cat >confcache <<\_ACEOF
34612 # This file is a shell script that caches the results of configure
34613 # tests run on this system so they can be shared between configure
34614 # scripts and configure runs, see configure's option --config-cache.
34615 # It is not useful on other systems. If it contains results you don't
34616 # want to keep, you may remove or edit it.
34618 # config.status only pays attention to the cache file if you give it
34619 # the --recheck option to rerun configure.
34621 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34622 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34623 # following values.
34627 # The following way of writing the cache mishandles newlines in values,
34628 # but we know of no workaround that is simple, portable, and efficient.
34629 # So, we kill variables containing newlines.
34630 # Ultrix sh set writes to stderr and can't be redirected directly,
34631 # and sets the high bit in the cache file unless we assign to the vars.
34633 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34634 eval ac_val=\$$ac_var
34638 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
34639 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
34642 _ | IFS | as_nl) ;; #(
34643 *) $as_unset $ac_var ;;
34649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34650 *${as_nl}ac_space=\ *)
34651 # `set' does not quote correctly, so add quotes (double-quote
34652 # substitution turns \\\\ into \\, and sed turns \\ into \).
34655 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
34658 # `set' quotes correctly as required by POSIX, so do not add quotes.
34659 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
34668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34673 if test -w "$cache_file"; then
34674 test "x
$cache_file" != "x
/dev
/null
" &&
34675 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
34676 echo "$as_me: updating cache
$cache_file" >&6;}
34677 cat confcache >$cache_file
34679 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
34680 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
34685 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
34686 # Let make expand exec_prefix.
34687 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
34689 DEFS=-DHAVE_CONFIG_H
34693 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
34694 # 1. Remove the extension, and $U if already installed.
34695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34696 ac_i=`echo "$ac_i" | sed "$ac_script"`
34697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34698 # will be set to the directory where LIBOBJS objects are built.
34699 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
34700 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
34702 LIBOBJS=$ac_libobjs
34704 LTLIBOBJS=$ac_ltlibobjs
34707 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34708 { { echo "$as_me:$LINENO: error
: conditional
\"INSTALL_LTDL
\" was never defined.
34709 Usually this means the macro was only invoked conditionally.
" >&5
34710 echo "$as_me: error
: conditional
\"INSTALL_LTDL
\" was never defined.
34711 Usually this means the macro was only invoked conditionally.
" >&2;}
34712 { (exit 1); exit 1; }; }
34714 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34715 { { echo "$as_me:$LINENO: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
34716 Usually this means the macro was only invoked conditionally.
" >&5
34717 echo "$as_me: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
34718 Usually this means the macro was only invoked conditionally.
" >&2;}
34719 { (exit 1); exit 1; }; }
34722 : ${CONFIG_STATUS=./config.status}
34723 ac_clean_files_save=$ac_clean_files
34724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34725 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
34726 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
34727 cat >$CONFIG_STATUS <<_ACEOF
34729 # Generated by $as_me.
34730 # Run this file to recreate the current configuration.
34731 # Compiler output produced by configure, useful for debugging
34732 # configure, is in config.log if it exists.
34735 ac_cs_recheck=false
34737 SHELL=\${CONFIG_SHELL-$SHELL}
34740 cat >>$CONFIG_STATUS <<\_ACEOF
34741 ## --------------------- ##
34742 ## M4sh Initialization. ##
34743 ## --------------------- ##
34745 # Be Bourne compatible
34746 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34749 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34750 # is contrary to our usage. Disable this feature.
34751 alias -g '${1+"$@"}'='"$@
"'
34752 setopt NO_GLOB_SUBST
34754 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34756 BIN_SH=xpg4; export BIN_SH # for Tru64
34757 DUALCASE=1; export DUALCASE # for MKS sh
34761 # Avoid depending upon Character Ranges.
34762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34765 as_cr_digits='0123456789'
34766 as_cr_alnum=$as_cr_Letters$as_cr_digits
34768 # The user is always right.
34769 if test "${PATH_SEPARATOR+set}" != set; then
34770 echo "#! /bin/sh" >conf$$.sh
34771 echo "exit 0" >>conf$$.sh
34773 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
34781 # Support unset when possible.
34782 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34790 # We need space, tab and new line, in precisely that order. Quoting is
34791 # there to prevent editors from complaining about space-tab.
34792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34793 # splitting by setting IFS to empty value.)
34798 # Find who we are. Look in the path if we contain no directory separator.
34800 *[\\/]* ) as_myself
=$0 ;;
34801 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
34802 for as_dir
in $PATH
34805 test -z "$as_dir" && as_dir
=.
34806 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
34812 # We did not find ourselves, most probably we were run as `sh COMMAND'
34813 # in which case we are not to be found in the path.
34814 if test "x$as_myself" = x
; then
34817 if test ! -f "$as_myself"; then
34818 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34819 { (exit 1); exit 1; }
34822 # Work around bugs in pre-3.0 UWIN ksh.
34823 for as_var
in ENV MAIL MAILPATH
34824 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34834 LC_TELEPHONE LC_TIME
34836 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34837 eval $as_var=C
; export $as_var
34839 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
34843 # Required to use basename.
34844 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34845 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34851 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34852 as_basename
=basename
34858 # Name of the executable.
34859 as_me
=`$as_basename -- "$0" ||
34860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34861 X"$0" : 'X\(//\)$' \| \
34862 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34864 sed '/^.*\/\([^/][^/]*\)\/*$/{
34883 as_lineno_1
=$LINENO
34884 as_lineno_2
=$LINENO
34885 test "x$as_lineno_1" != "x$as_lineno_2" &&
34886 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
34888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34889 # uniformly replaced by the line number. The first 'sed' inserts a
34890 # line-number line after each line using $LINENO; the second 'sed'
34891 # does the real work. The second script uses 'N' to pair each
34892 # line-number line with the line containing $LINENO, and appends
34893 # trailing '-' during substitution so that $LINENO is not a special
34894 # case at line end.
34895 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34896 # scripts with optimization help from Paolo Bonzini. Blame Lee
34897 # E. McMahon (1931-1989) for sed's syntax. :-)
34909 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34912 ' >$as_me.lineno
&&
34913 chmod +x
"$as_me.lineno" ||
34914 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34915 { (exit 1); exit 1; }; }
34917 # Don't try to exec as it changes $[0], causing all sort of problems
34918 # (the dirname of $[0] is not the place where we might find the
34919 # original and so on. Autoconf is especially sensitive to this).
34920 .
"./$as_me.lineno"
34921 # Exit status is that of the last command.
34926 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34932 ECHO_C
= ECHO_N
= ECHO_T
=
34933 case `echo -n x` in
34935 case `echo 'x\c'` in
34936 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34943 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34944 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34950 rm -f conf$$ conf$$.exe conf$$.
file
34951 if test -d conf$$.dir
; then
34952 rm -f conf$$.dir
/conf$$.
file
34958 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34960 # ... but there are two gotchas:
34961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34963 # In both cases, we have to default to `cp -p'.
34964 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34966 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34971 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34972 rmdir conf$$.dir
2>/dev
/null
34974 if mkdir
-p .
2>/dev
/null
; then
34977 test -d .
/-p && rmdir .
/-p
34981 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34982 # systems may use methods other than mode bits to determine executability.
34983 cat >conf$$.
file <<_ASEOF
34987 chmod +x conf$$.
file
34988 if test -x conf$$.
file >/dev
/null
2>&1; then
34989 as_executable_p
="test -x"
34995 # Sed expression to map a string onto a valid CPP name.
34996 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34998 # Sed expression to map a string onto a valid variable name.
34999 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35004 # Save the log message, to keep $[0] and so on meaningful, and to
35005 # report actual input values of CONFIG_FILES etc. instead of their
35006 # values after options handling.
35008 This file was extended by llvm $as_me 2.6svn, which was
35009 generated by GNU Autoconf 2.60. Invocation command line was
35011 CONFIG_FILES = $CONFIG_FILES
35012 CONFIG_HEADERS = $CONFIG_HEADERS
35013 CONFIG_LINKS = $CONFIG_LINKS
35014 CONFIG_COMMANDS = $CONFIG_COMMANDS
35017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35022 cat >>$CONFIG_STATUS <<_ACEOF
35023 # Files that config.status was made for.
35024 config_files="$ac_config_files"
35025 config_headers="$ac_config_headers"
35026 config_commands="$ac_config_commands"
35030 cat >>$CONFIG_STATUS <<\_ACEOF
35032 \`$as_me' instantiates files from templates according to the
35033 current configuration.
35035 Usage: $0 [OPTIONS] [FILE]...
35037 -h, --help print this help, then exit
35038 -V, --version print version number, then exit
35039 -q, --quiet do not print progress messages
35040 -d, --debug don't remove temporary files
35041 --recheck update $as_me by reconfiguring in the same conditions
35042 --file=FILE[:TEMPLATE]
35043 instantiate the configuration file FILE
35044 --header=FILE[:TEMPLATE]
35045 instantiate the configuration header FILE
35047 Configuration files:
35050 Configuration headers:
35053 Configuration commands:
35056 Report bugs to <bug-autoconf@gnu.org>."
35059 cat >>$CONFIG_STATUS <<_ACEOF
35061 llvm config.status 2.6svn
35062 configured by $0, generated by GNU Autoconf 2.60,
35063 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35065 Copyright (C) 2006 Free Software Foundation, Inc.
35066 This config.status script is free software; the Free Software Foundation
35067 gives unlimited permission to copy, distribute and modify it."
35074 cat >>$CONFIG_STATUS <<\_ACEOF
35075 # If no file are specified by the user, then we need to provide default
35076 # value. By we need to know if files were specified by the user.
35082 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35083 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35094 # Handling of the options.
35095 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35097 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35098 echo "$ac_cs_version"; exit ;;
35099 --debug |
--debu |
--deb |
--de |
--d |
-d )
35101 --file |
--fil |
--fi |
--f )
35103 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35104 ac_need_defaults
=false
;;
35105 --header |
--heade |
--head |
--hea )
35107 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35108 ac_need_defaults
=false
;;
35110 # Conflict between --help and --header
35111 { echo "$as_me: error: ambiguous option: $1
35112 Try \`$0 --help' for more information." >&2
35113 { (exit 1); exit 1; }; };;
35114 --help |
--hel |
-h )
35115 echo "$ac_cs_usage"; exit ;;
35116 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35117 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35120 # This is an error.
35121 -*) { echo "$as_me: error: unrecognized option: $1
35122 Try \`$0 --help' for more information." >&2
35123 { (exit 1); exit 1; }; } ;;
35125 *) ac_config_targets
="$ac_config_targets $1"
35126 ac_need_defaults
=false
;;
35132 ac_configure_extra_args
=
35134 if $ac_cs_silent; then
35136 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35140 cat >>$CONFIG_STATUS <<_ACEOF
35141 if \$ac_cs_recheck; then
35142 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35143 CONFIG_SHELL=$SHELL
35144 export CONFIG_SHELL
35145 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35149 cat >>$CONFIG_STATUS <<\_ACEOF
35153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35154 ## Running $as_me. ##
35160 cat >>$CONFIG_STATUS <<_ACEOF
35164 llvm_src="${srcdir}"
35168 cat >>$CONFIG_STATUS <<\_ACEOF
35170 # Handling of arguments.
35171 for ac_config_target
in $ac_config_targets
35173 case $ac_config_target in
35174 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35175 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35176 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35177 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35178 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35179 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35180 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35181 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35182 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35183 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35184 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35185 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35186 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35187 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35188 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35189 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35190 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35191 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35192 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35193 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35194 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35195 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35196 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35200 { (exit 1); exit 1; }; };;
35205 # If the user did not use the arguments to specify the items to instantiate,
35206 # then the envvar interface is used. Set only those that are not.
35207 # We use the long form for the default assignment because of an extremely
35208 # bizarre bug on SunOS 4.1.3.
35209 if $ac_need_defaults; then
35210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35215 # Have a temporary directory for convenience. Make it in the build tree
35216 # simply because there is no reason against having it here, and in addition,
35217 # creating and moving files from /tmp can sometimes cause problems.
35218 # Hook for its removal unless debugging.
35219 # Note that there is a small window in which the directory will not be cleaned:
35220 # after its creation but before its name has been assigned to `$tmp'.
35224 trap 'exit_status=$?
35225 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35227 trap '{ (exit 1); exit 1; }' 1 2 13 15
35229 # Create a (secure) tmp directory for tmp files.
35232 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35233 test -n "$tmp" && test -d "$tmp"
35236 tmp
=.
/conf$$
-$RANDOM
35237 (umask 077 && mkdir
"$tmp")
35240 echo "$me: cannot create a temporary directory in ." >&2
35241 { (exit 1); exit 1; }
35245 # Set up the sed scripts for CONFIG_FILES section.
35248 # No need to generate the scripts if there are no CONFIG_FILES.
35249 # This happens for instance when ./config.status config.h
35250 if test -n "$CONFIG_FILES"; then
35257 for ac_last_try
in false false false false false
:; do
35258 cat >conf$
$subs.
sed <<_ACEOF
35259 SHELL!$SHELL$ac_delim
35260 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35261 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35262 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35263 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35264 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35265 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35266 exec_prefix!$exec_prefix$ac_delim
35267 prefix!$prefix$ac_delim
35268 program_transform_name!$program_transform_name$ac_delim
35269 bindir!$bindir$ac_delim
35270 sbindir!$sbindir$ac_delim
35271 libexecdir!$libexecdir$ac_delim
35272 datarootdir!$datarootdir$ac_delim
35273 datadir!$datadir$ac_delim
35274 sysconfdir!$sysconfdir$ac_delim
35275 sharedstatedir!$sharedstatedir$ac_delim
35276 localstatedir!$localstatedir$ac_delim
35277 includedir!$includedir$ac_delim
35278 oldincludedir!$oldincludedir$ac_delim
35279 docdir!$docdir$ac_delim
35280 infodir!$infodir$ac_delim
35281 htmldir!$htmldir$ac_delim
35282 dvidir!$dvidir$ac_delim
35283 pdfdir!$pdfdir$ac_delim
35284 psdir!$psdir$ac_delim
35285 libdir!$libdir$ac_delim
35286 localedir!$localedir$ac_delim
35287 mandir!$mandir$ac_delim
35288 DEFS!$DEFS$ac_delim
35289 ECHO_C!$ECHO_C$ac_delim
35290 ECHO_N!$ECHO_N$ac_delim
35291 ECHO_T!$ECHO_T$ac_delim
35292 LIBS!$LIBS$ac_delim
35293 build_alias!$build_alias$ac_delim
35294 host_alias!$host_alias$ac_delim
35295 target_alias!$target_alias$ac_delim
35296 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35297 subdirs!$subdirs$ac_delim
35298 build!$build$ac_delim
35299 build_cpu!$build_cpu$ac_delim
35300 build_vendor!$build_vendor$ac_delim
35301 build_os!$build_os$ac_delim
35302 host!$host$ac_delim
35303 host_cpu!$host_cpu$ac_delim
35304 host_vendor!$host_vendor$ac_delim
35305 host_os!$host_os$ac_delim
35306 target!$target$ac_delim
35307 target_cpu!$target_cpu$ac_delim
35308 target_vendor!$target_vendor$ac_delim
35309 target_os!$target_os$ac_delim
35311 LINKALL!$LINKALL$ac_delim
35312 NOLINKALL!$NOLINKALL$ac_delim
35313 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35314 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35315 ARCH!$ARCH$ac_delim
35316 ENDIAN!$ENDIAN$ac_delim
35318 CFLAGS!$CFLAGS$ac_delim
35319 LDFLAGS!$LDFLAGS$ac_delim
35320 CPPFLAGS!$CPPFLAGS$ac_delim
35321 ac_ct_CC!$ac_ct_CC$ac_delim
35322 EXEEXT!$EXEEXT$ac_delim
35323 OBJEXT!$OBJEXT$ac_delim
35325 GREP!$GREP$ac_delim
35326 EGREP!$EGREP$ac_delim
35327 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35328 BUILD_CC!$BUILD_CC$ac_delim
35329 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35330 BUILD_CXX!$BUILD_CXX$ac_delim
35331 CVSBUILD!$CVSBUILD$ac_delim
35332 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35333 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35334 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35335 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35336 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35338 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35339 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35340 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35341 ENABLE_PIC!$ENABLE_PIC$ac_delim
35342 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35343 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35344 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35346 CXXFLAGS!$CXXFLAGS$ac_delim
35347 ac_ct_CXX!$ac_ct_CXX$ac_delim
35349 LEXLIB!$LEXLIB$ac_delim
35350 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35351 FLEX!$FLEX$ac_delim
35352 YACC!$YACC$ac_delim
35353 YFLAGS!$YFLAGS$ac_delim
35354 BISON!$BISON$ac_delim
35358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35360 elif $ac_last_try; then
35361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35362 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35363 { (exit 1); exit 1; }; }
35365 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35369 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35370 if test -n "$ac_eof"; then
35371 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35372 ac_eof
=`expr $ac_eof + 1`
35375 cat >>$CONFIG_STATUS <<_ACEOF
35376 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35380 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35381 s/^/s,@/; s/!/@,|#_!!_#|/
35384 s/'"$ac_delim"'$/,g/; t
35386 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35387 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35388 rm -f conf$
$subs.
sed
35389 cat >>$CONFIG_STATUS <<_ACEOF
35395 for ac_last_try
in false false false false false
:; do
35396 cat >conf$
$subs.
sed <<_ACEOF
35397 ifGNUmake!$ifGNUmake$ac_delim
35398 LN_S!$LN_S$ac_delim
35401 DATE!$DATE$ac_delim
35402 FIND!$FIND$ac_delim
35403 MKDIR!$MKDIR$ac_delim
35405 RANLIB!$RANLIB$ac_delim
35409 BINPWD!$BINPWD$ac_delim
35410 GRAPHVIZ!$GRAPHVIZ$ac_delim
35413 DOTTY!$DOTTY$ac_delim
35414 PERL!$PERL$ac_delim
35415 HAVE_PERL!$HAVE_PERL$ac_delim
35416 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35417 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35418 INSTALL_DATA!$INSTALL_DATA$ac_delim
35419 BZIP2!$BZIP2$ac_delim
35420 DOXYGEN!$DOXYGEN$ac_delim
35421 GROFF!$GROFF$ac_delim
35422 GZIP!$GZIP$ac_delim
35423 POD2HTML!$POD2HTML$ac_delim
35424 POD2MAN!$POD2MAN$ac_delim
35425 RUNTEST!$RUNTEST$ac_delim
35426 TCLSH!$TCLSH$ac_delim
35428 OCAMLC!$OCAMLC$ac_delim
35429 OCAMLOPT!$OCAMLOPT$ac_delim
35430 OCAMLDEP!$OCAMLDEP$ac_delim
35431 OCAMLDOC!$OCAMLDOC$ac_delim
35433 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35434 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35435 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35436 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35437 LIBADD_DL!$LIBADD_DL$ac_delim
35438 ECHO!$ECHO$ac_delim
35440 STRIP!$STRIP$ac_delim
35441 CXXCPP!$CXXCPP$ac_delim
35443 FFLAGS!$FFLAGS$ac_delim
35444 ac_ct_F77!$ac_ct_F77$ac_delim
35445 LIBTOOL!$LIBTOOL$ac_delim
35446 LLVMGCC!$LLVMGCC$ac_delim
35447 LLVMGXX!$LLVMGXX$ac_delim
35448 USE_UDIS86!$USE_UDIS86$ac_delim
35449 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35450 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35451 ALLOCA!$ALLOCA$ac_delim
35452 MMAP_FILE!$MMAP_FILE$ac_delim
35453 LLVMCC1!$LLVMCC1$ac_delim
35454 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35455 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35456 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35457 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35458 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35459 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35460 SHLIBEXT!$SHLIBEXT$ac_delim
35461 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35462 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35463 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35464 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35465 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35466 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35467 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35468 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35469 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35470 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35471 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35472 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35473 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35474 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35475 LIBOBJS!$LIBOBJS$ac_delim
35476 LTLIBOBJS!$LTLIBOBJS$ac_delim
35479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
35481 elif $ac_last_try; then
35482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35483 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35484 { (exit 1); exit 1; }; }
35486 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
35490 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35491 if test -n "$ac_eof"; then
35492 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
35493 ac_eof
=`expr $ac_eof + 1`
35496 cat >>$CONFIG_STATUS <<_ACEOF
35497 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35501 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35502 s/^/s,@/; s/!/@,|#_!!_#|/
35505 s/'"$ac_delim"'$/,g/; t
35507 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35508 ' >>$CONFIG_STATUS <conf$
$subs.
sed
35509 rm -f conf$
$subs.
sed
35510 cat >>$CONFIG_STATUS <<_ACEOF
35517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35519 # trailing colons and then remove the whole line if VPATH becomes empty
35520 # (actually we leave an empty line to preserve line numbers).
35521 if test "x$srcdir" = x.
; then
35522 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
35523 s/:*\$(srcdir):*/:/
35524 s/:*\${srcdir}:*/:/
35526 s/^\([^=]*=[ ]*\):*/\1/
35532 cat >>$CONFIG_STATUS <<\_ACEOF
35533 fi # test -n "$CONFIG_FILES"
35536 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
35539 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35541 case $ac_mode$ac_tag in
35543 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35544 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35545 { (exit 1); exit 1; }; };;
35546 :[FH
]-) ac_tag
=-:-;;
35547 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35564 -) ac_f
="$tmp/stdin";;
35565 *) # Look for the file first in the build tree, then in the source tree
35566 # (if the path is not absolute). The absolute path cannot be DOS-style,
35567 # because $ac_f cannot contain `:'.
35571 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35573 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35574 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35575 { (exit 1); exit 1; }; };;
35577 ac_file_inputs
="$ac_file_inputs $ac_f"
35580 # Let's still pretend it is `configure' which instantiates (i.e., don't
35581 # use $as_me), people would be surprised to read:
35582 # /* config.h. Generated by config.status. */
35583 configure_input
="Generated from "`IFS=:
35584 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35585 if test x
"$ac_file" != x-
; then
35586 configure_input
="$ac_file. $configure_input"
35587 { echo "$as_me:$LINENO: creating $ac_file" >&5
35588 echo "$as_me: creating $ac_file" >&6;}
35592 *:-:* |
*:-) cat >"$tmp/stdin";;
35597 ac_dir
=`$as_dirname -- "$ac_file" ||
35598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35599 X"$ac_file" : 'X\(//\)[^/]' \| \
35600 X"$ac_file" : 'X\(//\)$' \| \
35601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35607 /^X\(\/\/\)[^/].*/{
35622 -*) as_dir
=.
/$as_dir;;
35624 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
35628 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35629 *) as_qdir
=$as_dir;;
35631 as_dirs
="'$as_qdir' $as_dirs"
35632 as_dir
=`$as_dirname -- "$as_dir" ||
35633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35634 X"$as_dir" : 'X\(//\)[^/]' \| \
35635 X"$as_dir" : 'X\(//\)$' \| \
35636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35642 /^X\(\/\/\)[^/].*/{
35655 test -d "$as_dir" && break
35657 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35658 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35659 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35660 { (exit 1); exit 1; }; }; }
35664 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35666 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35667 # A ".." for each directory in $ac_dir_suffix.
35668 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35669 case $ac_top_builddir_sub in
35670 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35671 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35674 ac_abs_top_builddir
=$ac_pwd
35675 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35676 # for backward compatibility:
35677 ac_top_builddir
=$ac_top_build_prefix
35680 .
) # We are building in place.
35682 ac_top_srcdir
=$ac_top_builddir_sub
35683 ac_abs_top_srcdir
=$ac_pwd ;;
35684 [\\/]* | ?
:[\\/]* ) # Absolute name.
35685 ac_srcdir
=$srcdir$ac_dir_suffix;
35686 ac_top_srcdir
=$srcdir
35687 ac_abs_top_srcdir
=$srcdir ;;
35688 *) # Relative name.
35689 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35690 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35691 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35693 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35703 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35704 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35708 cat >>$CONFIG_STATUS <<\_ACEOF
35709 # If the template does not know about datarootdir, expand it.
35710 # FIXME: This hack should be removed a few years after 2.60.
35711 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35713 case `sed -n '/datarootdir/ {
35722 ' $ac_file_inputs` in
35723 *datarootdir
*) ac_datarootdir_seen
=yes;;
35724 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35725 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35726 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35728 cat >>$CONFIG_STATUS <<_ACEOF
35729 ac_datarootdir_hack='
35730 s&@datadir@&$datadir&g
35731 s&@docdir@&$docdir&g
35732 s&@infodir@&$infodir&g
35733 s&@localedir@&$localedir&g
35734 s&@mandir@&$mandir&g
35735 s&\\\${datarootdir}&$datarootdir&g' ;;
35739 # Neutralize VPATH when `$srcdir' = `.'.
35740 # Shell code in configure.ac might set extrasub.
35741 # FIXME: do we really want to maintain this feature?
35742 cat >>$CONFIG_STATUS <<_ACEOF
35746 cat >>$CONFIG_STATUS <<\_ACEOF
35748 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35749 s
&@configure_input@
&$configure_input&;t t
35750 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35751 s
&@srcdir@
&$ac_srcdir&;t t
35752 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35753 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35754 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35755 s
&@builddir@
&$ac_builddir&;t t
35756 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35757 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35758 s
&@INSTALL@
&$ac_INSTALL&;t t
35759 $ac_datarootdir_hack
35760 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
35762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35763 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
35764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
35765 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35766 which seems to be undefined. Please make sure it is defined." >&5
35767 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35768 which seems to be undefined. Please make sure it is defined." >&2;}
35772 -) cat "$tmp/out"; rm -f "$tmp/out";;
35773 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35782 # Transform confdefs.h into a sed script `conftest.defines', that
35783 # substitutes the proper values into config.h.in to produce config.h.
35784 rm -f conftest.defines conftest.
tail
35785 # First, append a space to every undef/define line, to ease matching.
35786 echo 's/$/ /' >conftest.defines
35787 # Then, protect against being on the right side of a sed subst, or in
35788 # an unquoted here document, in config.status. If some macros were
35789 # called several times there might be several #defines for the same
35790 # symbol, which is useless. But do not sort them, since the last
35791 # AC_DEFINE must be honored.
35792 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
35793 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35794 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35795 # PARAMS is the parameter list in the macro definition--in most cases, it's
35796 # just an empty string.
35797 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35798 ac_dB
='\\)[ (].*,\\1define\\2'
35806 s/^[ ]*#[ ]*define[ ][ ]*//
35811 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35812 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35813 ' >>conftest.defines
35815 # Remove the space that was appended to ease matching.
35816 # Then replace #undef with comments. This is necessary, for
35817 # example, in the case of _POSIX_SOURCE, which is predefined and required
35818 # on some systems where configure will not decide to define it.
35819 # (The regexp can be short, since the line contains either #define or #undef.)
35821 s,^[ #]*u.*,/* & */,' >>conftest.defines
35823 # Break up conftest.defines:
35824 ac_max_sed_lines
=50
35826 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35827 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35828 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35830 ac_in
='$ac_file_inputs'
35831 ac_out
='"$tmp/out1"'
35832 ac_nxt
='"$tmp/out2"'
35836 # Write a here document:
35837 cat >>$CONFIG_STATUS <<_ACEOF
35838 # First, check the format of the line:
35839 cat >"\$tmp/defines.sed" <<\\CEOF
35840 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35841 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35845 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
35847 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35848 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
35849 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
35850 grep . conftest.
tail >/dev
/null ||
break
35851 rm -f conftest.defines
35852 mv conftest.
tail conftest.defines
35854 rm -f conftest.defines conftest.
tail
35856 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35857 cat >>$CONFIG_STATUS <<\_ACEOF
35858 if test x
"$ac_file" != x-
; then
35859 echo "/* $configure_input */" >"$tmp/config.h"
35860 cat "$ac_result" >>"$tmp/config.h"
35861 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
35862 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35863 echo "$as_me: $ac_file is unchanged" >&6;}
35866 mv "$tmp/config.h" $ac_file
35869 echo "/* $configure_input */"
35875 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35876 echo "$as_me: executing $ac_file commands" >&6;}
35881 case $ac_file$ac_mode in
35882 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
35883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
35884 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
35885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
35886 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
35887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
35888 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
35889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
35890 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
35891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
35892 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
35893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
35894 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
35895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
35896 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
35897 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
35898 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
35899 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
35900 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
35901 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
35902 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
35903 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
35904 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
35905 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
35906 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
35907 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
35913 { (exit 0); exit 0; }
35915 chmod +x
$CONFIG_STATUS
35916 ac_clean_files
=$ac_clean_files_save
35919 # configure is writing to config.log, and then calls config.status.
35920 # config.status does its own redirection, appending to config.log.
35921 # Unfortunately, on DOS this fails, as config.log is still kept open
35922 # by configure, so config.status won't be able to write to it; its
35923 # output is simply discarded. So we exec the FD to /dev/null,
35924 # effectively closing config.log, so it can be properly (re)opened and
35925 # appended to by config.status. When coming back to configure, we
35926 # need to make the FD available again.
35927 if test "$no_create" != yes; then
35929 ac_config_status_args
=
35930 test "$silent" = yes &&
35931 ac_config_status_args
="$ac_config_status_args --quiet"
35933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35936 # would make configure fail if this is the last instruction.
35937 $ac_cs_success ||
{ (exit 1); exit 1; }
35941 # CONFIG_SUBDIRS section.
35943 if test "$no_recursion" != yes; then
35945 # Remove --cache-file and --srcdir arguments so they do not pile up.
35946 ac_sub_configure_args
=
35948 eval "set x $ac_configure_args"
35952 if test -n "$ac_prev"; then
35957 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
35958 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
35959 ac_prev
=cache_file
;;
35960 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
35961 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
35964 --config-cache |
-C)
35966 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
35968 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
35970 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
35972 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
35976 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35978 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
35982 # Always prepend --prefix to ensure using the same prefix
35983 # in subdir configurations.
35984 ac_arg
="--prefix=$prefix"
35986 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35988 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
35991 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
35993 # Do not complain, so a configure script can configure whichever
35994 # parts of a large source tree are present.
35995 test -d "$srcdir/$ac_dir" ||
continue
35997 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35998 echo "$as_me:$LINENO: $ac_msg" >&5
36002 -*) as_dir
=.
/$as_dir;;
36004 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36008 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36009 *) as_qdir
=$as_dir;;
36011 as_dirs
="'$as_qdir' $as_dirs"
36012 as_dir
=`$as_dirname -- "$as_dir" ||
36013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36014 X"$as_dir" : 'X\(//\)[^/]' \| \
36015 X"$as_dir" : 'X\(//\)$' \| \
36016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36022 /^X\(\/\/\)[^/].*/{
36035 test -d "$as_dir" && break
36037 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36038 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36039 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36040 { (exit 1); exit 1; }; }; }
36044 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36046 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36047 # A ".." for each directory in $ac_dir_suffix.
36048 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36049 case $ac_top_builddir_sub in
36050 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36051 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36054 ac_abs_top_builddir
=$ac_pwd
36055 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36056 # for backward compatibility:
36057 ac_top_builddir
=$ac_top_build_prefix
36060 .
) # We are building in place.
36062 ac_top_srcdir
=$ac_top_builddir_sub
36063 ac_abs_top_srcdir
=$ac_pwd ;;
36064 [\\/]* | ?
:[\\/]* ) # Absolute name.
36065 ac_srcdir
=$srcdir$ac_dir_suffix;
36066 ac_top_srcdir
=$srcdir
36067 ac_abs_top_srcdir
=$srcdir ;;
36068 *) # Relative name.
36069 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36070 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36071 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36073 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36078 # Check for guested configure; otherwise get Cygnus style configure.
36079 if test -f "$ac_srcdir/configure.gnu"; then
36080 ac_sub_configure
=$ac_srcdir/configure.gnu
36081 elif test -f "$ac_srcdir/configure"; then
36082 ac_sub_configure
=$ac_srcdir/configure
36083 elif test -f "$ac_srcdir/configure.in"; then
36084 # This should be Cygnus configure.
36085 ac_sub_configure
=$ac_aux_dir/configure
36087 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36088 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36092 # The recursion is here.
36093 if test -n "$ac_sub_configure"; then
36094 # Make the cache file name correct relative to the subdirectory.
36095 case $cache_file in
36096 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36097 *) # Relative name.
36098 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36101 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36102 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36103 # The eval makes quoting arguments work.
36104 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36105 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36106 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36107 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36108 { (exit 1); exit 1; }; }