2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL
=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec
; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo
; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo
; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset
; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
586 echo_test_string
=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
606 for dir
in $PATH /usr
/ucb
; do
608 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho
; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL
=/bin
/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
647 SHELL
="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string
=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames
=${tagnames+${tagnames},}CXX
693 tagnames
=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev
/null
6>&1
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix
=/usr
/local
707 ac_config_libobj_dir
=.
713 SHELL
=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
717 PACKAGE_TARNAME
='-llvm-'
718 PACKAGE_VERSION
='2.6svn'
719 PACKAGE_STRING
='llvm 2.6svn'
720 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
722 ac_unique_file
="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default
="\
727 # include <sys/types.h>
730 # include <sys/stat.h>
741 # if !STDC_HEADERS && HAVE_MEMORY_H
747 # include <strings.h>
750 # include <inttypes.h>
768 program_transform_name
835 ENABLE_EXPENSIVE_CHECKS
845 LLVM_ENUM_ASM_PRINTERS
850 ENABLE_LLVMC_DYNAMIC_PLUGINS
897 CONVENIENCE_LTDL_TRUE
898 CONVENIENCE_LTDL_FALSE
939 ENABLE_VISIBILITY_INLINES_HIDDEN
945 ac_precious_vars
='build_alias
959 ac_subdirs_all
='projects/sample
961 projects/llvm-stacker
968 projects/llvm-poolalloc
970 projects/llvm-kernel'
972 # Initialize some variables set by options.
974 ac_init_version
=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name
=s
,x
,x
,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir
='${exec_prefix}/bin'
999 sbindir
='${exec_prefix}/sbin'
1000 libexecdir
='${exec_prefix}/libexec'
1001 datarootdir
='${prefix}/share'
1002 datadir
='${datarootdir}'
1003 sysconfdir
='${prefix}/etc'
1004 sharedstatedir
='${prefix}/com'
1005 localstatedir
='${prefix}/var'
1006 includedir
='${prefix}/include'
1007 oldincludedir
='/usr/include'
1008 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir
='${datarootdir}/info'
1014 libdir
='${exec_prefix}/lib'
1015 localedir
='${datarootdir}/locale'
1016 mandir
='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\
$ac_option
1030 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1042 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1043 bindir
=$ac_optarg ;;
1045 -build |
--build |
--buil |
--bui |
--bu)
1046 ac_prev
=build_alias
;;
1047 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1048 build_alias
=$ac_optarg ;;
1050 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1051 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1052 ac_prev
=cache_file
;;
1053 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1054 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1055 cache_file
=$ac_optarg ;;
1057 --config-cache |
-C)
1058 cache_file
=config.cache
;;
1060 -datadir |
--datadir |
--datadi |
--datad)
1062 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1063 datadir
=$ac_optarg ;;
1065 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1066 |
--dataroo |
--dataro |
--datar)
1067 ac_prev
=datarootdir
;;
1068 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1069 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1070 datarootdir
=$ac_optarg ;;
1072 -disable-* |
--disable-*)
1073 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1079 eval enable_
$ac_feature=no
;;
1081 -docdir |
--docdir |
--docdi |
--doc |
--do)
1083 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1084 docdir
=$ac_optarg ;;
1086 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1088 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1089 dvidir
=$ac_optarg ;;
1091 -enable-* |
--enable-*)
1092 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
1098 eval enable_
$ac_feature=\
$ac_optarg ;;
1100 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1101 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1102 |
--exec |
--exe |
--ex)
1103 ac_prev
=exec_prefix
;;
1104 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1105 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1106 |
--exec=* |
--exe=* |
--ex=*)
1107 exec_prefix
=$ac_optarg ;;
1109 -gas |
--gas |
--ga |
--g)
1110 # Obsolete; use --with-gas.
1113 -help |
--help |
--hel |
--he |
-h)
1114 ac_init_help
=long
;;
1115 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1116 ac_init_help
=recursive
;;
1117 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1118 ac_init_help
=short
;;
1120 -host |
--host |
--hos |
--ho)
1121 ac_prev
=host_alias
;;
1122 -host=* |
--host=* |
--hos=* |
--ho=*)
1123 host_alias
=$ac_optarg ;;
1125 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1127 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1129 htmldir
=$ac_optarg ;;
1131 -includedir |
--includedir |
--includedi |
--included |
--include \
1132 |
--includ |
--inclu |
--incl |
--inc)
1133 ac_prev
=includedir
;;
1134 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1135 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1136 includedir
=$ac_optarg ;;
1138 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1140 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1141 infodir
=$ac_optarg ;;
1143 -libdir |
--libdir |
--libdi |
--libd)
1145 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1146 libdir
=$ac_optarg ;;
1148 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1149 |
--libexe |
--libex |
--libe)
1150 ac_prev
=libexecdir
;;
1151 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1152 |
--libexe=* |
--libex=* |
--libe=*)
1153 libexecdir
=$ac_optarg ;;
1155 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1156 ac_prev
=localedir
;;
1157 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1158 localedir
=$ac_optarg ;;
1160 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1161 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1162 ac_prev
=localstatedir
;;
1163 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1164 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1165 localstatedir
=$ac_optarg ;;
1167 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1169 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1170 mandir
=$ac_optarg ;;
1172 -nfp |
--nfp |
--nf)
1173 # Obsolete; use --without-fp.
1176 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1177 |
--no-cr |
--no-c |
-n)
1180 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1181 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1184 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1185 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1186 |
--oldin |
--oldi |
--old |
--ol |
--o)
1187 ac_prev
=oldincludedir
;;
1188 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1189 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1190 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1191 oldincludedir
=$ac_optarg ;;
1193 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1195 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1196 prefix
=$ac_optarg ;;
1198 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1199 |
--program-pre |
--program-pr |
--program-p)
1200 ac_prev
=program_prefix
;;
1201 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1202 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1203 program_prefix
=$ac_optarg ;;
1205 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1206 |
--program-suf |
--program-su |
--program-s)
1207 ac_prev
=program_suffix
;;
1208 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1209 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1210 program_suffix
=$ac_optarg ;;
1212 -program-transform-name |
--program-transform-name \
1213 |
--program-transform-nam |
--program-transform-na \
1214 |
--program-transform-n |
--program-transform- \
1215 |
--program-transform |
--program-transfor \
1216 |
--program-transfo |
--program-transf \
1217 |
--program-trans |
--program-tran \
1218 |
--progr-tra |
--program-tr |
--program-t)
1219 ac_prev
=program_transform_name
;;
1220 -program-transform-name=* |
--program-transform-name=* \
1221 |
--program-transform-nam=* |
--program-transform-na=* \
1222 |
--program-transform-n=* |
--program-transform-=* \
1223 |
--program-transform=* |
--program-transfor=* \
1224 |
--program-transfo=* |
--program-transf=* \
1225 |
--program-trans=* |
--program-tran=* \
1226 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1227 program_transform_name
=$ac_optarg ;;
1229 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1231 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1232 pdfdir
=$ac_optarg ;;
1234 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1236 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1239 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1240 |
-silent |
--silent |
--silen |
--sile |
--sil)
1243 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1245 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1247 sbindir
=$ac_optarg ;;
1249 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1250 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1251 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1253 ac_prev
=sharedstatedir
;;
1254 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1255 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1256 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1258 sharedstatedir
=$ac_optarg ;;
1260 -site |
--site |
--sit)
1262 -site=* |
--site=* |
--sit=*)
1265 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1267 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1268 srcdir
=$ac_optarg ;;
1270 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1271 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1272 ac_prev
=sysconfdir
;;
1273 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1274 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1275 sysconfdir
=$ac_optarg ;;
1277 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1278 ac_prev
=target_alias
;;
1279 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1280 target_alias
=$ac_optarg ;;
1282 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1285 -version |
--version |
--versio |
--versi |
--vers |
-V)
1286 ac_init_version
=: ;;
1289 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1295 eval with_
$ac_package=\
$ac_optarg ;;
1297 -without-* |
--without-*)
1298 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1304 eval with_
$ac_package=no
;;
1307 # Obsolete; use --with-x.
1310 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1311 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1312 ac_prev
=x_includes
;;
1313 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1314 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1315 x_includes
=$ac_optarg ;;
1317 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1318 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1319 ac_prev
=x_libraries
;;
1320 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1321 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1322 x_libraries
=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\
$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val
=\$
$ac_var
1363 [\\/$
]* | ?
:[\\/]* ) continue;;
1364 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target
=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x
; then
1379 if test "x$build_alias" = x
; then
1380 cross_compiling
=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1391 test "$silent" = yes && exec 6>/dev
/null
1394 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di
=`ls -di .` &&
1396 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted
=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir
=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted
=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var
in $ac_precious_vars; do
1459 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1461 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --build=BUILD configure
for building on BUILD
[guessed
]
1531 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1532 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive
) echo "Configuration of llvm 2.6svn:";;
1543 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1544 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1545 --enable-optimized Compile with optimizations enabled
(default is NO
)
1546 --enable-profiling Compile with profiling enabled
(default is NO
)
1547 --enable-assertions Compile with assertion checks enabled
(default is
1549 --enable-expensive-checks
1550 Compile with expensive debug checks enabled
(default
1552 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1554 --enable-jit Enable Just In Time Compiling
(default is YES
)
1555 --enable-doxygen Build doxygen documentation
(default is NO
)
1556 --enable-threads Use threads
if available
(default is YES
)
1557 --enable-pic Build LLVM with Position Independent Code
(default
1559 --enable-targets Build specific
host targets
:
1560 all
,host-only
,{target-name
} (default
=all
)
1561 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 --enable-bindings Build specific language bindings
:
1564 all
,auto
,none
,{binding-name
} (default
=auto
)
1565 --enable-libffi Check
for the presence of libffi
(default is YES
)
1566 --enable-llvmc-dynamic Link LLVMC dynamically
(default is NO
, unless on
1568 --enable-llvmc-dynamic-plugins
1569 Enable dynamic LLVMC plugins
(default is YES
)
1570 --enable-ltdl-install install libltdl
1571 --enable-shared[=PKGS
] build shared libraries
1573 --enable-static[=PKGS
] build static libraries
1575 --enable-fast-install[=PKGS
]
1576 optimize
for fast installation
1578 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1581 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1582 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1583 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1585 --with-llvmgcc Specify location of llvm-gcc driver
(default
1587 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1589 --with-extra-options Specify additional options to compile LLVM with
1590 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1592 --with-binutils-include Specify path to binutils
/include
/ containing
1593 plugin-api.h
file for gold plugin.
1594 --with-tclinclude directory where tcl headers are
1595 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1596 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1598 --with-tags[=TAGS
] include additional configurations
[automatic
]
1599 --with-udis86=<path
> Use udis86 external x86 disassembler library
1600 --with-oprofile=<prefix
>
1601 Tell OProfile
>= 0.9.4 how to symbolize JIT output
1603 Some influential environment variables
:
1604 CC C compiler
command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1607 nonstandard directory
<lib dir
>
1608 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1609 you have headers
in a nonstandard directory
<include dir
>
1611 CXX C
++ compiler
command
1612 CXXFLAGS C
++ compiler flags
1613 CXXCPP C
++ preprocessor
1614 F77 Fortran
77 compiler
command
1615 FFLAGS Fortran
77 compiler flags
1617 Use these variables to override the choices made by
`configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to <llvmbugs@cs.uiuc.edu>.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1681 llvm configure 2.6svn
1682 generated by GNU Autoconf 2.60
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1689 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1697 It was created by llvm $as_me 2.6svn, which was
1698 generated by GNU Autoconf 2.60. Invocation command line was
1710 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1711 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1712 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1713 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1714 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1716 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1717 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1719 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1720 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1721 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1722 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1723 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1724 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1725 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_must_keep_next=false
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1769 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
1776 ac_must_keep_next=false # Got value, back to normal.
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 -* ) ac_must_keep_next=true ;;
1790 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log. We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1814 # The following way of writing the cache mishandles newlines in values,
1816 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1817 eval ac_val=\$$ac_var
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1831 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1851 for ac_var in $ac_subst_vars
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1861 if test -n "$ac_subst_files"; then
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1868 for ac_var in $ac_subst_files
1870 eval ac_val=\$$ac_var
1872 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 echo "$ac_var='\''$ac_val'\''"
1879 if test -s confdefs.h; then
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897 for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1905 # Predefined preprocessor variables.
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer explicitly selected file to automatically selected ones.
1934 if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936 elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
1945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1953 if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 echo "$as_me: loading cache $cache_file" >&6;}
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 echo "$as_me: creating cache $cache_file" >&6;}
1970 # Check that the precious variables saved in the cache have kept the same
1972 ac_cache_corrupted=false
1973 for ac_var in $ac_precious_vars; do
1974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
1976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
1978 case $ac_old_set,$ac_new_set in
1980 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1981 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1985 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
1990 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1992 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1993 echo "$as_me: former value
: $ac_old_val" >&2;}
1994 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1995 echo "$as_me: current value
: $ac_new_val" >&2;}
1996 ac_cache_corrupted=:
1999 # Pass precious variables to config.status.
2000 if test "$ac_new_set" = set; then
2002 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2003 *) ac_arg=$ac_var=$ac_new_val ;;
2005 case " $ac_configure_args " in
2006 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2007 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 if $ac_cache_corrupted; then
2012 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
2013 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
2014 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2060 for ac_dir in autoconf "$srcdir"/autoconf; do
2061 if test -f "$ac_dir/install-sh"; then
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 elif test -f "$ac_dir/install.sh"; then
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 elif test -f "$ac_dir/shtool"; then
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 if test -z "$ac_aux_dir"; then
2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2078 { (exit 1); exit 1; }; }
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2091 if test ${srcdir} != "." ; then
2092 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2093 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2094 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2095 { (exit 1); exit 1; }; }
2099 for i in `ls ${srcdir}/projects
`
2101 if test -d ${srcdir}/projects/${i} ; then
2104 sample) subdirs="$subdirs projects/sample"
2106 privbracket) subdirs="$subdirs projects/privbracket"
2108 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2110 # llvm-test is the old name of the test-suite, kept here for backwards
2112 llvm-test) subdirs="$subdirs projects/llvm-test"
2114 test-suite) subdirs="$subdirs projects/test-suite"
2116 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2118 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2120 llvm-java) subdirs="$subdirs projects/llvm-java"
2122 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2124 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2126 poolalloc) subdirs="$subdirs projects/poolalloc"
2128 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2131 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2132 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143 { (exit 1); exit 1; }; }
2145 { echo "$as_me:$LINENO: checking build system type" >&5
2146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 echo "${ECHO_T}$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2172 ac_save_IFS=$IFS; IFS='-'
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2182 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2185 { echo "$as_me:$LINENO: checking host system type" >&5
2186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196 { (exit 1); exit 1; }; }
2200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 echo "${ECHO_T}$ac_cv_host" >&6; }
2204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2209 ac_save_IFS=$IFS; IFS='-'
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2219 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2222 { echo "$as_me:$LINENO: checking target system type" >&5
2223 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2237 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 echo "${ECHO_T}$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2256 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2264 program_prefix=${target_alias}-
2266 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2267 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2268 if test "${llvm_cv_os_type+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="AIX"
2276 llvm_cv_platform_type="Unix" ;;
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="IRIX"
2281 llvm_cv_platform_type="Unix" ;;
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Cygwin"
2286 llvm_cv_platform_type="Unix" ;;
2288 llvm_cv_link_all_option="-Wl,-all_load"
2289 llvm_cv_no_link_all_option="-Wl,-noall_load"
2290 llvm_cv_os_type="Darwin"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="FreeBSD"
2296 llvm_cv_platform_type="Unix" ;;
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="OpenBSD"
2301 llvm_cv_platform_type="Unix" ;;
2303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305 llvm_cv_os_type="NetBSD"
2306 llvm_cv_platform_type="Unix" ;;
2308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310 llvm_cv_os_type="DragonFly"
2311 llvm_cv_platform_type="Unix" ;;
2313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315 llvm_cv_os_type="HP-UX"
2316 llvm_cv_platform_type="Unix" ;;
2318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2320 llvm_cv_os_type="Interix"
2321 llvm_cv_platform_type="Unix" ;;
2323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325 llvm_cv_os_type="Linux"
2326 llvm_cv_platform_type="Unix" ;;
2328 llvm_cv_link_all_option="-Wl,-z,allextract"
2329 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2330 llvm_cv_os_type="SunOS"
2331 llvm_cv_platform_type="Unix" ;;
2333 llvm_cv_link_all_option="-Wl,--whole-archive"
2334 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2335 llvm_cv_os_type="Win32"
2336 llvm_cv_platform_type="Win32" ;;
2338 llvm_cv_link_all_option="-Wl,--whole-archive"
2339 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2340 llvm_cv_os_type="MingW"
2341 llvm_cv_platform_type="Win32" ;;
2343 llvm_cv_link_all_option=""
2344 llvm_cv_no_link_all_option=""
2345 llvm_cv_os_type="Unknown"
2346 llvm_cv_platform_type="Unknown" ;;
2349 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2350 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2352 if test "$llvm_cv_os_type" = "Unknown" ; then
2353 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2354 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2355 { (exit 1); exit 1; }; }
2361 LINKALL=$llvm_cv_link_all_option
2363 NOLINKALL=$llvm_cv_no_link_all_option
2366 case $llvm_cv_platform_type in
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_UNIX 1
2380 cat >>confdefs.h <<\_ACEOF
2381 #define LLVM_ON_WIN32 1
2391 { echo "$as_me:$LINENO: checking target architecture" >&5
2392 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2393 if test "${llvm_cv_target_arch+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 i?86-*) llvm_cv_target_arch="x86" ;;
2398 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2399 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2400 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2401 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2402 ia64-*) llvm_cv_target_arch="IA64" ;;
2403 arm*-*) llvm_cv_target_arch="ARM" ;;
2404 mips-*) llvm_cv_target_arch="Mips" ;;
2405 pic16-*) llvm_cv_target_arch="PIC16" ;;
2406 xcore-*) llvm_cv_target_arch="XCore" ;;
2407 msp430-*) llvm_cv_target_arch="MSP430" ;;
2408 *) llvm_cv_target_arch="Unknown" ;;
2411 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2412 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2414 if test "$llvm_cv_target_arch" = "Unknown" ; then
2415 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2416 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2419 # Determine the LLVM native architecture for the target
2420 case "$llvm_cv_target_arch" in
2421 x86) LLVM_NATIVE_ARCH="X86" ;;
2422 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2423 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2426 ARCH=$llvm_cv_target_arch
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2475 # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="gcc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511 if test "x$ac_ct_CC" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$CC"; then
2561 { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2571 if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$CC" && break
2671 if test -z "$CC"; then
2673 for ac_prog in cl.exe
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712 test -n "$ac_ct_CC" && break
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet. If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet. If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log
' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details.
" >&2;}
2739 { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler --version >&5") 2>&5
2752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2753 (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler -v >&5") 2>&5
2762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2763 (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -V >&5") 2>&5
2772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2773 (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2795 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2796 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort. b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions. Remove them first so a
2806 # subsequent execution test works.
2808 for ac_file in $ac_files
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 if { (ac_try="$ac_link_default"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_link_default") 2>&5
2825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2826 (exit $ac_status); }; then
2827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2832 for ac_file in $ac_files
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 # We found the default executable, but exeext='' is most
2843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 # We set ac_cv_exeext here because the later test for it is not
2848 # safe: cross compilers may not add the suffix if given an `-o'
2849 # argument, so we may need to know it at that point already.
2850 # Even if this section looks crufty: it has the advantage of
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860 echo "$as_me: failed program was
:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2864 See \
`config.log' for more details." >&5
2865 echo "$as_me: error: C compiler cannot create executables
2866 See \`config.log
' for more details." >&2;}
2867 { (exit 77); exit 77; }; }
2870 ac_exeext=$ac_cv_exeext
2871 { echo "$as_me:$LINENO: result: $ac_file" >&5
2872 echo "${ECHO_T}$ac_file" >&6; }
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879 # If not cross compiling, check that we can run a simple program.
2880 if test "$cross_compiling" != yes; then
2881 if { ac_try='.
/$ac_file'
2882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2893 if test "$cross_compiling" = maybe; then
2896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \
`config.log' for more details." >&5
2899 echo "$as_me: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details.
" >&2;}
2902 { (exit 1); exit 1; }; }
2906 { echo "$as_me:$LINENO: result
: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 # Check that the compiler produces executables we can run. If not, either
2912 # the compiler is broken, or we cross compile.
2913 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2914 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2915 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2916 echo "${ECHO_T}$cross_compiling" >&6; }
2918 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2919 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2920 if { (ac_try="$ac_link"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_link") 2>&5
2928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 for ac_file in conftest.exe conftest conftest.*; do
2935 test -f "$ac_file" || continue
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2945 See \
`config.log' for more details." >&5
2946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log
' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2951 rm -f conftest$ac_cv_exeext
2952 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2958 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2960 if test "${ac_cv_objext+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.o conftest.obj
2979 if { (ac_try="$ac_compile"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2998 echo "$as_me: failed program was:" >&5
2999 sed 's
/^
/|
/' conftest.$ac_ext >&5
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details.
" >&5
3003 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3004 See \
`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011 echo "${ECHO_T}$ac_cv_objext" >&6; }
3012 OBJEXT=$ac_cv_objext
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1
>conftest.err
3048 cat conftest.err
>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3064 *) ac_try_echo
=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.
$ac_ext >&5
3079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3080 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3083 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3085 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3086 ac_test_CFLAGS
=${CFLAGS+set}
3087 ac_save_CFLAGS
=$CFLAGS
3088 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3089 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3090 if test "${ac_cv_prog_cc_g+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 ac_save_c_werror_flag
=$ac_c_werror_flag
3094 ac_c_werror_flag
=yes
3097 cat >conftest.
$ac_ext <<_ACEOF
3100 cat confdefs.h
>>conftest.
$ac_ext
3101 cat >>conftest.
$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3112 rm -f conftest.
$ac_objext
3113 if { (ac_try
="$ac_compile"
3115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3129 *) ac_try_echo
=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try
='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3171 *) ac_try_echo
=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1
>conftest.err
3178 cat conftest.err
>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3194 *) ac_try_echo
=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.
$ac_ext >&5
3206 ac_c_werror_flag
=$ac_save_c_werror_flag
3208 cat >conftest.
$ac_ext <<_ACEOF
3211 cat confdefs.h
>>conftest.
$ac_ext
3212 cat >>conftest.
$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.
$ac_objext
3224 if { (ac_try
="$ac_compile"
3226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3238 { (case "(($ac_try" in
3239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3240 *) ac_try_echo
=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_try") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try
='test -s conftest.$ac_objext'
3248 { (case "(($ac_try" in
3249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_try") 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3259 echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_c_werror_flag=$ac_save_c_werror_flag
3274 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3275 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3276 if test "$ac_test_CFLAGS" = set; then
3277 CFLAGS=$ac_save_CFLAGS
3278 elif test $ac_cv_prog_cc_g = yes; then
3279 if test "$GCC" = yes; then
3285 if test "$GCC" = yes; then
3291 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3292 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3293 if test "${ac_cv_prog_cc_c89+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_cv_prog_cc_c89=no
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3306 #include <sys/types.h>
3307 #include <sys/stat.h>
3308 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3309 struct buf { int x; };
3310 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3311 static char *e (p, i)
3317 static char *f (char * (*g) (char **, int), char **p, ...)
3322 s = g (p, va_arg (v,int));
3327 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3328 function prototypes and stuff, but not '\xHH' hex character constants.
3329 These don't provoke an error unfortunately, instead are silently treated
3330 as 'x'. The following induces an error, until -std is added to get
3331 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3332 array size at least. It's necessary to write '\x00'==0 to get something
3333 that's true only with -std. */
3334 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3337 inside strings and character constants. */
3339 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3356 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358 CC="$ac_save_CC $ac_arg"
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3363 *) ac_try_echo
=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>conftest.er1
3368 grep -v '^ *+' conftest.er1
>conftest.err
3370 cat conftest.err
>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3374 { (case "(($ac_try" in
3375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379 (eval "$ac_try") 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3386 *) ac_try_echo
=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_try") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_cv_prog_cc_c89
=$ac_arg
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.
$ac_ext >&5
3401 rm -f core conftest.err conftest.
$ac_objext
3402 test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 rm -f conftest.
$ac_ext
3409 case "x$ac_cv_prog_cc_c89" in
3411 { echo "$as_me:$LINENO: result: none needed" >&5
3412 echo "${ECHO_T}none needed" >&6; } ;;
3414 { echo "$as_me:$LINENO: result: unsupported" >&5
3415 echo "${ECHO_T}unsupported" >&6; } ;;
3417 CC
="$CC $ac_cv_prog_cc_c89"
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3419 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3424 ac_cpp
='$CPP $CPPFLAGS'
3425 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3431 ac_cpp
='$CPP $CPPFLAGS'
3432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3435 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3436 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3437 # On Suns, sometimes $CPP names a directory.
3438 if test -n "$CPP" && test -d "$CPP"; then
3441 if test -z "$CPP"; then
3442 if test "${ac_cv_prog_CPP+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 # Double quotes because CPP needs to be expanded
3446 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 for ac_c_preproc_warn_flag
in '' yes
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat >conftest.
$ac_ext <<_ACEOF
3460 cat confdefs.h
>>conftest.
$ac_ext
3461 cat >>conftest.
$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3464 # include <limits.h>
3466 # include <assert.h>
3470 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Broken: fails on valid input.
3502 rm -f conftest.err conftest.$ac_ext
3504 # OK, works on sane cases. Now check whether nonexistent headers
3505 # can be detected and how.
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 #include <ac_nonexistent.h>
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3517 *) ac_try_echo
=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1
>conftest.err
3524 cat conftest.err
>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev
/null
; then
3527 if test -s conftest.err
; then
3528 ac_cpp_err
=$ac_c_preproc_warn_flag
3529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3536 if test -z "$ac_cpp_err"; then
3537 # Broken: success on invalid input.
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.
$ac_ext >&5
3543 # Passes both tests.
3548 rm -f conftest.err conftest.
$ac_ext
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.
$ac_ext
3553 if $ac_preproc_ok; then
3565 { echo "$as_me:$LINENO: result: $CPP" >&5
3566 echo "${ECHO_T}$CPP" >&6; }
3568 for ac_c_preproc_warn_flag
in '' yes
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3583 # include <limits.h>
3585 # include <assert.h>
3589 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 if test -z "$ac_cpp_err"; then
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Broken: fails on valid input.
3621 rm -f conftest.err conftest.$ac_ext
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <ac_nonexistent.h>
3633 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3636 *) ac_try_echo
=$ac_try;;
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 grep -v '^ *+' conftest.er1
>conftest.err
3643 cat conftest.err
>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev
/null
; then
3646 if test -s conftest.err
; then
3647 ac_cpp_err
=$ac_c_preproc_warn_flag
3648 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3655 if test -z "$ac_cpp_err"; then
3656 # Broken: success on invalid input.
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.
$ac_ext >&5
3662 # Passes both tests.
3667 rm -f conftest.err conftest.
$ac_ext
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.err conftest.
$ac_ext
3672 if $ac_preproc_ok; then
3675 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }
3683 ac_cpp
='$CPP $CPPFLAGS'
3684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3689 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3690 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_GREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 # Extract the first word of "grep ggrep" to use in msg output
3695 if test -z "$GREP"; then
3696 set dummy
grep ggrep
; ac_prog_name
=$2
3697 if test "${ac_cv_path_GREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 ac_path_GREP_found
=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3703 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3706 test -z "$as_dir" && as_dir
=.
3707 for ac_prog
in grep ggrep
; do
3708 for ac_exec_ext
in '' $ac_executable_extensions; do
3709 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3710 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3711 # Check for GNU ac_path_GREP and select it if it is found.
3712 # Check for GNU $ac_path_GREP
3713 case `"$ac_path_GREP" --version 2>&1` in
3715 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 echo 'GREP' >> "conftest.nl"
3725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3726 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3727 ac_count
=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_GREP
="$ac_path_GREP"
3731 ac_path_GREP_max
=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3736 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3740 $ac_path_GREP_found && break 3
3750 GREP
="$ac_cv_path_GREP"
3751 if test -z "$GREP"; then
3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3753 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3754 { (exit 1); exit 1; }; }
3758 ac_cv_path_GREP
=$GREP
3763 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3764 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3765 GREP
="$ac_cv_path_GREP"
3768 { echo "$as_me:$LINENO: checking for egrep" >&5
3769 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3774 then ac_cv_path_EGREP
="$GREP -E"
3776 # Extract the first word of "egrep" to use in msg output
3777 if test -z "$EGREP"; then
3778 set dummy
egrep; ac_prog_name
=$2
3779 if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 ac_path_EGREP_found
=false
3783 # Loop through the user's path and test for each of PROGNAME-LIST
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3785 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_prog
in egrep; do
3790 for ac_exec_ext
in '' $ac_executable_extensions; do
3791 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3792 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3793 # Check for GNU ac_path_EGREP and select it if it is found.
3794 # Check for GNU $ac_path_EGREP
3795 case `"$ac_path_EGREP" --version 2>&1` in
3797 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3800 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 cat "conftest.in" "conftest.in" >"conftest.tmp"
3804 mv "conftest.tmp" "conftest.in"
3805 cp "conftest.in" "conftest.nl"
3806 echo 'EGREP' >> "conftest.nl"
3807 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3808 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3809 ac_count
=`expr $ac_count + 1`
3810 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3811 # Best one so far, save it but keep looking for a better one
3812 ac_cv_path_EGREP
="$ac_path_EGREP"
3813 ac_path_EGREP_max
=$ac_count
3815 # 10*(2^10) chars as input seems more than enough
3816 test $ac_count -gt 10 && break
3818 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3822 $ac_path_EGREP_found && break 3
3832 EGREP
="$ac_cv_path_EGREP"
3833 if test -z "$EGREP"; then
3834 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3835 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3836 { (exit 1); exit 1; }; }
3840 ac_cv_path_EGREP
=$EGREP
3846 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3847 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3848 EGREP
="$ac_cv_path_EGREP"
3851 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3852 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3853 if test "${ac_cv_header_stdc+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.
$ac_ext <<_ACEOF
3859 cat confdefs.h
>>conftest.
$ac_ext
3860 cat >>conftest.
$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3875 rm -f conftest.
$ac_objext
3876 if { (ac_try
="$ac_compile"
3878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3892 *) ac_try_echo
=$ac_try;;
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try
='test -s conftest.$ac_objext'
3900 { (case "(($ac_try" in
3901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_header_stdc=yes
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_cv_header_stdc=no
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "memchr" >/dev/null 2>&1; then
3934 ac_cv_header_stdc=no
3940 if test $ac_cv_header_stdc = yes; then
3941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "free" >/dev/null 2>&1; then
3955 ac_cv_header_stdc=no
3961 if test $ac_cv_header_stdc = yes; then
3962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3963 if test "$cross_compiling" = yes; then
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3974 #if ((' ' & 0x0FF) == 0x020)
3975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 # define ISLOWER(c) \
3979 (('a' <= (c) && (c) <= 'i') \
3980 || ('j' <= (c) && (c) <= 'r') \
3981 || ('s' <= (c) && (c) <= 'z'))
3982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3990 for (i = 0; i < 256; i++)
3991 if (XOR (islower (i), ISLOWER (i))
3992 || toupper (i) != TOUPPER (i))
3997 rm -f conftest$ac_exeext
3998 if { (ac_try="$ac_link"
4000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4001 *) ac_try_echo
=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_link") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4008 { (case "(($ac_try" in
4009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 echo "$as_me: program exited with status $ac_status" >&5
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4024 ac_cv_header_stdc=no
4026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4033 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4034 if test $ac_cv_header_stdc = yes; then
4036 cat >>confdefs.h <<\_ACEOF
4037 #define STDC_HEADERS 1
4042 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4052 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4053 inttypes.h stdint.h unistd.h
4055 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 $ac_includes_default
4069 #include <$ac_header>
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4075 *) ac_try_echo
=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4080 grep -v '^ *+' conftest.er1
>conftest.err
4082 cat conftest.err
>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4086 { (case "(($ac_try" in
4087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4098 *) ac_try_echo
=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 eval "$as_ac_Header=yes"
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.
$ac_ext >&5
4110 eval "$as_ac_Header=no"
4113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4115 ac_res
=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4119 cat >>confdefs.h
<<_ACEOF
4120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4128 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4129 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4130 if test "${ac_cv_c_bigendian+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 # See if sys/param.h defines the BYTE_ORDER macro.
4134 cat >conftest.
$ac_ext <<_ACEOF
4137 cat confdefs.h
>>conftest.
$ac_ext
4138 cat >>conftest.
$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <sys/types.h>
4141 #include <sys/param.h>
4146 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4154 rm -f conftest.
$ac_objext
4155 if { (ac_try
="$ac_compile"
4157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4171 *) ac_try_echo
=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try
='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 # It does; now see whether it defined to BIG_ENDIAN or not.
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 #include <sys/types.h>
4196 #include <sys/param.h>
4201 #if BYTE_ORDER != BIG_ENDIAN
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4213 *) ac_try_echo
=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1
>conftest.err
4220 cat conftest.err
>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (case "(($ac_try" in
4225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_try") 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4236 *) ac_try_echo
=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_c_bigendian
=yes
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.
$ac_ext >&5
4248 ac_cv_c_bigendian
=no
4251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.
$ac_ext >&5
4256 # It does not; compile a test program.
4257 if test "$cross_compiling" = yes; then
4258 # try to guess the endianness by grepping values into an object file
4259 ac_cv_c_bigendian
=unknown
4260 cat >conftest.
$ac_ext <<_ACEOF
4263 cat confdefs.h
>>conftest.
$ac_ext
4264 cat >>conftest.
$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4267 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4268 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4269 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4270 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4271 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4275 _ascii (); _ebcdic ();
4280 rm -f conftest.
$ac_objext
4281 if { (ac_try
="$ac_compile"
4283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4297 *) ac_try_echo
=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try
='test -s conftest.$ac_objext'
4305 { (case "(($ac_try" in
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4315 ac_cv_c_bigendian=yes
4317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4318 if test "$ac_cv_c_bigendian" = unknown; then
4319 ac_cv_c_bigendian=no
4321 # finding both strings is unlikely to happen, but who knows?
4322 ac_cv_c_bigendian=unknown
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4345 /* Are we little or big endian? From Harbison&Steele. */
4349 char c[sizeof (long int)];
4352 return u.c[sizeof (long int) - 1] == 1;
4358 rm -f conftest$ac_exeext
4359 if { (ac_try="$ac_link"
4361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4362 *) ac_try_echo
=$ac_try;;
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_link") 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4369 { (case "(($ac_try" in
4370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_c_bigendian=no
4380 echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_c_bigendian=yes
4387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4397 case $ac_cv_c_bigendian in
4405 { { echo "$as_me:$LINENO: error: unknown endianness
4406 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4407 echo "$as_me: error: unknown endianness
4408 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4409 { (exit 1); exit 1; }; } ;;
4413 if test "$cross_compiling" = yes; then
4414 LLVM_CROSS_COMPILING=1
4417 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4418 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4419 if test "${ac_cv_build_exeext+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4423 ac_cv_build_exeext=.exe
4425 ac_build_prefix=${build_alias}-
4427 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4428 set dummy ${ac_build_prefix}gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "gcc", so it can be a program name with args.
4466 set dummy gcc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_BUILD_CC="gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4502 if test -z "$BUILD_CC"; then
4503 # Extract the first word of "cc", so it can be a program name with args.
4504 set dummy cc; ac_word=$2
4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 if test -n "$BUILD_CC"; then
4511 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4522 ac_prog_rejected=yes
4525 ac_cv_prog_BUILD_CC="cc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test $ac_prog_rejected = yes; then
4534 # We found a bogon in the path, so make sure we never use it.
4535 set dummy $ac_cv_prog_BUILD_CC
4537 if test $# != 0; then
4538 # We chose a different compiler from the bogus one.
4539 # However, it has the same basename, so the bogon will be chosen
4540 # first if we set BUILD_CC to just the basename; use the full file name.
4542 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4547 BUILD_CC=$ac_cv_prog_BUILD_CC
4548 if test -n "$BUILD_CC"; then
4549 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4550 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 { echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6; }
4559 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4560 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4561 { (exit 1); exit 1; }; }
4562 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4567 (eval $ac_build_link) 2>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; then
4571 for file in conftest.*; do
4573 *.c | *.o | *.obj | *.dSYM) ;;
4574 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4578 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4579 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4580 { (exit 1); exit 1; }; }
4583 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4588 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4589 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4590 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4591 ac_build_exeext=$BUILD_EXEEXT
4593 ac_build_prefix=${build_alias}-
4594 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4595 set dummy ${ac_build_prefix}g++; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622 if test -n "$BUILD_CXX"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "g++", so it can be a program name with args.
4633 set dummy g++; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_BUILD_CXX="g++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660 if test -n "$BUILD_CXX"; then
4661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4669 if test -z "$BUILD_CXX"; then
4670 # Extract the first word of "c++", so it can be a program name with args.
4671 set dummy c++; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$BUILD_CXX"; then
4678 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4689 ac_prog_rejected=yes
4692 ac_cv_prog_BUILD_CXX="c++"
4693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test $ac_prog_rejected = yes; then
4701 # We found a bogon in the path, so make sure we never use it.
4702 set dummy $ac_cv_prog_BUILD_CXX
4704 if test $# != 0; then
4705 # We chose a different compiler from the bogus one.
4706 # However, it has the same basename, so the bogon will be chosen
4707 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4714 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4715 if test -n "$BUILD_CXX"; then
4716 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4717 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4727 LLVM_CROSS_COMPILING=0
4731 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4742 # Check whether --enable-optimized was given.
4743 if test "${enable_optimized+set}" = set; then
4744 enableval=$enable_optimized;
4749 if test ${enableval} = "no" ; then
4753 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4757 # Check whether --enable-profiling was given.
4758 if test "${enable_profiling+set}" = set; then
4759 enableval=$enable_profiling;
4764 if test ${enableval} = "no" ; then
4768 ENABLE_PROFILING=ENABLE_PROFILING=1
4772 # Check whether --enable-assertions was given.
4773 if test "${enable_assertions+set}" = set; then
4774 enableval=$enable_assertions;
4779 if test ${enableval} = "yes" ; then
4783 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4787 # Check whether --enable-expensive-checks was given.
4788 if test "${enable_expensive_checks+set}" = set; then
4789 enableval=$enable_expensive_checks;
4794 if test ${enableval} = "yes" ; then
4795 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797 EXPENSIVE_CHECKS=yes
4800 ENABLE_EXPENSIVE_CHECKS=
4806 # Check whether --enable-debug-runtime was given.
4807 if test "${enable_debug_runtime+set}" = set; then
4808 enableval=$enable_debug_runtime;
4813 if test ${enableval} = "no" ; then
4817 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4821 # Check whether --enable-jit was given.
4822 if test "${enable_jit+set}" = set; then
4823 enableval=$enable_jit;
4828 if test ${enableval} = "no"
4833 case "$llvm_cv_target_arch" in
4834 x86) TARGET_HAS_JIT=1
4836 Sparc) TARGET_HAS_JIT=0
4838 PowerPC) TARGET_HAS_JIT=1
4840 x86_64) TARGET_HAS_JIT=1
4842 Alpha) TARGET_HAS_JIT=1
4844 IA64) TARGET_HAS_JIT=0
4846 ARM) TARGET_HAS_JIT=0
4848 Mips) TARGET_HAS_JIT=0
4850 PIC16) TARGET_HAS_JIT=0
4852 XCore) TARGET_HAS_JIT=0
4854 MSP430) TARGET_HAS_JIT=0
4861 # Check whether --enable-doxygen was given.
4862 if test "${enable_doxygen+set}" = set; then
4863 enableval=$enable_doxygen;
4868 case "$enableval" in
4869 yes) ENABLE_DOXYGEN=1
4871 no) ENABLE_DOXYGEN=0
4873 default) ENABLE_DOXYGEN=0
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4880 # Check whether --enable-threads was given.
4881 if test "${enable_threads+set}" = set; then
4882 enableval=$enable_threads;
4887 case "$enableval" in
4888 yes) ENABLE_THREADS=1
4890 no) ENABLE_THREADS=0
4892 default) ENABLE_THREADS=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_THREADS $ENABLE_THREADS
4904 # Check whether --enable-pic was given.
4905 if test "${enable_pic+set}" = set; then
4906 enableval=$enable_pic;
4911 case "$enableval" in
4916 default) ENABLE_PIC=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 cat >>confdefs.h <<_ACEOF
4924 #define ENABLE_PIC $ENABLE_PIC
4929 # Check whether --enable-targets was given.
4930 if test "${enable_targets+set}" = set; then
4931 enableval=$enable_targets;
4936 case "$enableval" in
4937 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4939 case "$llvm_cv_target_arch" in
4940 x86) TARGETS_TO_BUILD="X86" ;;
4941 x86_64) TARGETS_TO_BUILD="X86" ;;
4942 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4943 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4944 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4945 IA64) TARGETS_TO_BUILD="IA64" ;;
4946 ARM) TARGETS_TO_BUILD="ARM" ;;
4947 Mips) TARGETS_TO_BUILD="Mips" ;;
4948 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4949 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4950 XCore) TARGETS_TO_BUILD="XCore" ;;
4951 MSP430) TARGETS_TO_BUILD="MSP430" ;;
4952 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4953 echo "$as_me: error: Can not set target to build" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4959 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4965 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4966 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4967 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4972 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4973 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4981 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4984 # Determine whether we are building LLVM support for the native architecture.
4985 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986 for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4990 cat >>confdefs.h <<_ACEOF
4991 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4997 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4998 # Targets.def and AsmPrinters.def.
4999 LLVM_ENUM_TARGETS=""
5000 LLVM_ENUM_ASM_PRINTERS=""
5001 for target_to_build in $TARGETS_TO_BUILD; do
5002 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5003 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5004 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5010 # Check whether --enable-cbe-printf-a was given.
5011 if test "${enable_cbe_printf_a+set}" = set; then
5012 enableval=$enable_cbe_printf_a;
5017 case "$enableval" in
5018 yes) ENABLE_CBE_PRINTF_A=1
5020 no) ENABLE_CBE_PRINTF_A=0
5022 default) ENABLE_CBE_PRINTF_A=1
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5029 cat >>confdefs.h <<_ACEOF
5030 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5035 # Check whether --with-llvmgccdir was given.
5036 if test "${with_llvmgccdir+set}" = set; then
5037 withval=$with_llvmgccdir;
5043 default) WITH_LLVMGCCDIR=default ;;
5044 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5045 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5046 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5051 # Check whether --with-llvmgcc was given.
5052 if test "${with_llvmgcc+set}" = set; then
5053 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5059 # Check whether --with-llvmgxx was given.
5060 if test "${with_llvmgxx+set}" = set; then
5061 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5066 if test -n "$LLVMGCC"; then
5067 LLVMGCCCOMMAND="$LLVMGCC"
5070 if test -n "$LLVMGXX"; then
5071 LLVMGXXCOMMAND="$LLVMGXX"
5074 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5075 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5076 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5077 { (exit 1); exit 1; }; };
5080 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5082 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5083 { (exit 1); exit 1; }; };
5087 # Check whether --with-extra-options was given.
5088 if test "${with_extra_options+set}" = set; then
5089 withval=$with_extra_options;
5095 default) EXTRA_OPTIONS= ;;
5096 *) EXTRA_OPTIONS=$withval ;;
5098 EXTRA_OPTIONS=$EXTRA_OPTIONS
5101 # Check whether --enable-bindings was given.
5102 if test "${enable_bindings+set}" = set; then
5103 enableval=$enable_bindings;
5108 BINDINGS_TO_BUILD=""
5109 case "$enableval" in
5110 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5111 all ) BINDINGS_TO_BUILD="ocaml" ;;
5112 none | no) BINDINGS_TO_BUILD="" ;;
5113 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5114 case "$a_binding" in
5115 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5116 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5117 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5125 # Check whether --with-ocaml-libdir was given.
5126 if test "${with_ocaml_libdir+set}" = set; then
5127 withval=$with_ocaml_libdir;
5133 auto) with_ocaml_libdir="$withval" ;;
5134 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5136 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5141 # Check whether --with-binutils-include was given.
5142 if test "${with_binutils_include+set}" = set; then
5143 withval=$with_binutils_include;
5149 default) WITH_BINUTILS_INCDIR=default ;;
5150 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5151 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5152 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5155 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5156 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5158 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5159 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5160 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5161 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5162 { (exit 1); exit 1; }; };
5166 # Check whether --enable-libffi was given.
5167 if test "${enable_libffi+set}" = set; then
5168 enableval=$enable_libffi;
5173 case "$enableval" in
5174 yes) llvm_cv_enable_libffi="yes" ;;
5175 no) llvm_cv_enable_libffi="no" ;;
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 if test "$llvm_cv_os_type" = "Win32" ; then
5187 # Check whether --enable-llvmc-dynamic was given.
5188 if test "${enable_llvmc_dynamic+set}" = set; then
5189 enableval=$enable_llvmc_dynamic;
5191 enableval=$llvmc_dynamic
5194 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5195 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5198 ENABLE_LLVMC_DYNAMIC=
5202 # Check whether --enable-llvmc-dynamic-plugins was given.
5203 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5204 enableval=$enable_llvmc_dynamic_plugins;
5209 if test ${enableval} = "yes" ; then
5210 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5213 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5225 # On Suns, sometimes $CPP names a directory.
5226 if test -n "$CPP" && test -d "$CPP"; then
5229 if test -z "$CPP"; then
5230 if test "${ac_cv_prog_CPP+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 # Double quotes because CPP needs to be expanded
5234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5237 for ac_c_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5252 # include <limits.h>
5254 # include <assert.h>
5258 if { (ac_try="$ac_cpp conftest.$ac_ext"
5260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5261 *) ac_try_echo
=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5266 grep -v '^ *+' conftest.er1
>conftest.err
5268 cat conftest.err
>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev
/null
; then
5271 if test -s conftest.err
; then
5272 ac_cpp_err
=$ac_c_preproc_warn_flag
5273 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5280 if test -z "$ac_cpp_err"; then
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.
$ac_ext >&5
5286 # Broken: fails on valid input.
5290 rm -f conftest.err conftest.
$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.
$ac_ext <<_ACEOF
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5302 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310 grep -v '^ *+' conftest.er1 >conftest.err
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } >/dev/null; then
5315 if test -s conftest.err; then
5316 ac_cpp_err=$ac_c_preproc_warn_flag
5317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5324 if test -z "$ac_cpp_err"; then
5325 # Broken: success on invalid input.
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 # Passes both tests.
5336 rm -f conftest.err conftest.$ac_ext
5339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340 rm -f conftest.err conftest.
$ac_ext
5341 if $ac_preproc_ok; then
5353 { echo "$as_me:$LINENO: result: $CPP" >&5
5354 echo "${ECHO_T}$CPP" >&6; }
5356 for ac_c_preproc_warn_flag
in '' yes
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat >conftest.
$ac_ext <<_ACEOF
5367 cat confdefs.h
>>conftest.
$ac_ext
5368 cat >>conftest.
$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5371 # include <limits.h>
5373 # include <assert.h>
5377 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } >/dev/null; then
5390 if test -s conftest.err; then
5391 ac_cpp_err=$ac_c_preproc_warn_flag
5392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5399 if test -z "$ac_cpp_err"; then
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Broken: fails on valid input.
5409 rm -f conftest.err conftest.$ac_ext
5411 # OK, works on sane cases. Now check whether nonexistent headers
5412 # can be detected and how.
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <ac_nonexistent.h>
5421 if { (ac_try="$ac_cpp conftest.$ac_ext"
5423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5424 *) ac_try_echo
=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5429 grep -v '^ *+' conftest.er1
>conftest.err
5431 cat conftest.err
>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } >/dev
/null
; then
5434 if test -s conftest.err
; then
5435 ac_cpp_err
=$ac_c_preproc_warn_flag
5436 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5443 if test -z "$ac_cpp_err"; then
5444 # Broken: success on invalid input.
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.
$ac_ext >&5
5450 # Passes both tests.
5455 rm -f conftest.err conftest.
$ac_ext
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.
$ac_ext
5460 if $ac_preproc_ok; then
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5471 ac_cpp
='$CPP $CPPFLAGS'
5472 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5477 ac_cpp
='$CPP $CPPFLAGS'
5478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5481 if test -n "$ac_tool_prefix"; then
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488 if test "${ac_cv_prog_CC+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 if test -n "$CC"; then
5492 ac_cv_prog_CC
="$CC" # Let the user override the test.
5494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir
=.
5499 for ac_exec_ext
in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 if test -n "$CC"; then
5513 { echo "$as_me:$LINENO: result: $CC" >&5
5514 echo "${ECHO_T}$CC" >&6; }
5516 { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5521 test -n "$CC" && break
5524 if test -z "$CC"; then
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy
$ac_prog; ac_word
=$2
5530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 if test -n "$ac_ct_CC"; then
5536 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir
=.
5543 for ac_exec_ext
in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_ac_ct_CC
="$ac_prog"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5556 if test -n "$ac_ct_CC"; then
5557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5558 echo "${ECHO_T}$ac_ct_CC" >&6; }
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5565 test -n "$ac_ct_CC" && break
5568 if test "x$ac_ct_CC" = x
; then
5571 case $cross_compiling:$ac_tool_warned in
5573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5574 whose name does not start with the host triplet. If you think this
5575 configuration is useful to you, please write to autoconf@gnu.org." >&5
5576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5577 whose name does not start with the host triplet. If you think this
5578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5579 ac_tool_warned
=yes ;;
5586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: no acceptable C compiler found in \$PATH
5589 See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5592 # Provide some information about the compiler.
5593 echo "$as_me:$LINENO: checking for C compiler version" >&5
5594 ac_compiler
=`set X $ac_compile; echo $2`
5595 { (ac_try
="$ac_compiler --version >&5"
5597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_compiler --version >&5") 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }
5605 { (ac_try="$ac_compiler -v >&5"
5607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5608 *) ac_try_echo
=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compiler -v >&5") 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }
5615 { (ac_try
="$ac_compiler -V >&5"
5617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compiler -V >&5") 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }
5626 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5627 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5653 *) ac_try_echo
=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5658 grep -v '^ *+' conftest.er1
>conftest.err
5660 cat conftest.err
>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664 { (case "(($ac_try" in
5665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (case "(($ac_try" in
5675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5676 *) ac_try_echo
=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_try") 2>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.
$ac_ext >&5
5691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5695 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5696 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5697 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5698 ac_test_CFLAGS
=${CFLAGS+set}
5699 ac_save_CFLAGS
=$CFLAGS
5700 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5701 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_cc_g+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 ac_save_c_werror_flag
=$ac_c_werror_flag
5706 ac_c_werror_flag
=yes
5709 cat >conftest.
$ac_ext <<_ACEOF
5712 cat confdefs.h
>>conftest.
$ac_ext
5713 cat >>conftest.
$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5724 rm -f conftest.
$ac_objext
5725 if { (ac_try
="$ac_compile"
5727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5741 *) ac_try_echo
=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try
='test -s conftest.$ac_objext'
5749 { (case "(($ac_try" in
5750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5783 *) ac_try_echo
=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1
>conftest.err
5790 cat conftest.err
>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (case "(($ac_try" in
5795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_try") 2>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5806 *) ac_try_echo
=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.
$ac_ext >&5
5818 ac_c_werror_flag
=$ac_save_c_werror_flag
5820 cat >conftest.
$ac_ext <<_ACEOF
5823 cat confdefs.h
>>conftest.
$ac_ext
5824 cat >>conftest.
$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5835 rm -f conftest.
$ac_objext
5836 if { (ac_try
="$ac_compile"
5838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (case "(($ac_try" in
5851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5852 *) ac_try_echo
=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_try") 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try
='test -s conftest.$ac_objext'
5860 { (case "(($ac_try" in
5861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 ac_c_werror_flag=$ac_save_c_werror_flag
5886 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5888 if test "$ac_test_CFLAGS" = set; then
5889 CFLAGS=$ac_save_CFLAGS
5890 elif test $ac_cv_prog_cc_g = yes; then
5891 if test "$GCC" = yes; then
5897 if test "$GCC" = yes; then
5903 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5904 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_cc_c89+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_cv_prog_cc_c89=no
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5918 #include <sys/types.h>
5919 #include <sys/stat.h>
5920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5921 struct buf { int x; };
5922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5923 static char *e (p, i)
5929 static char *f (char * (*g) (char **, int), char **p, ...)
5934 s = g (p, va_arg (v,int));
5939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5940 function prototypes and stuff, but not '\xHH' hex character constants.
5941 These don't provoke an error unfortunately, instead are silently treated
5942 as 'x'. The following induces an error, until -std is added to get
5943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5944 array size at least. It's necessary to write '\x00'==0 to get something
5945 that's true only with -std. */
5946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5949 inside strings and character constants. */
5951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5953 int test (int i, double x);
5954 struct s1 {int (*f) (int a);};
5955 struct s2 {int (*f) (double a);};
5956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5970 CC="$ac_save_CC $ac_arg"
5971 rm -f conftest.$ac_objext
5972 if { (ac_try="$ac_compile"
5974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5975 *) ac_try_echo
=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1
>conftest.err
5982 cat conftest.err
>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5986 { (case "(($ac_try" in
5987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5998 *) ac_try_echo
=$ac_try;;
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_prog_cc_c89
=$ac_arg
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.
$ac_ext >&5
6013 rm -f core conftest.err conftest.
$ac_objext
6014 test "x$ac_cv_prog_cc_c89" != "xno" && break
6016 rm -f conftest.
$ac_ext
6021 case "x$ac_cv_prog_cc_c89" in
6023 { echo "$as_me:$LINENO: result: none needed" >&5
6024 echo "${ECHO_T}none needed" >&6; } ;;
6026 { echo "$as_me:$LINENO: result: unsupported" >&5
6027 echo "${ECHO_T}unsupported" >&6; } ;;
6029 CC
="$CC $ac_cv_prog_cc_c89"
6030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6031 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6036 ac_cpp
='$CPP $CPPFLAGS'
6037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6042 ac_cpp
='$CXXCPP $CPPFLAGS'
6043 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6046 if test -z "$CXX"; then
6047 if test -n "$CCC"; then
6050 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_prog_CXX+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 if test -n "$CXX"; then
6061 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir
=.
6068 for ac_exec_ext
in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 if test -n "$CXX"; then
6082 { echo "$as_me:$LINENO: result: $CXX" >&5
6083 echo "${ECHO_T}$CXX" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6090 test -n "$CXX" && break
6093 if test -z "$CXX"; then
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy
$ac_prog; ac_word
=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 if test -n "$ac_ct_CXX"; then
6105 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir
=.
6112 for ac_exec_ext
in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6125 if test -n "$ac_ct_CXX"; then
6126 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6127 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6134 test -n "$ac_ct_CXX" && break
6137 if test "x$ac_ct_CXX" = x
; then
6140 case $cross_compiling:$ac_tool_warned in
6142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6143 whose name does not start with the host triplet. If you think this
6144 configuration is useful to you, please write to autoconf@gnu.org." >&5
6145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6146 whose name does not start with the host triplet. If you think this
6147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6148 ac_tool_warned
=yes ;;
6156 # Provide some information about the compiler.
6157 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6158 ac_compiler
=`set X $ac_compile; echo $2`
6159 { (ac_try
="$ac_compiler --version >&5"
6161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_compiler --version >&5") 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }
6169 { (ac_try="$ac_compiler -v >&5"
6171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6172 *) ac_try_echo
=$ac_try;;
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compiler -v >&5") 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }
6179 { (ac_try
="$ac_compiler -V >&5"
6181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_compiler -V >&5") 2>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }
6190 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6217 *) ac_try_echo
=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1
>conftest.err
6224 cat conftest.err
>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6228 { (case "(($ac_try" in
6229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_try") 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6240 *) ac_try_echo
=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.
$ac_ext >&5
6255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6256 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6261 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6262 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6263 ac_save_CXXFLAGS
=$CXXFLAGS
6264 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_cxx_g+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6270 ac_cxx_werror_flag
=yes
6273 cat >conftest.
$ac_ext <<_ACEOF
6276 cat confdefs.h
>>conftest.
$ac_ext
6277 cat >>conftest.
$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6288 rm -f conftest.
$ac_objext
6289 if { (ac_try
="$ac_compile"
6291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_compile") 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6303 { (case "(($ac_try" in
6304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6305 *) ac_try_echo
=$ac_try;;
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_try") 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try
='test -s conftest.$ac_objext'
6313 { (case "(($ac_try" in
6314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_prog_cxx_g=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6347 *) ac_try_echo
=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6358 { (case "(($ac_try" in
6359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_try") 2>&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6370 *) ac_try_echo
=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.
$ac_ext >&5
6382 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6384 cat >conftest.
$ac_ext <<_ACEOF
6387 cat confdefs.h
>>conftest.
$ac_ext
6388 cat >>conftest.
$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6399 rm -f conftest.
$ac_objext
6400 if { (ac_try
="$ac_compile"
6402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6414 { (case "(($ac_try" in
6415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6416 *) ac_try_echo
=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_try") 2>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try
='test -s conftest.$ac_objext'
6424 { (case "(($ac_try" in
6425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_prog_cxx_g=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6451 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6452 if test "$ac_test_CXXFLAGS" = set; then
6453 CXXFLAGS=$ac_save_CXXFLAGS
6454 elif test $ac_cv_prog_cxx_g = yes; then
6455 if test "$GXX" = yes; then
6461 if test "$GXX" = yes; then
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6474 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6475 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6476 if test "${lt_cv_path_NM+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 if test -n "$NM"; then
6480 # Let the user override the test.
6483 lt_nm_to_check="${ac_tool_prefix}nm"
6484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6485 lt_nm_to_check="$lt_nm_to_check nm"
6487 for lt_tmp_nm in $lt_nm_to_check; do
6488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6491 test -z "$ac_dir" && ac_dir=.
6492 tmp_nm="$ac_dir/$lt_tmp_nm"
6493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6494 # Check to see if the nm accepts a BSD-compat flag.
6495 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6496 # nm: unknown option "B" ignored
6497 # Tru64's nm complains that
/dev
/null is an invalid object
file
6498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6499 */dev
/null
* |
*'Invalid file or object type'*)
6500 lt_cv_path_NM
="$tmp_nm -B"
6504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6506 lt_cv_path_NM
="$tmp_nm -p"
6510 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6511 continue # so that we can try to find one that supports BSD flags
6520 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6523 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6524 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6529 { echo "$as_me:$LINENO: checking for GNU make" >&5
6530 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6531 if test "${llvm_cv_gnu_make_command+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 llvm_cv_gnu_make_command
=''
6535 for a
in "$MAKE" make gmake gnumake
; do
6536 if test -z "$a" ; then continue ; fi ;
6537 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6539 llvm_cv_gnu_make_command
=$a ;
6544 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6545 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6546 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6550 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6551 echo "${ECHO_T}\"Not found\"" >&6; };
6555 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6558 if test "$LN_S" = "ln -s"; then
6559 { echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6; }
6562 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6563 echo "${ECHO_T}no, using $LN_S" >&6; }
6566 # Extract the first word of "cmp", so it can be a program name with args.
6567 set dummy
cmp; ac_word
=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_CMP+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir
=.
6583 for ac_exec_ext
in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6598 if test -n "$CMP"; then
6599 { echo "$as_me:$LINENO: result: $CMP" >&5
6600 echo "${ECHO_T}$CMP" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6607 # Extract the first word of "cp", so it can be a program name with args.
6608 set dummy
cp; ac_word
=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_path_CP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir
=.
6624 for ac_exec_ext
in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6639 if test -n "$CP"; then
6640 { echo "$as_me:$LINENO: result: $CP" >&5
6641 echo "${ECHO_T}$CP" >&6; }
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6648 # Extract the first word of "date", so it can be a program name with args.
6649 set dummy
date; ac_word
=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_DATE+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir
=.
6665 for ac_exec_ext
in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6679 DATE
=$ac_cv_path_DATE
6680 if test -n "$DATE"; then
6681 { echo "$as_me:$LINENO: result: $DATE" >&5
6682 echo "${ECHO_T}$DATE" >&6; }
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6689 # Extract the first word of "find", so it can be a program name with args.
6690 set dummy
find; ac_word
=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_FIND+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir
=.
6706 for ac_exec_ext
in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6720 FIND
=$ac_cv_path_FIND
6721 if test -n "$FIND"; then
6722 { echo "$as_me:$LINENO: result: $FIND" >&5
6723 echo "${ECHO_T}$FIND" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "grep", so it can be a program name with args.
6731 set dummy
grep; ac_word
=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GREP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir
=.
6747 for ac_exec_ext
in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6761 GREP
=$ac_cv_path_GREP
6762 if test -n "$GREP"; then
6763 { echo "$as_me:$LINENO: result: $GREP" >&5
6764 echo "${ECHO_T}$GREP" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6771 # Extract the first word of "mkdir", so it can be a program name with args.
6772 set dummy mkdir
; ac_word
=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_MKDIR+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir
=.
6788 for ac_exec_ext
in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6802 MKDIR
=$ac_cv_path_MKDIR
6803 if test -n "$MKDIR"; then
6804 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6805 echo "${ECHO_T}$MKDIR" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "mv", so it can be a program name with args.
6813 set dummy
mv; 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_MV+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_MV
="$MV" # 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_MV
="$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_MV" && ac_cv_path_MV
="mv"
6844 if test -n "$MV"; then
6845 { echo "$as_me:$LINENO: result: $MV" >&5
6846 echo "${ECHO_T}$MV" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir
=.
6869 for ac_exec_ext
in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 RANLIB
=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB
=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib
; 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_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir
=.
6909 for ac_exec_ext
in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_ct_RANLIB" = x
; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned
=yes ;;
6943 RANLIB
=$ac_ct_RANLIB
6946 RANLIB
="$ac_cv_prog_RANLIB"
6949 # Extract the first word of "rm", so it can be a program name with args.
6950 set dummy
rm; ac_word
=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_RM+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir
=.
6966 for ac_exec_ext
in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6981 if test -n "$RM"; then
6982 { echo "$as_me:$LINENO: result: $RM" >&5
6983 echo "${ECHO_T}$RM" >&6; }
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6990 # Extract the first word of "sed", so it can be a program name with args.
6991 set dummy
sed; ac_word
=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_SED+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir
=.
7007 for ac_exec_ext
in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7022 if test -n "$SED"; then
7023 { echo "$as_me:$LINENO: result: $SED" >&5
7024 echo "${ECHO_T}$SED" >&6; }
7026 { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7031 # Extract the first word of "tar", so it can be a program name with args.
7032 set dummy
tar; ac_word
=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_TAR+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir
=.
7048 for ac_exec_ext
in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7063 if test -n "$TAR"; then
7064 { echo "$as_me:$LINENO: result: $TAR" >&5
7065 echo "${ECHO_T}$TAR" >&6; }
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7072 # Extract the first word of "pwd", so it can be a program name with args.
7073 set dummy
pwd; ac_word
=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BINPWD+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir
=.
7089 for ac_exec_ext
in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7103 BINPWD
=$ac_cv_path_BINPWD
7104 if test -n "$BINPWD"; then
7105 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7106 echo "${ECHO_T}$BINPWD" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7114 # Extract the first word of "Graphviz", so it can be a program name with args.
7115 set dummy Graphviz
; ac_word
=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir
=.
7131 for ac_exec_ext
in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7145 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7146 if test -n "$GRAPHVIZ"; then
7147 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7148 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7155 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7157 cat >>confdefs.h
<<\_ACEOF
7158 #define HAVE_GRAPHVIZ 1
7161 if test "$llvm_cv_os_type" = "MingW" ; then
7162 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7165 cat >>confdefs.h
<<_ACEOF
7166 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7170 # Extract the first word of "dot", so it can be a program name with args.
7171 set dummy dot
; ac_word
=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_path_DOT+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir
=.
7187 for ac_exec_ext
in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7202 if test -n "$DOT"; then
7203 { echo "$as_me:$LINENO: result: $DOT" >&5
7204 echo "${ECHO_T}$DOT" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 if test "$DOT" != "echo dot" ; then
7213 cat >>confdefs.h
<<\_ACEOF
7217 if test "$llvm_cv_os_type" = "MingW" ; then
7218 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7221 cat >>confdefs.h
<<_ACEOF
7222 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7226 # Extract the first word of "fdp", so it can be a program name with args.
7227 set dummy fdp
; ac_word
=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_path_FDP+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir
=.
7243 for ac_exec_ext
in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7258 if test -n "$FDP"; then
7259 { echo "$as_me:$LINENO: result: $FDP" >&5
7260 echo "${ECHO_T}$FDP" >&6; }
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7267 if test "$FDP" != "echo fdp" ; then
7269 cat >>confdefs.h
<<\_ACEOF
7273 if test "$llvm_cv_os_type" = "MingW" ; then
7274 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277 cat >>confdefs.h
<<_ACEOF
7278 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7282 # Extract the first word of "neato", so it can be a program name with args.
7283 set dummy neato
; ac_word
=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_NEATO+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir
=.
7299 for ac_exec_ext
in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7313 NEATO
=$ac_cv_path_NEATO
7314 if test -n "$NEATO"; then
7315 { echo "$as_me:$LINENO: result: $NEATO" >&5
7316 echo "${ECHO_T}$NEATO" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 if test "$NEATO" != "echo neato" ; then
7325 cat >>confdefs.h
<<\_ACEOF
7326 #define HAVE_NEATO 1
7329 if test "$llvm_cv_os_type" = "MingW" ; then
7330 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7333 cat >>confdefs.h
<<_ACEOF
7334 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7338 # Extract the first word of "twopi", so it can be a program name with args.
7339 set dummy twopi
; ac_word
=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_TWOPI+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir
=.
7355 for ac_exec_ext
in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7369 TWOPI
=$ac_cv_path_TWOPI
7370 if test -n "$TWOPI"; then
7371 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7372 echo "${ECHO_T}$TWOPI" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 if test "$TWOPI" != "echo twopi" ; then
7381 cat >>confdefs.h
<<\_ACEOF
7382 #define HAVE_TWOPI 1
7385 if test "$llvm_cv_os_type" = "MingW" ; then
7386 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7389 cat >>confdefs.h
<<_ACEOF
7390 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7394 # Extract the first word of "circo", so it can be a program name with args.
7395 set dummy circo
; ac_word
=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_path_CIRCO+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7425 CIRCO
=$ac_cv_path_CIRCO
7426 if test -n "$CIRCO"; then
7427 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7428 echo "${ECHO_T}$CIRCO" >&6; }
7430 { echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6; }
7435 if test "$CIRCO" != "echo circo" ; then
7437 cat >>confdefs.h
<<\_ACEOF
7438 #define HAVE_CIRCO 1
7441 if test "$llvm_cv_os_type" = "MingW" ; then
7442 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7445 cat >>confdefs.h
<<_ACEOF
7446 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7450 for ac_prog
in gv gsview32
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy
$ac_prog; ac_word
=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_GV+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir
=.
7469 for ac_exec_ext
in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 if test -n "$GV"; then
7484 { echo "$as_me:$LINENO: result: $GV" >&5
7485 echo "${ECHO_T}$GV" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 test -n "$GV" && break
7494 test -n "$GV" || GV
="echo gv"
7496 if test "$GV" != "echo gv" ; then
7498 cat >>confdefs.h
<<\_ACEOF
7502 if test "$llvm_cv_os_type" = "MingW" ; then
7503 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7506 cat >>confdefs.h
<<_ACEOF
7507 #define LLVM_PATH_GV "$GV${EXEEXT}"
7511 # Extract the first word of "dotty", so it can be a program name with args.
7512 set dummy dotty
; ac_word
=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_DOTTY+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir
=.
7528 for ac_exec_ext
in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7542 DOTTY
=$ac_cv_path_DOTTY
7543 if test -n "$DOTTY"; then
7544 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7545 echo "${ECHO_T}$DOTTY" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7552 if test "$DOTTY" != "echo dotty" ; then
7554 cat >>confdefs.h
<<\_ACEOF
7555 #define HAVE_DOTTY 1
7558 if test "$llvm_cv_os_type" = "MingW" ; then
7559 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7562 cat >>confdefs.h
<<_ACEOF
7563 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7569 # Extract the first word of "perl", so it can be a program name with args.
7570 set dummy perl
; ac_word
=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_PERL+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir
=.
7586 for ac_exec_ext
in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7600 PERL
=$ac_cv_path_PERL
7601 if test -n "$PERL"; then
7602 { echo "$as_me:$LINENO: result: $PERL" >&5
7603 echo "${ECHO_T}$PERL" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 if test "$PERL" != "none"; then
7611 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7612 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7613 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7614 { echo "$as_me:$LINENO: result: yes" >&5
7615 echo "${ECHO_T}yes" >&6; }
7618 { echo "$as_me:$LINENO: result: not found" >&5
7619 echo "${ECHO_T}not found" >&6; }
7624 if test x
"$PERL" = xnone
; then
7627 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7628 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7629 { (exit 1); exit 1; }; }
7635 # Find a good install program. We prefer a C program (faster),
7636 # so one script is as good as another. But avoid the broken or
7637 # incompatible versions:
7638 # SysV /etc/install, /usr/sbin/install
7639 # SunOS /usr/etc/install
7640 # IRIX /sbin/install
7642 # AmigaOS /C/install, which installs bootblocks on floppy discs
7643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7646 # OS/2's system install, which has a completely different semantic
7647 # ./install, which can be erroneously created by make from ./install.sh.
7648 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7650 if test -z "$INSTALL"; then
7651 if test "${ac_cv_path_install+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir
=.
7659 # Account for people who put trailing slashes in PATH elements.
7661 .
/ | .
// |
/cC
/* | \
7662 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7663 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7666 # OSF1 and SCO ODT 3.0 have their own names for install.
7667 # Don't use installbsd from OSF since it installs stuff as root
7669 for ac_prog
in ginstall scoinst
install; do
7670 for ac_exec_ext
in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7672 if test $ac_prog = install &&
7673 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7674 # AIX install. It has an incompatible calling convention.
7676 elif test $ac_prog = install &&
7677 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7678 # program-specific install script used by HP pwplus--don't use.
7681 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL
=$ac_cv_path_install
7697 # As a last resort, use the slow shell script. Don't cache a
7698 # value for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the value is a relative name.
7701 INSTALL
=$ac_install_sh
7704 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7705 echo "${ECHO_T}$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7713 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7716 # Extract the first word of "bzip2", so it can be a program name with args.
7717 set dummy
bzip2; ac_word
=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_BZIP2+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir
=.
7733 for ac_exec_ext
in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 BZIP2
=$ac_cv_path_BZIP2
7747 if test -n "$BZIP2"; then
7748 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7749 echo "${ECHO_T}$BZIP2" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 # Extract the first word of "doxygen", so it can be a program name with args.
7757 set dummy doxygen
; ac_word
=$2
7758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7760 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir
=.
7773 for ac_exec_ext
in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 DOXYGEN
=$ac_cv_path_DOXYGEN
7787 if test -n "$DOXYGEN"; then
7788 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7789 echo "${ECHO_T}$DOXYGEN" >&6; }
7791 { echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6; }
7796 # Extract the first word of "groff", so it can be a program name with args.
7797 set dummy
groff; ac_word
=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_path_GROFF+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir
=.
7813 for ac_exec_ext
in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 GROFF
=$ac_cv_path_GROFF
7827 if test -n "$GROFF"; then
7828 { echo "$as_me:$LINENO: result: $GROFF" >&5
7829 echo "${ECHO_T}$GROFF" >&6; }
7831 { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7836 # Extract the first word of "gzip", so it can be a program name with args.
7837 set dummy
gzip; ac_word
=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_path_GZIP+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir
=.
7853 for ac_exec_ext
in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 GZIP
=$ac_cv_path_GZIP
7867 if test -n "$GZIP"; then
7868 { echo "$as_me:$LINENO: result: $GZIP" >&5
7869 echo "${ECHO_T}$GZIP" >&6; }
7871 { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7876 # Extract the first word of "pod2html", so it can be a program name with args.
7877 set dummy pod2html
; ac_word
=$2
7878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7880 if test "${ac_cv_path_POD2HTML+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir
=.
7893 for ac_exec_ext
in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 POD2HTML
=$ac_cv_path_POD2HTML
7907 if test -n "$POD2HTML"; then
7908 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7909 echo "${ECHO_T}$POD2HTML" >&6; }
7911 { echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6; }
7916 # Extract the first word of "pod2man", so it can be a program name with args.
7917 set dummy pod2man
; ac_word
=$2
7918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7920 if test "${ac_cv_path_POD2MAN+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7932 test -z "$as_dir" && as_dir
=.
7933 for ac_exec_ext
in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 POD2MAN
=$ac_cv_path_POD2MAN
7947 if test -n "$POD2MAN"; then
7948 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7949 echo "${ECHO_T}$POD2MAN" >&6; }
7951 { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7956 # Extract the first word of "runtest", so it can be a program name with args.
7957 set dummy runtest
; ac_word
=$2
7958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960 if test "${ac_cv_path_RUNTEST+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir
=.
7973 for ac_exec_ext
in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 RUNTEST
=$ac_cv_path_RUNTEST
7987 if test -n "$RUNTEST"; then
7988 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7989 echo "${ECHO_T}$RUNTEST" >&6; }
7991 { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7998 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7999 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8001 # Check whether --with-tclinclude was given.
8002 if test "${with_tclinclude+set}" = set; then
8003 withval
=$with_tclinclude; with_tclinclude
=${withval}
8008 if test "${ac_cv_path_tclsh+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 if test x
"${with_tclinclude}" != x
; then
8013 if test -f ${with_tclinclude}/tclsh
; then
8014 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8015 elif test -f ${with_tclinclude}/src
/tclsh
; then
8016 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8018 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8019 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8020 { (exit 1); exit 1; }; }
8024 if test x
"${ac_cv_path_tclsh}" = x
; then
8025 { echo "$as_me:$LINENO: result: none" >&5
8026 echo "${ECHO_T}none" >&6; }
8027 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
8029 # Extract the first word of "$ac_prog", so it can be a program name with args.
8030 set dummy
$ac_prog; ac_word
=$2
8031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033 if test "${ac_cv_path_TCLSH+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir
=.
8046 for ac_exec_ext
in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 TCLSH
=$ac_cv_path_TCLSH
8060 if test -n "$TCLSH"; then
8061 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8062 echo "${ECHO_T}$TCLSH" >&6; }
8064 { echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6; }
8069 test -n "$TCLSH" && break
8072 if test x
"${TCLSH}" = x
; then
8073 ac_cv_path_tclsh
='';
8075 ac_cv_path_tclsh
="${TCLSH}";
8078 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8079 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8080 TCLSH="${ac_cv_path_tclsh}"
8086 # Extract the first word of "zip", so it can be a program name with args.
8087 set dummy zip; ac_word=$2
8088 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8089 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8090 if test "${ac_cv_path_ZIP+set}" = set; then
8091 echo $ECHO_N "(cached
) $ECHO_C" >&6
8095 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8117 if test -n "$ZIP"; then
8118 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8119 echo "${ECHO_T}$ZIP" >&6; }
8121 { echo "$as_me:$LINENO: result
: no
" >&5
8122 echo "${ECHO_T}no
" >&6; }
8126 for ac_prog in ocamlc
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8131 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8132 if test "${ac_cv_path_OCAMLC+set}" = set; then
8133 echo $ECHO_N "(cached
) $ECHO_C" >&6
8137 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8158 OCAMLC=$ac_cv_path_OCAMLC
8159 if test -n "$OCAMLC"; then
8160 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8161 echo "${ECHO_T}$OCAMLC" >&6; }
8163 { echo "$as_me:$LINENO: result
: no
" >&5
8164 echo "${ECHO_T}no
" >&6; }
8168 test -n "$OCAMLC" && break
8171 for ac_prog in ocamlopt
8173 # Extract the first word of "$ac_prog", so it can be a program name with args.
8174 set dummy $ac_prog; ac_word=$2
8175 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8176 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8177 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8178 echo $ECHO_N "(cached
) $ECHO_C" >&6
8182 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8193 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8203 OCAMLOPT=$ac_cv_path_OCAMLOPT
8204 if test -n "$OCAMLOPT"; then
8205 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8206 echo "${ECHO_T}$OCAMLOPT" >&6; }
8208 { echo "$as_me:$LINENO: result
: no
" >&5
8209 echo "${ECHO_T}no
" >&6; }
8213 test -n "$OCAMLOPT" && break
8216 for ac_prog in ocamldep
8218 # Extract the first word of "$ac_prog", so it can be a program name with args.
8219 set dummy $ac_prog; ac_word=$2
8220 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8221 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8222 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8223 echo $ECHO_N "(cached
) $ECHO_C" >&6
8227 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8248 OCAMLDEP=$ac_cv_path_OCAMLDEP
8249 if test -n "$OCAMLDEP"; then
8250 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8251 echo "${ECHO_T}$OCAMLDEP" >&6; }
8253 { echo "$as_me:$LINENO: result
: no
" >&5
8254 echo "${ECHO_T}no
" >&6; }
8258 test -n "$OCAMLDEP" && break
8261 for ac_prog in ocamldoc
8263 # Extract the first word of "$ac_prog", so it can be a program name with args.
8264 set dummy $ac_prog; ac_word=$2
8265 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8266 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8267 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8268 echo $ECHO_N "(cached
) $ECHO_C" >&6
8272 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8283 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8293 OCAMLDOC=$ac_cv_path_OCAMLDOC
8294 if test -n "$OCAMLDOC"; then
8295 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8296 echo "${ECHO_T}$OCAMLDOC" >&6; }
8298 { echo "$as_me:$LINENO: result
: no
" >&5
8299 echo "${ECHO_T}no
" >&6; }
8303 test -n "$OCAMLDOC" && break
8306 for ac_prog in gas as
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309 set dummy $ac_prog; ac_word=$2
8310 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8311 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8312 if test "${ac_cv_path_GAS+set}" = set; then
8313 echo $ECHO_N "(cached
) $ECHO_C" >&6
8317 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8328 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8339 if test -n "$GAS"; then
8340 { echo "$as_me:$LINENO: result
: $GAS" >&5
8341 echo "${ECHO_T}$GAS" >&6; }
8343 { echo "$as_me:$LINENO: result
: no
" >&5
8344 echo "${ECHO_T}no
" >&6; }
8348 test -n "$GAS" && break
8352 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8353 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8354 if test "${llvm_cv_link_use_r+set}" = set; then
8355 echo $ECHO_N "(cached
) $ECHO_C" >&6
8358 ac_cpp='$CPP $CPPFLAGS'
8359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364 CFLAGS="$CFLAGS -Wl,-R.
"
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8375 int main() { return 0; }
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 llvm_cv_link_use_r=yes
8416 echo "$as_me: failed program was
:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 llvm_cv_link_use_r=no
8422 rm -f core conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8426 ac_cpp='$CPP $CPPFLAGS'
8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8434 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8435 if test "$llvm_cv_link_use_r" = yes ; then
8437 cat >>confdefs.h <<\_ACEOF
8438 #define HAVE_LINK_R 1
8444 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8445 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8446 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8447 echo $ECHO_N "(cached
) $ECHO_C" >&6
8450 ac_cpp='$CPP $CPPFLAGS'
8451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8467 int main() { return 0; }
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 llvm_cv_link_use_export_dynamic=yes
8508 echo "$as_me: failed program was
:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 llvm_cv_link_use_export_dynamic=no
8514 rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8525 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8526 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8527 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_LINK_EXPORT_DYNAMIC 1
8538 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8539 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8540 if test "${ac_cv_c_const+set}" = set; then
8541 echo $ECHO_N "(cached
) $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8553 /* FIXME: Include the comments suggested by Paul. */
8555 /* Ultrix mips cc rejects this. */
8556 typedef int charset[2];
8558 /* SunOS 4.1.1 cc rejects this. */
8559 char const *const *ccp;
8561 /* NEC SVR4.0.2 mips cc rejects this. */
8562 struct point {int x, y;};
8563 static struct point const zero = {0,0};
8564 /* AIX XL C 1.02.0.0 rejects this.
8565 It does not let you subtract one const X* pointer from another in
8566 an arm of an if-expression whose if-part is not a constant
8568 const char *g = "string
";
8569 ccp = &g + (g ? g-g : 0);
8570 /* HPUX 7.0 cc rejects these. */
8573 ccp = (char const *const *) p;
8574 { /* SCO 3.2v4 cc rejects this. */
8576 char const *s = 0 ? (char *) 0 : (char const *) 0;
8581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8583 const int *foo = &x[0];
8586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8587 typedef const int *iptr;
8591 { /* AIX XL C 1.02.0.0 rejects this saying
8592 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8593 struct s { int j; const int *ap[3]; };
8594 struct s *b; b->j = 5;
8596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8600 return !x[0] && !zero.x;
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_try") 2>&5
8629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (case "(($ac_try" in
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_try") 2>&5
8639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8640 (exit $ac_status); }; }; then
8643 echo "$as_me: failed program was
:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8652 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8653 if test $ac_cv_c_const = no; then
8655 cat >>confdefs.h <<\_ACEOF
8667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8668 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8669 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8670 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8672 echo $ECHO_N "(cached
) $ECHO_C" >&6
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <sys/types.h>
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707 { (case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_try") 2>&5
8714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest.$ac_objext'
8717 { (case "(($ac_try" in
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_try") 2>&5
8724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 eval "$as_ac_Header=yes"
8728 echo "$as_me: failed program was
:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 eval "$as_ac_Header=no
"
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 ac_res=`eval echo '${'$as_ac_Header'}'`
8737 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8738 echo "${ECHO_T}$ac_res" >&6; }
8739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8740 cat >>confdefs.h <<_ACEOF
8741 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8744 ac_header_dirent=$ac_hdr; break
8748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8749 if test $ac_header_dirent = dirent.h; then
8750 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8751 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8752 if test "${ac_cv_search_opendir+set}" = set; then
8753 echo $ECHO_N "(cached
) $ECHO_C" >&6
8755 ac_func_search_save_LIBS=$LIBS
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8778 for ac_lib in '' dir; do
8779 if test -z "$ac_lib"; then
8780 ac_res="none required
"
8783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (ac_try="$ac_link"
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_link") 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8798 (exit $ac_status); } &&
8799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800 { (case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8815 (eval "$ac_try") 2>&5
8817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_search_opendir=$ac_res
8821 echo "$as_me: failed program was
:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f core conftest.err conftest.$ac_objext \
8829 if test "${ac_cv_search_opendir+set}" = set; then
8833 if test "${ac_cv_search_opendir+set}" = set; then
8836 ac_cv_search_opendir=no
8839 LIBS=$ac_func_search_save_LIBS
8841 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8843 ac_res=$ac_cv_search_opendir
8844 if test "$ac_res" != no; then
8845 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8850 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8851 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8852 if test "${ac_cv_search_opendir+set}" = set; then
8853 echo $ECHO_N "(cached
) $ECHO_C" >&6
8855 ac_func_search_save_LIBS=$LIBS
8856 cat >conftest.$ac_ext <<_ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8863 /* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8878 for ac_lib in '' x; do
8879 if test -z "$ac_lib"; then
8880 ac_res="none required
"
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8885 rm -f conftest.$ac_objext conftest$ac_exeext
8886 if { (ac_try="$ac_link"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_link") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
8907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 ac_cv_search_opendir=$ac_res
8921 echo "$as_me: failed program was
:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8927 rm -f core conftest.err conftest.$ac_objext \
8929 if test "${ac_cv_search_opendir+set}" = set; then
8933 if test "${ac_cv_search_opendir+set}" = set; then
8936 ac_cv_search_opendir=no
8939 LIBS=$ac_func_search_save_LIBS
8941 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8943 ac_res=$ac_cv_search_opendir
8944 if test "$ac_res" != no; then
8945 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8952 for ac_header in dlfcn.h
8954 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8956 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8957 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8958 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8959 echo $ECHO_N "(cached
) $ECHO_C" >&6
8961 ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8963 echo "${ECHO_T}$ac_res" >&6; }
8965 # Is the header compilable?
8966 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8967 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8974 $ac_includes_default
8975 #include <$ac_header>
8977 rm -f conftest.$ac_objext
8978 if { (ac_try="$ac_compile"
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_compile") 2>conftest.er1
8986 grep -v '^ *+' conftest.er1 >conftest.err
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_header_compiler=yes
9013 echo "$as_me: failed program was
:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_header_compiler=no
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9021 echo "${ECHO_T}$ac_header_compiler" >&6; }
9023 # Is the header present?
9024 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9025 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 #include <$ac_header>
9034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9042 grep -v '^ *+' conftest.er1 >conftest.err
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
9049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9056 if test -z "$ac_cpp_err"; then
9057 ac_header_preproc=yes
9059 echo "$as_me: failed program was
:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 ac_header_preproc=no
9065 rm -f conftest.err conftest.$ac_ext
9066 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9067 echo "${ECHO_T}$ac_header_preproc" >&6; }
9069 # So? What about this header?
9070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9072 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9073 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9076 ac_header_preproc=yes
9079 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9080 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9081 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9082 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9083 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9084 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9085 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9086 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9089 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9090 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9092 ## ----------------------------------- ##
9093 ## Report this to llvmbugs@cs.uiuc.edu ##
9094 ## ----------------------------------- ##
9096 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9099 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9100 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9102 echo $ECHO_N "(cached
) $ECHO_C" >&6
9104 eval "$as_ac_Header=\
$ac_header_preproc"
9106 ac_res=`eval echo '${'$as_ac_Header'}'`
9107 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9108 echo "${ECHO_T}$ac_res" >&6; }
9111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9120 # Check whether --enable-ltdl-install was given.
9121 if test "${enable_ltdl_install+set}" = set; then
9122 enableval=$enable_ltdl_install;
9128 if test x"${enable_ltdl_install-no}" != xno; then
9130 INSTALL_LTDL_FALSE='#'
9132 INSTALL_LTDL_TRUE='#'
9138 if test x"${enable_ltdl_convenience-no}" != xno; then
9139 CONVENIENCE_LTDL_TRUE=
9140 CONVENIENCE_LTDL_FALSE='#'
9142 CONVENIENCE_LTDL_TRUE='#'
9143 CONVENIENCE_LTDL_FALSE=
9147 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9148 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9150 libname_spec='lib$name'
9158 shlibpath_overrides_runpath=unknown
9160 dynamic_linker="$host_os ld.so
"
9161 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9162 if test "$GCC" = yes; then
9163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9165 # if the path contains ";" then we assume it to be the separator
9166 # otherwise default to the standard path separator (i.e. ":") - it is
9167 # assumed that no part of a normal pathname contains ";" but that should
9168 # okay in the real world where ";" in dirpaths is itself problematic.
9169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9174 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9176 need_lib_prefix=unknown
9177 hardcode_into_libs=no
9179 # when you set need_version to no, make sure it does not cause -set_version
9180 # flags to be left without arguments
9181 need_version=unknown
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187 shlibpath_var=LIBPATH
9189 # AIX 3 has no versioning support, so we append a major version to the name.
9190 soname_spec='${libname}${release}${shared_ext}$major'
9197 hardcode_into_libs=yes
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 supports IA64
9200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201 shlibpath_var=LD_LIBRARY_PATH
9203 # With GCC up to 2.95.x, collect2 would create an import file
9204 # for dependence libraries. The import file would start with
9205 # the line `#! .'. This would cause the generated library to
9206 # depend on `.', always an invalid library. This was fixed in
9207 # development snapshots of GCC prior to 3.0.
9209 aix4 | aix4.[01] | aix4.[01].*)
9210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220 # soname into executable. Probably we can add versioning support to
9221 # collect2, so additional links can be useful in future.
9222 if test "$aix_use_runtimelinking" = yes; then
9223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224 # instead of lib<name>.a to let people know that these are not
9225 # typical AIX shared libraries.
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 # We preserve .a as extension for shared libraries through AIX4.2
9229 # and later when we are not doing run time linking.
9230 library_names_spec='${libname}${release}.a $libname.a'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LIBPATH
9238 library_names_spec='$libname.ixlibrary $libname.a'
9239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9240 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'
9244 library_names_spec='${libname}${shared_ext}'
9245 dynamic_linker="$host_os ld.so
"
9246 shlibpath_var=LIBRARY_PATH
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9257 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9258 # the default ld.so.conf also contains /usr/contrib/lib and
9259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9260 # libtool to hard-code these into programs
9263 cygwin* | mingw* | pw32*)
9264 version_type=windows
9269 case $GCC,$host_os in
9270 yes,cygwin* | yes,mingw* | yes,pw32*)
9271 library_names_spec='$libname.dll.a'
9272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9273 postinstall_cmds='base_file=`basename \${file}`~
9274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9275 dldir=$destdir/`dirname \$dlpath`~
9276 test -d \$dldir || mkdir -p \$dldir~
9277 $install_prog $dir/$dlname \$dldir/$dlname~
9278 chmod a+x \$dldir/$dlname'
9279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9280 dlpath=$dir/\$dldll~
9282 shlibpath_overrides_runpath=yes
9286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9288 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9291 # MinGW DLLs use traditional 'lib' prefix
9292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9295 # It is most probably a Windows format PATH printed by
9296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9297 # path with ; separators, and with drive letters. We can handle the
9298 # drive letters (cygwin fileutils understands them), so leave them,
9299 # especially as we might pass files found there to a mingw objdump,
9300 # which wouldn't understand a cygwinified path. Ahh.
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9307 # pw32 DLLs use 'pw' prefix rather than 'lib'
9308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9317 dynamic_linker='Win32 ld.exe'
9318 # FIXME: first we should search . and the directory the executable is in
9322 darwin* | rhapsody*)
9323 dynamic_linker="$host_os dyld
"
9327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9328 soname_spec='${libname}${release}${major}$shared_ext'
9329 shlibpath_overrides_runpath=yes
9330 shlibpath_var=DYLD_LIBRARY_PATH
9331 shrext_cmds='.dylib'
9332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9333 if test "$GCC" = yes; then
9334 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
"`
9336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=no
9362 hardcode_into_libs=yes
9363 dynamic_linker='GNU ld.so'
9366 freebsd* | dragonfly*)
9367 # DragonFly does not have aout. When/if they implement a new
9368 # versioning mechanism, adjust this.
9369 if test -x /usr/bin/objformat; then
9370 objformat=`/usr/bin/objformat`
9373 freebsd[123]*) objformat=aout ;;
9377 version_type=freebsd-$objformat
9378 case $version_type in
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9389 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9394 freebsd3.[01]* | freebsdelf3.[01]*)
9395 shlibpath_overrides_runpath=yes
9396 hardcode_into_libs=yes
9398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400 shlibpath_overrides_runpath=no
9401 hardcode_into_libs=yes
9403 freebsd*) # from 4.6 on
9404 shlibpath_overrides_runpath=yes
9405 hardcode_into_libs=yes
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 hardcode_into_libs=yes
9420 hpux9* | hpux10* | hpux11*)
9421 # Give a soname corresponding to the major version so that dld.sl refuses to
9422 # link against other versions.
9429 hardcode_into_libs=yes
9430 dynamic_linker="$host_os dld.so
"
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 if test "X
$HPUX_IA64_MODE" = X32; then
9436 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9438 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.sl
"
9446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9455 dynamic_linker="$host_os dld.sl
"
9456 shlibpath_var=SHLIB_PATH
9457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463 postinstall_cmds='chmod 555 $lib'
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9478 irix5* | irix6* | nonstopux*)
9480 nonstopux*) version_type=nonstopux ;;
9482 if test "$lt_cv_prog_gnu_ld" = yes; then
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9493 irix5* | nonstopux*)
9497 case $LD in # libtool.m4 will add one of these switches to LD
9498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499 libsuff= shlibsuff= libmagic=32-bit;;
9500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501 libsuff=32 shlibsuff=N32 libmagic=N32;;
9502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504 *) libsuff= shlibsuff= libmagic=never-match;;
9508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509 shlibpath_overrides_runpath=no
9510 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9512 hardcode_into_libs=yes
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9520 # This must be Linux ELF.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=no
9530 # This implies no fast_install, which is unacceptable.
9531 # Some rework will be needed to allow for fast_install
9532 # before this can be enabled.
9533 hardcode_into_libs=yes
9535 # Append ld.so.conf contents to the search path
9536 if test -f /etc/ld.so.conf; then
9537 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' ' '`
9538 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9541 # We used to test for /lib/ld.so.1 and disable shared libraries on
9542 # powerpc, because MkLinux only supported shared libraries with the
9543 # GNU dynamic linker. Since this was broken with cross compilers,
9544 # most powerpc-linux boxes support dynamic linking these days and
9545 # people can always --disable-shared, the test was removed, and we
9546 # assume the GNU/Linux dynamic linker is in use.
9547 dynamic_linker='GNU/Linux ld.so'
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=no
9558 hardcode_into_libs=yes
9559 dynamic_linker='GNU ld.so'
9566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9569 dynamic_linker='NetBSD (a.out) ld.so'
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 dynamic_linker='NetBSD ld.elf_so'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 hardcode_into_libs=yes
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9599 sys_lib_dlsearch_path_spec="/usr
/lib
"
9601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604 *) need_version=no ;;
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9611 openbsd2.[89] | openbsd2.[89].*)
9612 shlibpath_overrides_runpath=no
9615 shlibpath_overrides_runpath=yes
9619 shlibpath_overrides_runpath=yes
9624 libname_spec='$name'
9627 library_names_spec='$libname${shared_ext} $libname.a'
9628 dynamic_linker='OS/2 ld.exe'
9629 shlibpath_var=LIBPATH
9632 osf3* | osf4* | osf5*)
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 shlibpath_var=LD_LIBRARY_PATH
9639 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9652 # ldd complains unless libraries are executable
9653 postinstall_cmds='chmod +x $lib'
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 if test "$with_gnu_ld" = yes; then
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_vendor in
9675 shlibpath_overrides_runpath=no
9677 export_dynamic_flag_spec='${wl}-Blargedynsym'
9678 runpath_var=LD_RUN_PATH
9686 shlibpath_overrides_runpath=no
9687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9693 if test -d /usr/nec ;then
9695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9696 soname_spec='$libname${shared_ext}.$major'
9697 shlibpath_var=LD_LIBRARY_PATH
9701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9702 version_type=freebsd-elf
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 hardcode_into_libs=yes
9709 if test "$with_gnu_ld" = yes; then
9710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9711 shlibpath_overrides_runpath=no
9713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9714 shlibpath_overrides_runpath=yes
9717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9721 sys_lib_dlsearch_path_spec='/usr/lib'
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9735 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9736 echo "${ECHO_T}$dynamic_linker" >&6; }
9737 test "$dynamic_linker" = no && can_build_shared=no
9739 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9740 if test "$GCC" = yes; then
9741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9745 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9746 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9747 if test "${libltdl_cv_shlibext+set}" = set; then
9748 echo $ECHO_N "(cached
) $ECHO_C" >&6
9752 eval libltdl_cv_shlibext=$shrext_cmds
9755 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9756 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9757 if test -n "$libltdl_cv_shlibext"; then
9759 cat >>confdefs.h <<_ACEOF
9760 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9766 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9767 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9768 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9769 echo $ECHO_N "(cached
) $ECHO_C" >&6
9771 libltdl_cv_shlibpath_var="$shlibpath_var"
9773 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9774 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9775 if test -n "$libltdl_cv_shlibpath_var"; then
9777 cat >>confdefs.h <<_ACEOF
9778 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9784 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9785 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9786 if test "${libltdl_cv_sys_search_path+set}" = set; then
9787 echo $ECHO_N "(cached
) $ECHO_C" >&6
9789 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9791 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9792 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9793 if test -n "$libltdl_cv_sys_search_path"; then
9795 for dir in $libltdl_cv_sys_search_path; do
9796 if test -z "$sys_search_path"; then
9797 sys_search_path="$dir"
9799 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9803 cat >>confdefs.h <<_ACEOF
9804 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9809 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9810 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9811 if test "${libltdl_cv_objdir+set}" = set; then
9812 echo $ECHO_N "(cached
) $ECHO_C" >&6
9814 libltdl_cv_objdir="$objdir"
9815 if test -n "$objdir"; then
9818 rm -f .libs 2>/dev/null
9819 mkdir .libs 2>/dev/null
9820 if test -d .libs; then
9821 libltdl_cv_objdir=.libs
9823 # MS-DOS does not allow filenames that begin with a dot.
9824 libltdl_cv_objdir=_libs
9826 rmdir .libs 2>/dev/null
9830 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9831 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9833 cat >>confdefs.h <<_ACEOF
9834 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9842 # Check for command to grab the raw symbol name followed by C symbol from nm.
9843 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9844 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9845 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9846 echo $ECHO_N "(cached
) $ECHO_C" >&6
9849 # These are sane defaults that work on at least a few old systems.
9850 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9852 # Character class describing NM global symbol codes.
9853 symcode='[BCDEGRST]'
9855 # Regexp to match symbols that can be accessed directly from C.
9856 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9858 # Transform an extracted symbol line into a proper C declaration
9859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9861 # Transform an extracted symbol line into symbol name and symbol address
9862 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'"
9864 # Define system-specific variables.
9869 cygwin* | mingw* | pw32*)
9870 symcode='[ABCDGISTW]'
9872 hpux*) # Its linker distinguishes data from code symbols
9873 if test "$host_cpu" = ia64; then
9874 symcode='[ABCDEGRST]'
9876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9877 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'"
9880 if test "$host_cpu" = ia64; then
9881 symcode='[ABCDGIRSTW]'
9882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9883 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9887 symcode='[BCDEGRST]'
9890 symcode='[BCDEGQRST]'
9901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9909 # Handle CRLF in mingw tool chain
9913 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9917 # If we're using GNU nm, then use its standard symbol codes.
9918 case `$NM -V 2>&1` in
9919 *GNU* | *'with BFD'*)
9920 symcode='[ABCDGIRSTW]' ;;
9923 # Try without a prefix undercore, then with it.
9924 for ac_symprfx in "" "_
"; do
9926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9927 symxfrm="\\1 $ac_symprfx\\2 \\2"
9929 # Write the raw and C identifiers.
9930 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9932 # Check to see that the pipe works correctly.
9936 cat > conftest.$ac_ext <<EOF
9941 void nm_test_func(){}
9945 int main(){nm_test_var='a';nm_test_func();return(0);}
9948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 (eval $ac_compile) 2>&5
9951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9952 (exit $ac_status); }; then
9953 # Now try to grab the symbols.
9955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9959 (exit $ac_status); } && test -s "$nlist"; then
9960 # Try sorting and uniquifying the output.
9961 if sort "$nlist" | uniq > "$nlist"T; then
9962 mv -f "$nlist"T "$nlist"
9967 # Make sure that we snagged all the symbols we need.
9968 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9969 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9970 cat <<EOF > conftest.$ac_ext
9976 # Now generate the symbol file.
9977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9979 cat <<EOF >> conftest.$ac_ext
9980 #if defined (__STDC__) && __STDC__
9981 # define lt_ptr_t void *
9983 # define lt_ptr_t char *
9987 /* The mapping between symbol names and symbols. */
9992 lt_preloaded_symbols[] =
9995 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9996 cat <<\EOF >> conftest.$ac_ext
10004 # Now try linking the two files.
10005 mv conftest.$ac_objext conftstm.$ac_objext
10006 lt_save_LIBS="$LIBS"
10007 lt_save_CFLAGS="$CFLAGS"
10008 LIBS="conftstm.
$ac_objext"
10009 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10014 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10017 LIBS="$lt_save_LIBS"
10018 CFLAGS="$lt_save_CFLAGS"
10020 echo "cannot
find nm_test_func
in $nlist" >&5
10023 echo "cannot
find nm_test_var
in $nlist" >&5
10026 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10029 echo "$progname: failed program was
:" >&5
10030 cat conftest.$ac_ext >&5
10032 rm -f conftest* conftst*
10034 # Do not use the global_symbol_pipe unless it works.
10035 if test "$pipe_works" = yes; then
10038 lt_cv_sys_global_symbol_pipe=
10044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10045 lt_cv_sys_global_symbol_to_cdecl=
10047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10048 { echo "$as_me:$LINENO: result
: failed
" >&5
10049 echo "${ECHO_T}failed
" >&6; }
10051 { echo "$as_me:$LINENO: result
: ok
" >&5
10052 echo "${ECHO_T}ok
" >&6; }
10056 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10057 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10058 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10059 echo $ECHO_N "(cached
) $ECHO_C" >&6
10061 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10062 libltdl_cv_preloaded_symbols=yes
10064 libltdl_cv_preloaded_symbols=no
10068 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10069 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10070 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_PRELOADED_SYMBOLS 1
10081 ac_cpp='$CPP $CPPFLAGS'
10082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10087 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10088 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10089 if test "${ac_cv_func_shl_load+set}" = set; then
10090 echo $ECHO_N "(cached
) $ECHO_C" >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10100 #define shl_load innocuous_shl_load
10102 /* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char shl_load (); below.
10104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105 <limits.h> exists even on freestanding compilers. */
10108 # include <limits.h>
10110 # include <assert.h>
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10122 /* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
10125 #if defined __stub_shl_load || defined __stub___shl_load
10132 return shl_load ();
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (ac_try="$ac_link"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_link") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_cv_func_shl_load=yes
10173 echo "$as_me: failed program was
:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_cv_func_shl_load=no
10179 rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10182 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10183 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10184 if test $ac_cv_func_shl_load = yes; then
10186 cat >>confdefs.h <<\_ACEOF
10187 #define HAVE_SHL_LOAD 1
10191 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10192 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10193 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10194 echo $ECHO_N "(cached
) $ECHO_C" >&6
10196 ac_check_lib_save_LIBS=$LIBS
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10215 return shl_load ();
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_dld_shl_load=yes
10256 echo "$as_me: failed program was
:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_dld_shl_load=no
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10268 if test $ac_cv_lib_dld_shl_load = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10271 #define HAVE_SHL_LOAD 1
10274 LIBADD_DL="$LIBADD_DL -ldld"
10276 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10277 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10279 echo $ECHO_N "(cached
) $ECHO_C" >&6
10281 ac_check_lib_save_LIBS=$LIBS
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_lib_dl_dlopen=yes
10341 echo "$as_me: failed program was
:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_cv_lib_dl_dlopen=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10353 if test $ac_cv_lib_dl_dlopen = yes; then
10355 cat >>confdefs.h <<\_ACEOF
10356 #define HAVE_LIBDL 1
10359 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 # include <dlfcn.h>
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10412 (exit $ac_status); }; }; then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_LIBDL 1
10417 libltdl_cv_func_dlopen="yes"
10419 echo "$as_me: failed program was
:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10423 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10425 echo $ECHO_N "(cached
) $ECHO_C" >&6
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lsvld $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_lib_svld_dlopen=yes
10487 echo "$as_me: failed program was
:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_svld_dlopen=no
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10499 if test $ac_cv_lib_svld_dlopen = yes; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_LIBDL 1
10505 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10507 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10508 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10509 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10510 echo $ECHO_N "(cached
) $ECHO_C" >&6
10512 ac_check_lib_save_LIBS=$LIBS
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10531 return dld_link ();
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_cv_lib_dld_dld_link=yes
10572 echo "$as_me: failed program was
:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_cv_lib_dld_dld_link=no
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10584 if test $ac_cv_lib_dld_dld_link = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10590 LIBADD_DL="$LIBADD_DL -ldld"
10592 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10593 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10594 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10595 echo $ECHO_N "(cached
) $ECHO_C" >&6
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10605 #define _dyld_func_lookup innocuous__dyld_func_lookup
10607 /* System header to define __stub macros and hopefully few prototypes,
10608 which can conflict with char _dyld_func_lookup (); below.
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10610 <limits.h> exists even on freestanding compilers. */
10613 # include <limits.h>
10615 # include <assert.h>
10618 #undef _dyld_func_lookup
10620 /* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
10626 char _dyld_func_lookup ();
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10637 return _dyld_func_lookup ();
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_link") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_try") 2>&5
10664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_func__dyld_func_lookup=yes
10678 echo "$as_me: failed program was
:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10681 ac_cv_func__dyld_func_lookup=no
10684 rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10687 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10688 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10689 if test $ac_cv_func__dyld_func_lookup = yes; then
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_DYLD 1
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10718 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10720 lt_save_LIBS="$LIBS"
10721 LIBS="$LIBS $LIBADD_DL"
10723 for ac_func in dlerror
10725 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10726 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10727 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10728 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10729 echo $ECHO_N "(cached
) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10739 #define $ac_func innocuous_$ac_func
10741 /* System header to define __stub macros and hopefully few prototypes,
10742 which can conflict with char $ac_func (); below.
10743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10744 <limits.h> exists even on freestanding compilers. */
10747 # include <limits.h>
10749 # include <assert.h>
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined __stub_$ac_func || defined __stub___$ac_func
10771 return $ac_func ();
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 eval "$as_ac_var=yes"
10812 echo "$as_me: failed program was
:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 eval "$as_ac_var=no
"
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10821 ac_res=`eval echo '${'$as_ac_var'}'`
10822 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10823 echo "${ECHO_T}$ac_res" >&6; }
10824 if test `eval echo '${'$as_ac_var'}'` = yes; then
10825 cat >>confdefs.h <<_ACEOF
10826 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10832 LIBS="$lt_save_LIBS"
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10843 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10844 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10845 echo $ECHO_N "(cached
) $ECHO_C" >&6
10847 ac_cv_sys_symbol_underscore=no
10848 cat > conftest.$ac_ext <<EOF
10849 void nm_test_func(){}
10850 int main(){nm_test_func;return 0;}
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>&5
10855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10856 (exit $ac_status); }; then
10857 # Now try to grab the symbols.
10858 ac_nlist=conftest.nm
10859 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10860 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10863 (exit $ac_status); } && test -s "$ac_nlist"; then
10864 # See whether the symbols have a leading underscore.
10865 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10866 ac_cv_sys_symbol_underscore=yes
10868 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10871 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10875 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10878 echo "configure
: failed program was
:" >&5
10884 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10885 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10888 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10889 if test x"$libltdl_cv_func_dlopen" = xyes ||
10890 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10891 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10892 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10893 if test "${libltdl_cv_need_uscore+set}" = set; then
10894 echo $ECHO_N "(cached
) $ECHO_C" >&6
10896 libltdl_cv_need_uscore=unknown
10898 LIBS="$LIBS $LIBADD_DL"
10899 if test "$cross_compiling" = yes; then :
10900 libltdl_cv_need_uscore=cross
10902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903 lt_status=$lt_dlunknown
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10905 "configure
"
10906 #include "confdefs.h
"
10915 # define LT_DLGLOBAL RTLD_GLOBAL
10918 # define LT_DLGLOBAL DL_GLOBAL
10920 # define LT_DLGLOBAL 0
10924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925 find out it does not work in some platform. */
10926 #ifndef LT_DLLAZY_OR_NOW
10928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10931 # define LT_DLLAZY_OR_NOW DL_LAZY
10934 # define LT_DLLAZY_OR_NOW RTLD_NOW
10937 # define LT_DLLAZY_OR_NOW DL_NOW
10939 # define LT_DLLAZY_OR_NOW 0
10947 extern "C
" void exit (int);
10950 void fnord() { int i=42;}
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10958 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10959 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10960 /* dlclose (self); */
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973 (./conftest; exit; ) >&5 2>/dev/null
10975 case x$lt_status in
10976 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10977 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10978 x$lt_dlunknown|x*) ;;
10981 # compilation failed
10990 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10991 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10995 if test x"$libltdl_cv_need_uscore" = xyes; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define NEED_USCORE 1
11004 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11005 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11006 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11007 echo $ECHO_N "(cached
) $ECHO_C" >&6
11009 # PORTME does your system automatically load deplibs for dlopen?
11010 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11011 # For now, we just catch OSes we know something about -- in the
11012 # future, we'll try test this programmatically.
11013 libltdl_cv_sys_dlopen_deplibs=unknown
11015 aix3*|aix4.1.*|aix4.2.*)
11016 # Unknown whether this is true for these versions of AIX, but
11017 # we want this `case' here to explicitly catch those versions.
11018 libltdl_cv_sys_dlopen_deplibs=unknown
11021 libltdl_cv_sys_dlopen_deplibs=yes
11024 # Assuming the user has installed a libdl from somewhere, this is true
11025 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11026 libltdl_cv_sys_dlopen_deplibs=yes
11028 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11029 # GNU and its variants, using gnu ld.so (Glibc)
11030 libltdl_cv_sys_dlopen_deplibs=yes
11033 libltdl_cv_sys_dlopen_deplibs=yes
11036 libltdl_cv_sys_dlopen_deplibs=yes
11038 irix[12345]*|irix6.[01]*)
11039 # Catch all versions of IRIX before 6.2, and indicate that we don't
11040 # know how it worked for any of those versions.
11041 libltdl_cv_sys_dlopen_deplibs=unknown
11044 # The case above catches anything before 6.2, and it's known that
11045 # at 6.2 and later dlopen does load deplibs.
11046 libltdl_cv_sys_dlopen_deplibs=yes
11049 libltdl_cv_sys_dlopen_deplibs=yes
11052 libltdl_cv_sys_dlopen_deplibs=yes
11055 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11056 # it did *not* use an RPATH in a shared library to find objects the
11057 # library depends on, so we explictly say `no'.
11058 libltdl_cv_sys_dlopen_deplibs=no
11060 osf5.0|osf5.0a|osf5.1)
11061 # dlopen *does* load deplibs and with the right loader patch applied
11062 # it even uses RPATH in a shared library to search for shared objects
11063 # that the library depends on, but there's no easy way to know if that
11064 # patch is installed. Since this is the case, all we can really
11065 # say is unknown -- it depends on the patch being installed. If
11066 # it is, this changes to `yes'. Without it, it would be `no'.
11067 libltdl_cv_sys_dlopen_deplibs=unknown
11070 # the two cases above should catch all versions of osf <= 5.1. Read
11071 # the comments above for what we know about them.
11072 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11073 # is used to find them so we can finally say `yes'.
11074 libltdl_cv_sys_dlopen_deplibs=yes
11077 libltdl_cv_sys_dlopen_deplibs=yes
11079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11080 libltdl_cv_sys_dlopen_deplibs=yes
11085 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11086 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11087 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define LTDL_DLOPEN_DEPLIBS 1
11096 for ac_header in argz.h
11098 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11101 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached
) $ECHO_C" >&6
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11109 # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11111 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 $ac_includes_default
11119 #include <$ac_header>
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_header_compiler=yes
11157 echo "$as_me: failed program was
:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_header_compiler=no
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11165 echo "${ECHO_T}$ac_header_compiler" >&6; }
11167 # Is the header present?
11168 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11169 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include <$ac_header>
11178 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11200 if test -z "$ac_cpp_err"; then
11201 ac_header_preproc=yes
11203 echo "$as_me: failed program was
:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 ac_header_preproc=no
11209 rm -f conftest.err conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6; }
11213 # So? What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11216 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11217 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11220 ac_header_preproc=yes
11223 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11224 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11225 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11226 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11227 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11228 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11229 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11230 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11233 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11234 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11236 ## ----------------------------------- ##
11237 ## Report this to llvmbugs@cs.uiuc.edu ##
11238 ## ----------------------------------- ##
11240 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11243 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11244 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11245 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11246 echo $ECHO_N "(cached
) $ECHO_C" >&6
11248 eval "$as_ac_Header=\
$ac_header_preproc"
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11265 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11266 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11267 if test "${ac_cv_type_error_t+set}" = set; then
11268 echo $ECHO_N "(cached
) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11280 typedef error_t ac__type_new_;
11284 if ((ac__type_new_ *) 0)
11286 if (sizeof (ac__type_new_))
11292 rm -f conftest.$ac_objext
11293 if { (ac_try="$ac_compile"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_compile") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
11314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_try") 2>&5
11324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_cv_type_error_t=yes
11328 echo "$as_me: failed program was
:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_cv_type_error_t=no
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11337 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11338 if test $ac_cv_type_error_t = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_ERROR_T 1
11347 cat >>confdefs.h <<\_ACEOF
11348 #define error_t int
11359 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11361 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11362 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11363 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11364 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11365 echo $ECHO_N "(cached
) $ECHO_C" >&6
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11375 #define $ac_func innocuous_$ac_func
11377 /* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func (); below.
11379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 <limits.h> exists even on freestanding compilers. */
11383 # include <limits.h>
11385 # include <assert.h>
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11397 /* The GNU C library defines this for functions which it implements
11398 to always fail with ENOSYS. Some functions are actually named
11399 something starting with __ and the normal name is an alias. */
11400 #if defined __stub_$ac_func || defined __stub___$ac_func
11407 return $ac_func ();
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (ac_try="$ac_link"
11414 case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_link") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 eval "$as_ac_var=yes"
11448 echo "$as_me: failed program was
:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 eval "$as_ac_var=no
"
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11457 ac_res=`eval echo '${'$as_ac_var'}'`
11458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_var'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11495 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11498 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11500 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11501 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11503 echo $ECHO_N "(cached
) $ECHO_C" >&6
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11509 # Is the header compilable?
11510 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11511 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11519 #include <$ac_header>
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_header_compiler=yes
11557 echo "$as_me: failed program was
:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_compiler=no
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11565 echo "${ECHO_T}$ac_header_compiler" >&6; }
11567 # Is the header present?
11568 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11569 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <$ac_header>
11578 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 if test -z "$ac_cpp_err"; then
11601 ac_header_preproc=yes
11603 echo "$as_me: failed program was
:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_header_preproc=no
11609 rm -f conftest.err conftest.$ac_ext
11610 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6; }
11613 # So? What about this header?
11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11616 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11617 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11620 ac_header_preproc=yes
11623 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11624 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11625 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11626 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11627 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11628 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11629 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11630 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11631 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11633 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11634 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11636 ## ----------------------------------- ##
11637 ## Report this to llvmbugs@cs.uiuc.edu ##
11638 ## ----------------------------------- ##
11640 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11643 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11644 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11645 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11646 echo $ECHO_N "(cached
) $ECHO_C" >&6
11648 eval "$as_ac_Header=\
$ac_header_preproc"
11650 ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11668 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11670 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11672 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11673 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11674 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached
) $ECHO_C" >&6
11677 ac_res=`eval echo '${'$as_ac_Header'}'`
11678 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11679 echo "${ECHO_T}$ac_res" >&6; }
11681 # Is the header compilable?
11682 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11683 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 #include <$ac_header>
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_try") 2>&5
11715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 ac_header_compiler=yes
11729 echo "$as_me: failed program was
:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 ac_header_compiler=no
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11737 echo "${ECHO_T}$ac_header_compiler" >&6; }
11739 # Is the header present?
11740 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11741 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11742 cat >conftest.$ac_ext <<_ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include <$ac_header>
11750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11758 grep -v '^ *+' conftest.er1 >conftest.err
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11762 (exit $ac_status); } >/dev/null; then
11763 if test -s conftest.err; then
11764 ac_cpp_err=$ac_c_preproc_warn_flag
11765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11772 if test -z "$ac_cpp_err"; then
11773 ac_header_preproc=yes
11775 echo "$as_me: failed program was
:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_header_preproc=no
11781 rm -f conftest.err conftest.$ac_ext
11782 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11783 echo "${ECHO_T}$ac_header_preproc" >&6; }
11785 # So? What about this header?
11786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11788 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11789 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11790 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11792 ac_header_preproc=yes
11795 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11796 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11797 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11798 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11799 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11800 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11801 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11802 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11803 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11805 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11806 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11808 ## ----------------------------------- ##
11809 ## Report this to llvmbugs@cs.uiuc.edu ##
11810 ## ----------------------------------- ##
11812 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11815 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11816 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11818 echo $ECHO_N "(cached
) $ECHO_C" >&6
11820 eval "$as_ac_Header=\
$ac_header_preproc"
11822 ac_res=`eval echo '${'$as_ac_Header'}'`
11823 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11824 echo "${ECHO_T}$ac_res" >&6; }
11827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11828 cat >>confdefs.h <<_ACEOF
11829 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11838 for ac_header in string.h strings.h
11840 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11841 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11842 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11843 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11844 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11845 echo $ECHO_N "(cached
) $ECHO_C" >&6
11847 ac_res=`eval echo '${'$as_ac_Header'}'`
11848 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11849 echo "${ECHO_T}$ac_res" >&6; }
11851 # Is the header compilable?
11852 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11853 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 $ac_includes_default
11861 #include <$ac_header>
11863 rm -f conftest.$ac_objext
11864 if { (ac_try="$ac_compile"
11865 case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11878 { (case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_try") 2>&5
11885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_header_compiler=yes
11899 echo "$as_me: failed program was
:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_header_compiler=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6; }
11909 # Is the header present?
11910 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11911 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 #include <$ac_header>
11920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11932 (exit $ac_status); } >/dev/null; then
11933 if test -s conftest.err; then
11934 ac_cpp_err=$ac_c_preproc_warn_flag
11935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11942 if test -z "$ac_cpp_err"; then
11943 ac_header_preproc=yes
11945 echo "$as_me: failed program was
:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_header_preproc=no
11951 rm -f conftest.err conftest.$ac_ext
11952 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11953 echo "${ECHO_T}$ac_header_preproc" >&6; }
11955 # So? What about this header?
11956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11958 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11959 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11962 ac_header_preproc=yes
11965 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11966 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11967 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11968 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11969 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11970 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11971 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11972 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11975 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11976 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11978 ## ----------------------------------- ##
11979 ## Report this to llvmbugs@cs.uiuc.edu ##
11980 ## ----------------------------------- ##
11982 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11985 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11986 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11988 echo $ECHO_N "(cached
) $ECHO_C" >&6
11990 eval "$as_ac_Header=\
$ac_header_preproc"
11992 ac_res=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11994 echo "${ECHO_T}$ac_res" >&6; }
11997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12009 for ac_func in strchr index
12011 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12012 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12013 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12014 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12015 echo $ECHO_N "(cached
) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025 #define $ac_func innocuous_$ac_func
12027 /* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12033 # include <limits.h>
12035 # include <assert.h>
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12047 /* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
12050 #if defined __stub_$ac_func || defined __stub___$ac_func
12057 return $ac_func ();
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (ac_try="$ac_link"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_link") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest$ac_exeext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 eval "$as_ac_var=yes"
12098 echo "$as_me: failed program was
:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 eval "$as_ac_var=no
"
12104 rm -f core conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12107 ac_res=`eval echo '${'$as_ac_var'}'`
12108 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12109 echo "${ECHO_T}$ac_res" >&6; }
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12120 for ac_func in strrchr rindex
12122 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12123 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12124 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12125 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12126 echo $ECHO_N "(cached
) $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12136 #define $ac_func innocuous_$ac_func
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below.
12140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12141 <limits.h> exists even on freestanding compilers. */
12144 # include <limits.h>
12146 # include <assert.h>
12151 /* Override any GCC internal prototype to avoid an error.
12152 Use char because int might match the return type of a GCC
12153 builtin and then its argument prototype would still apply. */
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined __stub_$ac_func || defined __stub___$ac_func
12168 return $ac_func ();
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1 >conftest.err
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 eval "$as_ac_var=yes"
12209 echo "$as_me: failed program was
:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 eval "$as_ac_var=no
"
12215 rm -f core conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12218 ac_res=`eval echo '${'$as_ac_var'}'`
12219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12220 echo "${ECHO_T}$ac_res" >&6; }
12221 if test `eval echo '${'$as_ac_var'}'` = yes; then
12222 cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12231 for ac_func in memcpy bcopy
12233 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12234 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12235 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12236 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12237 echo $ECHO_N "(cached
) $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12247 #define $ac_func innocuous_$ac_func
12249 /* System header to define __stub macros and hopefully few prototypes,
12250 which can conflict with char $ac_func (); below.
12251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252 <limits.h> exists even on freestanding compilers. */
12255 # include <limits.h>
12257 # include <assert.h>
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12269 /* The GNU C library defines this for functions which it implements
12270 to always fail with ENOSYS. Some functions are actually named
12271 something starting with __ and the normal name is an alias. */
12272 #if defined __stub_$ac_func || defined __stub___$ac_func
12279 return $ac_func ();
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (ac_try="$ac_link"
12286 case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_link") 2>conftest.er1
12293 grep -v '^ *+' conftest.er1 >conftest.err
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest$ac_exeext'
12309 { (case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_try") 2>&5
12316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 eval "$as_ac_var=yes"
12320 echo "$as_me: failed program was
:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 eval "$as_ac_var=no
"
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12329 ac_res=`eval echo '${'$as_ac_var'}'`
12330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12331 echo "${ECHO_T}$ac_res" >&6; }
12332 if test `eval echo '${'$as_ac_var'}'` = yes; then
12333 cat >>confdefs.h <<_ACEOF
12334 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12342 for ac_func in memmove strcmp
12344 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12345 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12346 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12347 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12348 echo $ECHO_N "(cached
) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12358 #define $ac_func innocuous_$ac_func
12360 /* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func (); below.
12362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363 <limits.h> exists even on freestanding compilers. */
12366 # include <limits.h>
12368 # include <assert.h>
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined __stub_$ac_func || defined __stub___$ac_func
12390 return $ac_func ();
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (ac_try="$ac_link"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_link") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12410 { (case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_try") 2>&5
12417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_try") 2>&5
12427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 eval "$as_ac_var=yes"
12431 echo "$as_me: failed program was
:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 eval "$as_ac_var=no
"
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12440 ac_res=`eval echo '${'$as_ac_var'}'`
12441 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12442 echo "${ECHO_T}$ac_res" >&6; }
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12454 for ac_func in closedir opendir readdir
12456 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12457 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12458 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12459 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12460 echo $ECHO_N "(cached
) $ECHO_C" >&6
12462 cat >conftest.$ac_ext <<_ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12470 #define $ac_func innocuous_$ac_func
12472 /* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func (); below.
12474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12475 <limits.h> exists even on freestanding compilers. */
12478 # include <limits.h>
12480 # include <assert.h>
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12492 /* The GNU C library defines this for functions which it implements
12493 to always fail with ENOSYS. Some functions are actually named
12494 something starting with __ and the normal name is an alias. */
12495 #if defined __stub_$ac_func || defined __stub___$ac_func
12502 return $ac_func ();
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (ac_try="$ac_link"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_link") 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12522 { (case "(($ac_try" in
12523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524 *) ac_try_echo=$ac_try;;
12526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_try") 2>&5
12529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 eval "$as_ac_var=yes"
12543 echo "$as_me: failed program was
:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 eval "$as_ac_var=no
"
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12552 ac_res=`eval echo '${'$as_ac_var'}'`
12553 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12554 echo "${ECHO_T}$ac_res" >&6; }
12555 if test `eval echo '${'$as_ac_var'}'` = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12564 # Check whether --enable-shared was given.
12565 if test "${enable_shared+set}" = set; then
12566 enableval=$enable_shared; p=${PACKAGE-default}
12568 yes) enable_shared=yes ;;
12569 no) enable_shared=no ;;
12572 # Look at the argument we got. We use all the common list separators.
12573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12574 for pkg in $enableval; do
12576 if test "X
$pkg" = "X
$p"; then
12588 # Check whether --enable-static was given.
12589 if test "${enable_static+set}" = set; then
12590 enableval=$enable_static; p=${PACKAGE-default}
12592 yes) enable_static=yes ;;
12593 no) enable_static=no ;;
12596 # Look at the argument we got. We use all the common list separators.
12597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12598 for pkg in $enableval; do
12600 if test "X
$pkg" = "X
$p"; then
12612 # Check whether --enable-fast-install was given.
12613 if test "${enable_fast_install+set}" = set; then
12614 enableval=$enable_fast_install; p=${PACKAGE-default}
12616 yes) enable_fast_install=yes ;;
12617 no) enable_fast_install=no ;;
12619 enable_fast_install=no
12620 # Look at the argument we got. We use all the common list separators.
12621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12622 for pkg in $enableval; do
12624 if test "X
$pkg" = "X
$p"; then
12625 enable_fast_install=yes
12632 enable_fast_install=yes
12636 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
12637 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
12638 if test "${lt_cv_path_SED+set}" = set; then
12639 echo $ECHO_N "(cached
) $ECHO_C" >&6
12641 # Loop through the user's path and test for sed and gsed.
12642 # Then use that list of sed's as ones to test for truncation.
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12647 test -z "$as_dir" && as_dir=.
12648 for lt_ac_prog in sed gsed; do
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12651 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12658 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12659 # along with /bin/sed that truncates output.
12660 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12661 test ! -f $lt_ac_sed && continue
12662 cat /dev/null > conftest.in
12664 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12665 # Check for GNU sed and select it if it is found.
12666 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12667 lt_cv_path_SED=$lt_ac_sed
12671 cat conftest.in conftest.in >conftest.tmp
12672 mv conftest.tmp conftest.in
12673 cp conftest.in conftest.nl
12675 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12676 cmp -s conftest.out conftest.nl || break
12677 # 10000 chars as input seems more than enough
12678 test $lt_ac_count -gt 10 && break
12679 lt_ac_count=`expr $lt_ac_count + 1`
12680 if test $lt_ac_count -gt $lt_ac_max; then
12681 lt_ac_max=$lt_ac_count
12682 lt_cv_path_SED=$lt_ac_sed
12689 SED=$lt_cv_path_SED
12690 { echo "$as_me:$LINENO: result
: $SED" >&5
12691 echo "${ECHO_T}$SED" >&6; }
12694 # Check whether --with-gnu-ld was given.
12695 if test "${with_gnu_ld+set}" = set; then
12696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12702 if test "$GCC" = yes; then
12703 # Check if gcc -print-prog-name=ld gives a path.
12704 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
12705 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
12708 # gcc leaves a trailing carriage return which upsets mingw
12709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12714 # Accept absolute paths.
12716 re_direlt='/[^/][^/]*/\.\./'
12717 # Canonicalize the pathname of ld
12718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12720 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
12722 test -z "$LD" && LD="$ac_prog"
12725 # If it fails, then pretend we aren't using GCC.
12729 # If it is relative, then search for the first ld in PATH.
12730 with_gnu_ld=unknown
12733 elif test "$with_gnu_ld" = yes; then
12734 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
12735 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
12737 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
12738 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
12740 if test "${lt_cv_path_LD+set}" = set; then
12741 echo $ECHO_N "(cached
) $ECHO_C" >&6
12743 if test -z "$LD"; then
12744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12745 for ac_dir in $PATH; do
12747 test -z "$ac_dir" && ac_dir=.
12748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12749 lt_cv_path_LD="$ac_dir/$ac_prog"
12750 # Check to see if the program is GNU ld. I'd rather use --version,
12751 # but apparently some variants of GNU ld only accept -v.
12752 # Break only if it was the GNU/non-GNU ld that we prefer.
12753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12754 *GNU* | *'with BFD'*)
12755 test "$with_gnu_ld" != no && break
12758 test "$with_gnu_ld" != yes && break
12765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12769 LD="$lt_cv_path_LD"
12770 if test -n "$LD"; then
12771 { echo "$as_me:$LINENO: result
: $LD" >&5
12772 echo "${ECHO_T}$LD" >&6; }
12774 { echo "$as_me:$LINENO: result
: no
" >&5
12775 echo "${ECHO_T}no
" >&6; }
12777 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
12778 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
12779 { (exit 1); exit 1; }; }
12780 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
12781 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
12782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12783 echo $ECHO_N "(cached
) $ECHO_C" >&6
12785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12786 case `$LD -v 2>&1 </dev/null` in
12787 *GNU* | *'with BFD'*)
12788 lt_cv_prog_gnu_ld=yes
12791 lt_cv_prog_gnu_ld=no
12795 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
12796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12797 with_gnu_ld=$lt_cv_prog_gnu_ld
12800 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
12801 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
12802 if test "${lt_cv_ld_reload_flag+set}" = set; then
12803 echo $ECHO_N "(cached
) $ECHO_C" >&6
12805 lt_cv_ld_reload_flag='-r'
12807 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
12808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12809 reload_flag=$lt_cv_ld_reload_flag
12810 case $reload_flag in
12812 *) reload_flag=" $reload_flag" ;;
12814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12817 if test "$GCC" = yes; then
12818 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12825 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
12826 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
12827 if test "${lt_cv_deplibs_check_method+set}" = set; then
12828 echo $ECHO_N "(cached
) $ECHO_C" >&6
12830 lt_cv_file_magic_cmd='$MAGIC_CMD'
12831 lt_cv_file_magic_test_file=
12832 lt_cv_deplibs_check_method='unknown'
12833 # Need to set the preceding variable on all platforms that support
12834 # interlibrary dependencies.
12835 # 'none' -- dependencies not supported.
12836 # `unknown' -- same as none, but documents that we really don't know.
12837 # 'pass_all' -- all dependencies passed with no checks.
12838 # 'test_compile' -- check by making test program.
12839 # 'file_magic [[regex]]' -- check by looking for files in library path
12840 # which responds to the $file_magic_cmd with a given extended regex.
12841 # If you have `file' or equivalent on your system and you're not sure
12842 # whether `pass_all' will *always* work, you probably want this one.
12846 lt_cv_deplibs_check_method=pass_all
12850 lt_cv_deplibs_check_method=pass_all
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12855 lt_cv_file_magic_cmd='/usr/bin/file -L'
12856 lt_cv_file_magic_test_file=/shlib/libc.so
12860 # func_win32_libid is a shell function defined in ltmain.sh
12861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12862 lt_cv_file_magic_cmd='func_win32_libid'
12866 # Base MSYS/MinGW do not provide the 'file' command needed by
12867 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12869 lt_cv_file_magic_cmd='$OBJDUMP -f'
12872 darwin* | rhapsody*)
12873 lt_cv_deplibs_check_method=pass_all
12876 freebsd* | kfreebsd*-gnu | dragonfly*)
12877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12880 # Not sure whether the presence of OpenBSD here was a mistake.
12881 # Let's accept both of them until this is cleared up.
12882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12883 lt_cv_file_magic_cmd=/usr/bin/file
12884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12888 lt_cv_deplibs_check_method=pass_all
12893 lt_cv_deplibs_check_method=pass_all
12896 hpux10.20* | hpux11*)
12897 lt_cv_file_magic_cmd=/usr/bin/file
12900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12904 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]'
12905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12919 irix5* | irix6* | nonstopux*)
12921 *-32|*"-32 ") libmagic=32-bit;;
12922 *-n32|*"-n32 ") libmagic=N32;;
12923 *-64|*"-64 ") libmagic=64-bit;;
12924 *) libmagic=never-match;;
12926 lt_cv_deplibs_check_method=pass_all
12929 # This must be Linux ELF.
12931 lt_cv_deplibs_check_method=pass_all
12935 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12944 lt_cv_file_magic_cmd=/usr/bin/file
12945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12949 lt_cv_deplibs_check_method=unknown
12953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12960 osf3* | osf4* | osf5*)
12961 lt_cv_deplibs_check_method=pass_all
12965 lt_cv_deplibs_check_method=pass_all
12969 case $host_vendor in
12971 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]'
12972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12975 lt_cv_deplibs_check_method=pass_all
12978 lt_cv_file_magic_cmd='/bin/file'
12979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12982 lt_cv_file_magic_cmd='/bin/file'
12983 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12984 lt_cv_file_magic_test_file=/lib/libc.so
12987 lt_cv_deplibs_check_method=pass_all
12990 lt_cv_deplibs_check_method=pass_all
12995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996 lt_cv_deplibs_check_method=pass_all
13001 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
13002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13003 file_magic_cmd=$lt_cv_file_magic_cmd
13004 deplibs_check_method=$lt_cv_deplibs_check_method
13005 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13009 # If no C compiler was specified, use CC.
13012 # If no C compiler flags were specified, use CFLAGS.
13013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13015 # Allow CC to be a program name with arguments.
13018 # Check whether --enable-libtool-lock was given.
13019 if test "${enable_libtool_lock+set}" = set; then
13020 enableval=$enable_libtool_lock;
13023 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13025 # Some flags need to be propagated to the compiler or linker for good
13029 # Find out which ABI we are using.
13030 echo 'int i;' > conftest.$ac_ext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>&5
13034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13035 (exit $ac_status); }; then
13036 case `/usr/bin/file conftest.$ac_objext` in
13038 HPUX_IA64_MODE="32"
13041 HPUX_IA64_MODE="64"
13048 # Find out which ABI we are using.
13049 echo '#line 13049 "configure
"' > conftest.$ac_ext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>&5
13053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13054 (exit $ac_status); }; then
13055 if test "$lt_cv_prog_gnu_ld" = yes; then
13056 case `/usr/bin/file conftest.$ac_objext` in
13058 LD="${LD-ld} -melf32bsmip"
13061 LD="${LD-ld} -melf32bmipn32"
13064 LD="${LD-ld} -melf64bmip"
13068 case `/usr/bin/file conftest.$ac_objext` in
13084 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13085 # Find out which ABI we are using.
13086 echo 'int i;' > conftest.$ac_ext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13091 (exit $ac_status); }; then
13092 case `/usr/bin/file conftest.o` in
13096 LD="${LD-ld} -m elf_i386
"
13098 ppc64-*linux*|powerpc64-*linux*)
13099 LD="${LD-ld} -m elf32ppclinux
"
13102 LD="${LD-ld} -m elf_s390
"
13105 LD="${LD-ld} -m elf32_sparc
"
13112 LD="${LD-ld} -m elf_x86_64
"
13114 ppc*-*linux*|powerpc*-*linux*)
13115 LD="${LD-ld} -m elf64ppc
"
13118 LD="${LD-ld} -m elf64_s390
"
13121 LD="${LD-ld} -m elf64_sparc
"
13131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13132 SAVE_CFLAGS="$CFLAGS"
13133 CFLAGS="$CFLAGS -belf"
13134 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
13135 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
13136 if test "${lt_cv_cc_needs_belf+set}" = set; then
13137 echo $ECHO_N "(cached
) $ECHO_C" >&6
13140 ac_cpp='$CPP $CPPFLAGS'
13141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (ac_try="$ac_link"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_link") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 lt_cv_cc_needs_belf=yes
13196 echo "$as_me: failed program was
:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 lt_cv_cc_needs_belf=no
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13205 ac_cpp='$CPP $CPPFLAGS'
13206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13211 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
13212 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13215 CFLAGS="$SAVE_CFLAGS"
13219 # Find out which ABI we are using.
13220 echo 'int i;' > conftest.$ac_ext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13225 (exit $ac_status); }; then
13226 case `/usr/bin/file conftest.o` in
13228 case $lt_cv_prog_gnu_ld in
13229 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13230 *) LD="${LD-ld} -64" ;;
13241 need_locks="$enable_libtool_lock"
13246 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
13247 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
13248 (test "X
$CXX" != "Xg
++"))) ; then
13250 ac_cpp='$CXXCPP $CPPFLAGS'
13251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13254 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
13255 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
13256 if test -z "$CXXCPP"; then
13257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13258 echo $ECHO_N "(cached
) $ECHO_C" >&6
13260 # Double quotes because CXXCPP needs to be expanded
13261 for CXXCPP in "$CXX -E" "/lib
/cpp
"
13263 ac_preproc_ok=false
13264 for ac_cxx_preproc_warn_flag in '' yes
13266 # Use a header file that comes with gcc, so configuring glibc
13267 # with a fresh cross-compiler works.
13268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13269 # <limits.h> exists even on freestanding compilers.
13270 # On the NeXT, cc -E runs the code through the compiler's parser,
13271 # not just through cpp. "Syntax error
" is here to catch this case.
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 # include <limits.h>
13281 # include <assert.h>
13285 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13286 case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13293 grep -v '^ *+' conftest.er1 >conftest.err
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13297 (exit $ac_status); } >/dev/null; then
13298 if test -s conftest.err; then
13299 ac_cpp_err=$ac_cxx_preproc_warn_flag
13300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13307 if test -z "$ac_cpp_err"; then
13310 echo "$as_me: failed program was
:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 # Broken: fails on valid input.
13317 rm -f conftest.err conftest.$ac_ext
13319 # OK, works on sane cases. Now check whether nonexistent headers
13320 # can be detected and how.
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <ac_nonexistent.h>
13329 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_cxx_preproc_warn_flag
13344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13351 if test -z "$ac_cpp_err"; then
13352 # Broken: success on invalid input.
13355 echo "$as_me: failed program was
:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 # Passes both tests.
13363 rm -f conftest.err conftest.$ac_ext
13366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13367 rm -f conftest.err conftest.$ac_ext
13368 if $ac_preproc_ok; then
13373 ac_cv_prog_CXXCPP=$CXXCPP
13376 CXXCPP=$ac_cv_prog_CXXCPP
13378 ac_cv_prog_CXXCPP=$CXXCPP
13380 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
13381 echo "${ECHO_T}$CXXCPP" >&6; }
13382 ac_preproc_ok=false
13383 for ac_cxx_preproc_warn_flag in '' yes
13385 # Use a header file that comes with gcc, so configuring glibc
13386 # with a fresh cross-compiler works.
13387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388 # <limits.h> exists even on freestanding compilers.
13389 # On the NeXT, cc -E runs the code through the compiler's parser,
13390 # not just through cpp. "Syntax error
" is here to catch this case.
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 # include <limits.h>
13400 # include <assert.h>
13404 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13416 (exit $ac_status); } >/dev/null; then
13417 if test -s conftest.err; then
13418 ac_cpp_err=$ac_cxx_preproc_warn_flag
13419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13426 if test -z "$ac_cpp_err"; then
13429 echo "$as_me: failed program was
:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 # Broken: fails on valid input.
13436 rm -f conftest.err conftest.$ac_ext
13438 # OK, works on sane cases. Now check whether nonexistent headers
13439 # can be detected and how.
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 #include <ac_nonexistent.h>
13448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13449 case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_cxx_preproc_warn_flag
13463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13470 if test -z "$ac_cpp_err"; then
13471 # Broken: success on invalid input.
13474 echo "$as_me: failed program was
:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 # Passes both tests.
13482 rm -f conftest.err conftest.$ac_ext
13485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13486 rm -f conftest.err conftest.$ac_ext
13487 if $ac_preproc_ok; then
13490 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
13491 See \
`config.log' for more details." >&5
13492 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13493 See \`config.log
' for more details." >&2;}
13494 { (exit 1); exit 1; }; }
13498 ac_cpp='$CXXCPP $CPPFLAGS'
13499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
13500 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13507 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
13508 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
13509 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13510 if test -n "$ac_tool_prefix"; then
13511 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
13513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13517 if test "${ac_cv_prog_F77+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 if test -n "$F77"; then
13521 ac_cv_prog_F77="$F77" # Let the user override the test.
13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13524 for as_dir in $PATH
13527 test -z "$as_dir" && as_dir=.
13528 for ac_exec_ext in '' $ac_executable_extensions; do
13529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13530 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 F77=$ac_cv_prog_F77
13541 if test -n "$F77"; then
13542 { echo "$as_me:$LINENO: result: $F77" >&5
13543 echo "${ECHO_T}$F77" >&6; }
13545 { echo "$as_me:$LINENO: result: no" >&5
13546 echo "${ECHO_T}no" >&6; }
13550 test -n "$F77" && break
13553 if test -z "$F77"; then
13555 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
13557 # Extract the first word of "$ac_prog", so it can be a program name with args.
13558 set dummy $ac_prog; ac_word=$2
13559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 if test -n "$ac_ct_F77"; then
13565 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13574 ac_cv_prog_ac_ct_F77="$ac_prog"
13575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13585 if test -n "$ac_ct_F77"; then
13586 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13587 echo "${ECHO_T}$ac_ct_F77" >&6; }
13589 { echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6; }
13594 test -n "$ac_ct_F77" && break
13597 if test "x$ac_ct_F77" = x; then
13600 case $cross_compiling:$ac_tool_warned in
13602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13603 whose name does not start with the host triplet. If you think this
13604 configuration is useful to you, please write to autoconf@gnu.org." >&5
13605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13606 whose name does not start with the host triplet. If you think this
13607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13608 ac_tool_warned=yes ;;
13615 # Provide some information about the compiler.
13616 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13617 ac_compiler=`set X $ac_compile; echo $2`
13618 { (ac_try="$ac_compiler --version >&5"
13619 case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compiler --version >&5") 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }
13628 { (ac_try="$ac_compiler -v >&5"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compiler -v >&5") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
13638 { (ac_try="$ac_compiler -V >&5"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compiler -V >&5") 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }
13650 # If we don't use
`.F' as extension, the preprocessor is not run on the
13651 # input file. (Note that this only needs to work for GNU compilers.)
13652 ac_save_ext=$ac_ext
13654 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13655 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13656 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.$ac_ext <<_ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13671 *) ac_try_echo
=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13676 grep -v '^ *+' conftest.er1
>conftest.err
13678 cat conftest.err
>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13682 { (case "(($ac_try" in
13683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13694 *) ac_try_echo
=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_compiler_gnu
=yes
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.
$ac_ext >&5
13709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13710 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
13713 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13714 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13715 ac_ext
=$ac_save_ext
13716 ac_test_FFLAGS
=${FFLAGS+set}
13717 ac_save_FFLAGS
=$FFLAGS
13719 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13720 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13721 if test "${ac_cv_prog_f77_g+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 cat >conftest.
$ac_ext <<_ACEOF
13730 rm -f conftest.
$ac_objext
13731 if { (ac_try
="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13747 *) ac_try_echo
=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try
='test -s conftest.$ac_objext'
13755 { (case "(($ac_try" in
13756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_prog_f77_g=yes
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ac_cv_prog_f77_g=no
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13776 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13777 if test "$ac_test_FFLAGS" = set; then
13778 FFLAGS=$ac_save_FFLAGS
13779 elif test $ac_cv_prog_f77_g = yes; then
13780 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13786 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13793 G77=`test $ac_compiler_gnu = yes && echo yes`
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13802 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13804 # find the maximum length of command line arguments
13805 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13806 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13807 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 # On DJGPP, this test can blow up pretty badly due to problems in libc
13816 # (any single argument exceeding 2000 bytes causes a buffer overrun
13817 # during glob expansion). Even if it were fixed, the result of this
13818 # check would be larger than it should be.
13819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13823 # Under GNU Hurd, this test is not required because there is
13824 # no limit to the length of command line arguments.
13825 # Libtool will interpret -1 as no limit whatsoever
13826 lt_cv_sys_max_cmd_len=-1;
13830 # On Win9x/ME, this test blows up -- it succeeds, but takes
13831 # about 5 minutes as the teststring grows exponentially.
13832 # Worse, since 9x/ME are not pre-emptively multitasking,
13833 # you end up with a "frozen" computer, even though with patience
13834 # the test eventually succeeds (with a max line length of 256k).
13835 # Instead, let's just punt: use the minimum linelength reported by
13836 # all of the supported platforms: 8192 (on NT/2K/XP).
13837 lt_cv_sys_max_cmd_len=8192;
13841 # On AmigaOS with pdksh, this test takes hours, literally.
13842 # So we just punt and use a minimum line length of 8192.
13843 lt_cv_sys_max_cmd_len=8192;
13846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13847 # This has been around since 386BSD, at least. Likely further.
13848 if test -x /sbin/sysctl; then
13849 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
13850 elif test -x /usr/sbin/sysctl; then
13851 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
13853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13855 # And add a safety zone
13856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
13857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
13861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13862 lt_cv_sys_max_cmd_len=196608
13866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13868 # nice to cause kernel panics so lets avoid the loop below.
13869 # First set a reasonable default.
13870 lt_cv_sys_max_cmd_len=16384
13872 if test -x /sbin/sysconfig; then
13873 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
13874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13879 lt_cv_sys_max_cmd_len=102400
13881 sysv5* | sco5v6* | sysv4.2uw2*)
13882 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
13883 if test -n "$kargmax"; then
13884 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
13886 lt_cv_sys_max_cmd_len=32768
13890 # If test is not a shell built-in, we'll probably end up computing a
13891 # maximum length that is only half of the actual maximum length, but
13893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13894 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
13895 = "XX$teststring") >/dev/null 2>&1 &&
13896 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13897 lt_cv_sys_max_cmd_len=$new_result &&
13898 test $i != 17 # 1/2 MB should be enough
13901 teststring=$teststring$teststring
13904 # Add a significant safety factor because C++ compilers can tack on massive
13905 # amounts of additional arguments before passing them to the linker.
13906 # It appears as though 1/2 is a usable value.
13907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
13913 if test -n $lt_cv_sys_max_cmd_len ; then
13914 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13915 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13917 { echo "$as_me:$LINENO: result: none" >&5
13918 echo "${ECHO_T}none" >&6; }
13924 # Check for command to grab the raw symbol name followed by C symbol from nm.
13925 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13926 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13927 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 # These are sane defaults that work on at least a few old systems.
13932 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13934 # Character class describing NM global symbol codes.
13935 symcode='[BCDEGRST]'
13937 # Regexp to match symbols that can be accessed directly from C.
13938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13940 # Transform an extracted symbol line into a proper C declaration
13941 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13943 # Transform an extracted symbol line into symbol name and symbol address
13944 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'"
13946 # Define system-specific variables.
13951 cygwin* | mingw* | pw32*)
13952 symcode='[ABCDGISTW]'
13954 hpux*) # Its linker distinguishes data from code symbols
13955 if test "$host_cpu" = ia64; then
13956 symcode='[ABCDEGRST]'
13958 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959 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'"
13962 if test "$host_cpu" = ia64; then
13963 symcode='[ABCDGIRSTW]'
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13968 irix* | nonstopux*)
13969 symcode='[BCDEGRST]'
13972 symcode='[BCDEGQRST]'
13983 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13991 # Handle CRLF in mingw tool chain
13995 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
13999 # If we're using GNU nm, then use its standard symbol codes.
14000 case `$NM -V 2>&1` in
14001 *GNU* | *'with BFD'*)
14002 symcode='[ABCDGIRSTW]' ;;
14005 # Try without a prefix undercore, then with it.
14006 for ac_symprfx in "" "_"; do
14008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14009 symxfrm="\\1 $ac_symprfx\\2 \\2"
14011 # Write the raw and C identifiers.
14012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14014 # Check to see that the pipe works correctly.
14018 cat > conftest.$ac_ext <<EOF
14023 void nm_test_func(){}
14027 int main(){nm_test_var='a';nm_test_func();return(0);}
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; then
14035 # Now try to grab the symbols.
14037 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14038 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && test -s "$nlist"; then
14042 # Try sorting and uniquifying the output.
14043 if sort "$nlist" | uniq > "$nlist"T; then
14044 mv -f "$nlist"T "$nlist"
14049 # Make sure that we snagged all the symbols we need.
14050 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14051 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14052 cat <<EOF > conftest.$ac_ext
14058 # Now generate the symbol file.
14059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14061 cat <<EOF >> conftest.$ac_ext
14062 #if defined (__STDC__) && __STDC__
14063 # define lt_ptr_t void *
14065 # define lt_ptr_t char *
14069 /* The mapping between symbol names and symbols. */
14074 lt_preloaded_symbols[] =
14077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14078 cat <<\EOF >> conftest.$ac_ext
14086 # Now try linking the two files.
14087 mv conftest.$ac_objext conftstm.$ac_objext
14088 lt_save_LIBS="$LIBS"
14089 lt_save_CFLAGS="$CFLAGS"
14090 LIBS="conftstm.$ac_objext"
14091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14099 LIBS="$lt_save_LIBS"
14100 CFLAGS="$lt_save_CFLAGS"
14102 echo "cannot find nm_test_func in $nlist" >&5
14105 echo "cannot find nm_test_var in $nlist" >&5
14108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14111 echo "$progname: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14114 rm -f conftest* conftst*
14116 # Do not use the global_symbol_pipe unless it works.
14117 if test "$pipe_works" = yes; then
14120 lt_cv_sys_global_symbol_pipe=
14126 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14127 lt_cv_sys_global_symbol_to_cdecl=
14129 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14130 { echo "$as_me:$LINENO: result: failed" >&5
14131 echo "${ECHO_T}failed" >&6; }
14133 { echo "$as_me:$LINENO: result: ok" >&5
14134 echo "${ECHO_T}ok" >&6; }
14137 { echo "$as_me:$LINENO: checking for objdir" >&5
14138 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14139 if test "${lt_cv_objdir+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 rm -f .libs 2>/dev/null
14143 mkdir .libs 2>/dev/null
14144 if test -d .libs; then
14147 # MS-DOS does not allow filenames that begin with a dot.
14150 rmdir .libs 2>/dev/null
14152 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14153 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14154 objdir=$lt_cv_objdir
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14167 export COLLECT_NAMES
14172 # Sed substitution that helps us do robust quoting. It backslashifies
14173 # metacharacters that are still active within double-quoted strings.
14174 Xsed='sed -e 1s/^X//'
14175 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
14177 # Same as above, but do not quote variable references.
14178 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
14180 # Sed substitution to delay expansion of an escaped shell variable in a
14181 # double_quote_subst'ed string.
14182 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14184 # Sed substitution to avoid accidental globbing in evaled expressions
14185 no_glob_subst='s/\*/\\\*/g'
14190 # Global variables:
14191 default_ofile=mklib
14192 can_build_shared=yes
14194 # All known linkers require a `.a' archive for static linking (except MSVC,
14195 # which needs '.lib').
14197 ltmain="$ac_aux_dir/ltmain.sh
"
14198 ofile="$default_ofile"
14199 with_gnu_ld="$lt_cv_prog_gnu_ld"
14201 if test -n "$ac_tool_prefix"; then
14202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14203 set dummy ${ac_tool_prefix}ar; ac_word=$2
14204 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14205 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14206 if test "${ac_cv_prog_AR+set}" = set; then
14207 echo $ECHO_N "(cached
) $ECHO_C" >&6
14209 if test -n "$AR"; then
14210 ac_cv_prog_AR="$AR" # Let the user override the test.
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14219 ac_cv_prog_AR="${ac_tool_prefix}ar"
14220 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14230 if test -n "$AR"; then
14231 { echo "$as_me:$LINENO: result
: $AR" >&5
14232 echo "${ECHO_T}$AR" >&6; }
14234 { echo "$as_me:$LINENO: result
: no
" >&5
14235 echo "${ECHO_T}no
" >&6; }
14240 if test -z "$ac_cv_prog_AR"; then
14242 # Extract the first word of "ar", so it can be a program name with args.
14243 set dummy ar; ac_word=$2
14244 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14245 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14246 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14247 echo $ECHO_N "(cached
) $ECHO_C" >&6
14249 if test -n "$ac_ct_AR"; then
14250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14259 ac_cv_prog_ac_ct_AR="ar"
14260 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14270 if test -n "$ac_ct_AR"; then
14271 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14272 echo "${ECHO_T}$ac_ct_AR" >&6; }
14274 { echo "$as_me:$LINENO: result
: no
" >&5
14275 echo "${ECHO_T}no
" >&6; }
14278 if test "x
$ac_ct_AR" = x; then
14281 case $cross_compiling:$ac_tool_warned in
14283 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14284 whose name does not start with the
host triplet. If you think this
14285 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14286 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14287 whose name does not start with the
host triplet. If you think this
14288 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14289 ac_tool_warned=yes ;;
14294 AR="$ac_cv_prog_AR"
14297 if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14301 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14302 if test "${ac_cv_prog_RANLIB+set}" = set; then
14303 echo $ECHO_N "(cached
) $ECHO_C" >&6
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14316 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14325 RANLIB=$ac_cv_prog_RANLIB
14326 if test -n "$RANLIB"; then
14327 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
14328 echo "${ECHO_T}$RANLIB" >&6; }
14330 { echo "$as_me:$LINENO: result
: no
" >&5
14331 echo "${ECHO_T}no
" >&6; }
14336 if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib
", so it can be a program name with args.
14339 set dummy ranlib; ac_word=$2
14340 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14341 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14343 echo $ECHO_N "(cached
) $ECHO_C" >&6
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14356 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366 if test -n "$ac_ct_RANLIB"; then
14367 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14368 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14370 { echo "$as_me:$LINENO: result
: no
" >&5
14371 echo "${ECHO_T}no
" >&6; }
14374 if test "x
$ac_ct_RANLIB" = x; then
14377 case $cross_compiling:$ac_tool_warned in
14379 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14380 whose name does not start with the
host triplet. If you think this
14381 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14382 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14383 whose name does not start with the
host triplet. If you think this
14384 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14385 ac_tool_warned=yes ;;
14387 RANLIB=$ac_ct_RANLIB
14390 RANLIB="$ac_cv_prog_RANLIB"
14393 if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14395 set dummy ${ac_tool_prefix}strip; ac_word=$2
14396 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14397 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14398 if test "${ac_cv_prog_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached
) $ECHO_C" >&6
14401 if test -n "$STRIP"; then
14402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14411 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14412 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14421 STRIP=$ac_cv_prog_STRIP
14422 if test -n "$STRIP"; then
14423 { echo "$as_me:$LINENO: result
: $STRIP" >&5
14424 echo "${ECHO_T}$STRIP" >&6; }
14426 { echo "$as_me:$LINENO: result
: no
" >&5
14427 echo "${ECHO_T}no
" >&6; }
14432 if test -z "$ac_cv_prog_STRIP"; then
14434 # Extract the first word of "strip
", so it can be a program name with args.
14435 set dummy strip; ac_word=$2
14436 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14437 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14438 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14439 echo $ECHO_N "(cached
) $ECHO_C" >&6
14441 if test -n "$ac_ct_STRIP"; then
14442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_prog_ac_ct_STRIP="strip
"
14452 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14462 if test -n "$ac_ct_STRIP"; then
14463 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14464 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14466 { echo "$as_me:$LINENO: result
: no
" >&5
14467 echo "${ECHO_T}no
" >&6; }
14470 if test "x
$ac_ct_STRIP" = x; then
14473 case $cross_compiling:$ac_tool_warned in
14475 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
14476 whose name does not start with the
host triplet. If you think this
14477 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
14478 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
14479 whose name does not start with the
host triplet. If you think this
14480 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
14481 ac_tool_warned=yes ;;
14486 STRIP="$ac_cv_prog_STRIP"
14491 old_CFLAGS="$CFLAGS"
14493 # Set sane defaults for various variables
14494 test -z "$AR" && AR=ar
14495 test -z "$AR_FLAGS" && AR_FLAGS=cru
14496 test -z "$AS" && AS=as
14497 test -z "$CC" && CC=cc
14498 test -z "$LTCC" && LTCC=$CC
14499 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14500 test -z "$DLLTOOL" && DLLTOOL=dlltool
14501 test -z "$LD" && LD=ld
14502 test -z "$LN_S" && LN_S="ln -s"
14503 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14504 test -z "$NM" && NM=nm
14505 test -z "$SED" && SED=sed
14506 test -z "$OBJDUMP" && OBJDUMP=objdump
14507 test -z "$RANLIB" && RANLIB=:
14508 test -z "$STRIP" && STRIP=:
14509 test -z "$ac_objext" && ac_objext=o
14511 # Determine commands to create old-style static archives.
14512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14513 old_postinstall_cmds='chmod 644 $oldlib'
14514 old_postuninstall_cmds=
14516 if test -n "$RANLIB"; then
14519 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14522 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14525 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14528 for cc_temp in $compiler""; do
14530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14536 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14539 # Only perform the check for file, if the check method requires it
14540 case $deplibs_check_method in
14542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14543 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
14544 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
14545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14546 echo $ECHO_N "(cached
) $ECHO_C" >&6
14550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14553 lt_save_MAGIC_CMD="$MAGIC_CMD"
14554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14555 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14556 for ac_dir in $ac_dummy; do
14558 test -z "$ac_dir" && ac_dir=.
14559 if test -f $ac_dir/${ac_tool_prefix}file; then
14560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14561 if test -n "$file_magic_test_file"; then
14562 case $deplibs_check_method in
14564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14567 $EGREP "$file_magic_regex" > /dev/null; then
14572 *** Warning: the command libtool uses to detect shared libraries,
14573 *** $file_magic_cmd, produces output that libtool cannot recognize.
14574 *** The result is that libtool may fail to recognize shared libraries
14575 *** as such. This will affect the creation of libtool libraries that
14576 *** depend on shared libraries, but programs linked with such libtool
14577 *** libraries will work regardless of this problem. Nevertheless, you
14578 *** may want to report the problem to your system manager and/or to
14579 *** bug-libtool@gnu.org
14589 MAGIC_CMD="$lt_save_MAGIC_CMD"
14594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14595 if test -n "$MAGIC_CMD"; then
14596 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14597 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14599 { echo "$as_me:$LINENO: result
: no
" >&5
14600 echo "${ECHO_T}no
" >&6; }
14603 if test -z "$lt_cv_path_MAGIC_CMD"; then
14604 if test -n "$ac_tool_prefix"; then
14605 { echo "$as_me:$LINENO: checking
for file" >&5
14606 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
14607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14608 echo $ECHO_N "(cached
) $ECHO_C" >&6
14612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14615 lt_save_MAGIC_CMD="$MAGIC_CMD"
14616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14617 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14618 for ac_dir in $ac_dummy; do
14620 test -z "$ac_dir" && ac_dir=.
14621 if test -f $ac_dir/file; then
14622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14623 if test -n "$file_magic_test_file"; then
14624 case $deplibs_check_method in
14626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14629 $EGREP "$file_magic_regex" > /dev/null; then
14634 *** Warning: the command libtool uses to detect shared libraries,
14635 *** $file_magic_cmd, produces output that libtool cannot recognize.
14636 *** The result is that libtool may fail to recognize shared libraries
14637 *** as such. This will affect the creation of libtool libraries that
14638 *** depend on shared libraries, but programs linked with such libtool
14639 *** libraries will work regardless of this problem. Nevertheless, you
14640 *** may want to report the problem to your system manager and/or to
14641 *** bug-libtool@gnu.org
14651 MAGIC_CMD="$lt_save_MAGIC_CMD"
14656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14657 if test -n "$MAGIC_CMD"; then
14658 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
14659 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14661 { echo "$as_me:$LINENO: result
: no
" >&5
14662 echo "${ECHO_T}no
" >&6; }
14675 enable_win32_dll=no
14677 # Check whether --enable-libtool-lock was given.
14678 if test "${enable_libtool_lock+set}" = set; then
14679 enableval=$enable_libtool_lock;
14682 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14685 # Check whether --with-pic was given.
14686 if test "${with_pic+set}" = set; then
14687 withval=$with_pic; pic_mode="$withval"
14692 test -z "$pic_mode" && pic_mode=default
14694 # Use C for the default configuration in the libtool script
14698 ac_cpp='$CPP $CPPFLAGS'
14699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14704 # Source file extension for C test sources.
14707 # Object file extension for compiled C test sources.
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code="int some_variable
= 0;\n"
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code='int main(){return(0);}\n'
14718 # If no C compiler was specified, use CC.
14721 # If no C compiler flags were specified, use CFLAGS.
14722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14724 # Allow CC to be a program name with arguments.
14728 # save warnings/boilerplate of simple test code
14729 ac_outfile=conftest.$ac_objext
14730 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14732 _lt_compiler_boilerplate=`cat conftest.err`
14735 ac_outfile=conftest.$ac_objext
14736 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14738 _lt_linker_boilerplate=`cat conftest.err`
14743 lt_prog_compiler_no_builtin_flag=
14745 if test "$GCC" = yes; then
14746 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14749 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14750 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
14751 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14752 echo $ECHO_N "(cached
) $ECHO_C" >&6
14754 lt_cv_prog_compiler_rtti_exceptions=no
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="-fno-rtti -fno-exceptions"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.
", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
14767 (eval echo "\"\
$as_me:14767: $lt_compile\"" >&5)
14768 (eval "$lt_compile" 2>conftest.err)
14770 cat conftest.err >&5
14771 echo "$as_me:14771: \$?
= $ac_status" >&5
14772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings other than the usual output.
14775 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_rtti_exceptions=yes
14784 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14785 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14787 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14788 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14795 lt_prog_compiler_wl=
14796 lt_prog_compiler_pic=
14797 lt_prog_compiler_static=
14799 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
14800 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
14802 if test "$GCC" = yes; then
14803 lt_prog_compiler_wl='-Wl,'
14804 lt_prog_compiler_static='-static'
14808 # All AIX code is PIC.
14809 if test "$host_cpu" = ia64; then
14810 # AIX 5 now supports IA64 processor
14811 lt_prog_compiler_static='-Bstatic'
14816 # FIXME: we need at least 68020 code to build shared libraries, but
14817 # adding the `-m68020' flag to GCC prevents building anything better,
14819 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14823 # PIC is the default for these OSes.
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 darwin* | rhapsody*)
14833 # PIC is the default on this platform
14834 # Common symbols not allowed in MH_DYLIB files
14835 lt_prog_compiler_pic='-fno-common'
14839 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14840 # Instead, we relocate shared libraries at runtime.
14844 # Just because we use GCC doesn't mean we suddenly get shared libraries
14845 # on systems that don't support them.
14846 lt_prog_compiler_can_build_shared=no
14851 if test -d /usr/nec; then
14852 lt_prog_compiler_pic=-Kconform_pic
14857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14858 # not for PA HP-UX.
14864 lt_prog_compiler_pic='-fPIC'
14870 lt_prog_compiler_pic='-fPIC'
14874 # PORTME Check for flag to pass linker flags through the system compiler.
14877 lt_prog_compiler_wl='-Wl,'
14878 if test "$host_cpu" = ia64; then
14879 # AIX 5 now supports IA64 processor
14880 lt_prog_compiler_static='-Bstatic'
14882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14886 # PIC is the default on this platform
14887 # Common symbols not allowed in MH_DYLIB files
14888 case $cc_basename in
14890 lt_prog_compiler_pic='-qnocommon'
14891 lt_prog_compiler_wl='-Wl,'
14896 mingw* | pw32* | os2*)
14897 # This hack is so that the source file can tell whether it is being
14898 # built for inclusion in a dll (and should export symbols for example).
14899 lt_prog_compiler_pic='-DDLL_EXPORT'
14902 hpux9* | hpux10* | hpux11*)
14903 lt_prog_compiler_wl='-Wl,'
14904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14905 # not for PA HP-UX.
14911 lt_prog_compiler_pic='+Z'
14914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14915 lt_prog_compiler_static='${wl}-a ${wl}archive'
14918 irix5* | irix6* | nonstopux*)
14919 lt_prog_compiler_wl='-Wl,'
14920 # PIC (with -KPIC) is the default.
14921 lt_prog_compiler_static='-non_shared'
14925 lt_prog_compiler_pic='-KPIC'
14926 lt_prog_compiler_static='-Bstatic'
14930 case $cc_basename in
14932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_pic='-KPIC'
14934 lt_prog_compiler_static='-static'
14936 pgcc* | pgf77* | pgf90* | pgf95*)
14937 # Portland Group compilers (*not* the Pentium gcc compiler,
14938 # which looks to be a dead project)
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_pic='-fpic'
14941 lt_prog_compiler_static='-Bstatic'
14944 lt_prog_compiler_wl='-Wl,'
14945 # All Alpha code is PIC.
14946 lt_prog_compiler_static='-non_shared'
14951 osf3* | osf4* | osf5*)
14952 lt_prog_compiler_wl='-Wl,'
14953 # All OSF/1 code is PIC.
14954 lt_prog_compiler_static='-non_shared'
14958 lt_prog_compiler_pic='-KPIC'
14959 lt_prog_compiler_static='-Bstatic'
14960 case $cc_basename in
14961 f77* | f90* | f95*)
14962 lt_prog_compiler_wl='-Qoption ld ';;
14964 lt_prog_compiler_wl='-Wl,';;
14969 lt_prog_compiler_wl='-Qoption ld '
14970 lt_prog_compiler_pic='-PIC'
14971 lt_prog_compiler_static='-Bstatic'
14974 sysv4 | sysv4.2uw2* | sysv4.3*)
14975 lt_prog_compiler_wl='-Wl,'
14976 lt_prog_compiler_pic='-KPIC'
14977 lt_prog_compiler_static='-Bstatic'
14981 if test -d /usr/nec ;then
14982 lt_prog_compiler_pic='-Kconform_pic'
14983 lt_prog_compiler_static='-Bstatic'
14987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14988 lt_prog_compiler_wl='-Wl,'
14989 lt_prog_compiler_pic='-KPIC'
14990 lt_prog_compiler_static='-Bstatic'
14994 lt_prog_compiler_wl='-Wl,'
14995 lt_prog_compiler_can_build_shared=no
14999 lt_prog_compiler_pic='-pic'
15000 lt_prog_compiler_static='-Bstatic'
15004 lt_prog_compiler_can_build_shared=no
15009 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
15010 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15013 # Check to make sure the PIC flag actually works.
15015 if test -n "$lt_prog_compiler_pic"; then
15017 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15018 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
15019 if test "${lt_prog_compiler_pic_works+set}" = set; then
15020 echo $ECHO_N "(cached
) $ECHO_C" >&6
15022 lt_prog_compiler_pic_works=no
15023 ac_outfile=conftest.$ac_objext
15024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15025 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15026 # Insert the option either (1) after the last *FLAGS variable, or
15027 # (2) before a word containing "conftest.
", or (3) at the end.
15028 # Note that $ac_compile itself does not contain backslashes and begins
15029 # with a dollar sign (not a hyphen), so the echo should work correctly.
15030 # The option is referenced via a variable to avoid confusing sed.
15031 lt_compile=`echo "$ac_compile" | $SED \
15032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15034 -e 's:$: $lt_compiler_flag:'`
15035 (eval echo "\"\
$as_me:15035: $lt_compile\"" >&5)
15036 (eval "$lt_compile" 2>conftest.err)
15038 cat conftest.err >&5
15039 echo "$as_me:15039: \$?
= $ac_status" >&5
15040 if (exit $ac_status) && test -s "$ac_outfile"; then
15041 # The compiler can only warn and ignore the option if not recognized
15042 # So say no if there are warnings other than the usual output.
15043 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15046 lt_prog_compiler_pic_works=yes
15052 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
15053 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15055 if test x"$lt_prog_compiler_pic_works" = xyes; then
15056 case $lt_prog_compiler_pic in
15058 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15061 lt_prog_compiler_pic=
15062 lt_prog_compiler_can_build_shared=no
15067 # For platforms which do not support PIC, -DPIC is meaningless:
15069 lt_prog_compiler_pic=
15072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15077 # Check to make sure the static flag actually works.
15079 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15080 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15081 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
15082 if test "${lt_prog_compiler_static_works+set}" = set; then
15083 echo $ECHO_N "(cached
) $ECHO_C" >&6
15085 lt_prog_compiler_static_works=no
15086 save_LDFLAGS="$LDFLAGS"
15087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15088 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15090 # The linker can only warn and ignore the option if not recognized
15091 # So say no if there are warnings
15092 if test -s conftest.err; then
15093 # Append any errors to the config.log.
15094 cat conftest.err 1>&5
15095 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097 if diff conftest.exp conftest.er2 >/dev/null; then
15098 lt_prog_compiler_static_works=yes
15101 lt_prog_compiler_static_works=yes
15105 LDFLAGS="$save_LDFLAGS"
15108 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
15109 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15111 if test x"$lt_prog_compiler_static_works" = xyes; then
15114 lt_prog_compiler_static=
15118 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15119 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
15120 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15121 echo $ECHO_N "(cached
) $ECHO_C" >&6
15123 lt_cv_prog_compiler_c_o=no
15124 $rm -r conftest 2>/dev/null
15128 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15130 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15131 # Insert the option either (1) after the last *FLAGS variable, or
15132 # (2) before a word containing "conftest.
", or (3) at the end.
15133 # Note that $ac_compile itself does not contain backslashes and begins
15134 # with a dollar sign (not a hyphen), so the echo should work correctly.
15135 lt_compile=`echo "$ac_compile" | $SED \
15136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138 -e 's:$: $lt_compiler_flag:'`
15139 (eval echo "\"\
$as_me:15139: $lt_compile\"" >&5)
15140 (eval "$lt_compile" 2>out/conftest.err)
15142 cat out/conftest.err >&5
15143 echo "$as_me:15143: \$?
= $ac_status" >&5
15144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15146 # The compiler can only warn and ignore the option if not recognized
15147 # So say no if there are warnings
15148 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15151 lt_cv_prog_compiler_c_o=yes
15156 # SGI C++ compiler will create directory out/ii_files/ for
15157 # template instantiation
15158 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15159 $rm out/* && rmdir out
15165 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
15166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15169 hard_links="nottested
"
15170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15171 # do not overwrite the value of need_locks provided by the user
15172 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
15173 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15178 ln conftest.a conftest.b 2>&5 || hard_links=no
15179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180 { echo "$as_me:$LINENO: result
: $hard_links" >&5
15181 echo "${ECHO_T}$hard_links" >&6; }
15182 if test "$hard_links" = no; then
15183 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15184 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15191 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15192 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
15195 allow_undefined_flag=
15196 enable_shared_with_static_runtimes=no
15198 archive_expsym_cmds=
15199 old_archive_From_new_cmds=
15200 old_archive_from_expsyms_cmds=
15201 export_dynamic_flag_spec=
15202 whole_archive_flag_spec=
15203 thread_safe_flag_spec=
15204 hardcode_libdir_flag_spec=
15205 hardcode_libdir_flag_spec_ld=
15206 hardcode_libdir_separator=
15208 hardcode_minus_L=no
15209 hardcode_shlibpath_var=unsupported
15210 link_all_deplibs=unknown
15211 hardcode_automatic=no
15213 module_expsym_cmds=
15214 always_export_symbols=no
15215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15216 # include_expsyms should be a list of space-separated symbols to be *always*
15217 # included in the symbol list
15219 # exclude_expsyms can be an extended regexp of symbols to exclude
15220 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15221 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15222 # as well as any symbol that contains `d'.
15223 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
15224 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15225 # platforms (ab)use it in PIC code, but their linkers get confused if
15226 # the symbol is explicitly referenced. Since portable code cannot
15227 # rely on this symbol name, it's probably fine to never include it in
15228 # preloaded symbol tables.
15229 extract_expsyms_cmds=
15230 # Just being paranoid about ensuring that cc_basename is set.
15231 for cc_temp in $compiler""; do
15233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15239 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
15242 cygwin* | mingw* | pw32*)
15243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15244 # When not using gcc, we currently assume that we are using
15245 # Microsoft Visual C++.
15246 if test "$GCC" != yes; then
15251 # we just hope/assume this is gcc and not c89 (= MSVC++)
15260 if test "$with_gnu_ld" = yes; then
15261 # If archive_cmds runs LD, not CC, wlarc should be empty
15264 # Set some defaults for GNU ld with shared library support. These
15265 # are reset later if shared libraries are not supported. Putting them
15266 # here allows them to be overridden if necessary.
15267 runpath_var=LD_RUN_PATH
15268 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15269 export_dynamic_flag_spec='${wl}--export-dynamic'
15270 # ancient GNU ld didn't support --whole-archive et. al.
15271 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15272 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15274 whole_archive_flag_spec=
15276 supports_anon_versioning=no
15277 case `$LD -v 2>/dev/null` in
15278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15281 *\ 2.11.*) ;; # other 2.11 versions
15282 *) supports_anon_versioning=yes ;;
15285 # See if GNU ld supports shared libraries.
15287 aix3* | aix4* | aix5*)
15288 # On AIX/PPC, the GNU linker is very broken
15289 if test "$host_cpu" != ia64; then
15293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15294 *** to be unable to reliably create shared libraries on AIX.
15295 *** Therefore, libtool is disabling shared libraries support. If you
15296 *** really care for shared libraries, you may want to modify your PATH
15297 *** so that a non-GNU linker is found, and then restart.
15304 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)'
15305 hardcode_libdir_flag_spec
='-L$libdir'
15306 hardcode_minus_L
=yes
15308 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15309 # that the semantics of dynamic libraries on AmigaOS, at least up
15310 # to version 4, is to share data among multiple programs linked
15311 # with the same dynamic library. Since this doesn't match the
15312 # behavior of shared libraries on other platforms, we can't use
15318 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15319 allow_undefined_flag
=unsupported
15320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15321 # support --undefined. This deserves some investigation. FIXME
15322 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328 cygwin
* | mingw
* | pw32
*)
15329 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15330 # as there is no search path for DLLs.
15331 hardcode_libdir_flag_spec
='-L$libdir'
15332 allow_undefined_flag
=unsupported
15333 always_export_symbols
=no
15334 enable_shared_with_static_runtimes
=yes
15335 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15337 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15338 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15339 # If the export-symbols file already is a .def file (1st line
15340 # is EXPORTS), use it as is; otherwise, prepend...
15341 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15342 cp $export_symbols $output_objdir/$soname.def;
15344 echo EXPORTS > $output_objdir/$soname.def;
15345 cat $export_symbols >> $output_objdir/$soname.def;
15347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15355 hardcode_shlibpath_var
=no
15356 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15357 export_dynamic_flag_spec
='${wl}-E'
15358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15359 # Instead, shared libraries are loaded at an image base (0x10000000 by
15360 # default) and relocated if they conflict, which is a slow very memory
15361 # consuming and fragmenting process. To avoid this, we pick a random,
15362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15364 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15365 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'
15369 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15371 case $cc_basename,$host_cpu in
15372 pgcc
*) # Portland Group C compiler
15373 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'
15374 tmp_addflag
=' $pic_flag'
15376 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
15377 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'
15378 tmp_addflag
=' $pic_flag -Mnomain' ;;
15379 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15380 tmp_addflag
=' -i_dynamic' ;;
15381 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15382 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15383 ifc
* | ifort
*) # Intel Fortran compiler
15384 tmp_addflag
=' -nofor_main' ;;
15386 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15388 if test $supports_anon_versioning = yes; then
15389 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
15390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15391 $echo "local: *; };" >> $output_objdir/$libname.ver~
15392 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15400 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15401 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15404 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15405 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15410 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15415 *** create shared libraries on Solaris systems. Therefore, libtool
15416 *** is disabling shared libraries support. We urge you to upgrade GNU
15417 *** binutils to release 2.9.1 or newer. Another option is to modify
15418 *** your PATH or compiler configuration so that the native linker is
15419 *** used, and then restart.
15422 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15423 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15424 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15430 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15431 case `$LD -v 2>&1` in
15432 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15437 *** reliably create shared libraries on SCO systems. Therefore, libtool
15438 *** is disabling shared libraries support. We urge you to upgrade GNU
15439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15440 *** your PATH or compiler configuration so that the native linker is
15441 *** used, and then restart.
15446 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15447 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15448 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15449 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15458 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct
=yes
15461 hardcode_shlibpath_var
=no
15465 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15466 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15474 if test "$ld_shlibs" = no
; then
15476 hardcode_libdir_flag_spec
=
15477 export_dynamic_flag_spec
=
15478 whole_archive_flag_spec
=
15481 # PORTME fill in a description of your system's linker (not GNU ld)
15484 allow_undefined_flag
=unsupported
15485 always_export_symbols
=yes
15486 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'
15487 # Note: this linker hardcodes the directories in LIBPATH if there
15488 # are no directories specified by -L.
15489 hardcode_minus_L
=yes
15490 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15491 # Neither direct hardcoding nor static linking is supported with a
15493 hardcode_direct
=unsupported
15498 if test "$host_cpu" = ia64
; then
15499 # On IA64, the linker does run time linking by default, so we don't
15500 # have to do anything special.
15501 aix_use_runtimelinking
=no
15502 exp_sym_flag
='-Bexport'
15505 # If we're using GNU nm, then we don't want the "-C" option.
15506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15507 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15508 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'
15510 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'
15512 aix_use_runtimelinking
=no
15514 # Test if we are trying to use run time linking or normal
15515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15516 # need to do runtime linking.
15517 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
15518 for ld_flag
in $LDFLAGS; do
15519 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15520 aix_use_runtimelinking
=yes
15527 exp_sym_flag
='-bexport'
15528 no_entry_flag
='-bnoentry'
15531 # When large executables or shared objects are built, AIX ld can
15532 # have problems creating the table of contents. If linking a library
15533 # or program results in "error TOC overflow" add -mminimal-toc to
15534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15538 hardcode_direct
=yes
15539 hardcode_libdir_separator
=':'
15540 link_all_deplibs
=yes
15542 if test "$GCC" = yes; then
15543 case $host_os in aix4.
[012]|aix4.
[012].
*)
15544 # We only want to do this on AIX 4.2 and lower, the check
15545 # below for broken collect2 doesn't work under 4.3+
15546 collect2name
=`${CC} -print-prog-name=collect2`
15547 if test -f "$collect2name" && \
15548 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
15550 # We have reworked collect2
15551 hardcode_direct
=yes
15553 # We have old collect2
15554 hardcode_direct
=unsupported
15555 # It fails to find uninstalled libraries when the uninstalled
15556 # path is not listed in the libpath. Setting hardcode_minus_L
15557 # to unsupported forces relinking
15558 hardcode_minus_L
=yes
15559 hardcode_libdir_flag_spec
='-L$libdir'
15560 hardcode_libdir_separator
=
15564 shared_flag
='-shared'
15565 if test "$aix_use_runtimelinking" = yes; then
15566 shared_flag
="$shared_flag "'${wl}-G'
15570 if test "$host_cpu" = ia64
; then
15571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15572 # chokes on -Wl,-G. The following line is correct:
15575 if test "$aix_use_runtimelinking" = yes; then
15576 shared_flag
='${wl}-G'
15578 shared_flag
='${wl}-bM:SRE'
15583 # It seems that -bexpall does not export symbols beginning with
15584 # underscore (_), so it is better to generate a list of symbols to export.
15585 always_export_symbols
=yes
15586 if test "$aix_use_runtimelinking" = yes; then
15587 # Warning - without using the other runtime loading flags (-brtl),
15588 # -berok will link without error, but may produce a broken library.
15589 allow_undefined_flag
='-berok'
15590 # Determine the default libpath from the value encoded in an empty executable.
15591 cat >conftest.
$ac_ext <<_ACEOF
15594 cat confdefs.h
>>conftest.
$ac_ext
15595 cat >>conftest.
$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15606 rm -f conftest.
$ac_objext conftest
$ac_exeext
15607 if { (ac_try
="$ac_link"
15608 case "(($ac_try" in
15609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_link") 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15623 *) ac_try_echo
=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try
='test -s conftest$ac_exeext'
15631 { (case "(($ac_try" in
15632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15641 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15647 echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15653 rm -f core conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658 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"
15660 if test "$host_cpu" = ia64; then
15661 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15662 allow_undefined_flag="-z nodefs"
15663 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"
15665 # Determine the default libpath from the value encoded in an empty executable.
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15685 *) ac_try_echo
=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15690 grep -v '^ *+' conftest.er1
>conftest.err
15692 cat conftest.err
>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (case "(($ac_try" in
15697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15708 *) ac_try_echo
=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15716 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15718 # Check for a 64-bit object if we didn't find anything.
15719 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; }
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.
$ac_ext >&5
15728 rm -f core conftest.err conftest.
$ac_objext \
15729 conftest
$ac_exeext conftest.
$ac_ext
15730 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15732 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15733 # Warning - without using the other run time loading flags,
15734 # -berok will link without error, but may produce a broken library.
15735 no_undefined_flag
=' ${wl}-bernotok'
15736 allow_undefined_flag
=' ${wl}-berok'
15737 # Exported symbols can be pulled into shared objects from archives
15738 whole_archive_flag_spec
='$convenience'
15739 archive_cmds_need_lc
=yes
15740 # This is similar to how AIX traditionally builds its shared libraries.
15741 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'
15747 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)'
15748 hardcode_libdir_flag_spec
='-L$libdir'
15749 hardcode_minus_L
=yes
15750 # see comment about different semantics on the GNU ld section
15755 export_dynamic_flag_spec
=-rdynamic
15758 cygwin
* | mingw
* | pw32
*)
15759 # When not using gcc, we currently assume that we are using
15760 # Microsoft Visual C++.
15761 # hardcode_libdir_flag_spec is actually meaningless, as there is
15762 # no search path for DLLs.
15763 hardcode_libdir_flag_spec
=' '
15764 allow_undefined_flag
=unsupported
15765 # Tell ltmain to make .lib files, not .a files.
15767 # Tell ltmain to make .dll files, not .so files.
15769 # FIXME: Setting linknames here is a bad hack.
15770 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15771 # The linker will automatically build a .lib file if we build a DLL.
15772 old_archive_From_new_cmds
='true'
15773 # FIXME: Should let the user specify the lib program.
15774 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
15775 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15776 enable_shared_with_static_runtimes
=yes
15779 darwin
* | rhapsody
*)
15781 rhapsody
* | darwin1.
[012])
15782 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
15785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15786 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15788 case ${MACOSX_DEPLOYMENT_TARGET} in
15790 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15793 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
15799 archive_cmds_need_lc
=no
15801 hardcode_automatic
=yes
15802 hardcode_shlibpath_var
=unsupported
15803 whole_archive_flag_spec
=''
15804 link_all_deplibs
=yes
15805 if test "$GCC" = yes ; then
15806 output_verbose_link_cmd
='echo'
15807 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15808 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15810 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}'
15811 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}'
15813 case $cc_basename in
15815 output_verbose_link_cmd
='echo'
15816 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15817 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15819 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}'
15820 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}'
15830 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831 hardcode_libdir_flag_spec
='-L$libdir'
15832 hardcode_shlibpath_var
=no
15839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15840 # support. Future versions do this automatically, but an explicit c++rt0.o
15841 # does not break anything, and helps significantly (at the cost of a little
15844 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15845 hardcode_libdir_flag_spec
='-R$libdir'
15846 hardcode_direct
=yes
15847 hardcode_shlibpath_var
=no
15850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15852 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct
=yes
15854 hardcode_minus_L
=yes
15855 hardcode_shlibpath_var
=no
15858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15859 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
15860 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15861 hardcode_libdir_flag_spec
='-R$libdir'
15862 hardcode_direct
=yes
15863 hardcode_shlibpath_var
=no
15867 if test "$GCC" = yes; then
15868 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'
15870 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'
15872 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15873 hardcode_libdir_separator
=:
15874 hardcode_direct
=yes
15876 # hardcode_minus_L: Not really in the search PATH,
15877 # but as the default location of the library.
15878 hardcode_minus_L
=yes
15879 export_dynamic_flag_spec
='${wl}-E'
15883 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15884 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15888 if test "$with_gnu_ld" = no
; then
15889 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15890 hardcode_libdir_separator
=:
15892 hardcode_direct
=yes
15893 export_dynamic_flag_spec
='${wl}-E'
15895 # hardcode_minus_L: Not really in the search PATH,
15896 # but as the default location of the library.
15897 hardcode_minus_L
=yes
15902 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15905 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15911 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15917 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15920 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15923 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15927 if test "$with_gnu_ld" = no
; then
15928 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15929 hardcode_libdir_separator
=:
15933 hardcode_libdir_flag_spec_ld
='+b $libdir'
15935 hardcode_shlibpath_var
=no
15938 hardcode_direct
=yes
15939 export_dynamic_flag_spec
='${wl}-E'
15941 # hardcode_minus_L: Not really in the search PATH,
15942 # but as the default location of the library.
15943 hardcode_minus_L
=yes
15949 irix5
* | irix6
* | nonstopux
*)
15950 if test "$GCC" = yes; then
15951 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'
15953 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'
15954 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15956 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15957 hardcode_libdir_separator
=:
15958 link_all_deplibs
=yes
15962 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15963 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15965 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15967 hardcode_libdir_flag_spec
='-R$libdir'
15968 hardcode_direct
=yes
15969 hardcode_shlibpath_var
=no
15973 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974 hardcode_direct
=yes
15975 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15976 hardcode_libdir_separator
=:
15977 hardcode_shlibpath_var
=no
15981 hardcode_direct
=yes
15982 hardcode_shlibpath_var
=no
15983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15985 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15986 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15987 export_dynamic_flag_spec
='${wl}-E'
15990 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15991 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15992 hardcode_libdir_flag_spec
='-R$libdir'
15995 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15996 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16003 hardcode_libdir_flag_spec
='-L$libdir'
16004 hardcode_minus_L
=yes
16005 allow_undefined_flag
=unsupported
16006 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'
16007 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16011 if test "$GCC" = yes; then
16012 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16013 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'
16015 allow_undefined_flag
=' -expect_unresolved \*'
16016 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'
16018 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator
=:
16022 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16023 if test "$GCC" = yes; then
16024 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16025 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'
16026 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16028 allow_undefined_flag
=' -expect_unresolved \*'
16029 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'
16030 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16031 $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'
16033 # Both c and cxx compiler support -rpath directly
16034 hardcode_libdir_flag_spec
='-rpath $libdir'
16036 hardcode_libdir_separator
=:
16040 no_undefined_flag
=' -z text'
16041 if test "$GCC" = yes; then
16043 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16044 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16045 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16048 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16052 hardcode_libdir_flag_spec
='-R$libdir'
16053 hardcode_shlibpath_var
=no
16055 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16057 # The compiler driver will combine linker options so we
16058 # cannot just pass the convience library names through
16059 # without $wl, iff we do not link with $LD.
16060 # Luckily, gcc supports the same syntax we need for Sun Studio.
16061 # Supported since Solaris 2.6 (maybe 2.5.1?)
16064 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
16066 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' ;;
16069 link_all_deplibs
=yes
16073 if test "x$host_vendor" = xsequent
; then
16074 # Use $CC to link under sequent, because it throws in some extra .o
16075 # files that make .init and .fini sections work.
16076 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16078 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16080 hardcode_libdir_flag_spec
='-L$libdir'
16081 hardcode_direct
=yes
16082 hardcode_minus_L
=yes
16083 hardcode_shlibpath_var
=no
16087 case $host_vendor in
16089 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090 hardcode_direct
=yes # is this really true???
16093 ## LD is ld it makes a PLAMLIB
16094 ## CC just makes a GrossModule.
16095 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16096 reload_cmds
='$CC -r -o $output$reload_objs'
16100 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16104 runpath_var
='LD_RUN_PATH'
16105 hardcode_shlibpath_var
=no
16109 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_shlibpath_var
=no
16111 export_dynamic_flag_spec
='-Bexport'
16115 if test -d /usr
/nec
; then
16116 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16117 hardcode_shlibpath_var
=no
16118 runpath_var
=LD_RUN_PATH
16119 hardcode_runpath_var
=yes
16124 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
16125 no_undefined_flag
='${wl}-z,text'
16126 archive_cmds_need_lc
=no
16127 hardcode_shlibpath_var
=no
16128 runpath_var
='LD_RUN_PATH'
16130 if test "$GCC" = yes; then
16131 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 sysv5
* | sco3.2v5
* | sco5v6
*)
16140 # Note: We can NOT use -z defs as we might desire, because we do not
16141 # link with -lc, and that would cause any symbols used from libc to
16142 # always be unresolved, which means just about no library would
16143 # ever link correctly. If we're not using GNU ld we use -z text
16144 # though, which does catch some bad symbols but isn't as heavy-handed
16146 no_undefined_flag
='${wl}-z,text'
16147 allow_undefined_flag
='${wl}-z,nodefs'
16148 archive_cmds_need_lc
=no
16149 hardcode_shlibpath_var
=no
16150 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16151 hardcode_libdir_separator
=':'
16152 link_all_deplibs
=yes
16153 export_dynamic_flag_spec
='${wl}-Bexport'
16154 runpath_var
='LD_RUN_PATH'
16156 if test "$GCC" = yes; then
16157 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16158 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16160 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec
='-L$libdir'
16168 hardcode_shlibpath_var
=no
16177 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16178 echo "${ECHO_T}$ld_shlibs" >&6; }
16179 test "$ld_shlibs" = no
&& can_build_shared
=no
16182 # Do we need to explicitly link libc?
16184 case "x$archive_cmds_need_lc" in
16186 # Assume -lc should be added
16187 archive_cmds_need_lc
=yes
16189 if test "$enable_shared" = yes && test "$GCC" = yes; then
16190 case $archive_cmds in
16192 # FIXME: we may have to deal with multi-command sequences.
16195 # Test whether the compiler implicitly links with -lc since on some
16196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16197 # to ld, don't add -lc before -lgcc.
16198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16201 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } 2>conftest.err
; then
16210 libobjs
=conftest.
$ac_objext
16212 wl
=$lt_prog_compiler_wl
16213 pic_flag
=$lt_prog_compiler_pic
16219 lt_save_allow_undefined_flag
=$allow_undefined_flag
16220 allow_undefined_flag
=
16221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16222 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }
16227 archive_cmds_need_lc
=no
16229 archive_cmds_need_lc
=yes
16231 allow_undefined_flag
=$lt_save_allow_undefined_flag
16233 cat conftest.err
1>&5
16236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16237 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16246 library_names_spec
=
16247 libname_spec
='lib$name'
16251 postuninstall_cmds
=
16255 shlibpath_overrides_runpath
=unknown
16257 dynamic_linker
="$host_os ld.so"
16258 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16259 if test "$GCC" = yes; then
16260 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16261 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16262 # if the path contains ";" then we assume it to be the separator
16263 # otherwise default to the standard path separator (i.e. ":") - it is
16264 # assumed that no part of a normal pathname contains ";" but that should
16265 # okay in the real world where ";" in dirpaths is itself problematic.
16266 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16268 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16271 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16273 need_lib_prefix
=unknown
16274 hardcode_into_libs
=no
16276 # when you set need_version to no, make sure it does not cause -set_version
16277 # flags to be left without arguments
16278 need_version
=unknown
16283 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16284 shlibpath_var
=LIBPATH
16286 # AIX 3 has no versioning support, so we append a major version to the name.
16287 soname_spec
='${libname}${release}${shared_ext}$major'
16294 hardcode_into_libs
=yes
16295 if test "$host_cpu" = ia64
; then
16296 # AIX 5 supports IA64
16297 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16298 shlibpath_var
=LD_LIBRARY_PATH
16300 # With GCC up to 2.95.x, collect2 would create an import file
16301 # for dependence libraries. The import file would start with
16302 # the line `#! .'. This would cause the generated library to
16303 # depend on `.', always an invalid library. This was fixed in
16304 # development snapshots of GCC prior to 3.0.
16306 aix4 | aix4.
[01] | aix4.
[01].
*)
16307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16309 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16312 can_build_shared
=no
16316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16317 # soname into executable. Probably we can add versioning support to
16318 # collect2, so additional links can be useful in future.
16319 if test "$aix_use_runtimelinking" = yes; then
16320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16321 # instead of lib<name>.a to let people know that these are not
16322 # typical AIX shared libraries.
16323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 # We preserve .a as extension for shared libraries through AIX4.2
16326 # and later when we are not doing run time linking.
16327 library_names_spec
='${libname}${release}.a $libname.a'
16328 soname_spec
='${libname}${release}${shared_ext}$major'
16330 shlibpath_var
=LIBPATH
16335 library_names_spec
='$libname.ixlibrary $libname.a'
16336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16337 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'
16341 library_names_spec
='${libname}${shared_ext}'
16342 dynamic_linker
="$host_os ld.so"
16343 shlibpath_var
=LIBRARY_PATH
16349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec
='${libname}${release}${shared_ext}$major'
16351 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16352 shlibpath_var
=LD_LIBRARY_PATH
16353 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16354 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16355 # the default ld.so.conf also contains /usr/contrib/lib and
16356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16357 # libtool to hard-code these into programs
16360 cygwin
* | mingw
* | pw32
*)
16361 version_type
=windows
16366 case $GCC,$host_os in
16367 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16368 library_names_spec
='$libname.dll.a'
16369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16370 postinstall_cmds
='base_file=`basename \${file}`~
16371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16372 dldir=$destdir/`dirname \$dlpath`~
16373 test -d \$dldir || mkdir -p \$dldir~
16374 $install_prog $dir/$dlname \$dldir/$dlname~
16375 chmod a+x \$dldir/$dlname'
16376 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16377 dlpath=$dir/\$dldll~
16379 shlibpath_overrides_runpath
=yes
16383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16384 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16385 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16388 # MinGW DLLs use traditional 'lib' prefix
16389 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16391 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16392 # It is most probably a Windows format PATH printed by
16393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16394 # path with ; separators, and with drive letters. We can handle the
16395 # drive letters (cygwin fileutils understands them), so leave them,
16396 # especially as we might pass files found there to a mingw objdump,
16397 # which wouldn't understand a cygwinified path. Ahh.
16398 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16400 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16404 # pw32 DLLs use 'pw' prefix rather than 'lib'
16405 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16411 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16414 dynamic_linker
='Win32 ld.exe'
16415 # FIXME: first we should search . and the directory the executable is in
16419 darwin
* | rhapsody
*)
16420 dynamic_linker
="$host_os dyld"
16421 version_type
=darwin
16424 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16425 soname_spec
='${libname}${release}${major}$shared_ext'
16426 shlibpath_overrides_runpath
=yes
16427 shlibpath_var
=DYLD_LIBRARY_PATH
16428 shrext_cmds
='.dylib'
16429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16430 if test "$GCC" = yes; then
16431 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"`
16433 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16435 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16443 soname_spec
='${libname}${release}${shared_ext}$major'
16444 shlibpath_var
=LD_LIBRARY_PATH
16455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16456 soname_spec
='${libname}${release}${shared_ext}$major'
16457 shlibpath_var
=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath
=no
16459 hardcode_into_libs
=yes
16460 dynamic_linker
='GNU ld.so'
16463 freebsd
* | dragonfly
*)
16464 # DragonFly does not have aout. When/if they implement a new
16465 # versioning mechanism, adjust this.
16466 if test -x /usr
/bin
/objformat
; then
16467 objformat
=`/usr/bin/objformat`
16470 freebsd
[123]*) objformat
=aout
;;
16471 *) objformat
=elf
;;
16474 version_type
=freebsd-
$objformat
16475 case $version_type in
16477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16482 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16486 shlibpath_var
=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath
=yes
16491 freebsd3.
[01]* | freebsdelf3.
[01]*)
16492 shlibpath_overrides_runpath
=yes
16493 hardcode_into_libs
=yes
16495 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16496 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16497 shlibpath_overrides_runpath
=no
16498 hardcode_into_libs
=yes
16500 freebsd
*) # from 4.6 on
16501 shlibpath_overrides_runpath
=yes
16502 hardcode_into_libs
=yes
16511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512 soname_spec
='${libname}${release}${shared_ext}$major'
16513 shlibpath_var
=LD_LIBRARY_PATH
16514 hardcode_into_libs
=yes
16517 hpux9
* | hpux10
* | hpux11
*)
16518 # Give a soname corresponding to the major version so that dld.sl refuses to
16519 # link against other versions.
16526 hardcode_into_libs
=yes
16527 dynamic_linker
="$host_os dld.so"
16528 shlibpath_var
=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec
='${libname}${release}${shared_ext}$major'
16532 if test "X$HPUX_IA64_MODE" = X32
; then
16533 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16535 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16537 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16541 hardcode_into_libs
=yes
16542 dynamic_linker
="$host_os dld.sl"
16543 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16544 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec
='${libname}${release}${shared_ext}$major'
16547 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16552 dynamic_linker
="$host_os dld.sl"
16553 shlibpath_var
=SHLIB_PATH
16554 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec
='${libname}${release}${shared_ext}$major'
16559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560 postinstall_cmds
='chmod 555 $lib'
16567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568 soname_spec
='${libname}${release}${shared_ext}$major'
16569 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16570 shlibpath_var
=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath
=no
16572 hardcode_into_libs
=yes
16575 irix5
* | irix6
* | nonstopux
*)
16577 nonstopux
*) version_type
=nonstopux
;;
16579 if test "$lt_cv_prog_gnu_ld" = yes; then
16587 soname_spec
='${libname}${release}${shared_ext}$major'
16588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16590 irix5
* | nonstopux
*)
16591 libsuff
= shlibsuff
=
16594 case $LD in # libtool.m4 will add one of these switches to LD
16595 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16596 libsuff
= shlibsuff
= libmagic
=32-bit;;
16597 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16598 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16599 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16600 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16601 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16605 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16606 shlibpath_overrides_runpath
=no
16607 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16609 hardcode_into_libs
=yes
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16617 # This must be Linux ELF.
16622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec
='${libname}${release}${shared_ext}$major'
16624 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625 shlibpath_var
=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath
=no
16627 # This implies no fast_install, which is unacceptable.
16628 # Some rework will be needed to allow for fast_install
16629 # before this can be enabled.
16630 hardcode_into_libs
=yes
16632 # Append ld.so.conf contents to the search path
16633 if test -f /etc
/ld.so.conf
; then
16634 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' ' '`
16635 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16638 # We used to test for /lib/ld.so.1 and disable shared libraries on
16639 # powerpc, because MkLinux only supported shared libraries with the
16640 # GNU dynamic linker. Since this was broken with cross compilers,
16641 # most powerpc-linux boxes support dynamic linking these days and
16642 # people can always --disable-shared, the test was removed, and we
16643 # assume the GNU/Linux dynamic linker is in use.
16644 dynamic_linker
='GNU/Linux ld.so'
16651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652 soname_spec
='${libname}${release}${shared_ext}$major'
16653 shlibpath_var
=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath
=no
16655 hardcode_into_libs
=yes
16656 dynamic_linker
='GNU ld.so'
16663 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16665 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16666 dynamic_linker
='NetBSD (a.out) ld.so'
16668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16669 soname_spec
='${libname}${release}${shared_ext}$major'
16670 dynamic_linker
='NetBSD ld.elf_so'
16672 shlibpath_var
=LD_LIBRARY_PATH
16673 shlibpath_overrides_runpath
=yes
16674 hardcode_into_libs
=yes
16679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 shlibpath_var
=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath
=yes
16688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16689 soname_spec
='${libname}${release}${shared_ext}$major'
16690 shlibpath_var
=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath
=yes
16696 sys_lib_dlsearch_path_spec
="/usr/lib"
16698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16700 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16701 *) need_version
=no
;;
16703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705 shlibpath_var
=LD_LIBRARY_PATH
16706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16708 openbsd2.
[89] | openbsd2.
[89].
*)
16709 shlibpath_overrides_runpath
=no
16712 shlibpath_overrides_runpath
=yes
16716 shlibpath_overrides_runpath
=yes
16721 libname_spec
='$name'
16724 library_names_spec
='$libname${shared_ext} $libname.a'
16725 dynamic_linker
='OS/2 ld.exe'
16726 shlibpath_var
=LIBPATH
16729 osf3
* | osf4
* | osf5
*)
16733 soname_spec
='${libname}${release}${shared_ext}$major'
16734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735 shlibpath_var
=LD_LIBRARY_PATH
16736 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16737 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 soname_spec
='${libname}${release}${shared_ext}$major'
16746 shlibpath_var
=LD_LIBRARY_PATH
16747 shlibpath_overrides_runpath
=yes
16748 hardcode_into_libs
=yes
16749 # ldd complains unless libraries are executable
16750 postinstall_cmds
='chmod +x $lib'
16755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16756 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16757 shlibpath_var
=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath
=yes
16759 if test "$with_gnu_ld" = yes; then
16767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 soname_spec
='${libname}${release}${shared_ext}$major'
16769 shlibpath_var
=LD_LIBRARY_PATH
16770 case $host_vendor in
16772 shlibpath_overrides_runpath
=no
16774 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16775 runpath_var
=LD_RUN_PATH
16783 shlibpath_overrides_runpath
=no
16784 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16790 if test -d /usr
/nec
;then
16792 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16793 soname_spec
='$libname${shared_ext}.$major'
16794 shlibpath_var
=LD_LIBRARY_PATH
16798 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16799 version_type
=freebsd-elf
16802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16803 soname_spec
='${libname}${release}${shared_ext}$major'
16804 shlibpath_var
=LD_LIBRARY_PATH
16805 hardcode_into_libs
=yes
16806 if test "$with_gnu_ld" = yes; then
16807 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16808 shlibpath_overrides_runpath
=no
16810 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16811 shlibpath_overrides_runpath
=yes
16814 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16818 sys_lib_dlsearch_path_spec
='/usr/lib'
16823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec
='${libname}${release}${shared_ext}$major'
16825 shlibpath_var
=LD_LIBRARY_PATH
16832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16833 echo "${ECHO_T}$dynamic_linker" >&6; }
16834 test "$dynamic_linker" = no
&& can_build_shared
=no
16836 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16837 if test "$GCC" = yes; then
16838 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16841 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16842 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16844 if test -n "$hardcode_libdir_flag_spec" || \
16845 test -n "$runpath_var" || \
16846 test "X$hardcode_automatic" = "Xyes" ; then
16848 # We can hardcode non-existant directories.
16849 if test "$hardcode_direct" != no
&&
16850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16851 # have to relink, otherwise we might link with an installed library
16852 # when we should be linking with a yet-to-be-installed one
16853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16854 test "$hardcode_minus_L" != no
; then
16855 # Linking always hardcodes the temporary library directory.
16856 hardcode_action
=relink
16858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16859 hardcode_action
=immediate
16862 # We cannot hardcode anything, or else we can only hardcode existing
16864 hardcode_action
=unsupported
16866 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16867 echo "${ECHO_T}$hardcode_action" >&6; }
16869 if test "$hardcode_action" = relink
; then
16870 # Fast installation is not supported
16871 enable_fast_install
=no
16872 elif test "$shlibpath_overrides_runpath" = yes ||
16873 test "$enable_shared" = no
; then
16874 # Fast installation is not necessary
16875 enable_fast_install
=needless
16880 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16881 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16882 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
16883 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
16884 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
16885 { echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6; }
16888 # FIXME - insert some real tests, host_os isn't really good enough
16891 if test -n "$STRIP" ; then
16892 striplib
="$STRIP -x"
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16896 { echo "$as_me:$LINENO: result: no" >&5
16897 echo "${ECHO_T}no" >&6; }
16901 { echo "$as_me:$LINENO: result: no" >&5
16902 echo "${ECHO_T}no" >&6; }
16907 if test "x$enable_dlopen" != xyes
; then
16908 enable_dlopen
=unknown
16909 enable_dlopen_self
=unknown
16910 enable_dlopen_self_static
=unknown
16917 lt_cv_dlopen
="load_add_on"
16919 lt_cv_dlopen_self
=yes
16923 lt_cv_dlopen
="LoadLibrary"
16928 lt_cv_dlopen
="dlopen"
16933 # if libdl is installed we need to link against it
16934 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 ac_check_lib_save_LIBS
=$LIBS
16941 cat >conftest.
$ac_ext <<_ACEOF
16944 cat confdefs.h
>>conftest.
$ac_ext
16945 cat >>conftest.
$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16948 /* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
16963 rm -f conftest.
$ac_objext conftest
$ac_exeext
16964 if { (ac_try
="$ac_link"
16965 case "(($ac_try" in
16966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_link") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16980 *) ac_try_echo
=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; } &&
16987 { ac_try
='test -s conftest$ac_exeext'
16988 { (case "(($ac_try" in
16989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_try") 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_lib_dl_dlopen=yes
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_cv_lib_dl_dlopen=no
17005 rm -f core conftest.err conftest.$ac_objext \
17006 conftest$ac_exeext conftest.$ac_ext
17007 LIBS=$ac_check_lib_save_LIBS
17009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17011 if test $ac_cv_lib_dl_dlopen = yes; then
17012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17015 lt_cv_dlopen="dyld"
17017 lt_cv_dlopen_self=yes
17024 { echo "$as_me:$LINENO: checking for shl_load" >&5
17025 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17026 if test "${ac_cv_func_shl_load+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 cat >conftest.$ac_ext <<_ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17037 #define shl_load innocuous_shl_load
17039 /* System header to define __stub macros and hopefully few prototypes,
17040 which can conflict with char shl_load (); below.
17041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 <limits.h> exists even on freestanding compilers. */
17045 # include <limits.h>
17047 # include <assert.h>
17052 /* Override any GCC internal prototype to avoid an error.
17053 Use char because int might match the return type of a GCC
17054 builtin and then its argument prototype would still apply. */
17059 /* The GNU C library defines this for functions which it implements
17060 to always fail with ENOSYS. Some functions are actually named
17061 something starting with __ and the normal name is an alias. */
17062 #if defined __stub_shl_load || defined __stub___shl_load
17069 return shl_load ();
17074 rm -f conftest.$ac_objext conftest$ac_exeext
17075 if { (ac_try="$ac_link"
17076 case "(($ac_try" in
17077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17078 *) ac_try_echo
=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_link") 2>conftest.er1
17083 grep -v '^ *+' conftest.er1
>conftest.err
17085 cat conftest.err
>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
17088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17089 { (case "(($ac_try" in
17090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest$ac_exeext'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17101 *) ac_try_echo
=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 ac_cv_func_shl_load
=yes
17110 echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.
$ac_ext >&5
17113 ac_cv_func_shl_load
=no
17116 rm -f core conftest.err conftest.
$ac_objext \
17117 conftest
$ac_exeext conftest.
$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17121 if test $ac_cv_func_shl_load = yes; then
17122 lt_cv_dlopen
="shl_load"
17124 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17126 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 ac_check_lib_save_LIBS
=$LIBS
17131 cat >conftest.
$ac_ext <<_ACEOF
17134 cat confdefs.h
>>conftest.
$ac_ext
17135 cat >>conftest.
$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17148 return shl_load ();
17153 rm -f conftest.
$ac_objext conftest
$ac_exeext
17154 if { (ac_try
="$ac_link"
17155 case "(($ac_try" in
17156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
17162 grep -v '^ *+' conftest.er1 >conftest.err
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17170 *) ac_try_echo
=$ac_try;;
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; } &&
17177 { ac_try
='test -s conftest$ac_exeext'
17178 { (case "(($ac_try" in
17179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_try") 2>&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187 ac_cv_lib_dld_shl_load=yes
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_cv_lib_dld_shl_load=no
17195 rm -f core conftest.err conftest.$ac_objext \
17196 conftest$ac_exeext conftest.$ac_ext
17197 LIBS=$ac_check_lib_save_LIBS
17199 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17200 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17201 if test $ac_cv_lib_dld_shl_load = yes; then
17202 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17204 { echo "$as_me:$LINENO: checking for dlopen" >&5
17205 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17206 if test "${ac_cv_func_dlopen+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217 #define dlopen innocuous_dlopen
17219 /* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char dlopen (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
17225 # include <limits.h>
17227 # include <assert.h>
17232 /* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17239 /* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
17242 #if defined __stub_dlopen || defined __stub___dlopen
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17258 *) ac_try_echo
=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1
>conftest.err
17265 cat conftest.err
>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17281 *) ac_try_echo
=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_func_dlopen
=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.
$ac_ext >&5
17293 ac_cv_func_dlopen
=no
17296 rm -f core conftest.err conftest.
$ac_objext \
17297 conftest
$ac_exeext conftest.
$ac_ext
17299 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17300 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17301 if test $ac_cv_func_dlopen = yes; then
17302 lt_cv_dlopen
="dlopen"
17304 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17305 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 ac_check_lib_save_LIBS
=$LIBS
17311 cat >conftest.
$ac_ext <<_ACEOF
17314 cat confdefs.h
>>conftest.
$ac_ext
17315 cat >>conftest.
$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17333 rm -f conftest.
$ac_objext conftest
$ac_exeext
17334 if { (ac_try
="$ac_link"
17335 case "(($ac_try" in
17336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>conftest.er1
17342 grep -v '^ *+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348 { (case "(($ac_try" in
17349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17350 *) ac_try_echo
=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_try") 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
17367 ac_cv_lib_dl_dlopen=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_cv_lib_dl_dlopen=no
17375 rm -f core conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377 LIBS=$ac_check_lib_save_LIBS
17379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17381 if test $ac_cv_lib_dl_dlopen = yes; then
17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17384 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17385 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17386 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-lsvld $LIBS"
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17417 *) ac_try_echo
=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
17422 grep -v '^ *+' conftest.er1
>conftest.err
17424 cat conftest.err
>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17428 { (case "(($ac_try" in
17429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17447 ac_cv_lib_svld_dlopen
=yes
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.
$ac_ext >&5
17452 ac_cv_lib_svld_dlopen
=no
17455 rm -f core conftest.err conftest.
$ac_objext \
17456 conftest
$ac_exeext conftest.
$ac_ext
17457 LIBS
=$ac_check_lib_save_LIBS
17459 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17460 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17461 if test $ac_cv_lib_svld_dlopen = yes; then
17462 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17464 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17465 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17466 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 ac_check_lib_save_LIBS
=$LIBS
17471 cat >conftest.
$ac_ext <<_ACEOF
17474 cat confdefs.h
>>conftest.
$ac_ext
17475 cat >>conftest.
$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 /* Override any GCC internal prototype to avoid an error.
17479 Use char because int might match the return type of a GCC
17480 builtin and then its argument prototype would still apply. */
17488 return dld_link ();
17493 rm -f conftest.
$ac_objext conftest
$ac_exeext
17494 if { (ac_try
="$ac_link"
17495 case "(($ac_try" in
17496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17510 *) ac_try_echo
=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try
='test -s conftest$ac_exeext'
17518 { (case "(($ac_try" in
17519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17527 ac_cv_lib_dld_dld_link=yes
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 ac_cv_lib_dld_dld_link=no
17535 rm -f core conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17541 if test $ac_cv_lib_dld_dld_link = yes; then
17542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17563 if test "x$lt_cv_dlopen" != xno; then
17569 case $lt_cv_dlopen in
17571 save_CPPFLAGS="$CPPFLAGS"
17572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17574 save_LDFLAGS="$LDFLAGS"
17575 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17578 LIBS="$lt_cv_dlopen_libs $LIBS"
17580 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17582 if test "${lt_cv_dlopen_self+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 if test "$cross_compiling" = yes; then :
17586 lt_cv_dlopen_self=cross
17588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17589 lt_status=$lt_dlunknown
17590 cat > conftest.$ac_ext <<EOF
17591 #line 17591 "configure"
17592 #include "confdefs.h"
17601 # define LT_DLGLOBAL RTLD_GLOBAL
17604 # define LT_DLGLOBAL DL_GLOBAL
17606 # define LT_DLGLOBAL 0
17610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17611 find out it does not work in some platform. */
17612 #ifndef LT_DLLAZY_OR_NOW
17614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17617 # define LT_DLLAZY_OR_NOW DL_LAZY
17620 # define LT_DLLAZY_OR_NOW RTLD_NOW
17623 # define LT_DLLAZY_OR_NOW DL_NOW
17625 # define LT_DLLAZY_OR_NOW 0
17633 extern "C" void exit (int);
17636 void fnord() { int i=42;}
17639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17640 int status = $lt_dlunknown;
17644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17646 /* dlclose (self); */
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17659 (./conftest; exit; ) >&5 2>/dev/null
17661 case x$lt_status in
17662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17664 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17667 # compilation failed
17668 lt_cv_dlopen_self=no
17675 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17676 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17678 if test "x$lt_cv_dlopen_self" = xyes; then
17679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17680 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17681 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17682 if test "${lt_cv_dlopen_self_static+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 if test "$cross_compiling" = yes; then :
17686 lt_cv_dlopen_self_static=cross
17688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17689 lt_status=$lt_dlunknown
17690 cat > conftest.$ac_ext <<EOF
17691 #line 17691 "configure"
17692 #include "confdefs.h"
17701 # define LT_DLGLOBAL RTLD_GLOBAL
17704 # define LT_DLGLOBAL DL_GLOBAL
17706 # define LT_DLGLOBAL 0
17710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17711 find out it does not work in some platform. */
17712 #ifndef LT_DLLAZY_OR_NOW
17714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17717 # define LT_DLLAZY_OR_NOW DL_LAZY
17720 # define LT_DLLAZY_OR_NOW RTLD_NOW
17723 # define LT_DLLAZY_OR_NOW DL_NOW
17725 # define LT_DLLAZY_OR_NOW 0
17733 extern "C" void exit (int);
17736 void fnord() { int i=42;}
17739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17740 int status = $lt_dlunknown;
17744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17746 /* dlclose (self); */
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17759 (./conftest; exit; ) >&5 2>/dev/null
17761 case x$lt_status in
17762 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17763 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17764 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17767 # compilation failed
17768 lt_cv_dlopen_self_static=no
17775 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17776 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17779 CPPFLAGS="$save_CPPFLAGS"
17780 LDFLAGS="$save_LDFLAGS"
17785 case $lt_cv_dlopen_self in
17786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17787 *) enable_dlopen_self=unknown ;;
17790 case $lt_cv_dlopen_self_static in
17791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17792 *) enable_dlopen_self_static=unknown ;;
17797 # Report which library types will actually be built
17798 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17799 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17800 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17801 echo "${ECHO_T}$can_build_shared" >&6; }
17803 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17804 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17805 test "$can_build_shared" = "no" && enable_shared=no
17807 # On AIX, shared libraries and static libraries use the same namespace, and
17808 # are all built from PIC.
17811 test "$enable_shared" = yes && enable_static=no
17812 if test -n "$RANLIB"; then
17813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17814 postinstall_cmds='$RANLIB $lib'
17819 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17820 test "$enable_shared" = yes && enable_static=no
17824 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17825 echo "${ECHO_T}$enable_shared" >&6; }
17827 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17828 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17829 # Make sure either enable_shared or enable_static is yes.
17830 test "$enable_shared" = yes || enable_static=yes
17831 { echo "$as_me:$LINENO: result: $enable_static" >&5
17832 echo "${ECHO_T}$enable_static" >&6; }
17834 # The else clause should only fire when bootstrapping the
17835 # libtool distribution, otherwise you forgot to ship ltmain.sh
17836 # with your package, and you will get complaints that there are
17837 # no rules to generate ltmain.sh.
17838 if test -f "$ltmain"; then
17839 # See if we are running on zsh, and set the options which allow our commands through
17840 # without removal of \ escapes.
17841 if test -n "${ZSH_VERSION+set}" ; then
17842 setopt NO_GLOB_SUBST
17844 # Now quote all the things that may contain metacharacters while being
17845 # careful not to overquote the AC_SUBSTed values. We take copies of the
17846 # variables and quote the copies for generation of the libtool script.
17847 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851 deplibs_check_method reload_flag reload_cmds need_locks \
17852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853 lt_cv_sys_global_symbol_to_c_name_address \
17854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855 old_postinstall_cmds old_postuninstall_cmds \
17859 lt_prog_compiler_wl \
17860 lt_prog_compiler_pic \
17861 lt_prog_compiler_static \
17862 lt_prog_compiler_no_builtin_flag \
17863 export_dynamic_flag_spec \
17864 thread_safe_flag_spec \
17865 whole_archive_flag_spec \
17866 enable_shared_with_static_runtimes \
17868 old_archive_from_new_cmds \
17873 compiler_lib_search_path \
17875 archive_expsym_cmds \
17877 postuninstall_cmds \
17878 old_archive_from_expsyms_cmds \
17879 allow_undefined_flag \
17880 no_undefined_flag \
17881 export_symbols_cmds \
17882 hardcode_libdir_flag_spec \
17883 hardcode_libdir_flag_spec_ld \
17884 hardcode_libdir_separator \
17885 hardcode_automatic \
17887 module_expsym_cmds \
17888 lt_cv_prog_compiler_c_o \
17890 include_expsyms; do
17893 old_archive_cmds | \
17894 old_archive_from_new_cmds | \
17896 archive_expsym_cmds | \
17898 module_expsym_cmds | \
17899 old_archive_from_expsyms_cmds | \
17900 export_symbols_cmds | \
17901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17902 postinstall_cmds | postuninstall_cmds | \
17903 old_postinstall_cmds | old_postuninstall_cmds | \
17904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17905 # Double-quote double-evaled strings.
17906 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
17909 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
17915 *'\$0 --fallback-echo"')
17916 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17920 cfgfile="${ofile}T"
17921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17923 { echo "$as_me:$LINENO: creating $ofile" >&5
17924 echo "$as_me: creating $ofile" >&6;}
17926 cat <<__EOF__ >> "$cfgfile"
17929 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
17930 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17934 # Free Software Foundation, Inc.
17936 # This file is part of GNU Libtool:
17937 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17939 # This program is free software; you can redistribute it and/or modify
17940 # it under the terms of the GNU General Public License as published by
17941 # the Free Software Foundation; either version 2 of the License, or
17942 # (at your option) any later version.
17944 # This program is distributed in the hope that it will be useful, but
17945 # WITHOUT ANY WARRANTY; without even the implied warranty of
17946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17947 # General Public License for more details.
17949 # You should have received a copy of the GNU General Public License
17950 # along with this program; if not, write to the Free Software
17951 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17953 # As a special exception to the GNU General Public License, if you
17954 # distribute this file as part of a program that contains a
17955 # configuration script generated by Autoconf, you may include it under
17956 # the same distribution terms that you use for the rest of that program.
17958 # A sed program that does not truncate output.
17961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17962 Xsed="$SED -e 1s/^X//"
17964 # The HP-UX ksh and POSIX shell print the target directory to stdout
17965 # if CDPATH is set.
17966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17968 # The names of the tagged configurations supported by this script.
17971 # ### BEGIN LIBTOOL CONFIG
17973 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
17975 # Shell to use when invoking shell scripts.
17978 # Whether or not to build shared libraries.
17979 build_libtool_libs=$enable_shared
17981 # Whether or not to build static libraries.
17982 build_old_libs=$enable_static
17984 # Whether or not to add -lc for building shared libraries.
17985 build_libtool_need_lc=$archive_cmds_need_lc
17987 # Whether or not to disallow shared libs when runtime libs are static
17988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17990 # Whether or not to optimize for fast installation.
17991 fast_install=$enable_fast_install
17994 host_alias=$host_alias
17998 # The build system.
17999 build_alias=$build_alias
18003 # An echo program that does not interpret backslashes.
18008 AR_FLAGS=$lt_AR_FLAGS
18013 # LTCC compiler flags.
18014 LTCFLAGS=$lt_LTCFLAGS
18016 # A language-specific compiler.
18019 # Is the compiler the GNU C compiler?
18025 # The linker used to build libraries.
18028 # Whether we need hard or soft links.
18031 # A BSD-compatible nm program.
18034 # A symbol stripping program
18037 # Used to examine libraries when file_magic_cmd begins "file"
18038 MAGIC_CMD=$MAGIC_CMD
18040 # Used on cygwin: DLL creation program.
18043 # Used on cygwin: object dumper.
18046 # Used on cygwin: assembler.
18049 # The name of the directory that contains temporary libtool files.
18052 # How to create reloadable object files.
18053 reload_flag=$lt_reload_flag
18054 reload_cmds=$lt_reload_cmds
18056 # How to pass a linker flag through the compiler.
18057 wl=$lt_lt_prog_compiler_wl
18059 # Object file suffix (normally "o").
18060 objext="$ac_objext"
18062 # Old archive suffix (normally "a").
18065 # Shared library suffix (normally ".so").
18066 shrext_cmds='$shrext_cmds'
18068 # Executable file suffix (normally "").
18071 # Additional compiler flags for building library objects.
18072 pic_flag=$lt_lt_prog_compiler_pic
18075 # What is the maximum length of a command?
18076 max_cmd_len=$lt_cv_sys_max_cmd_len
18078 # Does compiler simultaneously support -c and -o options?
18079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18081 # Must we lock files when doing compilation?
18082 need_locks=$lt_need_locks
18084 # Do we need the lib prefix for modules?
18085 need_lib_prefix=$need_lib_prefix
18087 # Do we need a version for libraries?
18088 need_version=$need_version
18090 # Whether dlopen is supported.
18091 dlopen_support=$enable_dlopen
18093 # Whether dlopen of programs is supported.
18094 dlopen_self=$enable_dlopen_self
18096 # Whether dlopen of statically linked programs is supported.
18097 dlopen_self_static=$enable_dlopen_self_static
18099 # Compiler flag to prevent dynamic linking.
18100 link_static_flag=$lt_lt_prog_compiler_static
18102 # Compiler flag to turn off builtin functions.
18103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18105 # Compiler flag to allow reflexive dlopens.
18106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18108 # Compiler flag to generate shared objects directly from archives.
18109 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18111 # Compiler flag to generate thread-safe objects.
18112 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18114 # Library versioning type.
18115 version_type=$version_type
18117 # Format of library name prefix.
18118 libname_spec=$lt_libname_spec
18120 # List of archive names. First name is the real one, the rest are links.
18121 # The last name is the one that the linker finds with -lNAME.
18122 library_names_spec=$lt_library_names_spec
18124 # The coded name of the library, if different from the real name.
18125 soname_spec=$lt_soname_spec
18127 # Commands used to build and install an old-style archive.
18129 old_archive_cmds=$lt_old_archive_cmds
18130 old_postinstall_cmds=$lt_old_postinstall_cmds
18131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18133 # Create an old-style archive from a shared archive.
18134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18136 # Create a temporary old-style archive to link instead of a shared archive.
18137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18139 # Commands used to build and install a shared archive.
18140 archive_cmds=$lt_archive_cmds
18141 archive_expsym_cmds=$lt_archive_expsym_cmds
18142 postinstall_cmds=$lt_postinstall_cmds
18143 postuninstall_cmds=$lt_postuninstall_cmds
18145 # Commands used to build a loadable module (assumed same as above if empty)
18146 module_cmds=$lt_module_cmds
18147 module_expsym_cmds=$lt_module_expsym_cmds
18149 # Commands to strip libraries.
18150 old_striplib=$lt_old_striplib
18151 striplib=$lt_striplib
18153 # Dependencies to place before the objects being linked to create a
18155 predep_objects=$lt_predep_objects
18157 # Dependencies to place after the objects being linked to create a
18159 postdep_objects=$lt_postdep_objects
18161 # Dependencies to place before the objects being linked to create a
18163 predeps=$lt_predeps
18165 # Dependencies to place after the objects being linked to create a
18167 postdeps=$lt_postdeps
18169 # The library search path used internally by the compiler when linking
18170 # a shared library.
18171 compiler_lib_search_path=$lt_compiler_lib_search_path
18173 # Method to check whether dependent libraries are shared objects.
18174 deplibs_check_method=$lt_deplibs_check_method
18176 # Command to use when deplibs_check_method == file_magic.
18177 file_magic_cmd=$lt_file_magic_cmd
18179 # Flag that allows shared libraries with undefined symbols to be built.
18180 allow_undefined_flag=$lt_allow_undefined_flag
18182 # Flag that forces no undefined symbols.
18183 no_undefined_flag=$lt_no_undefined_flag
18185 # Commands used to finish a libtool library installation in a directory.
18186 finish_cmds=$lt_finish_cmds
18188 # Same as above, but a single script fragment to be evaled but not shown.
18189 finish_eval=$lt_finish_eval
18191 # Take the output of nm and produce a listing of raw symbols and C names.
18192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18194 # Transform the output of nm in a proper C declaration
18195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18197 # Transform the output of nm in a C name address pair
18198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18200 # This is the shared library runtime path variable.
18201 runpath_var=$runpath_var
18203 # This is the shared library path variable.
18204 shlibpath_var=$shlibpath_var
18206 # Is shlibpath searched before the hard-coded library search path?
18207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18209 # How to hardcode a shared library path into an executable.
18210 hardcode_action=$hardcode_action
18212 # Whether we should hardcode library paths into libraries.
18213 hardcode_into_libs=$hardcode_into_libs
18215 # Flag to hardcode \$libdir into a binary during linking.
18216 # This must work even if \$libdir does not exist.
18217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18219 # If ld is used when linking, flag to hardcode \$libdir into
18220 # a binary during linking. This must work even if \$libdir does
18222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18224 # Whether we need a single -rpath flag with a separated argument.
18225 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18228 # resulting binary.
18229 hardcode_direct=$hardcode_direct
18231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18232 # resulting binary.
18233 hardcode_minus_L=$hardcode_minus_L
18235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18236 # the resulting binary.
18237 hardcode_shlibpath_var=$hardcode_shlibpath_var
18239 # Set to yes if building a shared library automatically hardcodes DIR into the library
18240 # and all subsequent libraries and executables linked against it.
18241 hardcode_automatic=$hardcode_automatic
18243 # Variables whose values should be saved in libtool wrapper scripts and
18244 # restored at relink time.
18245 variables_saved_for_relink="$variables_saved_for_relink"
18247 # Whether libtool must link a program against all its dependency libraries.
18248 link_all_deplibs=$link_all_deplibs
18250 # Compile-time system search path for libraries
18251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18253 # Run-time system search path for libraries
18254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18256 # Fix the shell variable \$srcfile for the compiler.
18257 fix_srcfile_path="$fix_srcfile_path"
18259 # Set to yes if exported symbols are required.
18260 always_export_symbols=$always_export_symbols
18262 # The commands to list exported symbols.
18263 export_symbols_cmds=$lt_export_symbols_cmds
18265 # The commands to extract the exported symbol list from a shared archive.
18266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18268 # Symbols that should not be listed in the preloaded symbols.
18269 exclude_expsyms=$lt_exclude_expsyms
18271 # Symbols that must always be exported.
18272 include_expsyms=$lt_include_expsyms
18274 # ### END LIBTOOL CONFIG
18281 cat <<\EOF >> "$cfgfile"
18283 # AIX sometimes has problems with the GCC collect2 program. For some
18284 # reason, if we set the COLLECT_NAMES environment variable, the problems
18285 # vanish in a puff of smoke.
18286 if test "X${COLLECT_NAMES+set}" != Xset; then
18288 export COLLECT_NAMES
18294 # We use sed instead of cat because bash on DJGPP gets confused if
18295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18296 # text mode, it properly converts lines to CR/LF. This bash problem
18297 # is reportedly fixed, but why not run on old versions too?
18298 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18300 mv -f "$cfgfile" "$ofile" || \
18301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18305 # If there is no Makefile yet, we rely on a make rule to execute
18306 # `config.status
--recheck' to rerun these tests and create the
18307 # libtool script then.
18308 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
18309 if test -f "$ltmain_in"; then
18310 test -f Makefile && make "$ltmain"
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
18318 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18324 # Check whether --with-tags was given.
18325 if test "${with_tags+set}" = set; then
18326 withval=$with_tags; tagnames="$withval"
18330 if test -f "$ltmain" && test -n "$tagnames"; then
18331 if test ! -f "${ofile}"; then
18332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
18333 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
18336 if test -z "$LTCC"; then
18337 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
18338 if test -z "$LTCC"; then
18339 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18340 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
18342 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
18343 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
18346 if test -z "$LTCFLAGS"; then
18347 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
18350 # Extract list of available tagged configurations in $ofile.
18351 # Note that this assumes the entire list is on one line.
18352 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18355 for tagname in $tagnames; do
18357 # Check whether tagname contains only valid characters
18358 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18360 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18361 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18362 { (exit 1); exit 1; }; }
18366 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18368 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18369 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18370 { (exit 1); exit 1; }; }
18373 # Update the list of available tags.
18374 if test -n "$tagname"; then
18375 echo appending configuration tag \"$tagname\" to $ofile
18379 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18380 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
18381 (test "X$CXX" != "Xg++"))) ; then
18383 ac_cpp='$CXXCPP $CPPFLAGS'
18384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18391 archive_cmds_need_lc_CXX=no
18392 allow_undefined_flag_CXX=
18393 always_export_symbols_CXX=no
18394 archive_expsym_cmds_CXX=
18395 export_dynamic_flag_spec_CXX=
18396 hardcode_direct_CXX=no
18397 hardcode_libdir_flag_spec_CXX=
18398 hardcode_libdir_flag_spec_ld_CXX=
18399 hardcode_libdir_separator_CXX=
18400 hardcode_minus_L_CXX=no
18401 hardcode_shlibpath_var_CXX=unsupported
18402 hardcode_automatic_CXX=no
18404 module_expsym_cmds_CXX=
18405 link_all_deplibs_CXX=unknown
18406 old_archive_cmds_CXX=$old_archive_cmds
18407 no_undefined_flag_CXX=
18408 whole_archive_flag_spec_CXX=
18409 enable_shared_with_static_runtimes_CXX=no
18411 # Dependencies to place before and after the object being linked:
18412 predep_objects_CXX=
18413 postdep_objects_CXX=
18416 compiler_lib_search_path_CXX=
18418 # Source file extension for C++ test sources.
18421 # Object file extension for compiled C++ test sources.
18425 # Code to be used in simple compile tests
18426 lt_simple_compile_test_code="int some_variable = 0;\n"
18428 # Code to be used in simple link tests
18429 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18433 # If no C compiler was specified, use CC.
18436 # If no C compiler flags were specified, use CFLAGS.
18437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18439 # Allow CC to be a program name with arguments.
18443 # save warnings/boilerplate of simple test code
18444 ac_outfile=conftest.$ac_objext
18445 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18447 _lt_compiler_boilerplate=`cat conftest.err
`
18450 ac_outfile=conftest.$ac_objext
18451 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18453 _lt_linker_boilerplate=`cat conftest.err
`
18457 # Allow CC to be a program name with arguments.
18462 lt_save_with_gnu_ld=$with_gnu_ld
18463 lt_save_path_LD=$lt_cv_path_LD
18464 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18465 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18467 $as_unset lt_cv_prog_gnu_ld
18469 if test -n "${lt_cv_path_LDCXX+set}"; then
18470 lt_cv_path_LD=$lt_cv_path_LDCXX
18472 $as_unset lt_cv_path_LD
18474 test -z "${LDCXX+set}" || LD=$LDCXX
18478 for cc_temp in $compiler""; do
18480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18486 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18489 # We don't want -fno-exception wen compiling C++ code, so set the
18490 # no_builtin_flag separately
18491 if test "$GXX" = yes; then
18492 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18494 lt_prog_compiler_no_builtin_flag_CXX=
18497 if test "$GXX" = yes; then
18498 # Set up default GNU C++ configuration
18501 # Check whether --with-gnu-ld was given.
18502 if test "${with_gnu_ld+set}" = set; then
18503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18509 if test "$GCC" = yes; then
18510 # Check if gcc -print-prog-name=ld gives a path.
18511 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18512 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18515 # gcc leaves a trailing carriage return which upsets mingw
18516 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
18518 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
18521 # Accept absolute paths.
18523 re_direlt='/[^/][^/]*/\.\./'
18524 # Canonicalize the pathname of ld
18525 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
18526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18527 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
18529 test -z "$LD" && LD="$ac_prog"
18532 # If it fails, then pretend we aren't using GCC.
18536 # If it is relative, then search for the first ld in PATH.
18537 with_gnu_ld=unknown
18540 elif test "$with_gnu_ld" = yes; then
18541 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18544 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18547 if test "${lt_cv_path_LD+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 if test -z "$LD"; then
18551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18552 for ac_dir in $PATH; do
18554 test -z "$ac_dir" && ac_dir=.
18555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18556 lt_cv_path_LD="$ac_dir/$ac_prog"
18557 # Check to see if the program is GNU ld. I'd rather use --version,
18558 # but apparently some variants of GNU ld only accept -v.
18559 # Break only if it was the GNU/non-GNU ld that we prefer.
18560 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
18561 *GNU* | *'with BFD'*)
18562 test "$with_gnu_ld" != no && break
18565 test "$with_gnu_ld" != yes && break
18572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18576 LD="$lt_cv_path_LD"
18577 if test -n "$LD"; then
18578 { echo "$as_me:$LINENO: result: $LD" >&5
18579 echo "${ECHO_T}$LD" >&6; }
18581 { echo "$as_me:$LINENO: result: no" >&5
18582 echo "${ECHO_T}no" >&6; }
18584 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18585 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18586 { (exit 1); exit 1; }; }
18587 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18588 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18589 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18593 case `$LD -v 2>&1 </dev
/null
` in
18594 *GNU* | *'with BFD'*)
18595 lt_cv_prog_gnu_ld=yes
18598 lt_cv_prog_gnu_ld=no
18602 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18603 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18604 with_gnu_ld=$lt_cv_prog_gnu_ld
18608 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18609 # archiving commands below assume that GNU ld is being used.
18610 if test "$with_gnu_ld" = yes; then
18611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612 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'
18614 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18615 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18617 # If archive_cmds runs LD, not CC, wlarc should be empty
18618 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18619 # investigate it a little bit more. (MM)
18622 # ancient GNU ld didn't support --whole-archive et. al.
18623 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
18624 grep 'no-whole-archive' > /dev/null; then
18625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18627 whole_archive_flag_spec_CXX=
18633 # A generic and very simple default shared library creation
18634 # command for GNU C++ for the case where it uses the native
18635 # linker, instead of GNU ld. If possible, this setting should
18636 # overridden to take advantage of the native linker features on
18637 # the platform it is being used on.
18638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18641 # Commands to make compiler produce verbose output that lists
18642 # what "hidden" libraries, object files and flags are used when
18643 # linking a shared library.
18644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18652 # PORTME: fill in a description of your system's C++ link characteristics
18653 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18658 # FIXME: insert proper C++ library support
18662 if test "$host_cpu" = ia64; then
18663 # On IA64, the linker does run time linking by default, so we don't
18664 # have to do anything special.
18665 aix_use_runtimelinking=no
18666 exp_sym_flag='-Bexport'
18669 aix_use_runtimelinking=no
18671 # Test if we are trying to use run time linking or normal
18672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18673 # need to do runtime linking.
18674 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18675 for ld_flag in $LDFLAGS; do
18678 aix_use_runtimelinking=yes
18686 exp_sym_flag='-bexport'
18687 no_entry_flag='-bnoentry'
18690 # When large executables or shared objects are built, AIX ld can
18691 # have problems creating the table of contents. If linking a library
18692 # or program results in "error TOC overflow" add -mminimal-toc to
18693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18696 archive_cmds_CXX=''
18697 hardcode_direct_CXX=yes
18698 hardcode_libdir_separator_CXX=':'
18699 link_all_deplibs_CXX=yes
18701 if test "$GXX" = yes; then
18702 case $host_os in aix4.[012]|aix4.[012].*)
18703 # We only want to do this on AIX 4.2 and lower, the check
18704 # below for broken collect2 doesn't work under 4.3+
18705 collect2name=`${CC} -print-prog-name=collect2
`
18706 if test -f "$collect2name" && \
18707 strings "$collect2name" | grep resolve_lib_name >/dev/null
18709 # We have reworked collect2
18710 hardcode_direct_CXX=yes
18712 # We have old collect2
18713 hardcode_direct_CXX=unsupported
18714 # It fails to find uninstalled libraries when the uninstalled
18715 # path is not listed in the libpath. Setting hardcode_minus_L
18716 # to unsupported forces relinking
18717 hardcode_minus_L_CXX=yes
18718 hardcode_libdir_flag_spec_CXX='-L$libdir'
18719 hardcode_libdir_separator_CXX=
18723 shared_flag='-shared'
18724 if test "$aix_use_runtimelinking" = yes; then
18725 shared_flag="$shared_flag "'${wl}-G'
18729 if test "$host_cpu" = ia64; then
18730 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731 # chokes on -Wl,-G. The following line is correct:
18734 if test "$aix_use_runtimelinking" = yes; then
18735 shared_flag='${wl}-G'
18737 shared_flag='${wl}-bM:SRE'
18742 # It seems that -bexpall does not export symbols beginning with
18743 # underscore (_), so it is better to generate a list of symbols to export.
18744 always_export_symbols_CXX=yes
18745 if test "$aix_use_runtimelinking" = yes; then
18746 # Warning - without using the other runtime loading flags (-brtl),
18747 # -berok will link without error, but may produce a broken library.
18748 allow_undefined_flag_CXX='-berok'
18749 # Determine the default libpath from the value encoded in an empty executable.
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18769 *) ac_try_echo
=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1
>conftest.err
18776 cat conftest.err
>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18780 { (case "(($ac_try" in
18781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try='test -s conftest$ac_exeext'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18792 *) ac_try_echo
=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18800 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18802 # Check for a 64-bit object if we didn't find anything.
18803 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; }
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.
$ac_ext >&5
18812 rm -f core conftest.err conftest.
$ac_objext \
18813 conftest
$ac_exeext conftest.
$ac_ext
18814 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18816 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18818 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"
18820 if test "$host_cpu" = ia64
; then
18821 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18822 allow_undefined_flag_CXX
="-z nodefs"
18823 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"
18825 # Determine the default libpath from the value encoded in an empty executable.
18826 cat >conftest.
$ac_ext <<_ACEOF
18829 cat confdefs.h
>>conftest.
$ac_ext
18830 cat >>conftest.
$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18841 rm -f conftest.
$ac_objext conftest
$ac_exeext
18842 if { (ac_try
="$ac_link"
18843 case "(($ac_try" in
18844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18858 *) ac_try_echo
=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try
='test -s conftest$ac_exeext'
18866 { (case "(($ac_try" in
18867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18876 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18878 # Check for a 64-bit object if we didn't find anything.
18879 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; }
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18893 # Warning - without using the other run time loading flags,
18894 # -berok will link without error, but may produce a broken library.
18895 no_undefined_flag_CXX=' ${wl}-bernotok'
18896 allow_undefined_flag_CXX=' ${wl}-berok'
18897 # Exported symbols can be pulled into shared objects from archives
18898 whole_archive_flag_spec_CXX='$convenience'
18899 archive_cmds_need_lc_CXX=yes
18900 # This is similar to how AIX traditionally builds its shared libraries.
18901 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'
18907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18908 allow_undefined_flag_CXX=unsupported
18909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18910 # support --undefined. This deserves some investigation. FIXME
18911 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18918 case $cc_basename in
18920 # FIXME: insert proper C++ library support
18926 cygwin* | mingw* | pw32*)
18927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18928 # as there is no search path for DLLs.
18929 hardcode_libdir_flag_spec_CXX='-L$libdir'
18930 allow_undefined_flag_CXX=unsupported
18931 always_export_symbols_CXX=no
18932 enable_shared_with_static_runtimes_CXX=yes
18934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18935 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'
18936 # If the export-symbols file already is a .def file (1st line
18937 # is EXPORTS), use it as is; otherwise, prepend...
18938 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
18939 cp $export_symbols $output_objdir/$soname.def;
18941 echo EXPORTS > $output_objdir/$soname.def;
18942 cat $export_symbols >> $output_objdir/$soname.def;
18944 $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'
18949 darwin* | rhapsody*)
18951 rhapsody* | darwin1.[012])
18952 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18956 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18958 case ${MACOSX_DEPLOYMENT_TARGET} in
18960 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18963 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18969 archive_cmds_need_lc_CXX=no
18970 hardcode_direct_CXX=no
18971 hardcode_automatic_CXX=yes
18972 hardcode_shlibpath_var_CXX=unsupported
18973 whole_archive_flag_spec_CXX=''
18974 link_all_deplibs_CXX=yes
18976 if test "$GXX" = yes ; then
18977 lt_int_apple_cc_single_mod=no
18978 output_verbose_link_cmd='echo'
18979 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18980 lt_int_apple_cc_single_mod=yes
18982 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18983 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18985 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'
18987 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18990 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}'
18992 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}'
18994 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}'
18996 case $cc_basename in
18998 output_verbose_link_cmd='echo'
18999 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'
19000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19002 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}'
19003 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}'
19013 case $cc_basename in
19015 # FIXME: insert proper C++ library support
19019 # Green Hills C++ Compiler
19020 # FIXME: insert proper C++ library support
19024 # FIXME: insert proper C++ library support
19030 # C++ shared libraries reported to be fairly broken before switch to ELF
19034 archive_cmds_need_lc_CXX=no
19036 freebsd* | kfreebsd*-gnu | dragonfly*)
19037 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19044 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19046 export_dynamic_flag_spec_CXX='${wl}-E'
19047 hardcode_direct_CXX=yes
19048 hardcode_minus_L_CXX=yes # Not in the search PATH,
19049 # but as the default
19050 # location of the library.
19052 case $cc_basename in
19054 # FIXME: insert proper C++ library support
19058 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'
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19067 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'
19070 if test "$GXX" = yes; then
19071 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'
19073 # FIXME: insert proper C++ library support
19080 if test $with_gnu_ld = no; then
19081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19082 hardcode_libdir_separator_CXX=:
19086 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19095 hardcode_direct_CXX=no
19096 hardcode_shlibpath_var_CXX=no
19099 hardcode_direct_CXX=yes
19100 hardcode_minus_L_CXX=yes # Not in the search PATH,
19101 # but as the default
19102 # location of the library.
19106 case $cc_basename in
19108 # FIXME: insert proper C++ library support
19114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19123 # Commands to make compiler produce verbose output that lists
19124 # what "hidden" libraries, object files and flags are used when
19125 # linking a shared library.
19127 # There doesn't appear to be a way to prevent this compiler from
19128 # explicitly linking system object files so we need to strip them
19129 # from the output so that they don't get included in the library
19131 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'
19134 if test "$GXX" = yes; then
19135 if test $with_gnu_ld = no; then
19138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 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'
19149 # FIXME: insert proper C++ library support
19156 hardcode_direct_CXX=no
19157 hardcode_shlibpath_var_CXX=no
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}-E'
19160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19161 # Instead, shared libraries are loaded at an image base (0x10000000 by
19162 # default) and relocated if they conflict, which is a slow very memory
19163 # consuming and fragmenting process. To avoid this, we pick a random,
19164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19166 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'
19167 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'
19170 case $cc_basename in
19173 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'
19175 # Archives containing C++ object files must be created using
19176 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19177 # necessary to make sure instantiated templates are included
19179 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19182 if test "$GXX" = yes; then
19183 if test "$with_gnu_ld" = no; then
19184 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'
19186 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'
19189 link_all_deplibs_CXX=yes
19192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19193 hardcode_libdir_separator_CXX=:
19196 case $cc_basename in
19198 # Kuck and Associates, Inc. (KAI) C++ Compiler
19200 # KCC will only create a shared library if the output file
19201 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19202 # to its proper name (with version) after linking.
19203 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'
19204 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'
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19213 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'
19215 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
19216 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19218 # Archives containing C++ object files must be created using
19219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19220 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19225 # version 8.0 and above of icpc choke on multiply defined symbols
19226 # if we add $predep_objects and $postdep_objects, however 7.1 and
19227 # earlier do not add the objects themselves.
19228 case `$CC -V 2>&1` in
19230 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 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'
19233 *) # Version 8.0 or newer
19236 ia64
*) tmp_idyn
=' -i_dynamic';;
19238 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 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'
19242 archive_cmds_need_lc_CXX
=no
19243 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19244 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19245 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19248 # Portland Group C++ compiler
19249 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19250 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'
19252 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19253 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19254 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'
19258 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259 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'
19261 runpath_var
=LD_RUN_PATH
19262 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19263 hardcode_libdir_separator_CXX
=:
19265 # Commands to make compiler produce verbose output that lists
19266 # what "hidden" libraries, object files and flags are used when
19267 # linking a shared library.
19269 # There doesn't appear to be a way to prevent this compiler from
19270 # explicitly linking system object files so we need to strip them
19271 # from the output so that they don't get included in the library
19273 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'
19278 # FIXME: insert proper C++ library support
19282 # FIXME: insert proper C++ library support
19286 case $cc_basename in
19288 # FIXME: insert proper C++ library support
19292 # FIXME: insert proper C++ library support
19298 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19299 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19301 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19302 hardcode_direct_CXX
=yes
19303 hardcode_shlibpath_var_CXX
=no
19305 # Workaround some broken pre-1.5 toolchains
19306 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19309 # C++ shared libraries are fairly broken
19313 hardcode_direct_CXX
=yes
19314 hardcode_shlibpath_var_CXX
=no
19315 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19316 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19318 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19319 export_dynamic_flag_spec_CXX
='${wl}-E'
19320 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19322 output_verbose_link_cmd
='echo'
19325 case $cc_basename in
19327 # Kuck and Associates, Inc. (KAI) C++ Compiler
19329 # KCC will only create a shared library if the output file
19330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19331 # to its proper name (with version) after linking.
19332 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'
19334 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19335 hardcode_libdir_separator_CXX
=:
19337 # Archives containing C++ object files must be created using
19338 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19339 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19343 # Rational C++ 2.4.1
19344 # FIXME: insert proper C++ library support
19348 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19349 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'
19351 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19352 hardcode_libdir_separator_CXX
=:
19354 # Commands to make compiler produce verbose output that lists
19355 # what "hidden" libraries, object files and flags are used when
19356 # linking a shared library.
19358 # There doesn't appear to be a way to prevent this compiler from
19359 # explicitly linking system object files so we need to strip them
19360 # from the output so that they don't get included in the library
19362 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'
19365 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19366 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19367 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'
19369 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX
=:
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19375 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19378 # FIXME: insert proper C++ library support
19385 case $cc_basename in
19387 # Kuck and Associates, Inc. (KAI) C++ Compiler
19389 # KCC will only create a shared library if the output file
19390 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19391 # to its proper name (with version) after linking.
19392 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'
19394 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19395 hardcode_libdir_separator_CXX
=:
19397 # Archives containing C++ object files must be created using
19398 # the KAI C++ compiler.
19399 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
19402 # Rational C++ 2.4.1
19403 # FIXME: insert proper C++ library support
19407 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19408 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'
19409 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19410 echo "-hidden">> $lib.exp~
19411 $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~
19414 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19415 hardcode_libdir_separator_CXX
=:
19417 # Commands to make compiler produce verbose output that lists
19418 # what "hidden" libraries, object files and flags are used when
19419 # linking a shared library.
19421 # There doesn't appear to be a way to prevent this compiler from
19422 # explicitly linking system object files so we need to strip them
19423 # from the output so that they don't get included in the library
19425 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'
19428 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19429 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19430 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'
19432 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19433 hardcode_libdir_separator_CXX
=:
19435 # Commands to make compiler produce verbose output that lists
19436 # what "hidden" libraries, object files and flags are used when
19437 # linking a shared library.
19438 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19441 # FIXME: insert proper C++ library support
19448 # FIXME: insert proper C++ library support
19452 case $cc_basename in
19455 # FIXME: insert proper C++ library support
19460 # FIXME: insert proper C++ library support
19464 # FIXME: insert proper C++ library support
19470 case $cc_basename in
19472 # Sun C++ 4.2, 5.x and Centerline C++
19473 archive_cmds_need_lc_CXX
=yes
19474 no_undefined_flag_CXX
=' -zdefs'
19475 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19476 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477 $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'
19479 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19480 hardcode_shlibpath_var_CXX
=no
19482 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19484 # The C++ compiler is used as linker so we must use $wl
19485 # flag to pass the commands to the underlying system
19486 # linker. We must also pass each convience library through
19487 # to the system linker between allextract/defaultextract.
19488 # The C++ compiler will combine linker options so we
19489 # cannot just pass the convience library names through
19491 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492 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'
19495 link_all_deplibs_CXX
=yes
19497 output_verbose_link_cmd
='echo'
19499 # Archives containing C++ object files must be created using
19500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19501 # necessary to make sure instantiated templates are included
19503 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19506 # Green Hills C++ Compiler
19507 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19509 # The C++ compiler must be used to create the archive.
19510 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19513 # GNU C++ compiler with Solaris linker
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19515 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19516 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
19517 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19528 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
19535 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19538 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19543 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19544 no_undefined_flag_CXX
='${wl}-z,text'
19545 archive_cmds_need_lc_CXX
=no
19546 hardcode_shlibpath_var_CXX
=no
19547 runpath_var
='LD_RUN_PATH'
19549 case $cc_basename in
19551 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19555 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560 sysv5
* | sco3.2v5
* | sco5v6
*)
19561 # Note: We can NOT use -z defs as we might desire, because we do not
19562 # link with -lc, and that would cause any symbols used from libc to
19563 # always be unresolved, which means just about no library would
19564 # ever link correctly. If we're not using GNU ld we use -z text
19565 # though, which does catch some bad symbols but isn't as heavy-handed
19567 # For security reasons, it is highly recommended that you always
19568 # use absolute paths for naming shared libraries, and exclude the
19569 # DT_RUNPATH tag from executables and libraries. But doing so
19570 # requires that you compile everything twice, which is a pain.
19571 # So that behaviour is only enabled if SCOABSPATH is set to a
19572 # non-empty value in the environment. Most likely only useful for
19573 # creating official distributions of packages.
19574 # This is a hack until libtool officially supports absolute path
19575 # names for shared libraries.
19576 no_undefined_flag_CXX
='${wl}-z,text'
19577 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19578 archive_cmds_need_lc_CXX
=no
19579 hardcode_shlibpath_var_CXX
=no
19580 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19581 hardcode_libdir_separator_CXX
=':'
19582 link_all_deplibs_CXX
=yes
19583 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19584 runpath_var
='LD_RUN_PATH'
19586 case $cc_basename in
19588 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 case $cc_basename in
19600 # NonStop-UX NCC 3.20
19601 # FIXME: insert proper C++ library support
19605 # FIXME: insert proper C++ library support
19611 # FIXME: insert proper C++ library support
19615 # FIXME: insert proper C++ library support
19619 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19621 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19627 cat > conftest.
$ac_ext <<EOF
19631 Foo (void) { a = 0; }
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; then
19642 # Parse the compiler output and extract the necessary
19643 # objects, libraries and library flags.
19645 # Sentinel used to keep track of whether or not we are before
19646 # the conftest object file.
19647 pre_test_object_deps_done
=no
19649 # The `*' in the case matches for architectures that use `case' in
19650 # $output_verbose_cmd can trigger glob expansion during the loop
19651 # eval without this substitution.
19652 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19654 for p
in `eval $output_verbose_link_cmd`; do
19658 # Some compilers place space between "-{L,R}" and the path.
19659 # Remove the space.
19660 if test $p = "-L" \
19661 ||
test $p = "-R"; then
19668 if test "$pre_test_object_deps_done" = no
; then
19671 # Internal compiler library paths should come after those
19672 # provided the user. The postdeps already come after the
19673 # user supplied libs so there is no need to process them.
19674 if test -z "$compiler_lib_search_path_CXX"; then
19675 compiler_lib_search_path_CXX
="${prev}${p}"
19677 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19680 # The "-l" case would never come before the object being
19681 # linked, so don't bother handling this case.
19684 if test -z "$postdeps_CXX"; then
19685 postdeps_CXX
="${prev}${p}"
19687 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19693 # This assumes that the test object file only shows up
19694 # once in the compiler output.
19695 if test "$p" = "conftest.$objext"; then
19696 pre_test_object_deps_done
=yes
19700 if test "$pre_test_object_deps_done" = no
; then
19701 if test -z "$predep_objects_CXX"; then
19702 predep_objects_CXX
="$p"
19704 predep_objects_CXX
="$predep_objects_CXX $p"
19707 if test -z "$postdep_objects_CXX"; then
19708 postdep_objects_CXX
="$p"
19710 postdep_objects_CXX
="$postdep_objects_CXX $p"
19715 *) ;; # Ignore the rest.
19723 echo "libtool.m4: error: problem compiling CXX test program"
19726 $rm -f confest.
$objext
19728 # PORTME: override above test on systems where it is broken
19731 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19732 # hack all around it, let's just trust "g++" to DTRT.
19733 predep_objects_CXX
=
19734 postdep_objects_CXX
=
19739 case $cc_basename in
19741 # Adding this requires a known-good setup of shared libraries for
19742 # Sun compiler versions before 5.6, else PIC objects from an old
19743 # archive will be linked into the output, leading to subtle bugs.
19744 postdeps_CXX
='-lCstd -lCrun'
19751 case " $postdeps_CXX " in
19752 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19755 lt_prog_compiler_wl_CXX
=
19756 lt_prog_compiler_pic_CXX
=
19757 lt_prog_compiler_static_CXX
=
19759 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19762 # C++ specific cases for pic, static, wl, etc.
19763 if test "$GXX" = yes; then
19764 lt_prog_compiler_wl_CXX
='-Wl,'
19765 lt_prog_compiler_static_CXX
='-static'
19769 # All AIX code is PIC.
19770 if test "$host_cpu" = ia64
; then
19771 # AIX 5 now supports IA64 processor
19772 lt_prog_compiler_static_CXX
='-Bstatic'
19776 # FIXME: we need at least 68020 code to build shared libraries, but
19777 # adding the `-m68020' flag to GCC prevents building anything better,
19779 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19781 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19782 # PIC is the default for these OSes.
19784 mingw
* | os2
* | pw32
*)
19785 # This hack is so that the source file can tell whether it is being
19786 # built for inclusion in a dll (and should export symbols for example).
19787 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19789 darwin
* | rhapsody
*)
19790 # PIC is the default on this platform
19791 # Common symbols not allowed in MH_DYLIB files
19792 lt_prog_compiler_pic_CXX
='-fno-common'
19795 # DJGPP does not support shared libraries at all
19796 lt_prog_compiler_pic_CXX
=
19799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19800 # Instead, we relocate shared libraries at runtime.
19803 if test -d /usr
/nec
; then
19804 lt_prog_compiler_pic_CXX
=-Kconform_pic
19808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19809 # not for PA HP-UX.
19814 lt_prog_compiler_pic_CXX
='-fPIC'
19819 lt_prog_compiler_pic_CXX
='-fPIC'
19825 # All AIX code is PIC.
19826 if test "$host_cpu" = ia64
; then
19827 # AIX 5 now supports IA64 processor
19828 lt_prog_compiler_static_CXX
='-Bstatic'
19830 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19834 case $cc_basename in
19836 # Green Hills C++ Compiler
19837 # _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"
19842 # PIC is the default on this platform
19843 # Common symbols not allowed in MH_DYLIB files
19844 case $cc_basename in
19846 lt_prog_compiler_pic_CXX
='-qnocommon'
19847 lt_prog_compiler_wl_CXX
='-Wl,'
19852 case $cc_basename in
19854 lt_prog_compiler_pic_CXX
='-KPIC'
19857 # Green Hills C++ Compiler
19858 lt_prog_compiler_pic_CXX
='-pic'
19864 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
19865 # FreeBSD uses GNU C++
19867 hpux9
* | hpux10
* | hpux11
*)
19868 case $cc_basename in
19870 lt_prog_compiler_wl_CXX
='-Wl,'
19871 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19872 if test "$host_cpu" != ia64
; then
19873 lt_prog_compiler_pic_CXX
='+Z'
19877 lt_prog_compiler_wl_CXX
='-Wl,'
19878 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19884 lt_prog_compiler_pic_CXX
='+Z'
19893 # This is c89, which is MS Visual C++ (no shared libs)
19894 # Anyone wants to do a port?
19896 irix5
* | irix6
* | nonstopux
*)
19897 case $cc_basename in
19899 lt_prog_compiler_wl_CXX
='-Wl,'
19900 lt_prog_compiler_static_CXX
='-non_shared'
19901 # CC pic flag -KPIC is the default.
19908 case $cc_basename in
19911 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19912 lt_prog_compiler_pic_CXX
='-fPIC'
19916 lt_prog_compiler_wl_CXX
='-Wl,'
19917 lt_prog_compiler_pic_CXX
='-KPIC'
19918 lt_prog_compiler_static_CXX
='-static'
19921 # Portland Group C++ compiler.
19922 lt_prog_compiler_wl_CXX
='-Wl,'
19923 lt_prog_compiler_pic_CXX
='-fpic'
19924 lt_prog_compiler_static_CXX
='-Bstatic'
19928 # Make sure the PIC flag is empty. It appears that all Alpha
19929 # Linux and Compaq Tru64 Unix objects are PIC.
19930 lt_prog_compiler_pic_CXX
=
19931 lt_prog_compiler_static_CXX
='-non_shared'
19942 case $cc_basename in
19944 lt_prog_compiler_pic_CXX
='-W c,exportall'
19952 osf3
* | osf4
* | osf5
*)
19953 case $cc_basename in
19955 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19958 # Rational C++ 2.4.1
19959 lt_prog_compiler_pic_CXX
='-pic'
19962 # Digital/Compaq C++
19963 lt_prog_compiler_wl_CXX
='-Wl,'
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX
=
19967 lt_prog_compiler_static_CXX
='-non_shared'
19976 case $cc_basename in
19978 # Sun C++ 4.2, 5.x and Centerline C++
19979 lt_prog_compiler_pic_CXX
='-KPIC'
19980 lt_prog_compiler_static_CXX
='-Bstatic'
19981 lt_prog_compiler_wl_CXX
='-Qoption ld '
19984 # Green Hills C++ Compiler
19985 lt_prog_compiler_pic_CXX
='-PIC'
19992 case $cc_basename in
19995 lt_prog_compiler_pic_CXX
='-pic'
19996 lt_prog_compiler_static_CXX
='-Bstatic'
20000 lt_prog_compiler_pic_CXX
='-pic'
20007 case $cc_basename in
20009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX
='-KPIC'
20016 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20017 case $cc_basename in
20019 lt_prog_compiler_wl_CXX
='-Wl,'
20020 lt_prog_compiler_pic_CXX
='-KPIC'
20021 lt_prog_compiler_static_CXX
='-Bstatic'
20028 lt_prog_compiler_can_build_shared_CXX
=no
20033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20034 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20037 # Check to make sure the PIC flag actually works.
20039 if test -n "$lt_prog_compiler_pic_CXX"; then
20041 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20043 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20044 echo $ECHO_N "(cached) $ECHO_C" >&6
20046 lt_prog_compiler_pic_works_CXX
=no
20047 ac_outfile
=conftest.
$ac_objext
20048 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20049 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20050 # Insert the option either (1) after the last *FLAGS variable, or
20051 # (2) before a word containing "conftest.", or (3) at the end.
20052 # Note that $ac_compile itself does not contain backslashes and begins
20053 # with a dollar sign (not a hyphen), so the echo should work correctly.
20054 # The option is referenced via a variable to avoid confusing sed.
20055 lt_compile
=`echo "$ac_compile" | $SED \
20056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20058 -e 's:$: $lt_compiler_flag:'`
20059 (eval echo "\"\$as_me:20059: $lt_compile\"" >&5)
20060 (eval "$lt_compile" 2>conftest.err
)
20062 cat conftest.err
>&5
20063 echo "$as_me:20063: \$? = $ac_status" >&5
20064 if (exit $ac_status) && test -s "$ac_outfile"; then
20065 # The compiler can only warn and ignore the option if not recognized
20066 # So say no if there are warnings other than the usual output.
20067 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20068 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20069 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20070 lt_prog_compiler_pic_works_CXX
=yes
20076 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20077 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20079 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
20080 case $lt_prog_compiler_pic_CXX in
20082 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20085 lt_prog_compiler_pic_CXX
=
20086 lt_prog_compiler_can_build_shared_CXX
=no
20091 # For platforms which do not support PIC, -DPIC is meaningless:
20093 lt_prog_compiler_pic_CXX
=
20096 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20101 # Check to make sure the static flag actually works.
20103 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20104 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20105 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20106 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 lt_prog_compiler_static_works_CXX
=no
20110 save_LDFLAGS
="$LDFLAGS"
20111 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20112 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20113 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20114 # The linker can only warn and ignore the option if not recognized
20115 # So say no if there are warnings
20116 if test -s conftest.err
; then
20117 # Append any errors to the config.log.
20118 cat conftest.err
1>&5
20119 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20120 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20121 if diff conftest.exp conftest.er2
>/dev
/null
; then
20122 lt_prog_compiler_static_works_CXX
=yes
20125 lt_prog_compiler_static_works_CXX
=yes
20129 LDFLAGS
="$save_LDFLAGS"
20132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20133 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20135 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
20138 lt_prog_compiler_static_CXX
=
20142 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20143 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20144 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 lt_cv_prog_compiler_c_o_CXX
=no
20148 $rm -r conftest
2>/dev
/null
20152 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20154 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20155 # Insert the option either (1) after the last *FLAGS variable, or
20156 # (2) before a word containing "conftest.", or (3) at the end.
20157 # Note that $ac_compile itself does not contain backslashes and begins
20158 # with a dollar sign (not a hyphen), so the echo should work correctly.
20159 lt_compile
=`echo "$ac_compile" | $SED \
20160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20162 -e 's:$: $lt_compiler_flag:'`
20163 (eval echo "\"\$as_me:20163: $lt_compile\"" >&5)
20164 (eval "$lt_compile" 2>out
/conftest.err
)
20166 cat out
/conftest.err
>&5
20167 echo "$as_me:20167: \$? = $ac_status" >&5
20168 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20170 # The compiler can only warn and ignore the option if not recognized
20171 # So say no if there are warnings
20172 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20173 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20174 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20175 lt_cv_prog_compiler_c_o_CXX
=yes
20180 # SGI C++ compiler will create directory out/ii_files/ for
20181 # template instantiation
20182 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20183 $rm out
/* && rmdir out
20189 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20190 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20193 hard_links
="nottested"
20194 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20195 # do not overwrite the value of need_locks provided by the user
20196 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20197 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20200 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20202 ln conftest.a conftest.b
2>&5 || hard_links
=no
20203 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20204 { echo "$as_me:$LINENO: result: $hard_links" >&5
20205 echo "${ECHO_T}$hard_links" >&6; }
20206 if test "$hard_links" = no
; then
20207 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20208 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20218 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20221 # If we're using GNU nm, then we don't want the "-C" option.
20222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20223 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20224 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'
20226 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'
20230 export_symbols_cmds_CXX
="$ltdll_cmds"
20233 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'
20236 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20240 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20241 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20242 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20245 # Do we need to explicitly link libc?
20247 case "x$archive_cmds_need_lc_CXX" in
20249 # Assume -lc should be added
20250 archive_cmds_need_lc_CXX
=yes
20252 if test "$enable_shared" = yes && test "$GCC" = yes; then
20253 case $archive_cmds_CXX in
20255 # FIXME: we may have to deal with multi-command sequences.
20258 # Test whether the compiler implicitly links with -lc since on some
20259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20260 # to ld, don't add -lc before -lgcc.
20261 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20262 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20264 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } 2>conftest.err
; then
20273 libobjs
=conftest.
$ac_objext
20275 wl
=$lt_prog_compiler_wl_CXX
20276 pic_flag
=$lt_prog_compiler_pic_CXX
20282 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20283 allow_undefined_flag_CXX
=
20284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20285 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }
20290 archive_cmds_need_lc_CXX
=no
20292 archive_cmds_need_lc_CXX
=yes
20294 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20296 cat conftest.err
1>&5
20299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20300 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20307 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20309 library_names_spec
=
20310 libname_spec
='lib$name'
20314 postuninstall_cmds
=
20318 shlibpath_overrides_runpath
=unknown
20320 dynamic_linker
="$host_os ld.so"
20321 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20322 if test "$GCC" = yes; then
20323 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20324 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
20325 # if the path contains ";" then we assume it to be the separator
20326 # otherwise default to the standard path separator (i.e. ":") - it is
20327 # assumed that no part of a normal pathname contains ";" but that should
20328 # okay in the real world where ";" in dirpaths is itself problematic.
20329 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20331 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20334 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20336 need_lib_prefix
=unknown
20337 hardcode_into_libs
=no
20339 # when you set need_version to no, make sure it does not cause -set_version
20340 # flags to be left without arguments
20341 need_version
=unknown
20346 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20347 shlibpath_var
=LIBPATH
20349 # AIX 3 has no versioning support, so we append a major version to the name.
20350 soname_spec
='${libname}${release}${shared_ext}$major'
20357 hardcode_into_libs
=yes
20358 if test "$host_cpu" = ia64
; then
20359 # AIX 5 supports IA64
20360 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20361 shlibpath_var
=LD_LIBRARY_PATH
20363 # With GCC up to 2.95.x, collect2 would create an import file
20364 # for dependence libraries. The import file would start with
20365 # the line `#! .'. This would cause the generated library to
20366 # depend on `.', always an invalid library. This was fixed in
20367 # development snapshots of GCC prior to 3.0.
20369 aix4 | aix4.
[01] | aix4.
[01].
*)
20370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20372 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20375 can_build_shared
=no
20379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20380 # soname into executable. Probably we can add versioning support to
20381 # collect2, so additional links can be useful in future.
20382 if test "$aix_use_runtimelinking" = yes; then
20383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20384 # instead of lib<name>.a to let people know that these are not
20385 # typical AIX shared libraries.
20386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20388 # We preserve .a as extension for shared libraries through AIX4.2
20389 # and later when we are not doing run time linking.
20390 library_names_spec
='${libname}${release}.a $libname.a'
20391 soname_spec
='${libname}${release}${shared_ext}$major'
20393 shlibpath_var
=LIBPATH
20398 library_names_spec
='$libname.ixlibrary $libname.a'
20399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20400 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'
20404 library_names_spec
='${libname}${shared_ext}'
20405 dynamic_linker
="$host_os ld.so"
20406 shlibpath_var
=LIBRARY_PATH
20412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 soname_spec
='${libname}${release}${shared_ext}$major'
20414 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20415 shlibpath_var
=LD_LIBRARY_PATH
20416 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20417 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20418 # the default ld.so.conf also contains /usr/contrib/lib and
20419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20420 # libtool to hard-code these into programs
20423 cygwin
* | mingw
* | pw32
*)
20424 version_type
=windows
20429 case $GCC,$host_os in
20430 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20431 library_names_spec
='$libname.dll.a'
20432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20433 postinstall_cmds
='base_file=`basename \${file}`~
20434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20435 dldir=$destdir/`dirname \$dlpath`~
20436 test -d \$dldir || mkdir -p \$dldir~
20437 $install_prog $dir/$dlname \$dldir/$dlname~
20438 chmod a+x \$dldir/$dlname'
20439 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20440 dlpath=$dir/\$dldll~
20442 shlibpath_overrides_runpath
=yes
20446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20447 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20448 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20451 # MinGW DLLs use traditional 'lib' prefix
20452 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20454 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20455 # It is most probably a Windows format PATH printed by
20456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20457 # path with ; separators, and with drive letters. We can handle the
20458 # drive letters (cygwin fileutils understands them), so leave them,
20459 # especially as we might pass files found there to a mingw objdump,
20460 # which wouldn't understand a cygwinified path. Ahh.
20461 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20463 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20467 # pw32 DLLs use 'pw' prefix rather than 'lib'
20468 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20474 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20477 dynamic_linker
='Win32 ld.exe'
20478 # FIXME: first we should search . and the directory the executable is in
20482 darwin
* | rhapsody
*)
20483 dynamic_linker
="$host_os dyld"
20484 version_type
=darwin
20487 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20488 soname_spec
='${libname}${release}${major}$shared_ext'
20489 shlibpath_overrides_runpath
=yes
20490 shlibpath_var
=DYLD_LIBRARY_PATH
20491 shrext_cmds
='.dylib'
20492 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20493 if test "$GCC" = yes; then
20494 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"`
20496 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
20498 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20505 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20506 soname_spec
='${libname}${release}${shared_ext}$major'
20507 shlibpath_var
=LD_LIBRARY_PATH
20518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20519 soname_spec
='${libname}${release}${shared_ext}$major'
20520 shlibpath_var
=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath
=no
20522 hardcode_into_libs
=yes
20523 dynamic_linker
='GNU ld.so'
20526 freebsd
* | dragonfly
*)
20527 # DragonFly does not have aout. When/if they implement a new
20528 # versioning mechanism, adjust this.
20529 if test -x /usr
/bin
/objformat
; then
20530 objformat
=`/usr/bin/objformat`
20533 freebsd
[123]*) objformat
=aout
;;
20534 *) objformat
=elf
;;
20537 version_type
=freebsd-
$objformat
20538 case $version_type in
20540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20545 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20549 shlibpath_var
=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath
=yes
20554 freebsd3.
[01]* | freebsdelf3.
[01]*)
20555 shlibpath_overrides_runpath
=yes
20556 hardcode_into_libs
=yes
20558 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20559 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20560 shlibpath_overrides_runpath
=no
20561 hardcode_into_libs
=yes
20563 freebsd
*) # from 4.6 on
20564 shlibpath_overrides_runpath
=yes
20565 hardcode_into_libs
=yes
20574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20575 soname_spec
='${libname}${release}${shared_ext}$major'
20576 shlibpath_var
=LD_LIBRARY_PATH
20577 hardcode_into_libs
=yes
20580 hpux9
* | hpux10
* | hpux11
*)
20581 # Give a soname corresponding to the major version so that dld.sl refuses to
20582 # link against other versions.
20589 hardcode_into_libs
=yes
20590 dynamic_linker
="$host_os dld.so"
20591 shlibpath_var
=LD_LIBRARY_PATH
20592 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec
='${libname}${release}${shared_ext}$major'
20595 if test "X$HPUX_IA64_MODE" = X32
; then
20596 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20598 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20600 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20604 hardcode_into_libs
=yes
20605 dynamic_linker
="$host_os dld.sl"
20606 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20607 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 soname_spec
='${libname}${release}${shared_ext}$major'
20610 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20611 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20615 dynamic_linker
="$host_os dld.sl"
20616 shlibpath_var
=SHLIB_PATH
20617 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec
='${libname}${release}${shared_ext}$major'
20622 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20623 postinstall_cmds
='chmod 555 $lib'
20630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20631 soname_spec
='${libname}${release}${shared_ext}$major'
20632 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20633 shlibpath_var
=LD_LIBRARY_PATH
20634 shlibpath_overrides_runpath
=no
20635 hardcode_into_libs
=yes
20638 irix5
* | irix6
* | nonstopux
*)
20640 nonstopux
*) version_type
=nonstopux
;;
20642 if test "$lt_cv_prog_gnu_ld" = yes; then
20650 soname_spec
='${libname}${release}${shared_ext}$major'
20651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20653 irix5
* | nonstopux
*)
20654 libsuff
= shlibsuff
=
20657 case $LD in # libtool.m4 will add one of these switches to LD
20658 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20659 libsuff
= shlibsuff
= libmagic
=32-bit;;
20660 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20661 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20662 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20663 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20664 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20668 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20669 shlibpath_overrides_runpath
=no
20670 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20671 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20672 hardcode_into_libs
=yes
20675 # No shared lib support for Linux oldld, aout, or coff.
20676 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20680 # This must be Linux ELF.
20685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec
='${libname}${release}${shared_ext}$major'
20687 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20688 shlibpath_var
=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath
=no
20690 # This implies no fast_install, which is unacceptable.
20691 # Some rework will be needed to allow for fast_install
20692 # before this can be enabled.
20693 hardcode_into_libs
=yes
20695 # Append ld.so.conf contents to the search path
20696 if test -f /etc
/ld.so.conf
; then
20697 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' ' '`
20698 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20701 # We used to test for /lib/ld.so.1 and disable shared libraries on
20702 # powerpc, because MkLinux only supported shared libraries with the
20703 # GNU dynamic linker. Since this was broken with cross compilers,
20704 # most powerpc-linux boxes support dynamic linking these days and
20705 # people can always --disable-shared, the test was removed, and we
20706 # assume the GNU/Linux dynamic linker is in use.
20707 dynamic_linker
='GNU/Linux ld.so'
20714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20715 soname_spec
='${libname}${release}${shared_ext}$major'
20716 shlibpath_var
=LD_LIBRARY_PATH
20717 shlibpath_overrides_runpath
=no
20718 hardcode_into_libs
=yes
20719 dynamic_linker
='GNU ld.so'
20726 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20729 dynamic_linker
='NetBSD (a.out) ld.so'
20731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20732 soname_spec
='${libname}${release}${shared_ext}$major'
20733 dynamic_linker
='NetBSD ld.elf_so'
20735 shlibpath_var
=LD_LIBRARY_PATH
20736 shlibpath_overrides_runpath
=yes
20737 hardcode_into_libs
=yes
20742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 shlibpath_var
=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath
=yes
20751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752 soname_spec
='${libname}${release}${shared_ext}$major'
20753 shlibpath_var
=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath
=yes
20759 sys_lib_dlsearch_path_spec
="/usr/lib"
20761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20763 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20764 *) need_version
=no
;;
20766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20767 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20768 shlibpath_var
=LD_LIBRARY_PATH
20769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20771 openbsd2.
[89] | openbsd2.
[89].
*)
20772 shlibpath_overrides_runpath
=no
20775 shlibpath_overrides_runpath
=yes
20779 shlibpath_overrides_runpath
=yes
20784 libname_spec
='$name'
20787 library_names_spec
='$libname${shared_ext} $libname.a'
20788 dynamic_linker
='OS/2 ld.exe'
20789 shlibpath_var
=LIBPATH
20792 osf3
* | osf4
* | osf5
*)
20796 soname_spec
='${libname}${release}${shared_ext}$major'
20797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 shlibpath_var
=LD_LIBRARY_PATH
20799 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20800 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 soname_spec
='${libname}${release}${shared_ext}$major'
20809 shlibpath_var
=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath
=yes
20811 hardcode_into_libs
=yes
20812 # ldd complains unless libraries are executable
20813 postinstall_cmds
='chmod +x $lib'
20818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20819 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20820 shlibpath_var
=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath
=yes
20822 if test "$with_gnu_ld" = yes; then
20830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831 soname_spec
='${libname}${release}${shared_ext}$major'
20832 shlibpath_var
=LD_LIBRARY_PATH
20833 case $host_vendor in
20835 shlibpath_overrides_runpath
=no
20837 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20838 runpath_var
=LD_RUN_PATH
20846 shlibpath_overrides_runpath
=no
20847 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20853 if test -d /usr
/nec
;then
20855 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20856 soname_spec
='$libname${shared_ext}.$major'
20857 shlibpath_var
=LD_LIBRARY_PATH
20861 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20862 version_type
=freebsd-elf
20865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20866 soname_spec
='${libname}${release}${shared_ext}$major'
20867 shlibpath_var
=LD_LIBRARY_PATH
20868 hardcode_into_libs
=yes
20869 if test "$with_gnu_ld" = yes; then
20870 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20871 shlibpath_overrides_runpath
=no
20873 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20874 shlibpath_overrides_runpath
=yes
20877 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20881 sys_lib_dlsearch_path_spec
='/usr/lib'
20886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec
='${libname}${release}${shared_ext}$major'
20888 shlibpath_var
=LD_LIBRARY_PATH
20895 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20896 echo "${ECHO_T}$dynamic_linker" >&6; }
20897 test "$dynamic_linker" = no
&& can_build_shared
=no
20899 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20900 if test "$GCC" = yes; then
20901 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20904 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20905 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20906 hardcode_action_CXX
=
20907 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20908 test -n "$runpath_var_CXX" || \
20909 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20911 # We can hardcode non-existant directories.
20912 if test "$hardcode_direct_CXX" != no
&&
20913 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20914 # have to relink, otherwise we might link with an installed library
20915 # when we should be linking with a yet-to-be-installed one
20916 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20917 test "$hardcode_minus_L_CXX" != no
; then
20918 # Linking always hardcodes the temporary library directory.
20919 hardcode_action_CXX
=relink
20921 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20922 hardcode_action_CXX
=immediate
20925 # We cannot hardcode anything, or else we can only hardcode existing
20927 hardcode_action_CXX
=unsupported
20929 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20930 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20932 if test "$hardcode_action_CXX" = relink
; then
20933 # Fast installation is not supported
20934 enable_fast_install
=no
20935 elif test "$shlibpath_overrides_runpath" = yes ||
20936 test "$enable_shared" = no
; then
20937 # Fast installation is not necessary
20938 enable_fast_install
=needless
20942 # The else clause should only fire when bootstrapping the
20943 # libtool distribution, otherwise you forgot to ship ltmain.sh
20944 # with your package, and you will get complaints that there are
20945 # no rules to generate ltmain.sh.
20946 if test -f "$ltmain"; then
20947 # See if we are running on zsh, and set the options which allow our commands through
20948 # without removal of \ escapes.
20949 if test -n "${ZSH_VERSION+set}" ; then
20950 setopt NO_GLOB_SUBST
20952 # Now quote all the things that may contain metacharacters while being
20953 # careful not to overquote the AC_SUBSTed values. We take copies of the
20954 # variables and quote the copies for generation of the libtool script.
20955 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20959 deplibs_check_method reload_flag reload_cmds need_locks \
20960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20961 lt_cv_sys_global_symbol_to_c_name_address \
20962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20963 old_postinstall_cmds old_postuninstall_cmds \
20967 lt_prog_compiler_wl_CXX \
20968 lt_prog_compiler_pic_CXX \
20969 lt_prog_compiler_static_CXX \
20970 lt_prog_compiler_no_builtin_flag_CXX \
20971 export_dynamic_flag_spec_CXX \
20972 thread_safe_flag_spec_CXX \
20973 whole_archive_flag_spec_CXX \
20974 enable_shared_with_static_runtimes_CXX \
20975 old_archive_cmds_CXX \
20976 old_archive_from_new_cmds_CXX \
20977 predep_objects_CXX \
20978 postdep_objects_CXX \
20981 compiler_lib_search_path_CXX \
20983 archive_expsym_cmds_CXX \
20984 postinstall_cmds_CXX \
20985 postuninstall_cmds_CXX \
20986 old_archive_from_expsyms_cmds_CXX \
20987 allow_undefined_flag_CXX \
20988 no_undefined_flag_CXX \
20989 export_symbols_cmds_CXX \
20990 hardcode_libdir_flag_spec_CXX \
20991 hardcode_libdir_flag_spec_ld_CXX \
20992 hardcode_libdir_separator_CXX \
20993 hardcode_automatic_CXX \
20995 module_expsym_cmds_CXX \
20996 lt_cv_prog_compiler_c_o_CXX \
20997 exclude_expsyms_CXX \
20998 include_expsyms_CXX
; do
21001 old_archive_cmds_CXX | \
21002 old_archive_from_new_cmds_CXX | \
21003 archive_cmds_CXX | \
21004 archive_expsym_cmds_CXX | \
21005 module_cmds_CXX | \
21006 module_expsym_cmds_CXX | \
21007 old_archive_from_expsyms_cmds_CXX | \
21008 export_symbols_cmds_CXX | \
21009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21010 postinstall_cmds | postuninstall_cmds | \
21011 old_postinstall_cmds | old_postuninstall_cmds | \
21012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21013 # Double-quote double-evaled strings.
21014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21023 *'\$0 --fallback-echo"')
21024 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21030 cat <<__EOF__ >> "$cfgfile"
21031 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21035 # Shell to use when invoking shell scripts.
21038 # Whether or not to build shared libraries.
21039 build_libtool_libs=$enable_shared
21041 # Whether or not to build static libraries.
21042 build_old_libs=$enable_static
21044 # Whether or not to add -lc for building shared libraries.
21045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21047 # Whether or not to disallow shared libs when runtime libs are static
21048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21050 # Whether or not to optimize for fast installation.
21051 fast_install=$enable_fast_install
21054 host_alias=$host_alias
21058 # The build system.
21059 build_alias=$build_alias
21063 # An echo program that does not interpret backslashes.
21068 AR_FLAGS=$lt_AR_FLAGS
21073 # LTCC compiler flags.
21074 LTCFLAGS=$lt_LTCFLAGS
21076 # A language-specific compiler.
21077 CC=$lt_compiler_CXX
21079 # Is the compiler the GNU C compiler?
21085 # The linker used to build libraries.
21088 # Whether we need hard or soft links.
21091 # A BSD-compatible nm program.
21094 # A symbol stripping program
21097 # Used to examine libraries when file_magic_cmd begins "file"
21098 MAGIC_CMD=$MAGIC_CMD
21100 # Used on cygwin: DLL creation program.
21103 # Used on cygwin: object dumper.
21106 # Used on cygwin: assembler.
21109 # The name of the directory that contains temporary libtool files.
21112 # How to create reloadable object files.
21113 reload_flag=$lt_reload_flag
21114 reload_cmds=$lt_reload_cmds
21116 # How to pass a linker flag through the compiler.
21117 wl=$lt_lt_prog_compiler_wl_CXX
21119 # Object file suffix (normally "o").
21120 objext="$ac_objext"
21122 # Old archive suffix (normally "a").
21125 # Shared library suffix (normally ".so").
21126 shrext_cmds='$shrext_cmds'
21128 # Executable file suffix (normally "").
21131 # Additional compiler flags for building library objects.
21132 pic_flag=$lt_lt_prog_compiler_pic_CXX
21135 # What is the maximum length of a command?
21136 max_cmd_len=$lt_cv_sys_max_cmd_len
21138 # Does compiler simultaneously support -c and -o options?
21139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21141 # Must we lock files when doing compilation?
21142 need_locks=$lt_need_locks
21144 # Do we need the lib prefix for modules?
21145 need_lib_prefix=$need_lib_prefix
21147 # Do we need a version for libraries?
21148 need_version=$need_version
21150 # Whether dlopen is supported.
21151 dlopen_support=$enable_dlopen
21153 # Whether dlopen of programs is supported.
21154 dlopen_self=$enable_dlopen_self
21156 # Whether dlopen of statically linked programs is supported.
21157 dlopen_self_static=$enable_dlopen_self_static
21159 # Compiler flag to prevent dynamic linking.
21160 link_static_flag=$lt_lt_prog_compiler_static_CXX
21162 # Compiler flag to turn off builtin functions.
21163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21165 # Compiler flag to allow reflexive dlopens.
21166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21168 # Compiler flag to generate shared objects directly from archives.
21169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21171 # Compiler flag to generate thread-safe objects.
21172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21174 # Library versioning type.
21175 version_type=$version_type
21177 # Format of library name prefix.
21178 libname_spec=$lt_libname_spec
21180 # List of archive names. First name is the real one, the rest are links.
21181 # The last name is the one that the linker finds with -lNAME.
21182 library_names_spec=$lt_library_names_spec
21184 # The coded name of the library, if different from the real name.
21185 soname_spec=$lt_soname_spec
21187 # Commands used to build and install an old-style archive.
21189 old_archive_cmds=$lt_old_archive_cmds_CXX
21190 old_postinstall_cmds=$lt_old_postinstall_cmds
21191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21193 # Create an old-style archive from a shared archive.
21194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21196 # Create a temporary old-style archive to link instead of a shared archive.
21197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21199 # Commands used to build and install a shared archive.
21200 archive_cmds=$lt_archive_cmds_CXX
21201 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21202 postinstall_cmds=$lt_postinstall_cmds
21203 postuninstall_cmds=$lt_postuninstall_cmds
21205 # Commands used to build a loadable module (assumed same as above if empty)
21206 module_cmds=$lt_module_cmds_CXX
21207 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21209 # Commands to strip libraries.
21210 old_striplib=$lt_old_striplib
21211 striplib=$lt_striplib
21213 # Dependencies to place before the objects being linked to create a
21215 predep_objects=$lt_predep_objects_CXX
21217 # Dependencies to place after the objects being linked to create a
21219 postdep_objects=$lt_postdep_objects_CXX
21221 # Dependencies to place before the objects being linked to create a
21223 predeps=$lt_predeps_CXX
21225 # Dependencies to place after the objects being linked to create a
21227 postdeps=$lt_postdeps_CXX
21229 # The library search path used internally by the compiler when linking
21230 # a shared library.
21231 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21233 # Method to check whether dependent libraries are shared objects.
21234 deplibs_check_method=$lt_deplibs_check_method
21236 # Command to use when deplibs_check_method == file_magic.
21237 file_magic_cmd=$lt_file_magic_cmd
21239 # Flag that allows shared libraries with undefined symbols to be built.
21240 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21242 # Flag that forces no undefined symbols.
21243 no_undefined_flag=$lt_no_undefined_flag_CXX
21245 # Commands used to finish a libtool library installation in a directory.
21246 finish_cmds=$lt_finish_cmds
21248 # Same as above, but a single script fragment to be evaled but not shown.
21249 finish_eval=$lt_finish_eval
21251 # Take the output of nm and produce a listing of raw symbols and C names.
21252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21254 # Transform the output of nm in a proper C declaration
21255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21257 # Transform the output of nm in a C name address pair
21258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21260 # This is the shared library runtime path variable.
21261 runpath_var=$runpath_var
21263 # This is the shared library path variable.
21264 shlibpath_var=$shlibpath_var
21266 # Is shlibpath searched before the hard-coded library search path?
21267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21269 # How to hardcode a shared library path into an executable.
21270 hardcode_action=$hardcode_action_CXX
21272 # Whether we should hardcode library paths into libraries.
21273 hardcode_into_libs=$hardcode_into_libs
21275 # Flag to hardcode \$libdir into a binary during linking.
21276 # This must work even if \$libdir does not exist.
21277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21279 # If ld is used when linking, flag to hardcode \$libdir into
21280 # a binary during linking. This must work even if \$libdir does
21282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21284 # Whether we need a single -rpath flag with a separated argument.
21285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21288 # resulting binary.
21289 hardcode_direct=$hardcode_direct_CXX
21291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21292 # resulting binary.
21293 hardcode_minus_L=$hardcode_minus_L_CXX
21295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21296 # the resulting binary.
21297 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21299 # Set to yes if building a shared library automatically hardcodes DIR into the library
21300 # and all subsequent libraries and executables linked against it.
21301 hardcode_automatic=$hardcode_automatic_CXX
21303 # Variables whose values should be saved in libtool wrapper scripts and
21304 # restored at relink time.
21305 variables_saved_for_relink="$variables_saved_for_relink"
21307 # Whether libtool must link a program against all its dependency libraries.
21308 link_all_deplibs=$link_all_deplibs_CXX
21310 # Compile-time system search path for libraries
21311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21313 # Run-time system search path for libraries
21314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21316 # Fix the shell variable \$srcfile for the compiler.
21317 fix_srcfile_path="$fix_srcfile_path_CXX"
21319 # Set to yes if exported symbols are required.
21320 always_export_symbols=$always_export_symbols_CXX
21322 # The commands to list exported symbols.
21323 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21325 # The commands to extract the exported symbol list from a shared archive.
21326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21328 # Symbols that should not be listed in the preloaded symbols.
21329 exclude_expsyms=$lt_exclude_expsyms_CXX
21331 # Symbols that must always be exported.
21332 include_expsyms=$lt_include_expsyms_CXX
21334 # ### END LIBTOOL TAG CONFIG: $tagname
21340 # If there is no Makefile yet, we rely on a make rule to execute
21341 # `config.status --recheck' to rerun these tests and create the
21342 # libtool script then.
21343 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21344 if test -f "$ltmain_in"; then
21345 test -f Makefile
&& make "$ltmain"
21351 ac_cpp
='$CPP $CPPFLAGS'
21352 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21353 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21354 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21360 with_gnu_ldcxx
=$with_gnu_ld
21361 with_gnu_ld
=$lt_save_with_gnu_ld
21362 lt_cv_path_LDCXX
=$lt_cv_path_LD
21363 lt_cv_path_LD
=$lt_save_path_LD
21364 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21365 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21373 if test -n "$F77" && test "X$F77" != "Xno"; then
21376 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21377 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21378 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
21381 archive_cmds_need_lc_F77
=no
21382 allow_undefined_flag_F77
=
21383 always_export_symbols_F77
=no
21384 archive_expsym_cmds_F77
=
21385 export_dynamic_flag_spec_F77
=
21386 hardcode_direct_F77
=no
21387 hardcode_libdir_flag_spec_F77
=
21388 hardcode_libdir_flag_spec_ld_F77
=
21389 hardcode_libdir_separator_F77
=
21390 hardcode_minus_L_F77
=no
21391 hardcode_automatic_F77
=no
21393 module_expsym_cmds_F77
=
21394 link_all_deplibs_F77
=unknown
21395 old_archive_cmds_F77
=$old_archive_cmds
21396 no_undefined_flag_F77
=
21397 whole_archive_flag_spec_F77
=
21398 enable_shared_with_static_runtimes_F77
=no
21400 # Source file extension for f77 test sources.
21403 # Object file extension for compiled f77 test sources.
21407 # Code to be used in simple compile tests
21408 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
21410 # Code to be used in simple link tests
21411 lt_simple_link_test_code
=" program t\n end\n"
21413 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21415 # If no C compiler was specified, use CC.
21418 # If no C compiler flags were specified, use CFLAGS.
21419 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21421 # Allow CC to be a program name with arguments.
21425 # save warnings/boilerplate of simple test code
21426 ac_outfile
=conftest.
$ac_objext
21427 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
21428 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21429 _lt_compiler_boilerplate
=`cat conftest.err`
21432 ac_outfile
=conftest.
$ac_objext
21433 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
21434 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21435 _lt_linker_boilerplate
=`cat conftest.err`
21439 # Allow CC to be a program name with arguments.
21444 for cc_temp
in $compiler""; do
21446 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21447 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21452 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21455 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21456 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21457 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21458 echo "${ECHO_T}$can_build_shared" >&6; }
21460 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21461 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21462 test "$can_build_shared" = "no" && enable_shared
=no
21464 # On AIX, shared libraries and static libraries use the same namespace, and
21465 # are all built from PIC.
21468 test "$enable_shared" = yes && enable_static
=no
21469 if test -n "$RANLIB"; then
21470 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21471 postinstall_cmds
='$RANLIB $lib'
21475 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21476 test "$enable_shared" = yes && enable_static
=no
21480 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21481 echo "${ECHO_T}$enable_shared" >&6; }
21483 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21484 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21485 # Make sure either enable_shared or enable_static is yes.
21486 test "$enable_shared" = yes || enable_static
=yes
21487 { echo "$as_me:$LINENO: result: $enable_static" >&5
21488 echo "${ECHO_T}$enable_static" >&6; }
21493 lt_prog_compiler_wl_F77
=
21494 lt_prog_compiler_pic_F77
=
21495 lt_prog_compiler_static_F77
=
21497 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21500 if test "$GCC" = yes; then
21501 lt_prog_compiler_wl_F77
='-Wl,'
21502 lt_prog_compiler_static_F77
='-static'
21506 # All AIX code is PIC.
21507 if test "$host_cpu" = ia64
; then
21508 # AIX 5 now supports IA64 processor
21509 lt_prog_compiler_static_F77
='-Bstatic'
21514 # FIXME: we need at least 68020 code to build shared libraries, but
21515 # adding the `-m68020' flag to GCC prevents building anything better,
21517 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
21520 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21521 # PIC is the default for these OSes.
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 darwin
* | rhapsody
*)
21531 # PIC is the default on this platform
21532 # Common symbols not allowed in MH_DYLIB files
21533 lt_prog_compiler_pic_F77
='-fno-common'
21537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21538 # Instead, we relocate shared libraries at runtime.
21542 # Just because we use GCC doesn't mean we suddenly get shared libraries
21543 # on systems that don't support them.
21544 lt_prog_compiler_can_build_shared_F77
=no
21549 if test -d /usr
/nec
; then
21550 lt_prog_compiler_pic_F77
=-Kconform_pic
21555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21556 # not for PA HP-UX.
21562 lt_prog_compiler_pic_F77
='-fPIC'
21568 lt_prog_compiler_pic_F77
='-fPIC'
21572 # PORTME Check for flag to pass linker flags through the system compiler.
21575 lt_prog_compiler_wl_F77
='-Wl,'
21576 if test "$host_cpu" = ia64
; then
21577 # AIX 5 now supports IA64 processor
21578 lt_prog_compiler_static_F77
='-Bstatic'
21580 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
21584 # PIC is the default on this platform
21585 # Common symbols not allowed in MH_DYLIB files
21586 case $cc_basename in
21588 lt_prog_compiler_pic_F77
='-qnocommon'
21589 lt_prog_compiler_wl_F77
='-Wl,'
21594 mingw
* | pw32
* | os2
*)
21595 # This hack is so that the source file can tell whether it is being
21596 # built for inclusion in a dll (and should export symbols for example).
21597 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
21600 hpux9
* | hpux10
* | hpux11
*)
21601 lt_prog_compiler_wl_F77
='-Wl,'
21602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603 # not for PA HP-UX.
21609 lt_prog_compiler_pic_F77
='+Z'
21612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21613 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
21616 irix5
* | irix6
* | nonstopux
*)
21617 lt_prog_compiler_wl_F77
='-Wl,'
21618 # PIC (with -KPIC) is the default.
21619 lt_prog_compiler_static_F77
='-non_shared'
21623 lt_prog_compiler_pic_F77
='-KPIC'
21624 lt_prog_compiler_static_F77
='-Bstatic'
21628 case $cc_basename in
21630 lt_prog_compiler_wl_F77
='-Wl,'
21631 lt_prog_compiler_pic_F77
='-KPIC'
21632 lt_prog_compiler_static_F77
='-static'
21634 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21635 # Portland Group compilers (*not* the Pentium gcc compiler,
21636 # which looks to be a dead project)
21637 lt_prog_compiler_wl_F77
='-Wl,'
21638 lt_prog_compiler_pic_F77
='-fpic'
21639 lt_prog_compiler_static_F77
='-Bstatic'
21642 lt_prog_compiler_wl_F77
='-Wl,'
21643 # All Alpha code is PIC.
21644 lt_prog_compiler_static_F77
='-non_shared'
21649 osf3
* | osf4
* | osf5
*)
21650 lt_prog_compiler_wl_F77
='-Wl,'
21651 # All OSF/1 code is PIC.
21652 lt_prog_compiler_static_F77
='-non_shared'
21656 lt_prog_compiler_pic_F77
='-KPIC'
21657 lt_prog_compiler_static_F77
='-Bstatic'
21658 case $cc_basename in
21659 f77
* | f90
* | f95
*)
21660 lt_prog_compiler_wl_F77
='-Qoption ld ';;
21662 lt_prog_compiler_wl_F77
='-Wl,';;
21667 lt_prog_compiler_wl_F77
='-Qoption ld '
21668 lt_prog_compiler_pic_F77
='-PIC'
21669 lt_prog_compiler_static_F77
='-Bstatic'
21672 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21673 lt_prog_compiler_wl_F77
='-Wl,'
21674 lt_prog_compiler_pic_F77
='-KPIC'
21675 lt_prog_compiler_static_F77
='-Bstatic'
21679 if test -d /usr
/nec
;then
21680 lt_prog_compiler_pic_F77
='-Kconform_pic'
21681 lt_prog_compiler_static_F77
='-Bstatic'
21685 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21686 lt_prog_compiler_wl_F77
='-Wl,'
21687 lt_prog_compiler_pic_F77
='-KPIC'
21688 lt_prog_compiler_static_F77
='-Bstatic'
21692 lt_prog_compiler_wl_F77
='-Wl,'
21693 lt_prog_compiler_can_build_shared_F77
=no
21697 lt_prog_compiler_pic_F77
='-pic'
21698 lt_prog_compiler_static_F77
='-Bstatic'
21702 lt_prog_compiler_can_build_shared_F77
=no
21707 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21708 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21711 # Check to make sure the PIC flag actually works.
21713 if test -n "$lt_prog_compiler_pic_F77"; then
21715 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21716 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21717 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 lt_prog_compiler_pic_works_F77
=no
21721 ac_outfile
=conftest.
$ac_objext
21722 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21723 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
21724 # Insert the option either (1) after the last *FLAGS variable, or
21725 # (2) before a word containing "conftest.", or (3) at the end.
21726 # Note that $ac_compile itself does not contain backslashes and begins
21727 # with a dollar sign (not a hyphen), so the echo should work correctly.
21728 # The option is referenced via a variable to avoid confusing sed.
21729 lt_compile
=`echo "$ac_compile" | $SED \
21730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21732 -e 's:$: $lt_compiler_flag:'`
21733 (eval echo "\"\$as_me:21733: $lt_compile\"" >&5)
21734 (eval "$lt_compile" 2>conftest.err
)
21736 cat conftest.err
>&5
21737 echo "$as_me:21737: \$? = $ac_status" >&5
21738 if (exit $ac_status) && test -s "$ac_outfile"; then
21739 # The compiler can only warn and ignore the option if not recognized
21740 # So say no if there are warnings other than the usual output.
21741 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21742 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21743 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21744 lt_prog_compiler_pic_works_F77
=yes
21750 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21751 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21753 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
21754 case $lt_prog_compiler_pic_F77 in
21756 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
21759 lt_prog_compiler_pic_F77
=
21760 lt_prog_compiler_can_build_shared_F77
=no
21765 # For platforms which do not support PIC, -DPIC is meaningless:
21767 lt_prog_compiler_pic_F77
=
21770 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
21775 # Check to make sure the static flag actually works.
21777 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
21778 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21779 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21780 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 lt_prog_compiler_static_works_F77
=no
21784 save_LDFLAGS
="$LDFLAGS"
21785 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21786 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
21787 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21788 # The linker can only warn and ignore the option if not recognized
21789 # So say no if there are warnings
21790 if test -s conftest.err
; then
21791 # Append any errors to the config.log.
21792 cat conftest.err
1>&5
21793 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21794 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21795 if diff conftest.exp conftest.er2
>/dev
/null
; then
21796 lt_prog_compiler_static_works_F77
=yes
21799 lt_prog_compiler_static_works_F77
=yes
21803 LDFLAGS
="$save_LDFLAGS"
21806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21807 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21809 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
21812 lt_prog_compiler_static_F77
=
21816 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21818 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 lt_cv_prog_compiler_c_o_F77
=no
21822 $rm -r conftest
2>/dev
/null
21826 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21828 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21829 # Insert the option either (1) after the last *FLAGS variable, or
21830 # (2) before a word containing "conftest.", or (3) at the end.
21831 # Note that $ac_compile itself does not contain backslashes and begins
21832 # with a dollar sign (not a hyphen), so the echo should work correctly.
21833 lt_compile
=`echo "$ac_compile" | $SED \
21834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21836 -e 's:$: $lt_compiler_flag:'`
21837 (eval echo "\"\$as_me:21837: $lt_compile\"" >&5)
21838 (eval "$lt_compile" 2>out
/conftest.err
)
21840 cat out
/conftest.err
>&5
21841 echo "$as_me:21841: \$? = $ac_status" >&5
21842 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21844 # The compiler can only warn and ignore the option if not recognized
21845 # So say no if there are warnings
21846 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21847 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21848 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21849 lt_cv_prog_compiler_c_o_F77
=yes
21854 # SGI C++ compiler will create directory out/ii_files/ for
21855 # template instantiation
21856 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21857 $rm out
/* && rmdir out
21863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21867 hard_links
="nottested"
21868 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
21869 # do not overwrite the value of need_locks provided by the user
21870 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21874 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21876 ln conftest.a conftest.b
2>&5 || hard_links
=no
21877 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21878 { echo "$as_me:$LINENO: result: $hard_links" >&5
21879 echo "${ECHO_T}$hard_links" >&6; }
21880 if test "$hard_links" = no
; then
21881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21889 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21893 allow_undefined_flag_F77
=
21894 enable_shared_with_static_runtimes_F77
=no
21896 archive_expsym_cmds_F77
=
21897 old_archive_From_new_cmds_F77
=
21898 old_archive_from_expsyms_cmds_F77
=
21899 export_dynamic_flag_spec_F77
=
21900 whole_archive_flag_spec_F77
=
21901 thread_safe_flag_spec_F77
=
21902 hardcode_libdir_flag_spec_F77
=
21903 hardcode_libdir_flag_spec_ld_F77
=
21904 hardcode_libdir_separator_F77
=
21905 hardcode_direct_F77
=no
21906 hardcode_minus_L_F77
=no
21907 hardcode_shlibpath_var_F77
=unsupported
21908 link_all_deplibs_F77
=unknown
21909 hardcode_automatic_F77
=no
21911 module_expsym_cmds_F77
=
21912 always_export_symbols_F77
=no
21913 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21914 # include_expsyms should be a list of space-separated symbols to be *always*
21915 # included in the symbol list
21916 include_expsyms_F77
=
21917 # exclude_expsyms can be an extended regexp of symbols to exclude
21918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21920 # as well as any symbol that contains `d'.
21921 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
21922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21923 # platforms (ab)use it in PIC code, but their linkers get confused if
21924 # the symbol is explicitly referenced. Since portable code cannot
21925 # rely on this symbol name, it's probably fine to never include it in
21926 # preloaded symbol tables.
21927 extract_expsyms_cmds
=
21928 # Just being paranoid about ensuring that cc_basename is set.
21929 for cc_temp
in $compiler""; do
21931 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21932 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21937 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21940 cygwin
* | mingw
* | pw32
*)
21941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21942 # When not using gcc, we currently assume that we are using
21943 # Microsoft Visual C++.
21944 if test "$GCC" != yes; then
21949 # we just hope/assume this is gcc and not c89 (= MSVC++)
21958 if test "$with_gnu_ld" = yes; then
21959 # If archive_cmds runs LD, not CC, wlarc should be empty
21962 # Set some defaults for GNU ld with shared library support. These
21963 # are reset later if shared libraries are not supported. Putting them
21964 # here allows them to be overridden if necessary.
21965 runpath_var
=LD_RUN_PATH
21966 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
21967 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
21968 # ancient GNU ld didn't support --whole-archive et. al.
21969 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21970 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21972 whole_archive_flag_spec_F77
=
21974 supports_anon_versioning
=no
21975 case `$LD -v 2>/dev/null` in
21976 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21977 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21978 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21979 *\
2.11.
*) ;; # other 2.11 versions
21980 *) supports_anon_versioning
=yes ;;
21983 # See if GNU ld supports shared libraries.
21985 aix3
* | aix4
* | aix5
*)
21986 # On AIX/PPC, the GNU linker is very broken
21987 if test "$host_cpu" != ia64
; then
21991 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21992 *** to be unable to reliably create shared libraries on AIX.
21993 *** Therefore, libtool is disabling shared libraries support. If you
21994 *** really care for shared libraries, you may want to modify your PATH
21995 *** so that a non-GNU linker is found, and then restart.
22002 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)'
22003 hardcode_libdir_flag_spec_F77
='-L$libdir'
22004 hardcode_minus_L_F77
=yes
22006 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22007 # that the semantics of dynamic libraries on AmigaOS, at least up
22008 # to version 4, is to share data among multiple programs linked
22009 # with the same dynamic library. Since this doesn't match the
22010 # behavior of shared libraries on other platforms, we can't use
22016 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22017 allow_undefined_flag_F77
=unsupported
22018 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22019 # support --undefined. This deserves some investigation. FIXME
22020 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026 cygwin
* | mingw
* | pw32
*)
22027 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22028 # as there is no search path for DLLs.
22029 hardcode_libdir_flag_spec_F77
='-L$libdir'
22030 allow_undefined_flag_F77
=unsupported
22031 always_export_symbols_F77
=no
22032 enable_shared_with_static_runtimes_F77
=yes
22033 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22035 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22036 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22037 # If the export-symbols file already is a .def file (1st line
22038 # is EXPORTS), use it as is; otherwise, prepend...
22039 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22040 cp $export_symbols $output_objdir/$soname.def;
22042 echo EXPORTS > $output_objdir/$soname.def;
22043 cat $export_symbols >> $output_objdir/$soname.def;
22045 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22052 hardcode_direct_F77
=no
22053 hardcode_shlibpath_var_F77
=no
22054 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22055 export_dynamic_flag_spec_F77
='${wl}-E'
22056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22057 # Instead, shared libraries are loaded at an image base (0x10000000 by
22058 # default) and relocated if they conflict, which is a slow very memory
22059 # consuming and fragmenting process. To avoid this, we pick a random,
22060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22062 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'
22063 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'
22067 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22069 case $cc_basename,$host_cpu in
22070 pgcc
*) # Portland Group C compiler
22071 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'
22072 tmp_addflag
=' $pic_flag'
22074 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22075 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'
22076 tmp_addflag
=' $pic_flag -Mnomain' ;;
22077 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22078 tmp_addflag
=' -i_dynamic' ;;
22079 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22080 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22081 ifc
* | ifort
*) # Intel Fortran compiler
22082 tmp_addflag
=' -nofor_main' ;;
22084 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22086 if test $supports_anon_versioning = yes; then
22087 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
22088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22089 $echo "local: *; };" >> $output_objdir/$libname.ver~
22090 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22098 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22099 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22102 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22103 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22108 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22113 *** create shared libraries on Solaris systems. Therefore, libtool
22114 *** is disabling shared libraries support. We urge you to upgrade GNU
22115 *** binutils to release 2.9.1 or newer. Another option is to modify
22116 *** your PATH or compiler configuration so that the native linker is
22117 *** used, and then restart.
22120 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22121 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22122 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22128 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22129 case `$LD -v 2>&1` in
22130 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22135 *** reliably create shared libraries on SCO systems. Therefore, libtool
22136 *** is disabling shared libraries support. We urge you to upgrade GNU
22137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22138 *** your PATH or compiler configuration so that the native linker is
22139 *** used, and then restart.
22144 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22145 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22146 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22147 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22156 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_direct_F77
=yes
22159 hardcode_shlibpath_var_F77
=no
22163 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22164 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22165 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22172 if test "$ld_shlibs_F77" = no
; then
22174 hardcode_libdir_flag_spec_F77
=
22175 export_dynamic_flag_spec_F77
=
22176 whole_archive_flag_spec_F77
=
22179 # PORTME fill in a description of your system's linker (not GNU ld)
22182 allow_undefined_flag_F77
=unsupported
22183 always_export_symbols_F77
=yes
22184 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'
22185 # Note: this linker hardcodes the directories in LIBPATH if there
22186 # are no directories specified by -L.
22187 hardcode_minus_L_F77
=yes
22188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22189 # Neither direct hardcoding nor static linking is supported with a
22191 hardcode_direct_F77
=unsupported
22196 if test "$host_cpu" = ia64
; then
22197 # On IA64, the linker does run time linking by default, so we don't
22198 # have to do anything special.
22199 aix_use_runtimelinking
=no
22200 exp_sym_flag
='-Bexport'
22203 # If we're using GNU nm, then we don't want the "-C" option.
22204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22205 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22206 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'
22208 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'
22210 aix_use_runtimelinking
=no
22212 # Test if we are trying to use run time linking or normal
22213 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22214 # need to do runtime linking.
22215 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22216 for ld_flag
in $LDFLAGS; do
22217 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22218 aix_use_runtimelinking
=yes
22225 exp_sym_flag
='-bexport'
22226 no_entry_flag
='-bnoentry'
22229 # When large executables or shared objects are built, AIX ld can
22230 # have problems creating the table of contents. If linking a library
22231 # or program results in "error TOC overflow" add -mminimal-toc to
22232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22235 archive_cmds_F77
=''
22236 hardcode_direct_F77
=yes
22237 hardcode_libdir_separator_F77
=':'
22238 link_all_deplibs_F77
=yes
22240 if test "$GCC" = yes; then
22241 case $host_os in aix4.
[012]|aix4.
[012].
*)
22242 # We only want to do this on AIX 4.2 and lower, the check
22243 # below for broken collect2 doesn't work under 4.3+
22244 collect2name
=`${CC} -print-prog-name=collect2`
22245 if test -f "$collect2name" && \
22246 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22248 # We have reworked collect2
22249 hardcode_direct_F77
=yes
22251 # We have old collect2
22252 hardcode_direct_F77
=unsupported
22253 # It fails to find uninstalled libraries when the uninstalled
22254 # path is not listed in the libpath. Setting hardcode_minus_L
22255 # to unsupported forces relinking
22256 hardcode_minus_L_F77
=yes
22257 hardcode_libdir_flag_spec_F77
='-L$libdir'
22258 hardcode_libdir_separator_F77
=
22262 shared_flag
='-shared'
22263 if test "$aix_use_runtimelinking" = yes; then
22264 shared_flag
="$shared_flag "'${wl}-G'
22268 if test "$host_cpu" = ia64
; then
22269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22270 # chokes on -Wl,-G. The following line is correct:
22273 if test "$aix_use_runtimelinking" = yes; then
22274 shared_flag
='${wl}-G'
22276 shared_flag
='${wl}-bM:SRE'
22281 # It seems that -bexpall does not export symbols beginning with
22282 # underscore (_), so it is better to generate a list of symbols to export.
22283 always_export_symbols_F77
=yes
22284 if test "$aix_use_runtimelinking" = yes; then
22285 # Warning - without using the other runtime loading flags (-brtl),
22286 # -berok will link without error, but may produce a broken library.
22287 allow_undefined_flag_F77
='-berok'
22288 # Determine the default libpath from the value encoded in an empty executable.
22289 cat >conftest.
$ac_ext <<_ACEOF
22294 rm -f conftest.
$ac_objext conftest
$ac_exeext
22295 if { (ac_try
="$ac_link"
22296 case "(($ac_try" in
22297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
22303 grep -v '^ *+' conftest.er1 >conftest.err
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
22308 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22309 { (case "(($ac_try" in
22310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22311 *) ac_try_echo
=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_try") 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try
='test -s conftest$ac_exeext'
22319 { (case "(($ac_try" in
22320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_try") 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22329 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22331 # Check for a 64-bit object if we didn't find anything.
22332 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; }
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22341 rm -f core conftest.err conftest.$ac_objext \
22342 conftest$ac_exeext conftest.$ac_ext
22343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22345 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22346 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"
22348 if test "$host_cpu" = ia64; then
22349 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22350 allow_undefined_flag_F77="-z nodefs"
22351 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"
22353 # Determine the default libpath from the value encoded in an empty executable.
22354 cat >conftest.$ac_ext <<_ACEOF
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (ac_try="$ac_link"
22361 case "(($ac_try" in
22362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22363 *) ac_try_echo
=$ac_try;;
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_link") 2>conftest.er1
22368 grep -v '^ *+' conftest.er1
>conftest.err
22370 cat conftest.err
>&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22374 { (case "(($ac_try" in
22375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22379 (eval "$ac_try") 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest$ac_exeext'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22386 *) ac_try_echo
=$ac_try;;
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22394 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22396 # Check for a 64-bit object if we didn't find anything.
22397 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; }
22400 echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.
$ac_ext >&5
22406 rm -f core conftest.err conftest.
$ac_objext \
22407 conftest
$ac_exeext conftest.
$ac_ext
22408 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22410 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
22411 # Warning - without using the other run time loading flags,
22412 # -berok will link without error, but may produce a broken library.
22413 no_undefined_flag_F77
=' ${wl}-bernotok'
22414 allow_undefined_flag_F77
=' ${wl}-berok'
22415 # Exported symbols can be pulled into shared objects from archives
22416 whole_archive_flag_spec_F77
='$convenience'
22417 archive_cmds_need_lc_F77
=yes
22418 # This is similar to how AIX traditionally builds its shared libraries.
22419 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'
22425 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)'
22426 hardcode_libdir_flag_spec_F77
='-L$libdir'
22427 hardcode_minus_L_F77
=yes
22428 # see comment about different semantics on the GNU ld section
22433 export_dynamic_flag_spec_F77
=-rdynamic
22436 cygwin
* | mingw
* | pw32
*)
22437 # When not using gcc, we currently assume that we are using
22438 # Microsoft Visual C++.
22439 # hardcode_libdir_flag_spec is actually meaningless, as there is
22440 # no search path for DLLs.
22441 hardcode_libdir_flag_spec_F77
=' '
22442 allow_undefined_flag_F77
=unsupported
22443 # Tell ltmain to make .lib files, not .a files.
22445 # Tell ltmain to make .dll files, not .so files.
22447 # FIXME: Setting linknames here is a bad hack.
22448 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22449 # The linker will automatically build a .lib file if we build a DLL.
22450 old_archive_From_new_cmds_F77
='true'
22451 # FIXME: Should let the user specify the lib program.
22452 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
22453 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
22454 enable_shared_with_static_runtimes_F77
=yes
22457 darwin
* | rhapsody
*)
22459 rhapsody
* | darwin1.
[012])
22460 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
22463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22464 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22466 case ${MACOSX_DEPLOYMENT_TARGET} in
22468 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22471 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
22477 archive_cmds_need_lc_F77
=no
22478 hardcode_direct_F77
=no
22479 hardcode_automatic_F77
=yes
22480 hardcode_shlibpath_var_F77
=unsupported
22481 whole_archive_flag_spec_F77
=''
22482 link_all_deplibs_F77
=yes
22483 if test "$GCC" = yes ; then
22484 output_verbose_link_cmd
='echo'
22485 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22486 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22488 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}'
22489 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}'
22491 case $cc_basename in
22493 output_verbose_link_cmd
='echo'
22494 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22495 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22497 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}'
22498 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}'
22508 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22509 hardcode_libdir_flag_spec_F77
='-L$libdir'
22510 hardcode_shlibpath_var_F77
=no
22517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22518 # support. Future versions do this automatically, but an explicit c++rt0.o
22519 # does not break anything, and helps significantly (at the cost of a little
22522 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22523 hardcode_libdir_flag_spec_F77
='-R$libdir'
22524 hardcode_direct_F77
=yes
22525 hardcode_shlibpath_var_F77
=no
22528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22530 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_F77
=yes
22532 hardcode_minus_L_F77
=yes
22533 hardcode_shlibpath_var_F77
=no
22536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22537 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
22538 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22539 hardcode_libdir_flag_spec_F77
='-R$libdir'
22540 hardcode_direct_F77
=yes
22541 hardcode_shlibpath_var_F77
=no
22545 if test "$GCC" = yes; then
22546 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'
22548 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'
22550 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22551 hardcode_libdir_separator_F77
=:
22552 hardcode_direct_F77
=yes
22554 # hardcode_minus_L: Not really in the search PATH,
22555 # but as the default location of the library.
22556 hardcode_minus_L_F77
=yes
22557 export_dynamic_flag_spec_F77
='${wl}-E'
22561 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22562 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22564 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22566 if test "$with_gnu_ld" = no
; then
22567 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22568 hardcode_libdir_separator_F77
=:
22570 hardcode_direct_F77
=yes
22571 export_dynamic_flag_spec_F77
='${wl}-E'
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_F77
=yes
22580 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22583 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22586 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22589 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22595 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22598 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22601 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22605 if test "$with_gnu_ld" = no
; then
22606 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
22607 hardcode_libdir_separator_F77
=:
22611 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
22612 hardcode_direct_F77
=no
22613 hardcode_shlibpath_var_F77
=no
22616 hardcode_direct_F77
=yes
22617 export_dynamic_flag_spec_F77
='${wl}-E'
22619 # hardcode_minus_L: Not really in the search PATH,
22620 # but as the default location of the library.
22621 hardcode_minus_L_F77
=yes
22627 irix5
* | irix6
* | nonstopux
*)
22628 if test "$GCC" = yes; then
22629 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'
22631 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'
22632 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
22634 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22635 hardcode_libdir_separator_F77
=:
22636 link_all_deplibs_F77
=yes
22640 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22641 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22643 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22645 hardcode_libdir_flag_spec_F77
='-R$libdir'
22646 hardcode_direct_F77
=yes
22647 hardcode_shlibpath_var_F77
=no
22651 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652 hardcode_direct_F77
=yes
22653 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22654 hardcode_libdir_separator_F77
=:
22655 hardcode_shlibpath_var_F77
=no
22659 hardcode_direct_F77
=yes
22660 hardcode_shlibpath_var_F77
=no
22661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22662 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22663 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22664 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22665 export_dynamic_flag_spec_F77
='${wl}-E'
22668 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22669 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22670 hardcode_libdir_flag_spec_F77
='-R$libdir'
22673 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22674 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
22681 hardcode_libdir_flag_spec_F77
='-L$libdir'
22682 hardcode_minus_L_F77
=yes
22683 allow_undefined_flag_F77
=unsupported
22684 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'
22685 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22689 if test "$GCC" = yes; then
22690 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22691 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'
22693 allow_undefined_flag_F77
=' -expect_unresolved \*'
22694 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'
22696 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22697 hardcode_libdir_separator_F77
=:
22700 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22701 if test "$GCC" = yes; then
22702 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
22703 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'
22704 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
22706 allow_undefined_flag_F77
=' -expect_unresolved \*'
22707 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'
22708 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~
22709 $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'
22711 # Both c and cxx compiler support -rpath directly
22712 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
22714 hardcode_libdir_separator_F77
=:
22718 no_undefined_flag_F77
=' -z text'
22719 if test "$GCC" = yes; then
22721 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22722 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22723 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22726 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22730 hardcode_libdir_flag_spec_F77
='-R$libdir'
22731 hardcode_shlibpath_var_F77
=no
22733 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22735 # The compiler driver will combine linker options so we
22736 # cannot just pass the convience library names through
22737 # without $wl, iff we do not link with $LD.
22738 # Luckily, gcc supports the same syntax we need for Sun Studio.
22739 # Supported since Solaris 2.6 (maybe 2.5.1?)
22742 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
22744 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' ;;
22747 link_all_deplibs_F77
=yes
22751 if test "x$host_vendor" = xsequent
; then
22752 # Use $CC to link under sequent, because it throws in some extra .o
22753 # files that make .init and .fini sections work.
22754 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22756 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22758 hardcode_libdir_flag_spec_F77
='-L$libdir'
22759 hardcode_direct_F77
=yes
22760 hardcode_minus_L_F77
=yes
22761 hardcode_shlibpath_var_F77
=no
22765 case $host_vendor in
22767 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22768 hardcode_direct_F77
=yes # is this really true???
22771 ## LD is ld it makes a PLAMLIB
22772 ## CC just makes a GrossModule.
22773 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22774 reload_cmds_F77
='$CC -r -o $output$reload_objs'
22775 hardcode_direct_F77
=no
22778 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
22782 runpath_var
='LD_RUN_PATH'
22783 hardcode_shlibpath_var_F77
=no
22787 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22788 hardcode_shlibpath_var_F77
=no
22789 export_dynamic_flag_spec_F77
='-Bexport'
22793 if test -d /usr
/nec
; then
22794 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22795 hardcode_shlibpath_var_F77
=no
22796 runpath_var
=LD_RUN_PATH
22797 hardcode_runpath_var
=yes
22802 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
22803 no_undefined_flag_F77
='${wl}-z,text'
22804 archive_cmds_need_lc_F77
=no
22805 hardcode_shlibpath_var_F77
=no
22806 runpath_var
='LD_RUN_PATH'
22808 if test "$GCC" = yes; then
22809 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22812 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22813 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22817 sysv5
* | sco3.2v5
* | sco5v6
*)
22818 # Note: We can NOT use -z defs as we might desire, because we do not
22819 # link with -lc, and that would cause any symbols used from libc to
22820 # always be unresolved, which means just about no library would
22821 # ever link correctly. If we're not using GNU ld we use -z text
22822 # though, which does catch some bad symbols but isn't as heavy-handed
22824 no_undefined_flag_F77
='${wl}-z,text'
22825 allow_undefined_flag_F77
='${wl}-z,nodefs'
22826 archive_cmds_need_lc_F77
=no
22827 hardcode_shlibpath_var_F77
=no
22828 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22829 hardcode_libdir_separator_F77
=':'
22830 link_all_deplibs_F77
=yes
22831 export_dynamic_flag_spec_F77
='${wl}-Bexport'
22832 runpath_var
='LD_RUN_PATH'
22834 if test "$GCC" = yes; then
22835 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22838 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22844 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22845 hardcode_libdir_flag_spec_F77
='-L$libdir'
22846 hardcode_shlibpath_var_F77
=no
22855 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22856 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22857 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
22860 # Do we need to explicitly link libc?
22862 case "x$archive_cmds_need_lc_F77" in
22864 # Assume -lc should be added
22865 archive_cmds_need_lc_F77
=yes
22867 if test "$enable_shared" = yes && test "$GCC" = yes; then
22868 case $archive_cmds_F77 in
22870 # FIXME: we may have to deal with multi-command sequences.
22873 # Test whether the compiler implicitly links with -lc since on some
22874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22875 # to ld, don't add -lc before -lgcc.
22876 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22877 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22879 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22882 (eval $ac_compile) 2>&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } 2>conftest.err
; then
22888 libobjs
=conftest.
$ac_objext
22890 wl
=$lt_prog_compiler_wl_F77
22891 pic_flag
=$lt_prog_compiler_pic_F77
22897 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
22898 allow_undefined_flag_F77
=
22899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22900 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }
22905 archive_cmds_need_lc_F77
=no
22907 archive_cmds_need_lc_F77
=yes
22909 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
22911 cat conftest.err
1>&5
22914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22915 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22922 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22924 library_names_spec
=
22925 libname_spec
='lib$name'
22929 postuninstall_cmds
=
22933 shlibpath_overrides_runpath
=unknown
22935 dynamic_linker
="$host_os ld.so"
22936 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22937 if test "$GCC" = yes; then
22938 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22939 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
22940 # if the path contains ";" then we assume it to be the separator
22941 # otherwise default to the standard path separator (i.e. ":") - it is
22942 # assumed that no part of a normal pathname contains ";" but that should
22943 # okay in the real world where ";" in dirpaths is itself problematic.
22944 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22946 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22949 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
22951 need_lib_prefix
=unknown
22952 hardcode_into_libs
=no
22954 # when you set need_version to no, make sure it does not cause -set_version
22955 # flags to be left without arguments
22956 need_version
=unknown
22961 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22962 shlibpath_var
=LIBPATH
22964 # AIX 3 has no versioning support, so we append a major version to the name.
22965 soname_spec
='${libname}${release}${shared_ext}$major'
22972 hardcode_into_libs
=yes
22973 if test "$host_cpu" = ia64
; then
22974 # AIX 5 supports IA64
22975 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22976 shlibpath_var
=LD_LIBRARY_PATH
22978 # With GCC up to 2.95.x, collect2 would create an import file
22979 # for dependence libraries. The import file would start with
22980 # the line `#! .'. This would cause the generated library to
22981 # depend on `.', always an invalid library. This was fixed in
22982 # development snapshots of GCC prior to 3.0.
22984 aix4 | aix4.
[01] | aix4.
[01].
*)
22985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22987 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22990 can_build_shared
=no
22994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22995 # soname into executable. Probably we can add versioning support to
22996 # collect2, so additional links can be useful in future.
22997 if test "$aix_use_runtimelinking" = yes; then
22998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22999 # instead of lib<name>.a to let people know that these are not
23000 # typical AIX shared libraries.
23001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003 # We preserve .a as extension for shared libraries through AIX4.2
23004 # and later when we are not doing run time linking.
23005 library_names_spec
='${libname}${release}.a $libname.a'
23006 soname_spec
='${libname}${release}${shared_ext}$major'
23008 shlibpath_var
=LIBPATH
23013 library_names_spec
='$libname.ixlibrary $libname.a'
23014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23015 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'
23019 library_names_spec
='${libname}${shared_ext}'
23020 dynamic_linker
="$host_os ld.so"
23021 shlibpath_var
=LIBRARY_PATH
23027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23028 soname_spec
='${libname}${release}${shared_ext}$major'
23029 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23030 shlibpath_var
=LD_LIBRARY_PATH
23031 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23032 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23033 # the default ld.so.conf also contains /usr/contrib/lib and
23034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23035 # libtool to hard-code these into programs
23038 cygwin
* | mingw
* | pw32
*)
23039 version_type
=windows
23044 case $GCC,$host_os in
23045 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23046 library_names_spec
='$libname.dll.a'
23047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23048 postinstall_cmds
='base_file=`basename \${file}`~
23049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23050 dldir=$destdir/`dirname \$dlpath`~
23051 test -d \$dldir || mkdir -p \$dldir~
23052 $install_prog $dir/$dlname \$dldir/$dlname~
23053 chmod a+x \$dldir/$dlname'
23054 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23055 dlpath=$dir/\$dldll~
23057 shlibpath_overrides_runpath
=yes
23061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23062 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23063 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23066 # MinGW DLLs use traditional 'lib' prefix
23067 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23068 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23069 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23070 # It is most probably a Windows format PATH printed by
23071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23072 # path with ; separators, and with drive letters. We can handle the
23073 # drive letters (cygwin fileutils understands them), so leave them,
23074 # especially as we might pass files found there to a mingw objdump,
23075 # which wouldn't understand a cygwinified path. Ahh.
23076 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23078 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23082 # pw32 DLLs use 'pw' prefix rather than 'lib'
23083 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23089 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23092 dynamic_linker
='Win32 ld.exe'
23093 # FIXME: first we should search . and the directory the executable is in
23097 darwin
* | rhapsody
*)
23098 dynamic_linker
="$host_os dyld"
23099 version_type
=darwin
23102 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23103 soname_spec
='${libname}${release}${major}$shared_ext'
23104 shlibpath_overrides_runpath
=yes
23105 shlibpath_var
=DYLD_LIBRARY_PATH
23106 shrext_cmds
='.dylib'
23107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23108 if test "$GCC" = yes; then
23109 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"`
23111 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
23113 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23121 soname_spec
='${libname}${release}${shared_ext}$major'
23122 shlibpath_var
=LD_LIBRARY_PATH
23133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23134 soname_spec
='${libname}${release}${shared_ext}$major'
23135 shlibpath_var
=LD_LIBRARY_PATH
23136 shlibpath_overrides_runpath
=no
23137 hardcode_into_libs
=yes
23138 dynamic_linker
='GNU ld.so'
23141 freebsd
* | dragonfly
*)
23142 # DragonFly does not have aout. When/if they implement a new
23143 # versioning mechanism, adjust this.
23144 if test -x /usr
/bin
/objformat
; then
23145 objformat
=`/usr/bin/objformat`
23148 freebsd
[123]*) objformat
=aout
;;
23149 *) objformat
=elf
;;
23152 version_type
=freebsd-
$objformat
23153 case $version_type in
23155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23160 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23164 shlibpath_var
=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath
=yes
23169 freebsd3.
[01]* | freebsdelf3.
[01]*)
23170 shlibpath_overrides_runpath
=yes
23171 hardcode_into_libs
=yes
23173 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23174 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23175 shlibpath_overrides_runpath
=no
23176 hardcode_into_libs
=yes
23178 freebsd
*) # from 4.6 on
23179 shlibpath_overrides_runpath
=yes
23180 hardcode_into_libs
=yes
23189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23190 soname_spec
='${libname}${release}${shared_ext}$major'
23191 shlibpath_var
=LD_LIBRARY_PATH
23192 hardcode_into_libs
=yes
23195 hpux9
* | hpux10
* | hpux11
*)
23196 # Give a soname corresponding to the major version so that dld.sl refuses to
23197 # link against other versions.
23204 hardcode_into_libs
=yes
23205 dynamic_linker
="$host_os dld.so"
23206 shlibpath_var
=LD_LIBRARY_PATH
23207 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec
='${libname}${release}${shared_ext}$major'
23210 if test "X$HPUX_IA64_MODE" = X32
; then
23211 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23213 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23215 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23219 hardcode_into_libs
=yes
23220 dynamic_linker
="$host_os dld.sl"
23221 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23222 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23224 soname_spec
='${libname}${release}${shared_ext}$major'
23225 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23226 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23230 dynamic_linker
="$host_os dld.sl"
23231 shlibpath_var
=SHLIB_PATH
23232 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23234 soname_spec
='${libname}${release}${shared_ext}$major'
23237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23238 postinstall_cmds
='chmod 555 $lib'
23245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23246 soname_spec
='${libname}${release}${shared_ext}$major'
23247 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23248 shlibpath_var
=LD_LIBRARY_PATH
23249 shlibpath_overrides_runpath
=no
23250 hardcode_into_libs
=yes
23253 irix5
* | irix6
* | nonstopux
*)
23255 nonstopux
*) version_type
=nonstopux
;;
23257 if test "$lt_cv_prog_gnu_ld" = yes; then
23265 soname_spec
='${libname}${release}${shared_ext}$major'
23266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23268 irix5
* | nonstopux
*)
23269 libsuff
= shlibsuff
=
23272 case $LD in # libtool.m4 will add one of these switches to LD
23273 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23274 libsuff
= shlibsuff
= libmagic
=32-bit;;
23275 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23276 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23277 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23278 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23279 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23283 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23284 shlibpath_overrides_runpath
=no
23285 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23286 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23287 hardcode_into_libs
=yes
23290 # No shared lib support for Linux oldld, aout, or coff.
23291 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23295 # This must be Linux ELF.
23300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec
='${libname}${release}${shared_ext}$major'
23302 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23303 shlibpath_var
=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath
=no
23305 # This implies no fast_install, which is unacceptable.
23306 # Some rework will be needed to allow for fast_install
23307 # before this can be enabled.
23308 hardcode_into_libs
=yes
23310 # Append ld.so.conf contents to the search path
23311 if test -f /etc
/ld.so.conf
; then
23312 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' ' '`
23313 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23316 # We used to test for /lib/ld.so.1 and disable shared libraries on
23317 # powerpc, because MkLinux only supported shared libraries with the
23318 # GNU dynamic linker. Since this was broken with cross compilers,
23319 # most powerpc-linux boxes support dynamic linking these days and
23320 # people can always --disable-shared, the test was removed, and we
23321 # assume the GNU/Linux dynamic linker is in use.
23322 dynamic_linker
='GNU/Linux ld.so'
23329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23330 soname_spec
='${libname}${release}${shared_ext}$major'
23331 shlibpath_var
=LD_LIBRARY_PATH
23332 shlibpath_overrides_runpath
=no
23333 hardcode_into_libs
=yes
23334 dynamic_linker
='GNU ld.so'
23341 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23343 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23344 dynamic_linker
='NetBSD (a.out) ld.so'
23346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23347 soname_spec
='${libname}${release}${shared_ext}$major'
23348 dynamic_linker
='NetBSD ld.elf_so'
23350 shlibpath_var
=LD_LIBRARY_PATH
23351 shlibpath_overrides_runpath
=yes
23352 hardcode_into_libs
=yes
23357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23358 shlibpath_var
=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath
=yes
23366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23367 soname_spec
='${libname}${release}${shared_ext}$major'
23368 shlibpath_var
=LD_LIBRARY_PATH
23369 shlibpath_overrides_runpath
=yes
23374 sys_lib_dlsearch_path_spec
="/usr/lib"
23376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23378 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23379 *) need_version
=no
;;
23381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23382 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23383 shlibpath_var
=LD_LIBRARY_PATH
23384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23386 openbsd2.
[89] | openbsd2.
[89].
*)
23387 shlibpath_overrides_runpath
=no
23390 shlibpath_overrides_runpath
=yes
23394 shlibpath_overrides_runpath
=yes
23399 libname_spec
='$name'
23402 library_names_spec
='$libname${shared_ext} $libname.a'
23403 dynamic_linker
='OS/2 ld.exe'
23404 shlibpath_var
=LIBPATH
23407 osf3
* | osf4
* | osf5
*)
23411 soname_spec
='${libname}${release}${shared_ext}$major'
23412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23413 shlibpath_var
=LD_LIBRARY_PATH
23414 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23415 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23423 soname_spec
='${libname}${release}${shared_ext}$major'
23424 shlibpath_var
=LD_LIBRARY_PATH
23425 shlibpath_overrides_runpath
=yes
23426 hardcode_into_libs
=yes
23427 # ldd complains unless libraries are executable
23428 postinstall_cmds
='chmod +x $lib'
23433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23434 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23435 shlibpath_var
=LD_LIBRARY_PATH
23436 shlibpath_overrides_runpath
=yes
23437 if test "$with_gnu_ld" = yes; then
23445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23446 soname_spec
='${libname}${release}${shared_ext}$major'
23447 shlibpath_var
=LD_LIBRARY_PATH
23448 case $host_vendor in
23450 shlibpath_overrides_runpath
=no
23452 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23453 runpath_var
=LD_RUN_PATH
23461 shlibpath_overrides_runpath
=no
23462 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23468 if test -d /usr
/nec
;then
23470 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23471 soname_spec
='$libname${shared_ext}.$major'
23472 shlibpath_var
=LD_LIBRARY_PATH
23476 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23477 version_type
=freebsd-elf
23480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23481 soname_spec
='${libname}${release}${shared_ext}$major'
23482 shlibpath_var
=LD_LIBRARY_PATH
23483 hardcode_into_libs
=yes
23484 if test "$with_gnu_ld" = yes; then
23485 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23486 shlibpath_overrides_runpath
=no
23488 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23489 shlibpath_overrides_runpath
=yes
23492 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23496 sys_lib_dlsearch_path_spec
='/usr/lib'
23501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23502 soname_spec
='${libname}${release}${shared_ext}$major'
23503 shlibpath_var
=LD_LIBRARY_PATH
23510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23511 echo "${ECHO_T}$dynamic_linker" >&6; }
23512 test "$dynamic_linker" = no
&& can_build_shared
=no
23514 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23515 if test "$GCC" = yes; then
23516 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23519 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23521 hardcode_action_F77
=
23522 if test -n "$hardcode_libdir_flag_spec_F77" || \
23523 test -n "$runpath_var_F77" || \
23524 test "X$hardcode_automatic_F77" = "Xyes" ; then
23526 # We can hardcode non-existant directories.
23527 if test "$hardcode_direct_F77" != no
&&
23528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23529 # have to relink, otherwise we might link with an installed library
23530 # when we should be linking with a yet-to-be-installed one
23531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23532 test "$hardcode_minus_L_F77" != no
; then
23533 # Linking always hardcodes the temporary library directory.
23534 hardcode_action_F77
=relink
23536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23537 hardcode_action_F77
=immediate
23540 # We cannot hardcode anything, or else we can only hardcode existing
23542 hardcode_action_F77
=unsupported
23544 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23545 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23547 if test "$hardcode_action_F77" = relink
; then
23548 # Fast installation is not supported
23549 enable_fast_install
=no
23550 elif test "$shlibpath_overrides_runpath" = yes ||
23551 test "$enable_shared" = no
; then
23552 # Fast installation is not necessary
23553 enable_fast_install
=needless
23557 # The else clause should only fire when bootstrapping the
23558 # libtool distribution, otherwise you forgot to ship ltmain.sh
23559 # with your package, and you will get complaints that there are
23560 # no rules to generate ltmain.sh.
23561 if test -f "$ltmain"; then
23562 # See if we are running on zsh, and set the options which allow our commands through
23563 # without removal of \ escapes.
23564 if test -n "${ZSH_VERSION+set}" ; then
23565 setopt NO_GLOB_SUBST
23567 # Now quote all the things that may contain metacharacters while being
23568 # careful not to overquote the AC_SUBSTed values. We take copies of the
23569 # variables and quote the copies for generation of the libtool script.
23570 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23574 deplibs_check_method reload_flag reload_cmds need_locks \
23575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23576 lt_cv_sys_global_symbol_to_c_name_address \
23577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23578 old_postinstall_cmds old_postuninstall_cmds \
23582 lt_prog_compiler_wl_F77 \
23583 lt_prog_compiler_pic_F77 \
23584 lt_prog_compiler_static_F77 \
23585 lt_prog_compiler_no_builtin_flag_F77 \
23586 export_dynamic_flag_spec_F77 \
23587 thread_safe_flag_spec_F77 \
23588 whole_archive_flag_spec_F77 \
23589 enable_shared_with_static_runtimes_F77 \
23590 old_archive_cmds_F77 \
23591 old_archive_from_new_cmds_F77 \
23592 predep_objects_F77 \
23593 postdep_objects_F77 \
23596 compiler_lib_search_path_F77 \
23598 archive_expsym_cmds_F77 \
23599 postinstall_cmds_F77 \
23600 postuninstall_cmds_F77 \
23601 old_archive_from_expsyms_cmds_F77 \
23602 allow_undefined_flag_F77 \
23603 no_undefined_flag_F77 \
23604 export_symbols_cmds_F77 \
23605 hardcode_libdir_flag_spec_F77 \
23606 hardcode_libdir_flag_spec_ld_F77 \
23607 hardcode_libdir_separator_F77 \
23608 hardcode_automatic_F77 \
23610 module_expsym_cmds_F77 \
23611 lt_cv_prog_compiler_c_o_F77 \
23612 exclude_expsyms_F77 \
23613 include_expsyms_F77
; do
23616 old_archive_cmds_F77 | \
23617 old_archive_from_new_cmds_F77 | \
23618 archive_cmds_F77 | \
23619 archive_expsym_cmds_F77 | \
23620 module_cmds_F77 | \
23621 module_expsym_cmds_F77 | \
23622 old_archive_from_expsyms_cmds_F77 | \
23623 export_symbols_cmds_F77 | \
23624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23625 postinstall_cmds | postuninstall_cmds | \
23626 old_postinstall_cmds | old_postuninstall_cmds | \
23627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23628 # Double-quote double-evaled strings.
23629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23638 *'\$0 --fallback-echo"')
23639 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23645 cat <<__EOF__ >> "$cfgfile"
23646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23650 # Shell to use when invoking shell scripts.
23653 # Whether or not to build shared libraries.
23654 build_libtool_libs=$enable_shared
23656 # Whether or not to build static libraries.
23657 build_old_libs=$enable_static
23659 # Whether or not to add -lc for building shared libraries.
23660 build_libtool_need_lc=$archive_cmds_need_lc_F77
23662 # Whether or not to disallow shared libs when runtime libs are static
23663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23665 # Whether or not to optimize for fast installation.
23666 fast_install=$enable_fast_install
23669 host_alias=$host_alias
23673 # The build system.
23674 build_alias=$build_alias
23678 # An echo program that does not interpret backslashes.
23683 AR_FLAGS=$lt_AR_FLAGS
23688 # LTCC compiler flags.
23689 LTCFLAGS=$lt_LTCFLAGS
23691 # A language-specific compiler.
23692 CC=$lt_compiler_F77
23694 # Is the compiler the GNU C compiler?
23700 # The linker used to build libraries.
23703 # Whether we need hard or soft links.
23706 # A BSD-compatible nm program.
23709 # A symbol stripping program
23712 # Used to examine libraries when file_magic_cmd begins "file"
23713 MAGIC_CMD=$MAGIC_CMD
23715 # Used on cygwin: DLL creation program.
23718 # Used on cygwin: object dumper.
23721 # Used on cygwin: assembler.
23724 # The name of the directory that contains temporary libtool files.
23727 # How to create reloadable object files.
23728 reload_flag=$lt_reload_flag
23729 reload_cmds=$lt_reload_cmds
23731 # How to pass a linker flag through the compiler.
23732 wl=$lt_lt_prog_compiler_wl_F77
23734 # Object file suffix (normally "o").
23735 objext="$ac_objext"
23737 # Old archive suffix (normally "a").
23740 # Shared library suffix (normally ".so").
23741 shrext_cmds='$shrext_cmds'
23743 # Executable file suffix (normally "").
23746 # Additional compiler flags for building library objects.
23747 pic_flag=$lt_lt_prog_compiler_pic_F77
23750 # What is the maximum length of a command?
23751 max_cmd_len=$lt_cv_sys_max_cmd_len
23753 # Does compiler simultaneously support -c and -o options?
23754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23756 # Must we lock files when doing compilation?
23757 need_locks=$lt_need_locks
23759 # Do we need the lib prefix for modules?
23760 need_lib_prefix=$need_lib_prefix
23762 # Do we need a version for libraries?
23763 need_version=$need_version
23765 # Whether dlopen is supported.
23766 dlopen_support=$enable_dlopen
23768 # Whether dlopen of programs is supported.
23769 dlopen_self=$enable_dlopen_self
23771 # Whether dlopen of statically linked programs is supported.
23772 dlopen_self_static=$enable_dlopen_self_static
23774 # Compiler flag to prevent dynamic linking.
23775 link_static_flag=$lt_lt_prog_compiler_static_F77
23777 # Compiler flag to turn off builtin functions.
23778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23780 # Compiler flag to allow reflexive dlopens.
23781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23783 # Compiler flag to generate shared objects directly from archives.
23784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23786 # Compiler flag to generate thread-safe objects.
23787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23789 # Library versioning type.
23790 version_type=$version_type
23792 # Format of library name prefix.
23793 libname_spec=$lt_libname_spec
23795 # List of archive names. First name is the real one, the rest are links.
23796 # The last name is the one that the linker finds with -lNAME.
23797 library_names_spec=$lt_library_names_spec
23799 # The coded name of the library, if different from the real name.
23800 soname_spec=$lt_soname_spec
23802 # Commands used to build and install an old-style archive.
23804 old_archive_cmds=$lt_old_archive_cmds_F77
23805 old_postinstall_cmds=$lt_old_postinstall_cmds
23806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23808 # Create an old-style archive from a shared archive.
23809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23811 # Create a temporary old-style archive to link instead of a shared archive.
23812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23814 # Commands used to build and install a shared archive.
23815 archive_cmds=$lt_archive_cmds_F77
23816 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23817 postinstall_cmds=$lt_postinstall_cmds
23818 postuninstall_cmds=$lt_postuninstall_cmds
23820 # Commands used to build a loadable module (assumed same as above if empty)
23821 module_cmds=$lt_module_cmds_F77
23822 module_expsym_cmds=$lt_module_expsym_cmds_F77
23824 # Commands to strip libraries.
23825 old_striplib=$lt_old_striplib
23826 striplib=$lt_striplib
23828 # Dependencies to place before the objects being linked to create a
23830 predep_objects=$lt_predep_objects_F77
23832 # Dependencies to place after the objects being linked to create a
23834 postdep_objects=$lt_postdep_objects_F77
23836 # Dependencies to place before the objects being linked to create a
23838 predeps=$lt_predeps_F77
23840 # Dependencies to place after the objects being linked to create a
23842 postdeps=$lt_postdeps_F77
23844 # The library search path used internally by the compiler when linking
23845 # a shared library.
23846 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23848 # Method to check whether dependent libraries are shared objects.
23849 deplibs_check_method=$lt_deplibs_check_method
23851 # Command to use when deplibs_check_method == file_magic.
23852 file_magic_cmd=$lt_file_magic_cmd
23854 # Flag that allows shared libraries with undefined symbols to be built.
23855 allow_undefined_flag=$lt_allow_undefined_flag_F77
23857 # Flag that forces no undefined symbols.
23858 no_undefined_flag=$lt_no_undefined_flag_F77
23860 # Commands used to finish a libtool library installation in a directory.
23861 finish_cmds=$lt_finish_cmds
23863 # Same as above, but a single script fragment to be evaled but not shown.
23864 finish_eval=$lt_finish_eval
23866 # Take the output of nm and produce a listing of raw symbols and C names.
23867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23869 # Transform the output of nm in a proper C declaration
23870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23872 # Transform the output of nm in a C name address pair
23873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23875 # This is the shared library runtime path variable.
23876 runpath_var=$runpath_var
23878 # This is the shared library path variable.
23879 shlibpath_var=$shlibpath_var
23881 # Is shlibpath searched before the hard-coded library search path?
23882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23884 # How to hardcode a shared library path into an executable.
23885 hardcode_action=$hardcode_action_F77
23887 # Whether we should hardcode library paths into libraries.
23888 hardcode_into_libs=$hardcode_into_libs
23890 # Flag to hardcode \$libdir into a binary during linking.
23891 # This must work even if \$libdir does not exist.
23892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23894 # If ld is used when linking, flag to hardcode \$libdir into
23895 # a binary during linking. This must work even if \$libdir does
23897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23899 # Whether we need a single -rpath flag with a separated argument.
23900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23903 # resulting binary.
23904 hardcode_direct=$hardcode_direct_F77
23906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23907 # resulting binary.
23908 hardcode_minus_L=$hardcode_minus_L_F77
23910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23911 # the resulting binary.
23912 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23914 # Set to yes if building a shared library automatically hardcodes DIR into the library
23915 # and all subsequent libraries and executables linked against it.
23916 hardcode_automatic=$hardcode_automatic_F77
23918 # Variables whose values should be saved in libtool wrapper scripts and
23919 # restored at relink time.
23920 variables_saved_for_relink="$variables_saved_for_relink"
23922 # Whether libtool must link a program against all its dependency libraries.
23923 link_all_deplibs=$link_all_deplibs_F77
23925 # Compile-time system search path for libraries
23926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23928 # Run-time system search path for libraries
23929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23931 # Fix the shell variable \$srcfile for the compiler.
23932 fix_srcfile_path="$fix_srcfile_path_F77"
23934 # Set to yes if exported symbols are required.
23935 always_export_symbols=$always_export_symbols_F77
23937 # The commands to list exported symbols.
23938 export_symbols_cmds=$lt_export_symbols_cmds_F77
23940 # The commands to extract the exported symbol list from a shared archive.
23941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23943 # Symbols that should not be listed in the preloaded symbols.
23944 exclude_expsyms=$lt_exclude_expsyms_F77
23946 # Symbols that must always be exported.
23947 include_expsyms=$lt_include_expsyms_F77
23949 # ### END LIBTOOL TAG CONFIG: $tagname
23955 # If there is no Makefile yet, we rely on a make rule to execute
23956 # `config.status --recheck' to rerun these tests and create the
23957 # libtool script then.
23958 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23959 if test -f "$ltmain_in"; then
23960 test -f Makefile
&& make "$ltmain"
23966 ac_cpp
='$CPP $CPPFLAGS'
23967 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23968 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23969 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23979 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23981 ac_cpp
='$CPP $CPPFLAGS'
23982 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23987 # Source file extension for Java test sources.
23990 # Object file extension for compiled Java test sources.
23994 # Code to be used in simple compile tests
23995 lt_simple_compile_test_code
="class foo {}\n"
23997 # Code to be used in simple link tests
23998 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
24000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24002 # If no C compiler was specified, use CC.
24005 # If no C compiler flags were specified, use CFLAGS.
24006 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
24008 # Allow CC to be a program name with arguments.
24012 # save warnings/boilerplate of simple test code
24013 ac_outfile
=conftest.
$ac_objext
24014 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
24015 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24016 _lt_compiler_boilerplate
=`cat conftest.err`
24019 ac_outfile
=conftest.
$ac_objext
24020 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
24021 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24022 _lt_linker_boilerplate
=`cat conftest.err`
24026 # Allow CC to be a program name with arguments.
24031 for cc_temp
in $compiler""; do
24033 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24034 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24039 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24042 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24043 archive_cmds_need_lc_GCJ
=no
24045 old_archive_cmds_GCJ
=$old_archive_cmds
24048 lt_prog_compiler_no_builtin_flag_GCJ
=
24050 if test "$GCC" = yes; then
24051 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
24054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24059 lt_cv_prog_compiler_rtti_exceptions
=no
24060 ac_outfile
=conftest.
$ac_objext
24061 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24062 lt_compiler_flag
="-fno-rtti -fno-exceptions"
24063 # Insert the option either (1) after the last *FLAGS variable, or
24064 # (2) before a word containing "conftest.", or (3) at the end.
24065 # Note that $ac_compile itself does not contain backslashes and begins
24066 # with a dollar sign (not a hyphen), so the echo should work correctly.
24067 # The option is referenced via a variable to avoid confusing sed.
24068 lt_compile
=`echo "$ac_compile" | $SED \
24069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24071 -e 's:$: $lt_compiler_flag:'`
24072 (eval echo "\"\$as_me:24072: $lt_compile\"" >&5)
24073 (eval "$lt_compile" 2>conftest.err
)
24075 cat conftest.err
>&5
24076 echo "$as_me:24076: \$? = $ac_status" >&5
24077 if (exit $ac_status) && test -s "$ac_outfile"; then
24078 # The compiler can only warn and ignore the option if not recognized
24079 # So say no if there are warnings other than the usual output.
24080 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24081 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24082 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24083 lt_cv_prog_compiler_rtti_exceptions
=yes
24089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24092 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
24093 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24100 lt_prog_compiler_wl_GCJ
=
24101 lt_prog_compiler_pic_GCJ
=
24102 lt_prog_compiler_static_GCJ
=
24104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24107 if test "$GCC" = yes; then
24108 lt_prog_compiler_wl_GCJ
='-Wl,'
24109 lt_prog_compiler_static_GCJ
='-static'
24113 # All AIX code is PIC.
24114 if test "$host_cpu" = ia64
; then
24115 # AIX 5 now supports IA64 processor
24116 lt_prog_compiler_static_GCJ
='-Bstatic'
24121 # FIXME: we need at least 68020 code to build shared libraries, but
24122 # adding the `-m68020' flag to GCC prevents building anything better,
24124 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
24127 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
24128 # PIC is the default for these OSes.
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 darwin
* | rhapsody
*)
24138 # PIC is the default on this platform
24139 # Common symbols not allowed in MH_DYLIB files
24140 lt_prog_compiler_pic_GCJ
='-fno-common'
24144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24145 # Instead, we relocate shared libraries at runtime.
24149 # Just because we use GCC doesn't mean we suddenly get shared libraries
24150 # on systems that don't support them.
24151 lt_prog_compiler_can_build_shared_GCJ
=no
24156 if test -d /usr
/nec
; then
24157 lt_prog_compiler_pic_GCJ
=-Kconform_pic
24162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24163 # not for PA HP-UX.
24169 lt_prog_compiler_pic_GCJ
='-fPIC'
24175 lt_prog_compiler_pic_GCJ
='-fPIC'
24179 # PORTME Check for flag to pass linker flags through the system compiler.
24182 lt_prog_compiler_wl_GCJ
='-Wl,'
24183 if test "$host_cpu" = ia64
; then
24184 # AIX 5 now supports IA64 processor
24185 lt_prog_compiler_static_GCJ
='-Bstatic'
24187 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
24191 # PIC is the default on this platform
24192 # Common symbols not allowed in MH_DYLIB files
24193 case $cc_basename in
24195 lt_prog_compiler_pic_GCJ
='-qnocommon'
24196 lt_prog_compiler_wl_GCJ
='-Wl,'
24201 mingw
* | pw32
* | os2
*)
24202 # This hack is so that the source file can tell whether it is being
24203 # built for inclusion in a dll (and should export symbols for example).
24204 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
24207 hpux9
* | hpux10
* | hpux11
*)
24208 lt_prog_compiler_wl_GCJ
='-Wl,'
24209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24210 # not for PA HP-UX.
24216 lt_prog_compiler_pic_GCJ
='+Z'
24219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24220 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
24223 irix5
* | irix6
* | nonstopux
*)
24224 lt_prog_compiler_wl_GCJ
='-Wl,'
24225 # PIC (with -KPIC) is the default.
24226 lt_prog_compiler_static_GCJ
='-non_shared'
24230 lt_prog_compiler_pic_GCJ
='-KPIC'
24231 lt_prog_compiler_static_GCJ
='-Bstatic'
24235 case $cc_basename in
24237 lt_prog_compiler_wl_GCJ
='-Wl,'
24238 lt_prog_compiler_pic_GCJ
='-KPIC'
24239 lt_prog_compiler_static_GCJ
='-static'
24241 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
24242 # Portland Group compilers (*not* the Pentium gcc compiler,
24243 # which looks to be a dead project)
24244 lt_prog_compiler_wl_GCJ
='-Wl,'
24245 lt_prog_compiler_pic_GCJ
='-fpic'
24246 lt_prog_compiler_static_GCJ
='-Bstatic'
24249 lt_prog_compiler_wl_GCJ
='-Wl,'
24250 # All Alpha code is PIC.
24251 lt_prog_compiler_static_GCJ
='-non_shared'
24256 osf3
* | osf4
* | osf5
*)
24257 lt_prog_compiler_wl_GCJ
='-Wl,'
24258 # All OSF/1 code is PIC.
24259 lt_prog_compiler_static_GCJ
='-non_shared'
24263 lt_prog_compiler_pic_GCJ
='-KPIC'
24264 lt_prog_compiler_static_GCJ
='-Bstatic'
24265 case $cc_basename in
24266 f77
* | f90
* | f95
*)
24267 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
24269 lt_prog_compiler_wl_GCJ
='-Wl,';;
24274 lt_prog_compiler_wl_GCJ
='-Qoption ld '
24275 lt_prog_compiler_pic_GCJ
='-PIC'
24276 lt_prog_compiler_static_GCJ
='-Bstatic'
24279 sysv4 | sysv4.2uw2
* | sysv4.3
*)
24280 lt_prog_compiler_wl_GCJ
='-Wl,'
24281 lt_prog_compiler_pic_GCJ
='-KPIC'
24282 lt_prog_compiler_static_GCJ
='-Bstatic'
24286 if test -d /usr
/nec
;then
24287 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
24288 lt_prog_compiler_static_GCJ
='-Bstatic'
24292 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
24293 lt_prog_compiler_wl_GCJ
='-Wl,'
24294 lt_prog_compiler_pic_GCJ
='-KPIC'
24295 lt_prog_compiler_static_GCJ
='-Bstatic'
24299 lt_prog_compiler_wl_GCJ
='-Wl,'
24300 lt_prog_compiler_can_build_shared_GCJ
=no
24304 lt_prog_compiler_pic_GCJ
='-pic'
24305 lt_prog_compiler_static_GCJ
='-Bstatic'
24309 lt_prog_compiler_can_build_shared_GCJ
=no
24314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24315 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24318 # Check to make sure the PIC flag actually works.
24320 if test -n "$lt_prog_compiler_pic_GCJ"; then
24322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24324 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 lt_prog_compiler_pic_works_GCJ
=no
24328 ac_outfile
=conftest.
$ac_objext
24329 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24330 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
24331 # Insert the option either (1) after the last *FLAGS variable, or
24332 # (2) before a word containing "conftest.", or (3) at the end.
24333 # Note that $ac_compile itself does not contain backslashes and begins
24334 # with a dollar sign (not a hyphen), so the echo should work correctly.
24335 # The option is referenced via a variable to avoid confusing sed.
24336 lt_compile
=`echo "$ac_compile" | $SED \
24337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24339 -e 's:$: $lt_compiler_flag:'`
24340 (eval echo "\"\$as_me:24340: $lt_compile\"" >&5)
24341 (eval "$lt_compile" 2>conftest.err
)
24343 cat conftest.err
>&5
24344 echo "$as_me:24344: \$? = $ac_status" >&5
24345 if (exit $ac_status) && test -s "$ac_outfile"; then
24346 # The compiler can only warn and ignore the option if not recognized
24347 # So say no if there are warnings other than the usual output.
24348 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
24349 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24350 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
24351 lt_prog_compiler_pic_works_GCJ
=yes
24357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24360 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
24361 case $lt_prog_compiler_pic_GCJ in
24363 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
24366 lt_prog_compiler_pic_GCJ
=
24367 lt_prog_compiler_can_build_shared_GCJ
=no
24372 # For platforms which do not support PIC, -DPIC is meaningless:
24374 lt_prog_compiler_pic_GCJ
=
24377 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
24382 # Check to make sure the static flag actually works.
24384 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
24385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24387 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24390 lt_prog_compiler_static_works_GCJ
=no
24391 save_LDFLAGS
="$LDFLAGS"
24392 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
24393 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
24394 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
24395 # The linker can only warn and ignore the option if not recognized
24396 # So say no if there are warnings
24397 if test -s conftest.err
; then
24398 # Append any errors to the config.log.
24399 cat conftest.err
1>&5
24400 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
24401 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
24402 if diff conftest.exp conftest.er2
>/dev
/null
; then
24403 lt_prog_compiler_static_works_GCJ
=yes
24406 lt_prog_compiler_static_works_GCJ
=yes
24410 LDFLAGS
="$save_LDFLAGS"
24413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24414 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24416 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
24419 lt_prog_compiler_static_GCJ
=
24423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24425 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24426 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 lt_cv_prog_compiler_c_o_GCJ
=no
24429 $rm -r conftest
2>/dev
/null
24433 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24435 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24436 # Insert the option either (1) after the last *FLAGS variable, or
24437 # (2) before a word containing "conftest.", or (3) at the end.
24438 # Note that $ac_compile itself does not contain backslashes and begins
24439 # with a dollar sign (not a hyphen), so the echo should work correctly.
24440 lt_compile
=`echo "$ac_compile" | $SED \
24441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24443 -e 's:$: $lt_compiler_flag:'`
24444 (eval echo "\"\$as_me:24444: $lt_compile\"" >&5)
24445 (eval "$lt_compile" 2>out
/conftest.err
)
24447 cat out
/conftest.err
>&5
24448 echo "$as_me:24448: \$? = $ac_status" >&5
24449 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24451 # The compiler can only warn and ignore the option if not recognized
24452 # So say no if there are warnings
24453 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
24454 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24455 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24456 lt_cv_prog_compiler_c_o_GCJ
=yes
24461 # SGI C++ compiler will create directory out/ii_files/ for
24462 # template instantiation
24463 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
24464 $rm out
/* && rmdir out
24470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24474 hard_links
="nottested"
24475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
24476 # do not overwrite the value of need_locks provided by the user
24477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24481 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24483 ln conftest.a conftest.b
2>&5 || hard_links
=no
24484 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24485 { echo "$as_me:$LINENO: result: $hard_links" >&5
24486 echo "${ECHO_T}$hard_links" >&6; }
24487 if test "$hard_links" = no
; then
24488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24500 allow_undefined_flag_GCJ
=
24501 enable_shared_with_static_runtimes_GCJ
=no
24503 archive_expsym_cmds_GCJ
=
24504 old_archive_From_new_cmds_GCJ
=
24505 old_archive_from_expsyms_cmds_GCJ
=
24506 export_dynamic_flag_spec_GCJ
=
24507 whole_archive_flag_spec_GCJ
=
24508 thread_safe_flag_spec_GCJ
=
24509 hardcode_libdir_flag_spec_GCJ
=
24510 hardcode_libdir_flag_spec_ld_GCJ
=
24511 hardcode_libdir_separator_GCJ
=
24512 hardcode_direct_GCJ
=no
24513 hardcode_minus_L_GCJ
=no
24514 hardcode_shlibpath_var_GCJ
=unsupported
24515 link_all_deplibs_GCJ
=unknown
24516 hardcode_automatic_GCJ
=no
24518 module_expsym_cmds_GCJ
=
24519 always_export_symbols_GCJ
=no
24520 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24521 # include_expsyms should be a list of space-separated symbols to be *always*
24522 # included in the symbol list
24523 include_expsyms_GCJ
=
24524 # exclude_expsyms can be an extended regexp of symbols to exclude
24525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24527 # as well as any symbol that contains `d'.
24528 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
24529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24530 # platforms (ab)use it in PIC code, but their linkers get confused if
24531 # the symbol is explicitly referenced. Since portable code cannot
24532 # rely on this symbol name, it's probably fine to never include it in
24533 # preloaded symbol tables.
24534 extract_expsyms_cmds
=
24535 # Just being paranoid about ensuring that cc_basename is set.
24536 for cc_temp
in $compiler""; do
24538 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24539 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24544 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24547 cygwin
* | mingw
* | pw32
*)
24548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24549 # When not using gcc, we currently assume that we are using
24550 # Microsoft Visual C++.
24551 if test "$GCC" != yes; then
24556 # we just hope/assume this is gcc and not c89 (= MSVC++)
24565 if test "$with_gnu_ld" = yes; then
24566 # If archive_cmds runs LD, not CC, wlarc should be empty
24569 # Set some defaults for GNU ld with shared library support. These
24570 # are reset later if shared libraries are not supported. Putting them
24571 # here allows them to be overridden if necessary.
24572 runpath_var
=LD_RUN_PATH
24573 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
24574 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
24575 # ancient GNU ld didn't support --whole-archive et. al.
24576 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
24577 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24579 whole_archive_flag_spec_GCJ
=
24581 supports_anon_versioning
=no
24582 case `$LD -v 2>/dev/null` in
24583 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
24584 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
24585 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
24586 *\
2.11.
*) ;; # other 2.11 versions
24587 *) supports_anon_versioning
=yes ;;
24590 # See if GNU ld supports shared libraries.
24592 aix3
* | aix4
* | aix5
*)
24593 # On AIX/PPC, the GNU linker is very broken
24594 if test "$host_cpu" != ia64
; then
24598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24599 *** to be unable to reliably create shared libraries on AIX.
24600 *** Therefore, libtool is disabling shared libraries support. If you
24601 *** really care for shared libraries, you may want to modify your PATH
24602 *** so that a non-GNU linker is found, and then restart.
24609 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)'
24610 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24611 hardcode_minus_L_GCJ
=yes
24613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24614 # that the semantics of dynamic libraries on AmigaOS, at least up
24615 # to version 4, is to share data among multiple programs linked
24616 # with the same dynamic library. Since this doesn't match the
24617 # behavior of shared libraries on other platforms, we can't use
24623 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24624 allow_undefined_flag_GCJ
=unsupported
24625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24626 # support --undefined. This deserves some investigation. FIXME
24627 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24633 cygwin
* | mingw
* | pw32
*)
24634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24635 # as there is no search path for DLLs.
24636 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24637 allow_undefined_flag_GCJ
=unsupported
24638 always_export_symbols_GCJ
=no
24639 enable_shared_with_static_runtimes_GCJ
=yes
24640 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24642 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
24643 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24644 # If the export-symbols file already is a .def file (1st line
24645 # is EXPORTS), use it as is; otherwise, prepend...
24646 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24647 cp $export_symbols $output_objdir/$soname.def;
24649 echo EXPORTS > $output_objdir/$soname.def;
24650 cat $export_symbols >> $output_objdir/$soname.def;
24652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24659 hardcode_direct_GCJ
=no
24660 hardcode_shlibpath_var_GCJ
=no
24661 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24662 export_dynamic_flag_spec_GCJ
='${wl}-E'
24663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24664 # Instead, shared libraries are loaded at an image base (0x10000000 by
24665 # default) and relocated if they conflict, which is a slow very memory
24666 # consuming and fragmenting process. To avoid this, we pick a random,
24667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24669 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'
24670 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'
24674 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24676 case $cc_basename,$host_cpu in
24677 pgcc
*) # Portland Group C compiler
24678 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'
24679 tmp_addflag
=' $pic_flag'
24681 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
24682 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'
24683 tmp_addflag
=' $pic_flag -Mnomain' ;;
24684 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
24685 tmp_addflag
=' -i_dynamic' ;;
24686 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
24687 tmp_addflag
=' -i_dynamic -nofor_main' ;;
24688 ifc
* | ifort
*) # Intel Fortran compiler
24689 tmp_addflag
=' -nofor_main' ;;
24691 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24693 if test $supports_anon_versioning = yes; then
24694 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
24695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24696 $echo "local: *; };" >> $output_objdir/$libname.ver~
24697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24705 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24706 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24709 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24710 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24715 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
24719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24720 *** create shared libraries on Solaris systems. Therefore, libtool
24721 *** is disabling shared libraries support. We urge you to upgrade GNU
24722 *** binutils to release 2.9.1 or newer. Another option is to modify
24723 *** your PATH or compiler configuration so that the native linker is
24724 *** used, and then restart.
24727 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24728 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24729 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24735 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
24736 case `$LD -v 2>&1` in
24737 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
24741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24742 *** reliably create shared libraries on SCO systems. Therefore, libtool
24743 *** is disabling shared libraries support. We urge you to upgrade GNU
24744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24745 *** your PATH or compiler configuration so that the native linker is
24746 *** used, and then restart.
24751 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24752 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24753 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24754 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24763 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24765 hardcode_direct_GCJ
=yes
24766 hardcode_shlibpath_var_GCJ
=no
24770 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
24771 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24772 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24779 if test "$ld_shlibs_GCJ" = no
; then
24781 hardcode_libdir_flag_spec_GCJ
=
24782 export_dynamic_flag_spec_GCJ
=
24783 whole_archive_flag_spec_GCJ
=
24786 # PORTME fill in a description of your system's linker (not GNU ld)
24789 allow_undefined_flag_GCJ
=unsupported
24790 always_export_symbols_GCJ
=yes
24791 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'
24792 # Note: this linker hardcodes the directories in LIBPATH if there
24793 # are no directories specified by -L.
24794 hardcode_minus_L_GCJ
=yes
24795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24796 # Neither direct hardcoding nor static linking is supported with a
24798 hardcode_direct_GCJ
=unsupported
24803 if test "$host_cpu" = ia64
; then
24804 # On IA64, the linker does run time linking by default, so we don't
24805 # have to do anything special.
24806 aix_use_runtimelinking
=no
24807 exp_sym_flag
='-Bexport'
24810 # If we're using GNU nm, then we don't want the "-C" option.
24811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24812 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
24813 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'
24815 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'
24817 aix_use_runtimelinking
=no
24819 # Test if we are trying to use run time linking or normal
24820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24821 # need to do runtime linking.
24822 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
24823 for ld_flag
in $LDFLAGS; do
24824 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
24825 aix_use_runtimelinking
=yes
24832 exp_sym_flag
='-bexport'
24833 no_entry_flag
='-bnoentry'
24836 # When large executables or shared objects are built, AIX ld can
24837 # have problems creating the table of contents. If linking a library
24838 # or program results in "error TOC overflow" add -mminimal-toc to
24839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24842 archive_cmds_GCJ
=''
24843 hardcode_direct_GCJ
=yes
24844 hardcode_libdir_separator_GCJ
=':'
24845 link_all_deplibs_GCJ
=yes
24847 if test "$GCC" = yes; then
24848 case $host_os in aix4.
[012]|aix4.
[012].
*)
24849 # We only want to do this on AIX 4.2 and lower, the check
24850 # below for broken collect2 doesn't work under 4.3+
24851 collect2name
=`${CC} -print-prog-name=collect2`
24852 if test -f "$collect2name" && \
24853 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
24855 # We have reworked collect2
24856 hardcode_direct_GCJ
=yes
24858 # We have old collect2
24859 hardcode_direct_GCJ
=unsupported
24860 # It fails to find uninstalled libraries when the uninstalled
24861 # path is not listed in the libpath. Setting hardcode_minus_L
24862 # to unsupported forces relinking
24863 hardcode_minus_L_GCJ
=yes
24864 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24865 hardcode_libdir_separator_GCJ
=
24869 shared_flag
='-shared'
24870 if test "$aix_use_runtimelinking" = yes; then
24871 shared_flag
="$shared_flag "'${wl}-G'
24875 if test "$host_cpu" = ia64
; then
24876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24877 # chokes on -Wl,-G. The following line is correct:
24880 if test "$aix_use_runtimelinking" = yes; then
24881 shared_flag
='${wl}-G'
24883 shared_flag
='${wl}-bM:SRE'
24888 # It seems that -bexpall does not export symbols beginning with
24889 # underscore (_), so it is better to generate a list of symbols to export.
24890 always_export_symbols_GCJ
=yes
24891 if test "$aix_use_runtimelinking" = yes; then
24892 # Warning - without using the other runtime loading flags (-brtl),
24893 # -berok will link without error, but may produce a broken library.
24894 allow_undefined_flag_GCJ
='-berok'
24895 # Determine the default libpath from the value encoded in an empty executable.
24896 cat >conftest.
$ac_ext <<_ACEOF
24899 cat confdefs.h
>>conftest.
$ac_ext
24900 cat >>conftest.
$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24911 rm -f conftest.
$ac_objext conftest
$ac_exeext
24912 if { (ac_try
="$ac_link"
24913 case "(($ac_try" in
24914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918 (eval "$ac_link") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24928 *) ac_try_echo
=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; } &&
24935 { ac_try
='test -s conftest$ac_exeext'
24936 { (case "(($ac_try" in
24937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941 (eval "$ac_try") 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24946 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24948 # Check for a 64-bit object if we didn't find anything.
24949 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; }
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24958 rm -f core conftest.err conftest.$ac_objext \
24959 conftest$ac_exeext conftest.$ac_ext
24960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963 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"
24965 if test "$host_cpu" = ia64; then
24966 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24967 allow_undefined_flag_GCJ="-z nodefs"
24968 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"
24970 # Determine the default libpath from the value encoded in an empty executable.
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24986 rm -f conftest.$ac_objext conftest$ac_exeext
24987 if { (ac_try="$ac_link"
24988 case "(($ac_try" in
24989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24990 *) ac_try_echo
=$ac_try;;
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_link") 2>conftest.er1
24995 grep -v '^ *+' conftest.er1
>conftest.err
24997 cat conftest.err
>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
25000 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25001 { (case "(($ac_try" in
25002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006 (eval "$ac_try") 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (case "(($ac_try" in
25012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25013 *) ac_try_echo
=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_try") 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25021 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25023 # Check for a 64-bit object if we didn't find anything.
25024 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; }
25027 echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.
$ac_ext >&5
25033 rm -f core conftest.err conftest.
$ac_objext \
25034 conftest
$ac_exeext conftest.
$ac_ext
25035 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
25037 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
25038 # Warning - without using the other run time loading flags,
25039 # -berok will link without error, but may produce a broken library.
25040 no_undefined_flag_GCJ
=' ${wl}-bernotok'
25041 allow_undefined_flag_GCJ
=' ${wl}-berok'
25042 # Exported symbols can be pulled into shared objects from archives
25043 whole_archive_flag_spec_GCJ
='$convenience'
25044 archive_cmds_need_lc_GCJ
=yes
25045 # This is similar to how AIX traditionally builds its shared libraries.
25046 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'
25052 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)'
25053 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25054 hardcode_minus_L_GCJ
=yes
25055 # see comment about different semantics on the GNU ld section
25060 export_dynamic_flag_spec_GCJ
=-rdynamic
25063 cygwin
* | mingw
* | pw32
*)
25064 # When not using gcc, we currently assume that we are using
25065 # Microsoft Visual C++.
25066 # hardcode_libdir_flag_spec is actually meaningless, as there is
25067 # no search path for DLLs.
25068 hardcode_libdir_flag_spec_GCJ
=' '
25069 allow_undefined_flag_GCJ
=unsupported
25070 # Tell ltmain to make .lib files, not .a files.
25072 # Tell ltmain to make .dll files, not .so files.
25074 # FIXME: Setting linknames here is a bad hack.
25075 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25076 # The linker will automatically build a .lib file if we build a DLL.
25077 old_archive_From_new_cmds_GCJ
='true'
25078 # FIXME: Should let the user specify the lib program.
25079 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
25080 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
25081 enable_shared_with_static_runtimes_GCJ
=yes
25084 darwin
* | rhapsody
*)
25086 rhapsody
* | darwin1.
[012])
25087 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
25090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25091 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25093 case ${MACOSX_DEPLOYMENT_TARGET} in
25095 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25098 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
25104 archive_cmds_need_lc_GCJ
=no
25105 hardcode_direct_GCJ
=no
25106 hardcode_automatic_GCJ
=yes
25107 hardcode_shlibpath_var_GCJ
=unsupported
25108 whole_archive_flag_spec_GCJ
=''
25109 link_all_deplibs_GCJ
=yes
25110 if test "$GCC" = yes ; then
25111 output_verbose_link_cmd
='echo'
25112 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25113 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25115 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}'
25116 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}'
25118 case $cc_basename in
25120 output_verbose_link_cmd
='echo'
25121 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25122 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25124 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}'
25125 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}'
25135 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25136 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25137 hardcode_shlibpath_var_GCJ
=no
25144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25145 # support. Future versions do this automatically, but an explicit c++rt0.o
25146 # does not break anything, and helps significantly (at the cost of a little
25149 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25150 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25151 hardcode_direct_GCJ
=yes
25152 hardcode_shlibpath_var_GCJ
=no
25155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25157 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25158 hardcode_direct_GCJ
=yes
25159 hardcode_minus_L_GCJ
=yes
25160 hardcode_shlibpath_var_GCJ
=no
25163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25164 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
25165 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25166 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25167 hardcode_direct_GCJ
=yes
25168 hardcode_shlibpath_var_GCJ
=no
25172 if test "$GCC" = yes; then
25173 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'
25175 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'
25177 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25178 hardcode_libdir_separator_GCJ
=:
25179 hardcode_direct_GCJ
=yes
25181 # hardcode_minus_L: Not really in the search PATH,
25182 # but as the default location of the library.
25183 hardcode_minus_L_GCJ
=yes
25184 export_dynamic_flag_spec_GCJ
='${wl}-E'
25188 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25189 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25191 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25193 if test "$with_gnu_ld" = no
; then
25194 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25195 hardcode_libdir_separator_GCJ
=:
25197 hardcode_direct_GCJ
=yes
25198 export_dynamic_flag_spec_GCJ
='${wl}-E'
25200 # hardcode_minus_L: Not really in the search PATH,
25201 # but as the default location of the library.
25202 hardcode_minus_L_GCJ
=yes
25207 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
25210 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25213 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25216 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25222 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25225 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25228 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25232 if test "$with_gnu_ld" = no
; then
25233 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
25234 hardcode_libdir_separator_GCJ
=:
25238 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
25239 hardcode_direct_GCJ
=no
25240 hardcode_shlibpath_var_GCJ
=no
25243 hardcode_direct_GCJ
=yes
25244 export_dynamic_flag_spec_GCJ
='${wl}-E'
25246 # hardcode_minus_L: Not really in the search PATH,
25247 # but as the default location of the library.
25248 hardcode_minus_L_GCJ
=yes
25254 irix5
* | irix6
* | nonstopux
*)
25255 if test "$GCC" = yes; then
25256 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'
25258 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'
25259 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
25261 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25262 hardcode_libdir_separator_GCJ
=:
25263 link_all_deplibs_GCJ
=yes
25267 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25268 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25270 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25272 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25273 hardcode_direct_GCJ
=yes
25274 hardcode_shlibpath_var_GCJ
=no
25278 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279 hardcode_direct_GCJ
=yes
25280 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ
=:
25282 hardcode_shlibpath_var_GCJ
=no
25286 hardcode_direct_GCJ
=yes
25287 hardcode_shlibpath_var_GCJ
=no
25288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25289 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25290 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25291 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25292 export_dynamic_flag_spec_GCJ
='${wl}-E'
25295 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
25296 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25297 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25300 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25301 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
25308 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25309 hardcode_minus_L_GCJ
=yes
25310 allow_undefined_flag_GCJ
=unsupported
25311 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'
25312 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25316 if test "$GCC" = yes; then
25317 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25318 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'
25320 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25321 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'
25323 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25324 hardcode_libdir_separator_GCJ
=:
25327 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
25328 if test "$GCC" = yes; then
25329 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
25330 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'
25331 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
25333 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
25334 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'
25335 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~
25336 $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'
25338 # Both c and cxx compiler support -rpath directly
25339 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
25341 hardcode_libdir_separator_GCJ
=:
25345 no_undefined_flag_GCJ
=' -z text'
25346 if test "$GCC" = yes; then
25348 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25349 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25350 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25353 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25355 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25357 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
25358 hardcode_shlibpath_var_GCJ
=no
25360 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
25362 # The compiler driver will combine linker options so we
25363 # cannot just pass the convience library names through
25364 # without $wl, iff we do not link with $LD.
25365 # Luckily, gcc supports the same syntax we need for Sun Studio.
25366 # Supported since Solaris 2.6 (maybe 2.5.1?)
25369 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
25371 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' ;;
25374 link_all_deplibs_GCJ
=yes
25378 if test "x$host_vendor" = xsequent
; then
25379 # Use $CC to link under sequent, because it throws in some extra .o
25380 # files that make .init and .fini sections work.
25381 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25383 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25385 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25386 hardcode_direct_GCJ
=yes
25387 hardcode_minus_L_GCJ
=yes
25388 hardcode_shlibpath_var_GCJ
=no
25392 case $host_vendor in
25394 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25395 hardcode_direct_GCJ
=yes # is this really true???
25398 ## LD is ld it makes a PLAMLIB
25399 ## CC just makes a GrossModule.
25400 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25401 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
25402 hardcode_direct_GCJ
=no
25405 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
25409 runpath_var
='LD_RUN_PATH'
25410 hardcode_shlibpath_var_GCJ
=no
25414 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415 hardcode_shlibpath_var_GCJ
=no
25416 export_dynamic_flag_spec_GCJ
='-Bexport'
25420 if test -d /usr
/nec
; then
25421 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25422 hardcode_shlibpath_var_GCJ
=no
25423 runpath_var
=LD_RUN_PATH
25424 hardcode_runpath_var
=yes
25429 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
25430 no_undefined_flag_GCJ
='${wl}-z,text'
25431 archive_cmds_need_lc_GCJ
=no
25432 hardcode_shlibpath_var_GCJ
=no
25433 runpath_var
='LD_RUN_PATH'
25435 if test "$GCC" = yes; then
25436 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25437 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25439 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25444 sysv5
* | sco3.2v5
* | sco5v6
*)
25445 # Note: We can NOT use -z defs as we might desire, because we do not
25446 # link with -lc, and that would cause any symbols used from libc to
25447 # always be unresolved, which means just about no library would
25448 # ever link correctly. If we're not using GNU ld we use -z text
25449 # though, which does catch some bad symbols but isn't as heavy-handed
25451 no_undefined_flag_GCJ
='${wl}-z,text'
25452 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
25453 archive_cmds_need_lc_GCJ
=no
25454 hardcode_shlibpath_var_GCJ
=no
25455 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25456 hardcode_libdir_separator_GCJ
=':'
25457 link_all_deplibs_GCJ
=yes
25458 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
25459 runpath_var
='LD_RUN_PATH'
25461 if test "$GCC" = yes; then
25462 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25463 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25465 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25466 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25471 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25472 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
25473 hardcode_shlibpath_var_GCJ
=no
25482 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25483 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25484 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
25487 # Do we need to explicitly link libc?
25489 case "x$archive_cmds_need_lc_GCJ" in
25491 # Assume -lc should be added
25492 archive_cmds_need_lc_GCJ
=yes
25494 if test "$enable_shared" = yes && test "$GCC" = yes; then
25495 case $archive_cmds_GCJ in
25497 # FIXME: we may have to deal with multi-command sequences.
25500 # Test whether the compiler implicitly links with -lc since on some
25501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25502 # to ld, don't add -lc before -lgcc.
25503 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25504 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25506 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>&5
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } 2>conftest.err
; then
25515 libobjs
=conftest.
$ac_objext
25517 wl
=$lt_prog_compiler_wl_GCJ
25518 pic_flag
=$lt_prog_compiler_pic_GCJ
25524 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
25525 allow_undefined_flag_GCJ
=
25526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25527 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }
25532 archive_cmds_need_lc_GCJ
=no
25534 archive_cmds_need_lc_GCJ
=yes
25536 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
25538 cat conftest.err
1>&5
25541 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25542 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25549 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25551 library_names_spec
=
25552 libname_spec
='lib$name'
25556 postuninstall_cmds
=
25560 shlibpath_overrides_runpath
=unknown
25562 dynamic_linker
="$host_os ld.so"
25563 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
25564 if test "$GCC" = yes; then
25565 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25566 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
25567 # if the path contains ";" then we assume it to be the separator
25568 # otherwise default to the standard path separator (i.e. ":") - it is
25569 # assumed that no part of a normal pathname contains ";" but that should
25570 # okay in the real world where ";" in dirpaths is itself problematic.
25571 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25573 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25576 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
25578 need_lib_prefix
=unknown
25579 hardcode_into_libs
=no
25581 # when you set need_version to no, make sure it does not cause -set_version
25582 # flags to be left without arguments
25583 need_version
=unknown
25588 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
25589 shlibpath_var
=LIBPATH
25591 # AIX 3 has no versioning support, so we append a major version to the name.
25592 soname_spec
='${libname}${release}${shared_ext}$major'
25599 hardcode_into_libs
=yes
25600 if test "$host_cpu" = ia64
; then
25601 # AIX 5 supports IA64
25602 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25603 shlibpath_var
=LD_LIBRARY_PATH
25605 # With GCC up to 2.95.x, collect2 would create an import file
25606 # for dependence libraries. The import file would start with
25607 # the line `#! .'. This would cause the generated library to
25608 # depend on `.', always an invalid library. This was fixed in
25609 # development snapshots of GCC prior to 3.0.
25611 aix4 | aix4.
[01] | aix4.
[01].
*)
25612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25614 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
25617 can_build_shared
=no
25621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25622 # soname into executable. Probably we can add versioning support to
25623 # collect2, so additional links can be useful in future.
25624 if test "$aix_use_runtimelinking" = yes; then
25625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25626 # instead of lib<name>.a to let people know that these are not
25627 # typical AIX shared libraries.
25628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25630 # We preserve .a as extension for shared libraries through AIX4.2
25631 # and later when we are not doing run time linking.
25632 library_names_spec
='${libname}${release}.a $libname.a'
25633 soname_spec
='${libname}${release}${shared_ext}$major'
25635 shlibpath_var
=LIBPATH
25640 library_names_spec
='$libname.ixlibrary $libname.a'
25641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25642 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'
25646 library_names_spec
='${libname}${shared_ext}'
25647 dynamic_linker
="$host_os ld.so"
25648 shlibpath_var
=LIBRARY_PATH
25654 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25655 soname_spec
='${libname}${release}${shared_ext}$major'
25656 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
25657 shlibpath_var
=LD_LIBRARY_PATH
25658 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25659 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
25660 # the default ld.so.conf also contains /usr/contrib/lib and
25661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25662 # libtool to hard-code these into programs
25665 cygwin
* | mingw
* | pw32
*)
25666 version_type
=windows
25671 case $GCC,$host_os in
25672 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
25673 library_names_spec
='$libname.dll.a'
25674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25675 postinstall_cmds
='base_file=`basename \${file}`~
25676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25677 dldir=$destdir/`dirname \$dlpath`~
25678 test -d \$dldir || mkdir -p \$dldir~
25679 $install_prog $dir/$dlname \$dldir/$dlname~
25680 chmod a+x \$dldir/$dlname'
25681 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25682 dlpath=$dir/\$dldll~
25684 shlibpath_overrides_runpath
=yes
25688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25689 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25690 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
25693 # MinGW DLLs use traditional 'lib' prefix
25694 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25695 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25696 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
25697 # It is most probably a Windows format PATH printed by
25698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25699 # path with ; separators, and with drive letters. We can handle the
25700 # drive letters (cygwin fileutils understands them), so leave them,
25701 # especially as we might pass files found there to a mingw objdump,
25702 # which wouldn't understand a cygwinified path. Ahh.
25703 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25705 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25709 # pw32 DLLs use 'pw' prefix rather than 'lib'
25710 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25716 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25719 dynamic_linker
='Win32 ld.exe'
25720 # FIXME: first we should search . and the directory the executable is in
25724 darwin
* | rhapsody
*)
25725 dynamic_linker
="$host_os dyld"
25726 version_type
=darwin
25729 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25730 soname_spec
='${libname}${release}${major}$shared_ext'
25731 shlibpath_overrides_runpath
=yes
25732 shlibpath_var
=DYLD_LIBRARY_PATH
25733 shrext_cmds
='.dylib'
25734 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25735 if test "$GCC" = yes; then
25736 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"`
25738 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
25740 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
25747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25748 soname_spec
='${libname}${release}${shared_ext}$major'
25749 shlibpath_var
=LD_LIBRARY_PATH
25760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25761 soname_spec
='${libname}${release}${shared_ext}$major'
25762 shlibpath_var
=LD_LIBRARY_PATH
25763 shlibpath_overrides_runpath
=no
25764 hardcode_into_libs
=yes
25765 dynamic_linker
='GNU ld.so'
25768 freebsd
* | dragonfly
*)
25769 # DragonFly does not have aout. When/if they implement a new
25770 # versioning mechanism, adjust this.
25771 if test -x /usr
/bin
/objformat
; then
25772 objformat
=`/usr/bin/objformat`
25775 freebsd
[123]*) objformat
=aout
;;
25776 *) objformat
=elf
;;
25779 version_type
=freebsd-
$objformat
25780 case $version_type in
25782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25787 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25791 shlibpath_var
=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath
=yes
25796 freebsd3.
[01]* | freebsdelf3.
[01]*)
25797 shlibpath_overrides_runpath
=yes
25798 hardcode_into_libs
=yes
25800 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
25801 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
25802 shlibpath_overrides_runpath
=no
25803 hardcode_into_libs
=yes
25805 freebsd
*) # from 4.6 on
25806 shlibpath_overrides_runpath
=yes
25807 hardcode_into_libs
=yes
25816 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25817 soname_spec
='${libname}${release}${shared_ext}$major'
25818 shlibpath_var
=LD_LIBRARY_PATH
25819 hardcode_into_libs
=yes
25822 hpux9
* | hpux10
* | hpux11
*)
25823 # Give a soname corresponding to the major version so that dld.sl refuses to
25824 # link against other versions.
25831 hardcode_into_libs
=yes
25832 dynamic_linker
="$host_os dld.so"
25833 shlibpath_var
=LD_LIBRARY_PATH
25834 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25835 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec
='${libname}${release}${shared_ext}$major'
25837 if test "X$HPUX_IA64_MODE" = X32
; then
25838 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25840 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
25842 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25846 hardcode_into_libs
=yes
25847 dynamic_linker
="$host_os dld.sl"
25848 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
25849 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
25850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25851 soname_spec
='${libname}${release}${shared_ext}$major'
25852 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25853 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
25857 dynamic_linker
="$host_os dld.sl"
25858 shlibpath_var
=SHLIB_PATH
25859 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
25860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25861 soname_spec
='${libname}${release}${shared_ext}$major'
25864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25865 postinstall_cmds
='chmod 555 $lib'
25872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25873 soname_spec
='${libname}${release}${shared_ext}$major'
25874 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
25875 shlibpath_var
=LD_LIBRARY_PATH
25876 shlibpath_overrides_runpath
=no
25877 hardcode_into_libs
=yes
25880 irix5
* | irix6
* | nonstopux
*)
25882 nonstopux
*) version_type
=nonstopux
;;
25884 if test "$lt_cv_prog_gnu_ld" = yes; then
25892 soname_spec
='${libname}${release}${shared_ext}$major'
25893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25895 irix5
* | nonstopux
*)
25896 libsuff
= shlibsuff
=
25899 case $LD in # libtool.m4 will add one of these switches to LD
25900 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
25901 libsuff
= shlibsuff
= libmagic
=32-bit;;
25902 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
25903 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
25904 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
25905 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
25906 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
25910 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
25911 shlibpath_overrides_runpath
=no
25912 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25913 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
25914 hardcode_into_libs
=yes
25917 # No shared lib support for Linux oldld, aout, or coff.
25918 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
25922 # This must be Linux ELF.
25927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec
='${libname}${release}${shared_ext}$major'
25929 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25930 shlibpath_var
=LD_LIBRARY_PATH
25931 shlibpath_overrides_runpath
=no
25932 # This implies no fast_install, which is unacceptable.
25933 # Some rework will be needed to allow for fast_install
25934 # before this can be enabled.
25935 hardcode_into_libs
=yes
25937 # Append ld.so.conf contents to the search path
25938 if test -f /etc
/ld.so.conf
; then
25939 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' ' '`
25940 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
25943 # We used to test for /lib/ld.so.1 and disable shared libraries on
25944 # powerpc, because MkLinux only supported shared libraries with the
25945 # GNU dynamic linker. Since this was broken with cross compilers,
25946 # most powerpc-linux boxes support dynamic linking these days and
25947 # people can always --disable-shared, the test was removed, and we
25948 # assume the GNU/Linux dynamic linker is in use.
25949 dynamic_linker
='GNU/Linux ld.so'
25956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25957 soname_spec
='${libname}${release}${shared_ext}$major'
25958 shlibpath_var
=LD_LIBRARY_PATH
25959 shlibpath_overrides_runpath
=no
25960 hardcode_into_libs
=yes
25961 dynamic_linker
='GNU ld.so'
25968 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
25969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25970 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25971 dynamic_linker
='NetBSD (a.out) ld.so'
25973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25974 soname_spec
='${libname}${release}${shared_ext}$major'
25975 dynamic_linker
='NetBSD ld.elf_so'
25977 shlibpath_var
=LD_LIBRARY_PATH
25978 shlibpath_overrides_runpath
=yes
25979 hardcode_into_libs
=yes
25984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 shlibpath_var
=LD_LIBRARY_PATH
25986 shlibpath_overrides_runpath
=yes
25993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25994 soname_spec
='${libname}${release}${shared_ext}$major'
25995 shlibpath_var
=LD_LIBRARY_PATH
25996 shlibpath_overrides_runpath
=yes
26001 sys_lib_dlsearch_path_spec
="/usr/lib"
26003 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26005 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
26006 *) need_version
=no
;;
26008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26009 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26010 shlibpath_var
=LD_LIBRARY_PATH
26011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26013 openbsd2.
[89] | openbsd2.
[89].
*)
26014 shlibpath_overrides_runpath
=no
26017 shlibpath_overrides_runpath
=yes
26021 shlibpath_overrides_runpath
=yes
26026 libname_spec
='$name'
26029 library_names_spec
='$libname${shared_ext} $libname.a'
26030 dynamic_linker
='OS/2 ld.exe'
26031 shlibpath_var
=LIBPATH
26034 osf3
* | osf4
* | osf5
*)
26038 soname_spec
='${libname}${release}${shared_ext}$major'
26039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26040 shlibpath_var
=LD_LIBRARY_PATH
26041 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26042 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
26049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050 soname_spec
='${libname}${release}${shared_ext}$major'
26051 shlibpath_var
=LD_LIBRARY_PATH
26052 shlibpath_overrides_runpath
=yes
26053 hardcode_into_libs
=yes
26054 # ldd complains unless libraries are executable
26055 postinstall_cmds
='chmod +x $lib'
26060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26061 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26062 shlibpath_var
=LD_LIBRARY_PATH
26063 shlibpath_overrides_runpath
=yes
26064 if test "$with_gnu_ld" = yes; then
26072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26073 soname_spec
='${libname}${release}${shared_ext}$major'
26074 shlibpath_var
=LD_LIBRARY_PATH
26075 case $host_vendor in
26077 shlibpath_overrides_runpath
=no
26079 export_dynamic_flag_spec
='${wl}-Blargedynsym'
26080 runpath_var
=LD_RUN_PATH
26088 shlibpath_overrides_runpath
=no
26089 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
26095 if test -d /usr
/nec
;then
26097 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26098 soname_spec
='$libname${shared_ext}.$major'
26099 shlibpath_var
=LD_LIBRARY_PATH
26103 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
26104 version_type
=freebsd-elf
26107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26108 soname_spec
='${libname}${release}${shared_ext}$major'
26109 shlibpath_var
=LD_LIBRARY_PATH
26110 hardcode_into_libs
=yes
26111 if test "$with_gnu_ld" = yes; then
26112 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26113 shlibpath_overrides_runpath
=no
26115 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
26116 shlibpath_overrides_runpath
=yes
26119 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
26123 sys_lib_dlsearch_path_spec
='/usr/lib'
26128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26129 soname_spec
='${libname}${release}${shared_ext}$major'
26130 shlibpath_var
=LD_LIBRARY_PATH
26137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26138 echo "${ECHO_T}$dynamic_linker" >&6; }
26139 test "$dynamic_linker" = no
&& can_build_shared
=no
26141 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
26142 if test "$GCC" = yes; then
26143 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26146 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26148 hardcode_action_GCJ
=
26149 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26150 test -n "$runpath_var_GCJ" || \
26151 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26153 # We can hardcode non-existant directories.
26154 if test "$hardcode_direct_GCJ" != no
&&
26155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26156 # have to relink, otherwise we might link with an installed library
26157 # when we should be linking with a yet-to-be-installed one
26158 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26159 test "$hardcode_minus_L_GCJ" != no
; then
26160 # Linking always hardcodes the temporary library directory.
26161 hardcode_action_GCJ
=relink
26163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26164 hardcode_action_GCJ
=immediate
26167 # We cannot hardcode anything, or else we can only hardcode existing
26169 hardcode_action_GCJ
=unsupported
26171 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26172 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26174 if test "$hardcode_action_GCJ" = relink
; then
26175 # Fast installation is not supported
26176 enable_fast_install
=no
26177 elif test "$shlibpath_overrides_runpath" = yes ||
26178 test "$enable_shared" = no
; then
26179 # Fast installation is not necessary
26180 enable_fast_install
=needless
26184 # The else clause should only fire when bootstrapping the
26185 # libtool distribution, otherwise you forgot to ship ltmain.sh
26186 # with your package, and you will get complaints that there are
26187 # no rules to generate ltmain.sh.
26188 if test -f "$ltmain"; then
26189 # See if we are running on zsh, and set the options which allow our commands through
26190 # without removal of \ escapes.
26191 if test -n "${ZSH_VERSION+set}" ; then
26192 setopt NO_GLOB_SUBST
26194 # Now quote all the things that may contain metacharacters while being
26195 # careful not to overquote the AC_SUBSTed values. We take copies of the
26196 # variables and quote the copies for generation of the libtool script.
26197 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26201 deplibs_check_method reload_flag reload_cmds need_locks \
26202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26203 lt_cv_sys_global_symbol_to_c_name_address \
26204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26205 old_postinstall_cmds old_postuninstall_cmds \
26209 lt_prog_compiler_wl_GCJ \
26210 lt_prog_compiler_pic_GCJ \
26211 lt_prog_compiler_static_GCJ \
26212 lt_prog_compiler_no_builtin_flag_GCJ \
26213 export_dynamic_flag_spec_GCJ \
26214 thread_safe_flag_spec_GCJ \
26215 whole_archive_flag_spec_GCJ \
26216 enable_shared_with_static_runtimes_GCJ \
26217 old_archive_cmds_GCJ \
26218 old_archive_from_new_cmds_GCJ \
26219 predep_objects_GCJ \
26220 postdep_objects_GCJ \
26223 compiler_lib_search_path_GCJ \
26225 archive_expsym_cmds_GCJ \
26226 postinstall_cmds_GCJ \
26227 postuninstall_cmds_GCJ \
26228 old_archive_from_expsyms_cmds_GCJ \
26229 allow_undefined_flag_GCJ \
26230 no_undefined_flag_GCJ \
26231 export_symbols_cmds_GCJ \
26232 hardcode_libdir_flag_spec_GCJ \
26233 hardcode_libdir_flag_spec_ld_GCJ \
26234 hardcode_libdir_separator_GCJ \
26235 hardcode_automatic_GCJ \
26237 module_expsym_cmds_GCJ \
26238 lt_cv_prog_compiler_c_o_GCJ \
26239 exclude_expsyms_GCJ \
26240 include_expsyms_GCJ
; do
26243 old_archive_cmds_GCJ | \
26244 old_archive_from_new_cmds_GCJ | \
26245 archive_cmds_GCJ | \
26246 archive_expsym_cmds_GCJ | \
26247 module_cmds_GCJ | \
26248 module_expsym_cmds_GCJ | \
26249 old_archive_from_expsyms_cmds_GCJ | \
26250 export_symbols_cmds_GCJ | \
26251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26252 postinstall_cmds | postuninstall_cmds | \
26253 old_postinstall_cmds | old_postuninstall_cmds | \
26254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26255 # Double-quote double-evaled strings.
26256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26265 *'\$0 --fallback-echo"')
26266 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26272 cat <<__EOF__ >> "$cfgfile"
26273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26277 # Shell to use when invoking shell scripts.
26280 # Whether or not to build shared libraries.
26281 build_libtool_libs=$enable_shared
26283 # Whether or not to build static libraries.
26284 build_old_libs=$enable_static
26286 # Whether or not to add -lc for building shared libraries.
26287 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26289 # Whether or not to disallow shared libs when runtime libs are static
26290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26292 # Whether or not to optimize for fast installation.
26293 fast_install=$enable_fast_install
26296 host_alias=$host_alias
26300 # The build system.
26301 build_alias=$build_alias
26305 # An echo program that does not interpret backslashes.
26310 AR_FLAGS=$lt_AR_FLAGS
26315 # LTCC compiler flags.
26316 LTCFLAGS=$lt_LTCFLAGS
26318 # A language-specific compiler.
26319 CC=$lt_compiler_GCJ
26321 # Is the compiler the GNU C compiler?
26327 # The linker used to build libraries.
26330 # Whether we need hard or soft links.
26333 # A BSD-compatible nm program.
26336 # A symbol stripping program
26339 # Used to examine libraries when file_magic_cmd begins "file"
26340 MAGIC_CMD=$MAGIC_CMD
26342 # Used on cygwin: DLL creation program.
26345 # Used on cygwin: object dumper.
26348 # Used on cygwin: assembler.
26351 # The name of the directory that contains temporary libtool files.
26354 # How to create reloadable object files.
26355 reload_flag=$lt_reload_flag
26356 reload_cmds=$lt_reload_cmds
26358 # How to pass a linker flag through the compiler.
26359 wl=$lt_lt_prog_compiler_wl_GCJ
26361 # Object file suffix (normally "o").
26362 objext="$ac_objext"
26364 # Old archive suffix (normally "a").
26367 # Shared library suffix (normally ".so").
26368 shrext_cmds='$shrext_cmds'
26370 # Executable file suffix (normally "").
26373 # Additional compiler flags for building library objects.
26374 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26377 # What is the maximum length of a command?
26378 max_cmd_len=$lt_cv_sys_max_cmd_len
26380 # Does compiler simultaneously support -c and -o options?
26381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26383 # Must we lock files when doing compilation?
26384 need_locks=$lt_need_locks
26386 # Do we need the lib prefix for modules?
26387 need_lib_prefix=$need_lib_prefix
26389 # Do we need a version for libraries?
26390 need_version=$need_version
26392 # Whether dlopen is supported.
26393 dlopen_support=$enable_dlopen
26395 # Whether dlopen of programs is supported.
26396 dlopen_self=$enable_dlopen_self
26398 # Whether dlopen of statically linked programs is supported.
26399 dlopen_self_static=$enable_dlopen_self_static
26401 # Compiler flag to prevent dynamic linking.
26402 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26404 # Compiler flag to turn off builtin functions.
26405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26407 # Compiler flag to allow reflexive dlopens.
26408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26410 # Compiler flag to generate shared objects directly from archives.
26411 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26413 # Compiler flag to generate thread-safe objects.
26414 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26416 # Library versioning type.
26417 version_type=$version_type
26419 # Format of library name prefix.
26420 libname_spec=$lt_libname_spec
26422 # List of archive names. First name is the real one, the rest are links.
26423 # The last name is the one that the linker finds with -lNAME.
26424 library_names_spec=$lt_library_names_spec
26426 # The coded name of the library, if different from the real name.
26427 soname_spec=$lt_soname_spec
26429 # Commands used to build and install an old-style archive.
26431 old_archive_cmds=$lt_old_archive_cmds_GCJ
26432 old_postinstall_cmds=$lt_old_postinstall_cmds
26433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26435 # Create an old-style archive from a shared archive.
26436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26438 # Create a temporary old-style archive to link instead of a shared archive.
26439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26441 # Commands used to build and install a shared archive.
26442 archive_cmds=$lt_archive_cmds_GCJ
26443 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26444 postinstall_cmds=$lt_postinstall_cmds
26445 postuninstall_cmds=$lt_postuninstall_cmds
26447 # Commands used to build a loadable module (assumed same as above if empty)
26448 module_cmds=$lt_module_cmds_GCJ
26449 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26451 # Commands to strip libraries.
26452 old_striplib=$lt_old_striplib
26453 striplib=$lt_striplib
26455 # Dependencies to place before the objects being linked to create a
26457 predep_objects=$lt_predep_objects_GCJ
26459 # Dependencies to place after the objects being linked to create a
26461 postdep_objects=$lt_postdep_objects_GCJ
26463 # Dependencies to place before the objects being linked to create a
26465 predeps=$lt_predeps_GCJ
26467 # Dependencies to place after the objects being linked to create a
26469 postdeps=$lt_postdeps_GCJ
26471 # The library search path used internally by the compiler when linking
26472 # a shared library.
26473 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26475 # Method to check whether dependent libraries are shared objects.
26476 deplibs_check_method=$lt_deplibs_check_method
26478 # Command to use when deplibs_check_method == file_magic.
26479 file_magic_cmd=$lt_file_magic_cmd
26481 # Flag that allows shared libraries with undefined symbols to be built.
26482 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26484 # Flag that forces no undefined symbols.
26485 no_undefined_flag=$lt_no_undefined_flag_GCJ
26487 # Commands used to finish a libtool library installation in a directory.
26488 finish_cmds=$lt_finish_cmds
26490 # Same as above, but a single script fragment to be evaled but not shown.
26491 finish_eval=$lt_finish_eval
26493 # Take the output of nm and produce a listing of raw symbols and C names.
26494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26496 # Transform the output of nm in a proper C declaration
26497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26499 # Transform the output of nm in a C name address pair
26500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26502 # This is the shared library runtime path variable.
26503 runpath_var=$runpath_var
26505 # This is the shared library path variable.
26506 shlibpath_var=$shlibpath_var
26508 # Is shlibpath searched before the hard-coded library search path?
26509 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26511 # How to hardcode a shared library path into an executable.
26512 hardcode_action=$hardcode_action_GCJ
26514 # Whether we should hardcode library paths into libraries.
26515 hardcode_into_libs=$hardcode_into_libs
26517 # Flag to hardcode \$libdir into a binary during linking.
26518 # This must work even if \$libdir does not exist.
26519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26521 # If ld is used when linking, flag to hardcode \$libdir into
26522 # a binary during linking. This must work even if \$libdir does
26524 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26526 # Whether we need a single -rpath flag with a separated argument.
26527 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26529 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26530 # resulting binary.
26531 hardcode_direct=$hardcode_direct_GCJ
26533 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26534 # resulting binary.
26535 hardcode_minus_L=$hardcode_minus_L_GCJ
26537 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26538 # the resulting binary.
26539 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26541 # Set to yes if building a shared library automatically hardcodes DIR into the library
26542 # and all subsequent libraries and executables linked against it.
26543 hardcode_automatic=$hardcode_automatic_GCJ
26545 # Variables whose values should be saved in libtool wrapper scripts and
26546 # restored at relink time.
26547 variables_saved_for_relink="$variables_saved_for_relink"
26549 # Whether libtool must link a program against all its dependency libraries.
26550 link_all_deplibs=$link_all_deplibs_GCJ
26552 # Compile-time system search path for libraries
26553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26555 # Run-time system search path for libraries
26556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26558 # Fix the shell variable \$srcfile for the compiler.
26559 fix_srcfile_path="$fix_srcfile_path_GCJ"
26561 # Set to yes if exported symbols are required.
26562 always_export_symbols=$always_export_symbols_GCJ
26564 # The commands to list exported symbols.
26565 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26567 # The commands to extract the exported symbol list from a shared archive.
26568 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26570 # Symbols that should not be listed in the preloaded symbols.
26571 exclude_expsyms=$lt_exclude_expsyms_GCJ
26573 # Symbols that must always be exported.
26574 include_expsyms=$lt_include_expsyms_GCJ
26576 # ### END LIBTOOL TAG CONFIG: $tagname
26582 # If there is no Makefile yet, we rely on a make rule to execute
26583 # `config.status --recheck' to rerun these tests and create the
26584 # libtool script then.
26585 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26586 if test -f "$ltmain_in"; then
26587 test -f Makefile
&& make "$ltmain"
26593 ac_cpp
='$CPP $CPPFLAGS'
26594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26607 ac_cpp
='$CPP $CPPFLAGS'
26608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26613 # Source file extension for RC test sources.
26616 # Object file extension for compiled RC test sources.
26620 # Code to be used in simple compile tests
26621 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26623 # Code to be used in simple link tests
26624 lt_simple_link_test_code
="$lt_simple_compile_test_code"
26626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26628 # If no C compiler was specified, use CC.
26631 # If no C compiler flags were specified, use CFLAGS.
26632 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
26634 # Allow CC to be a program name with arguments.
26638 # save warnings/boilerplate of simple test code
26639 ac_outfile
=conftest.
$ac_objext
26640 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
26641 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26642 _lt_compiler_boilerplate
=`cat conftest.err`
26645 ac_outfile
=conftest.
$ac_objext
26646 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
26647 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
26648 _lt_linker_boilerplate
=`cat conftest.err`
26652 # Allow CC to be a program name with arguments.
26657 for cc_temp
in $compiler""; do
26659 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
26660 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
26665 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26667 lt_cv_prog_compiler_c_o_RC
=yes
26669 # The else clause should only fire when bootstrapping the
26670 # libtool distribution, otherwise you forgot to ship ltmain.sh
26671 # with your package, and you will get complaints that there are
26672 # no rules to generate ltmain.sh.
26673 if test -f "$ltmain"; then
26674 # See if we are running on zsh, and set the options which allow our commands through
26675 # without removal of \ escapes.
26676 if test -n "${ZSH_VERSION+set}" ; then
26677 setopt NO_GLOB_SUBST
26679 # Now quote all the things that may contain metacharacters while being
26680 # careful not to overquote the AC_SUBSTed values. We take copies of the
26681 # variables and quote the copies for generation of the libtool script.
26682 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26686 deplibs_check_method reload_flag reload_cmds need_locks \
26687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26688 lt_cv_sys_global_symbol_to_c_name_address \
26689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26690 old_postinstall_cmds old_postuninstall_cmds \
26694 lt_prog_compiler_wl_RC \
26695 lt_prog_compiler_pic_RC \
26696 lt_prog_compiler_static_RC \
26697 lt_prog_compiler_no_builtin_flag_RC \
26698 export_dynamic_flag_spec_RC \
26699 thread_safe_flag_spec_RC \
26700 whole_archive_flag_spec_RC \
26701 enable_shared_with_static_runtimes_RC \
26702 old_archive_cmds_RC \
26703 old_archive_from_new_cmds_RC \
26704 predep_objects_RC \
26705 postdep_objects_RC \
26708 compiler_lib_search_path_RC \
26710 archive_expsym_cmds_RC \
26711 postinstall_cmds_RC \
26712 postuninstall_cmds_RC \
26713 old_archive_from_expsyms_cmds_RC \
26714 allow_undefined_flag_RC \
26715 no_undefined_flag_RC \
26716 export_symbols_cmds_RC \
26717 hardcode_libdir_flag_spec_RC \
26718 hardcode_libdir_flag_spec_ld_RC \
26719 hardcode_libdir_separator_RC \
26720 hardcode_automatic_RC \
26722 module_expsym_cmds_RC \
26723 lt_cv_prog_compiler_c_o_RC \
26724 exclude_expsyms_RC \
26725 include_expsyms_RC
; do
26728 old_archive_cmds_RC | \
26729 old_archive_from_new_cmds_RC | \
26730 archive_cmds_RC | \
26731 archive_expsym_cmds_RC | \
26733 module_expsym_cmds_RC | \
26734 old_archive_from_expsyms_cmds_RC | \
26735 export_symbols_cmds_RC | \
26736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26737 postinstall_cmds | postuninstall_cmds | \
26738 old_postinstall_cmds | old_postuninstall_cmds | \
26739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
26740 # Double-quote double-evaled strings.
26741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26750 *'\$0 --fallback-echo"')
26751 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26757 cat <<__EOF__ >> "$cfgfile"
26758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26762 # Shell to use when invoking shell scripts.
26765 # Whether or not to build shared libraries.
26766 build_libtool_libs=$enable_shared
26768 # Whether or not to build static libraries.
26769 build_old_libs=$enable_static
26771 # Whether or not to add -lc for building shared libraries.
26772 build_libtool_need_lc=$archive_cmds_need_lc_RC
26774 # Whether or not to disallow shared libs when runtime libs are static
26775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26777 # Whether or not to optimize for fast installation.
26778 fast_install=$enable_fast_install
26781 host_alias=$host_alias
26785 # The build system.
26786 build_alias=$build_alias
26790 # An echo program that does not interpret backslashes.
26795 AR_FLAGS=$lt_AR_FLAGS
26800 # LTCC compiler flags.
26801 LTCFLAGS=$lt_LTCFLAGS
26803 # A language-specific compiler.
26806 # Is the compiler the GNU C compiler?
26812 # The linker used to build libraries.
26815 # Whether we need hard or soft links.
26818 # A BSD-compatible nm program.
26821 # A symbol stripping program
26824 # Used to examine libraries when file_magic_cmd begins "file"
26825 MAGIC_CMD=$MAGIC_CMD
26827 # Used on cygwin: DLL creation program.
26830 # Used on cygwin: object dumper.
26833 # Used on cygwin: assembler.
26836 # The name of the directory that contains temporary libtool files.
26839 # How to create reloadable object files.
26840 reload_flag=$lt_reload_flag
26841 reload_cmds=$lt_reload_cmds
26843 # How to pass a linker flag through the compiler.
26844 wl=$lt_lt_prog_compiler_wl_RC
26846 # Object file suffix (normally "o").
26847 objext="$ac_objext"
26849 # Old archive suffix (normally "a").
26852 # Shared library suffix (normally ".so").
26853 shrext_cmds='$shrext_cmds'
26855 # Executable file suffix (normally "").
26858 # Additional compiler flags for building library objects.
26859 pic_flag=$lt_lt_prog_compiler_pic_RC
26862 # What is the maximum length of a command?
26863 max_cmd_len=$lt_cv_sys_max_cmd_len
26865 # Does compiler simultaneously support -c and -o options?
26866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26868 # Must we lock files when doing compilation?
26869 need_locks=$lt_need_locks
26871 # Do we need the lib prefix for modules?
26872 need_lib_prefix=$need_lib_prefix
26874 # Do we need a version for libraries?
26875 need_version=$need_version
26877 # Whether dlopen is supported.
26878 dlopen_support=$enable_dlopen
26880 # Whether dlopen of programs is supported.
26881 dlopen_self=$enable_dlopen_self
26883 # Whether dlopen of statically linked programs is supported.
26884 dlopen_self_static=$enable_dlopen_self_static
26886 # Compiler flag to prevent dynamic linking.
26887 link_static_flag=$lt_lt_prog_compiler_static_RC
26889 # Compiler flag to turn off builtin functions.
26890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26892 # Compiler flag to allow reflexive dlopens.
26893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26895 # Compiler flag to generate shared objects directly from archives.
26896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26898 # Compiler flag to generate thread-safe objects.
26899 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26901 # Library versioning type.
26902 version_type=$version_type
26904 # Format of library name prefix.
26905 libname_spec=$lt_libname_spec
26907 # List of archive names. First name is the real one, the rest are links.
26908 # The last name is the one that the linker finds with -lNAME.
26909 library_names_spec=$lt_library_names_spec
26911 # The coded name of the library, if different from the real name.
26912 soname_spec=$lt_soname_spec
26914 # Commands used to build and install an old-style archive.
26916 old_archive_cmds=$lt_old_archive_cmds_RC
26917 old_postinstall_cmds=$lt_old_postinstall_cmds
26918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26920 # Create an old-style archive from a shared archive.
26921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26923 # Create a temporary old-style archive to link instead of a shared archive.
26924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26926 # Commands used to build and install a shared archive.
26927 archive_cmds=$lt_archive_cmds_RC
26928 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26929 postinstall_cmds=$lt_postinstall_cmds
26930 postuninstall_cmds=$lt_postuninstall_cmds
26932 # Commands used to build a loadable module (assumed same as above if empty)
26933 module_cmds=$lt_module_cmds_RC
26934 module_expsym_cmds=$lt_module_expsym_cmds_RC
26936 # Commands to strip libraries.
26937 old_striplib=$lt_old_striplib
26938 striplib=$lt_striplib
26940 # Dependencies to place before the objects being linked to create a
26942 predep_objects=$lt_predep_objects_RC
26944 # Dependencies to place after the objects being linked to create a
26946 postdep_objects=$lt_postdep_objects_RC
26948 # Dependencies to place before the objects being linked to create a
26950 predeps=$lt_predeps_RC
26952 # Dependencies to place after the objects being linked to create a
26954 postdeps=$lt_postdeps_RC
26956 # The library search path used internally by the compiler when linking
26957 # a shared library.
26958 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26960 # Method to check whether dependent libraries are shared objects.
26961 deplibs_check_method=$lt_deplibs_check_method
26963 # Command to use when deplibs_check_method == file_magic.
26964 file_magic_cmd=$lt_file_magic_cmd
26966 # Flag that allows shared libraries with undefined symbols to be built.
26967 allow_undefined_flag=$lt_allow_undefined_flag_RC
26969 # Flag that forces no undefined symbols.
26970 no_undefined_flag=$lt_no_undefined_flag_RC
26972 # Commands used to finish a libtool library installation in a directory.
26973 finish_cmds=$lt_finish_cmds
26975 # Same as above, but a single script fragment to be evaled but not shown.
26976 finish_eval=$lt_finish_eval
26978 # Take the output of nm and produce a listing of raw symbols and C names.
26979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26981 # Transform the output of nm in a proper C declaration
26982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26984 # Transform the output of nm in a C name address pair
26985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26987 # This is the shared library runtime path variable.
26988 runpath_var=$runpath_var
26990 # This is the shared library path variable.
26991 shlibpath_var=$shlibpath_var
26993 # Is shlibpath searched before the hard-coded library search path?
26994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26996 # How to hardcode a shared library path into an executable.
26997 hardcode_action=$hardcode_action_RC
26999 # Whether we should hardcode library paths into libraries.
27000 hardcode_into_libs=$hardcode_into_libs
27002 # Flag to hardcode \$libdir into a binary during linking.
27003 # This must work even if \$libdir does not exist.
27004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27006 # If ld is used when linking, flag to hardcode \$libdir into
27007 # a binary during linking. This must work even if \$libdir does
27009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27011 # Whether we need a single -rpath flag with a separated argument.
27012 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27014 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27015 # resulting binary.
27016 hardcode_direct=$hardcode_direct_RC
27018 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27019 # resulting binary.
27020 hardcode_minus_L=$hardcode_minus_L_RC
27022 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27023 # the resulting binary.
27024 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27026 # Set to yes if building a shared library automatically hardcodes DIR into the library
27027 # and all subsequent libraries and executables linked against it.
27028 hardcode_automatic=$hardcode_automatic_RC
27030 # Variables whose values should be saved in libtool wrapper scripts and
27031 # restored at relink time.
27032 variables_saved_for_relink="$variables_saved_for_relink"
27034 # Whether libtool must link a program against all its dependency libraries.
27035 link_all_deplibs=$link_all_deplibs_RC
27037 # Compile-time system search path for libraries
27038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27040 # Run-time system search path for libraries
27041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27043 # Fix the shell variable \$srcfile for the compiler.
27044 fix_srcfile_path="$fix_srcfile_path_RC"
27046 # Set to yes if exported symbols are required.
27047 always_export_symbols=$always_export_symbols_RC
27049 # The commands to list exported symbols.
27050 export_symbols_cmds=$lt_export_symbols_cmds_RC
27052 # The commands to extract the exported symbol list from a shared archive.
27053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27055 # Symbols that should not be listed in the preloaded symbols.
27056 exclude_expsyms=$lt_exclude_expsyms_RC
27058 # Symbols that must always be exported.
27059 include_expsyms=$lt_include_expsyms_RC
27061 # ### END LIBTOOL TAG CONFIG: $tagname
27067 # If there is no Makefile yet, we rely on a make rule to execute
27068 # `config.status --recheck' to rerun these tests and create the
27069 # libtool script then.
27070 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27071 if test -f "$ltmain_in"; then
27072 test -f Makefile
&& make "$ltmain"
27078 ac_cpp
='$CPP $CPPFLAGS'
27079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27088 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27089 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27090 { (exit 1); exit 1; }; }
27094 # Append the new tag name to the list of available tags.
27095 if test -n "$tagname" ; then
27096 available_tags
="$available_tags $tagname"
27102 # Now substitute the updated list of available tags.
27103 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27104 mv "${ofile}T" "$ofile"
27108 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27109 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27110 { (exit 1); exit 1; }; }
27116 # This can be used to rebuild libtool when needed
27117 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
27119 # Always use our own libtool.
27120 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
27122 # Prevent multiple expansion
27144 if test "$lt_cv_dlopen_self" = "yes" ; then
27146 cat >>confdefs.h
<<\_ACEOF
27147 #define CAN_DLOPEN_SELF 1
27153 if test "$WITH_LLVMGCCDIR" = "default" ; then
27154 LLVMGCC
="llvm-gcc${EXEEXT}"
27155 LLVMGXX
="llvm-g++${EXEEXT}"
27156 LLVMGCCCOMMAND
="$LLVMGCC"
27157 LLVMGXXCOMMAND
="$LLVMGXX"
27158 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27160 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27162 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27163 set dummy
$LLVMGCC; ac_word
=$2
27164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27166 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
27174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27175 for as_dir
in $PATH
27178 test -z "$as_dir" && as_dir
=.
27179 for ac_exec_ext
in '' $ac_executable_extensions; do
27180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27181 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
27182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27192 LLVMGCC
=$ac_cv_path_LLVMGCC
27193 if test -n "$LLVMGCC"; then
27194 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27195 echo "${ECHO_T}$LLVMGCC" >&6; }
27197 { echo "$as_me:$LINENO: result: no" >&5
27198 echo "${ECHO_T}no" >&6; }
27202 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27203 set dummy
$LLVMGXX; ac_word
=$2
27204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27206 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
27214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27215 for as_dir
in $PATH
27218 test -z "$as_dir" && as_dir
=.
27219 for ac_exec_ext
in '' $ac_executable_extensions; do
27220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27221 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
27222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27232 LLVMGXX
=$ac_cv_path_LLVMGXX
27233 if test -n "$LLVMGXX"; then
27234 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27235 echo "${ECHO_T}$LLVMGXX" >&6; }
27237 { echo "$as_me:$LINENO: result: no" >&5
27238 echo "${ECHO_T}no" >&6; }
27243 if test -z "$LLVMGCC"; then
27244 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27245 LLVMGCCCOMMAND
="$LLVMGCC"
27247 if test -z "$LLVMGXX"; then
27248 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27249 LLVMGXXCOMMAND
="$LLVMGXX"
27256 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
27258 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
27263 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27264 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27277 if test "$GCC" != "yes" && test "$ICC" != "yes"
27279 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27280 echo "$as_me: error: gcc|icc required but not found" >&2;}
27281 { (exit 1); exit 1; }; }
27284 if test "$GXX" != "yes" && test "$IXX" != "yes"
27286 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27287 echo "$as_me: error: g++|icc required but not found" >&2;}
27288 { (exit 1); exit 1; }; }
27291 if test "$GCC" = "yes"
27293 cat >conftest.
$ac_ext <<_ACEOF
27294 #if !defined(__GNUC__) || __GNUC__ < 3
27295 #error Unsupported GCC version
27299 rm -f conftest.
$ac_objext
27300 if { (ac_try
="$ac_compile"
27301 case "(($ac_try" in
27302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_compile") 2>conftest.er1
27308 grep -v '^ *+' conftest.er1 >conftest.err
27310 cat conftest.err >&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); } &&
27313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27316 *) ac_try_echo
=$ac_try;;
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; } &&
27323 { ac_try
='test -s conftest.$ac_objext'
27324 { (case "(($ac_try" in
27325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_try") 2>&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; }; then
27335 echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27338 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27339 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27340 { (exit 1); exit 1; }; }
27343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27346 if test -z "$llvm_cv_gnu_make_command"
27348 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27349 echo "$as_me: error: GNU Make required but not found" >&2;}
27350 { (exit 1); exit 1; }; }
27353 { echo "$as_me:$LINENO: result: ok" >&5
27354 echo "${ECHO_T}ok" >&6; }
27356 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27357 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27358 if test "${ac_cv_lib_m_sin+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27361 ac_check_lib_save_LIBS=$LIBS
27363 cat >conftest.$ac_ext <<_ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h. */
27370 /* Override any GCC internal prototype to avoid an error.
27371 Use char because int might match the return type of a GCC
27372 builtin and then its argument prototype would still apply. */
27385 rm -f conftest.$ac_objext conftest$ac_exeext
27386 if { (ac_try="$ac_link"
27387 case "(($ac_try" in
27388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27389 *) ac_try_echo
=$ac_try;;
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_link") 2>conftest.er1
27394 grep -v '^ *+' conftest.er1
>conftest.err
27396 cat conftest.err
>&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); } &&
27399 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27400 { (case "(($ac_try" in
27401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_try") 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (case "(($ac_try" in
27411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27412 *) ac_try_echo
=$ac_try;;
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_try") 2>&5
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27419 ac_cv_lib_m_sin
=yes
27421 echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.
$ac_ext >&5
27427 rm -f core conftest.err conftest.
$ac_objext \
27428 conftest
$ac_exeext conftest.
$ac_ext
27429 LIBS
=$ac_check_lib_save_LIBS
27431 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27432 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27433 if test $ac_cv_lib_m_sin = yes; then
27434 cat >>confdefs.h
<<_ACEOF
27435 #define HAVE_LIBM 1
27442 if test "$llvm_cv_os_type" = "MingW" ; then
27444 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27445 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27446 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27449 ac_check_lib_save_LIBS
=$LIBS
27450 LIBS
="-limagehlp $LIBS"
27451 cat >conftest.
$ac_ext <<_ACEOF
27454 cat confdefs.h
>>conftest.
$ac_ext
27455 cat >>conftest.
$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27467 rm -f conftest.
$ac_objext conftest
$ac_exeext
27468 if { (ac_try
="$ac_link"
27469 case "(($ac_try" in
27470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27471 *) ac_try_echo=$ac_try;;
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474 (eval "$ac_link") 2>conftest.er1
27476 grep -v '^ *+' conftest.er1 >conftest.err
27478 cat conftest.err >&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); } &&
27481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27484 *) ac_try_echo
=$ac_try;;
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; } &&
27491 { ac_try
='test -s conftest$ac_exeext'
27492 { (case "(($ac_try" in
27493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27494 *) ac_try_echo=$ac_try;;
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_try") 2>&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); }; }; then
27501 ac_cv_lib_imagehlp_main=yes
27503 echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27506 ac_cv_lib_imagehlp_main=no
27509 rm -f core conftest.err conftest.$ac_objext \
27510 conftest$ac_exeext conftest.$ac_ext
27511 LIBS=$ac_check_lib_save_LIBS
27513 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27514 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27515 if test $ac_cv_lib_imagehlp_main = yes; then
27516 cat >>confdefs.h <<_ACEOF
27517 #define HAVE_LIBIMAGEHLP 1
27520 LIBS="-limagehlp $LIBS"
27525 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27526 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27527 if test "${ac_cv_lib_psapi_main+set}" = set; then
27528 echo $ECHO_N "(cached) $ECHO_C" >&6
27530 ac_check_lib_save_LIBS=$LIBS
27531 LIBS="-lpsapi $LIBS"
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27548 rm -f conftest.$ac_objext conftest$ac_exeext
27549 if { (ac_try="$ac_link"
27550 case "(($ac_try" in
27551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27552 *) ac_try_echo
=$ac_try;;
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_link") 2>conftest.er1
27557 grep -v '^ *+' conftest.er1
>conftest.err
27559 cat conftest.err
>&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563 { (case "(($ac_try" in
27564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_try") 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27575 *) ac_try_echo
=$ac_try;;
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_lib_psapi_main
=yes
27584 echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.
$ac_ext >&5
27587 ac_cv_lib_psapi_main
=no
27590 rm -f core conftest.err conftest.
$ac_objext \
27591 conftest
$ac_exeext conftest.
$ac_ext
27592 LIBS
=$ac_check_lib_save_LIBS
27594 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27595 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27596 if test $ac_cv_lib_psapi_main = yes; then
27597 cat >>confdefs.h
<<_ACEOF
27598 #define HAVE_LIBPSAPI 1
27601 LIBS
="-lpsapi $LIBS"
27607 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27608 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27609 if test "${ac_cv_search_dlopen+set}" = set; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 ac_func_search_save_LIBS
=$LIBS
27613 cat >conftest.
$ac_ext <<_ACEOF
27616 cat confdefs.h
>>conftest.
$ac_ext
27617 cat >>conftest.
$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27620 /* Override any GCC internal prototype to avoid an error.
27621 Use char because int might match the return type of a GCC
27622 builtin and then its argument prototype would still apply. */
27635 for ac_lib
in '' dl
; do
27636 if test -z "$ac_lib"; then
27637 ac_res
="none required"
27640 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27642 rm -f conftest.
$ac_objext conftest
$ac_exeext
27643 if { (ac_try
="$ac_link"
27644 case "(($ac_try" in
27645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27646 *) ac_try_echo=$ac_try;;
27648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649 (eval "$ac_link") 2>conftest.er1
27651 grep -v '^ *+' conftest.er1 >conftest.err
27653 cat conftest.err >&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); } &&
27656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27659 *) ac_try_echo
=$ac_try;;
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try
='test -s conftest$ac_exeext'
27667 { (case "(($ac_try" in
27668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; }; then
27676 ac_cv_search_dlopen=$ac_res
27678 echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27684 rm -f core conftest.err conftest.$ac_objext \
27686 if test "${ac_cv_search_dlopen+set}" = set; then
27690 if test "${ac_cv_search_dlopen+set}" = set; then
27693 ac_cv_search_dlopen=no
27695 rm conftest.$ac_ext
27696 LIBS=$ac_func_search_save_LIBS
27698 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27699 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27700 ac_res=$ac_cv_search_dlopen
27701 if test "$ac_res" != no; then
27702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27704 cat >>confdefs.h <<\_ACEOF
27705 #define HAVE_DLOPEN 1
27709 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27710 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27714 if test "$llvm_cv_enable_libffi" = "yes" ; then
27715 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27716 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27717 if test "${ac_cv_search_ffi_call+set}" = set; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 ac_func_search_save_LIBS=$LIBS
27721 cat >conftest.$ac_ext <<_ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27728 /* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27738 return ffi_call ();
27743 for ac_lib in '' ffi; do
27744 if test -z "$ac_lib"; then
27745 ac_res="none required"
27748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (ac_try="$ac_link"
27752 case "(($ac_try" in
27753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27754 *) ac_try_echo
=$ac_try;;
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_link") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1
>conftest.err
27761 cat conftest.err
>&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } &&
27764 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765 { (case "(($ac_try" in
27766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_try") 2>&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest$ac_exeext'
27775 { (case "(($ac_try" in
27776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27777 *) ac_try_echo
=$ac_try;;
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_try") 2>&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784 ac_cv_search_ffi_call
=$ac_res
27786 echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.
$ac_ext >&5
27792 rm -f core conftest.err conftest.
$ac_objext \
27794 if test "${ac_cv_search_ffi_call+set}" = set; then
27798 if test "${ac_cv_search_ffi_call+set}" = set; then
27801 ac_cv_search_ffi_call
=no
27803 rm conftest.
$ac_ext
27804 LIBS
=$ac_func_search_save_LIBS
27806 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27807 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27808 ac_res
=$ac_cv_search_ffi_call
27809 if test "$ac_res" != no
; then
27810 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27812 cat >>confdefs.h
<<\_ACEOF
27813 #define HAVE_FFI_CALL 1
27817 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27818 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27823 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27824 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27825 if test "${ac_cv_search_mallinfo+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27828 ac_func_search_save_LIBS
=$LIBS
27829 cat >conftest.
$ac_ext <<_ACEOF
27832 cat confdefs.h
>>conftest.
$ac_ext
27833 cat >>conftest.
$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27836 /* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27846 return mallinfo ();
27851 for ac_lib
in '' malloc
; do
27852 if test -z "$ac_lib"; then
27853 ac_res
="none required"
27856 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27858 rm -f conftest.
$ac_objext conftest
$ac_exeext
27859 if { (ac_try
="$ac_link"
27860 case "(($ac_try" in
27861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
27867 grep -v '^ *+' conftest.er1 >conftest.err
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
27872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27875 *) ac_try_echo
=$ac_try;;
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try
='test -s conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 ac_cv_search_mallinfo=$ac_res
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27900 rm -f core conftest.err conftest.$ac_objext \
27902 if test "${ac_cv_search_mallinfo+set}" = set; then
27906 if test "${ac_cv_search_mallinfo+set}" = set; then
27909 ac_cv_search_mallinfo=no
27911 rm conftest.$ac_ext
27912 LIBS=$ac_func_search_save_LIBS
27914 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27915 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27916 ac_res=$ac_cv_search_mallinfo
27917 if test "$ac_res" != no; then
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27920 cat >>confdefs.h <<\_ACEOF
27921 #define HAVE_MALLINFO 1
27927 if test "$ENABLE_THREADS" -eq 1 ; then
27929 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27930 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27931 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
27934 ac_check_lib_save_LIBS=$LIBS
27935 LIBS="-lpthread $LIBS"
27936 cat >conftest.$ac_ext <<_ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27943 /* Override any GCC internal prototype to avoid an error.
27944 Use char because int might match the return type of a GCC
27945 builtin and then its argument prototype would still apply. */
27949 char pthread_mutex_init ();
27953 return pthread_mutex_init ();
27958 rm -f conftest.$ac_objext conftest$ac_exeext
27959 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27967 grep -v '^ *+' conftest.er1
>conftest.err
27969 cat conftest.err
>&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } &&
27972 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest$ac_exeext'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27985 *) ac_try_echo
=$ac_try;;
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
27992 ac_cv_lib_pthread_pthread_mutex_init
=yes
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.
$ac_ext >&5
27997 ac_cv_lib_pthread_pthread_mutex_init
=no
28000 rm -f core conftest.err conftest.
$ac_objext \
28001 conftest
$ac_exeext conftest.
$ac_ext
28002 LIBS
=$ac_check_lib_save_LIBS
28004 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28006 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28007 cat >>confdefs.h
<<_ACEOF
28008 #define HAVE_LIBPTHREAD 1
28011 LIBS
="-lpthread $LIBS"
28015 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28016 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28017 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 ac_func_search_save_LIBS
=$LIBS
28021 cat >conftest.
$ac_ext <<_ACEOF
28024 cat confdefs.h
>>conftest.
$ac_ext
28025 cat >>conftest.
$ac_ext <<_ACEOF
28026 /* end confdefs.h. */
28028 /* Override any GCC internal prototype to avoid an error.
28029 Use char because int might match the return type of a GCC
28030 builtin and then its argument prototype would still apply. */
28034 char pthread_mutex_lock ();
28038 return pthread_mutex_lock ();
28043 for ac_lib
in '' pthread
; do
28044 if test -z "$ac_lib"; then
28045 ac_res
="none required"
28048 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28050 rm -f conftest.
$ac_objext conftest
$ac_exeext
28051 if { (ac_try
="$ac_link"
28052 case "(($ac_try" in
28053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28059 grep -v '^ *+' conftest.er1 >conftest.err
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
28064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065 { (case "(($ac_try" in
28066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28067 *) ac_try_echo
=$ac_try;;
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_try") 2>&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; } &&
28074 { ac_try
='test -s conftest$ac_exeext'
28075 { (case "(($ac_try" in
28076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; }; then
28084 ac_cv_search_pthread_mutex_lock=$ac_res
28086 echo "$as_me: failed program was:" >&5
28087 sed 's/^/| /' conftest.$ac_ext >&5
28092 rm -f core conftest.err conftest.$ac_objext \
28094 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28098 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28101 ac_cv_search_pthread_mutex_lock=no
28103 rm conftest.$ac_ext
28104 LIBS=$ac_func_search_save_LIBS
28106 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28107 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28108 ac_res=$ac_cv_search_pthread_mutex_lock
28109 if test "$ac_res" != no; then
28110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28112 cat >>confdefs.h <<\_ACEOF
28113 #define HAVE_PTHREAD_MUTEX_LOCK 1
28118 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28119 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28120 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28123 ac_func_search_save_LIBS=$LIBS
28124 cat >conftest.$ac_ext <<_ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h. */
28131 /* Override any GCC internal prototype to avoid an error.
28132 Use char because int might match the return type of a GCC
28133 builtin and then its argument prototype would still apply. */
28137 char pthread_rwlock_init ();
28141 return pthread_rwlock_init ();
28146 for ac_lib in '' pthread; do
28147 if test -z "$ac_lib"; then
28148 ac_res="none required"
28151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (ac_try="$ac_link"
28155 case "(($ac_try" in
28156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28157 *) ac_try_echo
=$ac_try;;
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_link") 2>conftest.er1
28162 grep -v '^ *+' conftest.er1
>conftest.err
28164 cat conftest.err
>&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); } &&
28167 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28168 { (case "(($ac_try" in
28169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_try") 2>&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
28178 { (case "(($ac_try" in
28179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28180 *) ac_try_echo
=$ac_try;;
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_try") 2>&5
28185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186 (exit $ac_status); }; }; then
28187 ac_cv_search_pthread_rwlock_init
=$ac_res
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.
$ac_ext >&5
28195 rm -f core conftest.err conftest.
$ac_objext \
28197 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28201 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28204 ac_cv_search_pthread_rwlock_init
=no
28206 rm conftest.
$ac_ext
28207 LIBS
=$ac_func_search_save_LIBS
28209 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28210 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28211 ac_res
=$ac_cv_search_pthread_rwlock_init
28212 if test "$ac_res" != no
; then
28213 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28215 cat >>confdefs.h
<<\_ACEOF
28216 #define HAVE_PTHREAD_RWLOCK_INIT 1
28221 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28222 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28223 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28224 echo $ECHO_N "(cached) $ECHO_C" >&6
28226 ac_func_search_save_LIBS
=$LIBS
28227 cat >conftest.
$ac_ext <<_ACEOF
28230 cat confdefs.h
>>conftest.
$ac_ext
28231 cat >>conftest.
$ac_ext <<_ACEOF
28232 /* end confdefs.h. */
28234 /* Override any GCC internal prototype to avoid an error.
28235 Use char because int might match the return type of a GCC
28236 builtin and then its argument prototype would still apply. */
28240 char pthread_getspecific ();
28244 return pthread_getspecific ();
28249 for ac_lib
in '' pthread
; do
28250 if test -z "$ac_lib"; then
28251 ac_res
="none required"
28254 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28256 rm -f conftest.
$ac_objext conftest
$ac_exeext
28257 if { (ac_try
="$ac_link"
28258 case "(($ac_try" in
28259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263 (eval "$ac_link") 2>conftest.er1
28265 grep -v '^ *+' conftest.er1 >conftest.err
28267 cat conftest.err >&5
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); } &&
28270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28271 { (case "(($ac_try" in
28272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28273 *) ac_try_echo
=$ac_try;;
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_try") 2>&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; } &&
28280 { ac_try
='test -s conftest$ac_exeext'
28281 { (case "(($ac_try" in
28282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_try") 2>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 ac_cv_search_pthread_getspecific=$ac_res
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28298 rm -f core conftest.err conftest.$ac_objext \
28300 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28304 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28307 ac_cv_search_pthread_getspecific=no
28309 rm conftest.$ac_ext
28310 LIBS=$ac_func_search_save_LIBS
28312 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28313 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28314 ac_res=$ac_cv_search_pthread_getspecific
28315 if test "$ac_res" != no; then
28316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28318 cat >>confdefs.h <<\_ACEOF
28319 #define HAVE_PTHREAD_GETSPECIFIC 1
28327 # Check whether --with-udis86 was given.
28328 if test "${with_udis86+set}" = set; then
28329 withval=$with_udis86;
28334 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28337 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28338 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28339 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 ac_check_lib_save_LIBS=$LIBS
28343 LIBS="-ludis86 $LIBS"
28344 cat >conftest.$ac_ext <<_ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h. */
28351 /* Override any GCC internal prototype to avoid an error.
28352 Use char because int might match the return type of a GCC
28353 builtin and then its argument prototype would still apply. */
28366 rm -f conftest.$ac_objext conftest$ac_exeext
28367 if { (ac_try="$ac_link"
28368 case "(($ac_try" in
28369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28370 *) ac_try_echo
=$ac_try;;
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_link") 2>conftest.er1
28375 grep -v '^ *+' conftest.er1
>conftest.err
28377 cat conftest.err
>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
28380 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest$ac_exeext'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28393 *) ac_try_echo
=$ac_try;;
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_lib_udis86_ud_init
=yes
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.
$ac_ext >&5
28405 ac_cv_lib_udis86_ud_init
=no
28408 rm -f core conftest.err conftest.
$ac_objext \
28409 conftest
$ac_exeext conftest.
$ac_ext
28410 LIBS
=$ac_check_lib_save_LIBS
28412 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28413 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28414 if test $ac_cv_lib_udis86_ud_init = yes; then
28415 cat >>confdefs.h
<<_ACEOF
28416 #define HAVE_LIBUDIS86 1
28419 LIBS
="-ludis86 $LIBS"
28423 echo "Error! You need to have libudis86 around."
28435 cat >>confdefs.h
<<_ACEOF
28436 #define USE_UDIS86 $USE_UDIS86
28441 # Check whether --with-oprofile was given.
28442 if test "${with_oprofile+set}" = set; then
28443 withval
=$with_oprofile;
28447 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
28448 *) llvm_cv_oppath
="${withval}/lib/oprofile"
28449 CPPFLAGS
="-I${withval}/include";;
28451 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28452 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28453 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28454 if test "${ac_cv_search_op_open_agent+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28457 ac_func_search_save_LIBS
=$LIBS
28458 cat >conftest.
$ac_ext <<_ACEOF
28461 cat confdefs.h
>>conftest.
$ac_ext
28462 cat >>conftest.
$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28465 /* Override any GCC internal prototype to avoid an error.
28466 Use char because int might match the return type of a GCC
28467 builtin and then its argument prototype would still apply. */
28471 char op_open_agent ();
28475 return op_open_agent ();
28480 for ac_lib
in '' opagent
; do
28481 if test -z "$ac_lib"; then
28482 ac_res
="none required"
28485 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28487 rm -f conftest.
$ac_objext conftest
$ac_exeext
28488 if { (ac_try
="$ac_link"
28489 case "(($ac_try" in
28490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28491 *) ac_try_echo=$ac_try;;
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494 (eval "$ac_link") 2>conftest.er1
28496 grep -v '^ *+' conftest.er1 >conftest.err
28498 cat conftest.err >&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } &&
28501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28504 *) ac_try_echo
=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try
='test -s conftest$ac_exeext'
28512 { (case "(($ac_try" in
28513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_try") 2>&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; }; then
28521 ac_cv_search_op_open_agent=$ac_res
28523 echo "$as_me: failed program was:" >&5
28524 sed 's/^/| /' conftest.$ac_ext >&5
28529 rm -f core conftest.err conftest.$ac_objext \
28531 if test "${ac_cv_search_op_open_agent+set}" = set; then
28535 if test "${ac_cv_search_op_open_agent+set}" = set; then
28538 ac_cv_search_op_open_agent=no
28540 rm conftest.$ac_ext
28541 LIBS=$ac_func_search_save_LIBS
28543 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28544 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28545 ac_res=$ac_cv_search_op_open_agent
28546 if test "$ac_res" != no; then
28547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28551 echo "Error! You need to have libopagent around."
28556 if test "${ac_cv_header_opagent_h+set}" = set; then
28557 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28558 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28559 if test "${ac_cv_header_opagent_h+set}" = set; then
28560 echo $ECHO_N "(cached) $ECHO_C" >&6
28562 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28563 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28565 # Is the header compilable?
28566 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28567 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28574 $ac_includes_default
28575 #include <opagent.h>
28577 rm -f conftest.$ac_objext
28578 if { (ac_try="$ac_compile"
28579 case "(($ac_try" in
28580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28581 *) ac_try_echo
=$ac_try;;
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_compile") 2>conftest.er1
28586 grep -v '^ *+' conftest.er1
>conftest.err
28588 cat conftest.err
>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28592 { (case "(($ac_try" in
28593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_try") 2>&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
28602 { (case "(($ac_try" in
28603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28604 *) ac_try_echo
=$ac_try;;
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 ac_header_compiler
=yes
28613 echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.
$ac_ext >&5
28616 ac_header_compiler
=no
28619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28621 echo "${ECHO_T}$ac_header_compiler" >&6; }
28623 # Is the header present?
28624 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28625 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28626 cat >conftest.
$ac_ext <<_ACEOF
28629 cat confdefs.h
>>conftest.
$ac_ext
28630 cat >>conftest.
$ac_ext <<_ACEOF
28631 /* end confdefs.h. */
28632 #include <opagent.h>
28634 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28635 case "(($ac_try" in
28636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28642 grep -v '^ *+' conftest.er1 >conftest.err
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } >/dev/null; then
28647 if test -s conftest.err; then
28648 ac_cpp_err=$ac_c_preproc_warn_flag
28649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28656 if test -z "$ac_cpp_err"; then
28657 ac_header_preproc=yes
28659 echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28662 ac_header_preproc=no
28665 rm -f conftest.err conftest.$ac_ext
28666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28667 echo "${ECHO_T}$ac_header_preproc" >&6; }
28669 # So? What about this header?
28670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28672 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28673 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28675 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28676 ac_header_preproc=yes
28679 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28680 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28682 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28684 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28685 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28686 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28688 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28690 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28692 ## ----------------------------------- ##
28693 ## Report this to llvmbugs@cs.uiuc.edu ##
28694 ## ----------------------------------- ##
28696 ) | sed "s/^/$as_me: WARNING: /" >&2
28699 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28700 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28701 if test "${ac_cv_header_opagent_h+set}" = set; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28704 ac_cv_header_opagent_h=$ac_header_preproc
28706 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28707 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28710 if test $ac_cv_header_opagent_h = yes; then
28714 echo "Error! You need to have opagent.h around."
28723 llvm_cv_old_LIBS="$LIBS"
28724 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28725 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28726 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28727 if test "${ac_cv_search_op_open_agent+set}" = set; then
28728 echo $ECHO_N "(cached) $ECHO_C" >&6
28730 ac_func_search_save_LIBS=$LIBS
28731 cat >conftest.$ac_ext <<_ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h. */
28738 /* Override any GCC internal prototype to avoid an error.
28739 Use char because int might match the return type of a GCC
28740 builtin and then its argument prototype would still apply. */
28744 char op_open_agent ();
28748 return op_open_agent ();
28753 for ac_lib in '' opagent; do
28754 if test -z "$ac_lib"; then
28755 ac_res="none required"
28758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (ac_try="$ac_link"
28762 case "(($ac_try" in
28763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28764 *) ac_try_echo
=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_link") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1
>conftest.err
28771 cat conftest.err
>&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
28774 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28775 { (case "(($ac_try" in
28776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest$ac_exeext'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28787 *) ac_try_echo
=$ac_try;;
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 ac_cv_search_op_open_agent
=$ac_res
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.
$ac_ext >&5
28802 rm -f core conftest.err conftest.
$ac_objext \
28804 if test "${ac_cv_search_op_open_agent+set}" = set; then
28808 if test "${ac_cv_search_op_open_agent+set}" = set; then
28811 ac_cv_search_op_open_agent
=no
28813 rm conftest.
$ac_ext
28814 LIBS
=$ac_func_search_save_LIBS
28816 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28817 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28818 ac_res
=$ac_cv_search_op_open_agent
28819 if test "$ac_res" != no
; then
28820 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28824 LIBS
="$llvm_cv_old_LIBS"
28829 if test "${ac_cv_header_opagent_h+set}" = set; then
28830 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28831 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28832 if test "${ac_cv_header_opagent_h+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28835 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28836 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28838 # Is the header compilable?
28839 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28840 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28841 cat >conftest.
$ac_ext <<_ACEOF
28844 cat confdefs.h
>>conftest.
$ac_ext
28845 cat >>conftest.
$ac_ext <<_ACEOF
28846 /* end confdefs.h. */
28847 $ac_includes_default
28848 #include <opagent.h>
28850 rm -f conftest.
$ac_objext
28851 if { (ac_try
="$ac_compile"
28852 case "(($ac_try" in
28853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_compile") 2>conftest.er1
28859 grep -v '^ *+' conftest.er1 >conftest.err
28861 cat conftest.err >&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } &&
28864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28865 { (case "(($ac_try" in
28866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28867 *) ac_try_echo
=$ac_try;;
28869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_try") 2>&5
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; } &&
28874 { ac_try
='test -s conftest.$ac_objext'
28875 { (case "(($ac_try" in
28876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28877 *) ac_try_echo=$ac_try;;
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880 (eval "$ac_try") 2>&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 ac_header_compiler=yes
28886 echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28889 ac_header_compiler=no
28892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28894 echo "${ECHO_T}$ac_header_compiler" >&6; }
28896 # Is the header present?
28897 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28898 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28899 cat >conftest.$ac_ext <<_ACEOF
28902 cat confdefs.h >>conftest.$ac_ext
28903 cat >>conftest.$ac_ext <<_ACEOF
28904 /* end confdefs.h. */
28905 #include <opagent.h>
28907 if { (ac_try="$ac_cpp conftest.$ac_ext"
28908 case "(($ac_try" in
28909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28910 *) ac_try_echo
=$ac_try;;
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28915 grep -v '^ *+' conftest.er1
>conftest.err
28917 cat conftest.err
>&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } >/dev
/null
; then
28920 if test -s conftest.err
; then
28921 ac_cpp_err
=$ac_c_preproc_warn_flag
28922 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
28929 if test -z "$ac_cpp_err"; then
28930 ac_header_preproc
=yes
28932 echo "$as_me: failed program was:" >&5
28933 sed 's/^/| /' conftest.
$ac_ext >&5
28935 ac_header_preproc
=no
28938 rm -f conftest.err conftest.
$ac_ext
28939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28940 echo "${ECHO_T}$ac_header_preproc" >&6; }
28942 # So? What about this header?
28943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28945 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28946 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28948 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28949 ac_header_preproc
=yes
28952 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28953 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28954 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28955 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28956 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28957 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28959 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28961 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28962 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28963 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28965 ## ----------------------------------- ##
28966 ## Report this to llvmbugs@cs.uiuc.edu ##
28967 ## ----------------------------------- ##
28969 ) |
sed "s/^/$as_me: WARNING: /" >&2
28972 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28973 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28974 if test "${ac_cv_header_opagent_h+set}" = set; then
28975 echo $ECHO_N "(cached) $ECHO_C" >&6
28977 ac_cv_header_opagent_h
=$ac_header_preproc
28979 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28980 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28983 if test $ac_cv_header_opagent_h = yes; then
28987 LIBS
="$llvm_cv_old_LIBS"
28998 cat >>confdefs.h
<<_ACEOF
28999 #define USE_OPROFILE $USE_OPROFILE
29009 ac_header_dirent
=no
29010 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
29011 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29012 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29013 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29014 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 cat >conftest.
$ac_ext <<_ACEOF
29020 cat confdefs.h
>>conftest.
$ac_ext
29021 cat >>conftest.
$ac_ext <<_ACEOF
29022 /* end confdefs.h. */
29023 #include <sys/types.h>
29035 rm -f conftest.
$ac_objext
29036 if { (ac_try
="$ac_compile"
29037 case "(($ac_try" in
29038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_compile") 2>conftest.er1
29044 grep -v '^ *+' conftest.er1 >conftest.err
29046 cat conftest.err >&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); } &&
29049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29050 { (case "(($ac_try" in
29051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29052 *) ac_try_echo
=$ac_try;;
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_try") 2>&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; } &&
29059 { ac_try
='test -s conftest.$ac_objext'
29060 { (case "(($ac_try" in
29061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 eval "$as_ac_Header=yes"
29071 echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29074 eval "$as_ac_Header=no"
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29079 ac_res=`eval echo '${'$as_ac_Header'}'`
29080 { echo "$as_me:$LINENO: result: $ac_res" >&5
29081 echo "${ECHO_T}$ac_res" >&6; }
29082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29083 cat >>confdefs.h <<_ACEOF
29084 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
29087 ac_header_dirent=$ac_hdr; break
29091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29092 if test $ac_header_dirent = dirent.h; then
29093 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29094 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29095 if test "${ac_cv_search_opendir+set}" = set; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29098 ac_func_search_save_LIBS=$LIBS
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29106 /* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29121 for ac_lib in '' dir; do
29122 if test -z "$ac_lib"; then
29123 ac_res="none required"
29126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (ac_try="$ac_link"
29130 case "(($ac_try" in
29131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29132 *) ac_try_echo
=$ac_try;;
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135 (eval "$ac_link") 2>conftest.er1
29137 grep -v '^ *+' conftest.er1
>conftest.err
29139 cat conftest.err
>&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); } &&
29142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29143 { (case "(($ac_try" in
29144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_try") 2>&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; } &&
29152 { ac_try='test -s conftest$ac_exeext'
29153 { (case "(($ac_try" in
29154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29155 *) ac_try_echo
=$ac_try;;
29157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29158 (eval "$ac_try") 2>&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; }; then
29162 ac_cv_search_opendir
=$ac_res
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.
$ac_ext >&5
29170 rm -f core conftest.err conftest.
$ac_objext \
29172 if test "${ac_cv_search_opendir+set}" = set; then
29176 if test "${ac_cv_search_opendir+set}" = set; then
29179 ac_cv_search_opendir
=no
29181 rm conftest.
$ac_ext
29182 LIBS
=$ac_func_search_save_LIBS
29184 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29185 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29186 ac_res
=$ac_cv_search_opendir
29187 if test "$ac_res" != no
; then
29188 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29193 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29194 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29195 if test "${ac_cv_search_opendir+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 ac_func_search_save_LIBS
=$LIBS
29199 cat >conftest.
$ac_ext <<_ACEOF
29202 cat confdefs.h
>>conftest.
$ac_ext
29203 cat >>conftest.
$ac_ext <<_ACEOF
29204 /* end confdefs.h. */
29206 /* Override any GCC internal prototype to avoid an error.
29207 Use char because int might match the return type of a GCC
29208 builtin and then its argument prototype would still apply. */
29221 for ac_lib
in '' x
; do
29222 if test -z "$ac_lib"; then
29223 ac_res
="none required"
29226 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29228 rm -f conftest.
$ac_objext conftest
$ac_exeext
29229 if { (ac_try
="$ac_link"
29230 case "(($ac_try" in
29231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235 (eval "$ac_link") 2>conftest.er1
29237 grep -v '^ *+' conftest.er1 >conftest.err
29239 cat conftest.err >&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); } &&
29242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29243 { (case "(($ac_try" in
29244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29245 *) ac_try_echo
=$ac_try;;
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_try") 2>&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; } &&
29252 { ac_try
='test -s conftest$ac_exeext'
29253 { (case "(($ac_try" in
29254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29255 *) ac_try_echo=$ac_try;;
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258 (eval "$ac_try") 2>&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; }; then
29262 ac_cv_search_opendir=$ac_res
29264 echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29270 rm -f core conftest.err conftest.$ac_objext \
29272 if test "${ac_cv_search_opendir+set}" = set; then
29276 if test "${ac_cv_search_opendir+set}" = set; then
29279 ac_cv_search_opendir=no
29281 rm conftest.$ac_ext
29282 LIBS=$ac_func_search_save_LIBS
29284 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29285 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29286 ac_res=$ac_cv_search_opendir
29287 if test "$ac_res" != no; then
29288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29294 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29295 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29296 if test "${ac_cv_header_mmap_anon+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29300 ac_cpp='$CPP $CPPFLAGS'
29301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29305 cat >conftest.$ac_ext <<_ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h. */
29311 #include <sys/mman.h>
29312 #include <unistd.h>
29317 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29322 rm -f conftest.$ac_objext
29323 if { (ac_try="$ac_compile"
29324 case "(($ac_try" in
29325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29326 *) ac_try_echo
=$ac_try;;
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_compile") 2>conftest.er1
29331 grep -v '^ *+' conftest.er1
>conftest.err
29333 cat conftest.err
>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
29336 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337 { (case "(($ac_try" in
29338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_try") 2>&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest.$ac_objext'
29347 { (case "(($ac_try" in
29348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29349 *) ac_try_echo
=$ac_try;;
29351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352 (eval "$ac_try") 2>&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 ac_cv_header_mmap_anon
=yes
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.
$ac_ext >&5
29361 ac_cv_header_mmap_anon
=no
29364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29366 ac_cpp
='$CPP $CPPFLAGS'
29367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
29373 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29374 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29375 if test "$ac_cv_header_mmap_anon" = yes; then
29377 cat >>confdefs.h
<<\_ACEOF
29378 #define HAVE_MMAP_ANONYMOUS 1
29383 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29384 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29385 if test "${ac_cv_header_stat_broken+set}" = set; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29388 cat >conftest.
$ac_ext <<_ACEOF
29391 cat confdefs.h
>>conftest.
$ac_ext
29392 cat >>conftest.
$ac_ext <<_ACEOF
29393 /* end confdefs.h. */
29394 #include <sys/types.h>
29395 #include <sys/stat.h>
29397 #if defined S_ISBLK && defined S_IFDIR
29398 # if S_ISBLK (S_IFDIR)
29403 #if defined S_ISBLK && defined S_IFCHR
29404 # if S_ISBLK (S_IFCHR)
29409 #if defined S_ISLNK && defined S_IFREG
29410 # if S_ISLNK (S_IFREG)
29415 #if defined S_ISSOCK && defined S_IFREG
29416 # if S_ISSOCK (S_IFREG)
29422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29423 $EGREP "You lose" >/dev
/null
2>&1; then
29424 ac_cv_header_stat_broken
=yes
29426 ac_cv_header_stat_broken
=no
29431 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29432 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29433 if test $ac_cv_header_stat_broken = yes; then
29435 cat >>confdefs.h
<<\_ACEOF
29436 #define STAT_MACROS_BROKEN 1
29441 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29442 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29443 if test "${ac_cv_header_stdc+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 cat >conftest.
$ac_ext <<_ACEOF
29449 cat confdefs.h
>>conftest.
$ac_ext
29450 cat >>conftest.
$ac_ext <<_ACEOF
29451 /* end confdefs.h. */
29452 #include <stdlib.h>
29453 #include <stdarg.h>
29454 #include <string.h>
29465 rm -f conftest.
$ac_objext
29466 if { (ac_try
="$ac_compile"
29467 case "(($ac_try" in
29468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_compile") 2>conftest.er1
29474 grep -v '^ *+' conftest.er1 >conftest.err
29476 cat conftest.err >&5
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); } &&
29479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29480 { (case "(($ac_try" in
29481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29482 *) ac_try_echo
=$ac_try;;
29484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_try") 2>&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; } &&
29489 { ac_try
='test -s conftest.$ac_objext'
29490 { (case "(($ac_try" in
29491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29492 *) ac_try_echo=$ac_try;;
29494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29495 (eval "$ac_try") 2>&5
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
29499 ac_cv_header_stdc=yes
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29504 ac_cv_header_stdc=no
29507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29509 if test $ac_cv_header_stdc = yes; then
29510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29511 cat >conftest.$ac_ext <<_ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h. */
29517 #include <string.h>
29520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29521 $EGREP "memchr" >/dev/null 2>&1; then
29524 ac_cv_header_stdc=no
29530 if test $ac_cv_header_stdc = yes; then
29531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29532 cat >conftest.$ac_ext <<_ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h. */
29538 #include <stdlib.h>
29541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29542 $EGREP "free" >/dev/null 2>&1; then
29545 ac_cv_header_stdc=no
29551 if test $ac_cv_header_stdc = yes; then
29552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29553 if test "$cross_compiling" = yes; then
29556 cat >conftest.$ac_ext <<_ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h. */
29563 #include <stdlib.h>
29564 #if ((' ' & 0x0FF) == 0x020)
29565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29568 # define ISLOWER(c) \
29569 (('a' <= (c) && (c) <= 'i') \
29570 || ('j' <= (c) && (c) <= 'r') \
29571 || ('s' <= (c) && (c) <= 'z'))
29572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29580 for (i = 0; i < 256; i++)
29581 if (XOR (islower (i), ISLOWER (i))
29582 || toupper (i) != TOUPPER (i))
29587 rm -f conftest$ac_exeext
29588 if { (ac_try="$ac_link"
29589 case "(($ac_try" in
29590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29591 *) ac_try_echo
=$ac_try;;
29593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594 (eval "$ac_link") 2>&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29598 { (case "(($ac_try" in
29599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_try") 2>&5
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; }; then
29609 echo "$as_me: program exited with status $ac_status" >&5
29610 echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29613 ( exit $ac_status )
29614 ac_cv_header_stdc=no
29616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29622 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29623 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29624 if test $ac_cv_header_stdc = yes; then
29626 cat >>confdefs.h <<\_ACEOF
29627 #define STDC_HEADERS 1
29632 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29633 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29634 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29635 echo $ECHO_N "(cached) $ECHO_C" >&6
29637 cat >conftest.$ac_ext <<_ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h. */
29643 #include <sys/types.h>
29644 #include <sys/wait.h>
29645 #ifndef WEXITSTATUS
29646 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29649 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29657 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29662 rm -f conftest.$ac_objext
29663 if { (ac_try="$ac_compile"
29664 case "(($ac_try" in
29665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29666 *) ac_try_echo
=$ac_try;;
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_compile") 2>conftest.er1
29671 grep -v '^ *+' conftest.er1
>conftest.err
29673 cat conftest.err
>&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } &&
29676 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29677 { (case "(($ac_try" in
29678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_try") 2>&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; } &&
29686 { ac_try='test -s conftest.$ac_objext'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29689 *) ac_try_echo
=$ac_try;;
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
29696 ac_cv_header_sys_wait_h
=yes
29698 echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.
$ac_ext >&5
29701 ac_cv_header_sys_wait_h
=no
29704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29706 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29707 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29708 if test $ac_cv_header_sys_wait_h = yes; then
29710 cat >>confdefs.h
<<\_ACEOF
29711 #define HAVE_SYS_WAIT_H 1
29716 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29717 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29718 if test "${ac_cv_header_time+set}" = set; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 cat >conftest.
$ac_ext <<_ACEOF
29724 cat confdefs.h
>>conftest.
$ac_ext
29725 cat >>conftest.
$ac_ext <<_ACEOF
29726 /* end confdefs.h. */
29727 #include <sys/types.h>
29728 #include <sys/time.h>
29734 if ((struct tm *) 0)
29740 rm -f conftest.
$ac_objext
29741 if { (ac_try
="$ac_compile"
29742 case "(($ac_try" in
29743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_compile") 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29755 { (case "(($ac_try" in
29756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29757 *) ac_try_echo
=$ac_try;;
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_try") 2>&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); }; } &&
29764 { ac_try
='test -s conftest.$ac_objext'
29765 { (case "(($ac_try" in
29766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_try") 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ac_cv_header_time=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ac_cv_header_time=no
29782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29785 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29786 if test $ac_cv_header_time = yes; then
29788 cat >>confdefs.h <<\_ACEOF
29789 #define TIME_WITH_SYS_TIME 1
29801 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29803 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29808 echo $ECHO_N "(cached) $ECHO_C" >&6
29810 ac_res=`eval echo '${'$as_ac_Header'}'`
29811 { echo "$as_me:$LINENO: result: $ac_res" >&5
29812 echo "${ECHO_T}$ac_res" >&6; }
29814 # Is the header compilable?
29815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29817 cat >conftest.$ac_ext <<_ACEOF
29820 cat confdefs.h >>conftest.$ac_ext
29821 cat >>conftest.$ac_ext <<_ACEOF
29822 /* end confdefs.h. */
29823 $ac_includes_default
29824 #include <$ac_header>
29826 rm -f conftest.$ac_objext
29827 if { (ac_try="$ac_compile"
29828 case "(($ac_try" in
29829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29830 *) ac_try_echo
=$ac_try;;
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_compile") 2>conftest.er1
29835 grep -v '^ *+' conftest.er1
>conftest.err
29837 cat conftest.err
>&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); } &&
29840 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29841 { (case "(($ac_try" in
29842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_try") 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest.$ac_objext'
29851 { (case "(($ac_try" in
29852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29853 *) ac_try_echo
=$ac_try;;
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_try") 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 ac_header_compiler
=yes
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.
$ac_ext >&5
29865 ac_header_compiler
=no
29868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29870 echo "${ECHO_T}$ac_header_compiler" >&6; }
29872 # Is the header present?
29873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29875 cat >conftest.
$ac_ext <<_ACEOF
29878 cat confdefs.h
>>conftest.
$ac_ext
29879 cat >>conftest.
$ac_ext <<_ACEOF
29880 /* end confdefs.h. */
29881 #include <$ac_header>
29883 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29884 case "(($ac_try" in
29885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29891 grep -v '^ *+' conftest.er1 >conftest.err
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } >/dev/null; then
29896 if test -s conftest.err; then
29897 ac_cpp_err=$ac_c_preproc_warn_flag
29898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29905 if test -z "$ac_cpp_err"; then
29906 ac_header_preproc=yes
29908 echo "$as_me: failed program was:" >&5
29909 sed 's/^/| /' conftest.$ac_ext >&5
29911 ac_header_preproc=no
29914 rm -f conftest.err conftest.$ac_ext
29915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29916 echo "${ECHO_T}$ac_header_preproc" >&6; }
29918 # So? What about this header?
29919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29925 ac_header_preproc=yes
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29941 ## ----------------------------------- ##
29942 ## Report this to llvmbugs@cs.uiuc.edu ##
29943 ## ----------------------------------- ##
29945 ) | sed "s/^/$as_me: WARNING: /" >&2
29948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29951 echo $ECHO_N "(cached) $ECHO_C" >&6
29953 eval "$as_ac_Header=\$ac_header_preproc"
29955 ac_res=`eval echo '${'$as_ac_Header'}'`
29956 { echo "$as_me:$LINENO: result: $ac_res" >&5
29957 echo "${ECHO_T}$ac_res" >&6; }
29960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29961 cat >>confdefs.h <<_ACEOF
29962 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29975 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29977 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29982 echo $ECHO_N "(cached) $ECHO_C" >&6
29984 ac_res=`eval echo '${'$as_ac_Header'}'`
29985 { echo "$as_me:$LINENO: result: $ac_res" >&5
29986 echo "${ECHO_T}$ac_res" >&6; }
29988 # Is the header compilable?
29989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29991 cat >conftest.$ac_ext <<_ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h. */
29997 $ac_includes_default
29998 #include <$ac_header>
30000 rm -f conftest.$ac_objext
30001 if { (ac_try="$ac_compile"
30002 case "(($ac_try" in
30003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30004 *) ac_try_echo
=$ac_try;;
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007 (eval "$ac_compile") 2>conftest.er1
30009 grep -v '^ *+' conftest.er1
>conftest.err
30011 cat conftest.err
>&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } &&
30014 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30015 { (case "(($ac_try" in
30016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_try") 2>&5
30022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023 (exit $ac_status); }; } &&
30024 { ac_try='test -s conftest.$ac_objext'
30025 { (case "(($ac_try" in
30026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30027 *) ac_try_echo
=$ac_try;;
30029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30030 (eval "$ac_try") 2>&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
30034 ac_header_compiler
=yes
30036 echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.
$ac_ext >&5
30039 ac_header_compiler
=no
30042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30044 echo "${ECHO_T}$ac_header_compiler" >&6; }
30046 # Is the header present?
30047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30049 cat >conftest.
$ac_ext <<_ACEOF
30052 cat confdefs.h
>>conftest.
$ac_ext
30053 cat >>conftest.
$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 #include <$ac_header>
30057 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30058 case "(($ac_try" in
30059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30060 *) ac_try_echo=$ac_try;;
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30065 grep -v '^ *+' conftest.er1 >conftest.err
30067 cat conftest.err >&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); } >/dev/null; then
30070 if test -s conftest.err; then
30071 ac_cpp_err=$ac_c_preproc_warn_flag
30072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30079 if test -z "$ac_cpp_err"; then
30080 ac_header_preproc=yes
30082 echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30085 ac_header_preproc=no
30088 rm -f conftest.err conftest.$ac_ext
30089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30090 echo "${ECHO_T}$ac_header_preproc" >&6; }
30092 # So? What about this header?
30093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30099 ac_header_preproc=yes
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30115 ## ----------------------------------- ##
30116 ## Report this to llvmbugs@cs.uiuc.edu ##
30117 ## ----------------------------------- ##
30119 ) | sed "s/^/$as_me: WARNING: /" >&2
30122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30127 eval "$as_ac_Header=\$ac_header_preproc"
30129 ac_res=`eval echo '${'$as_ac_Header'}'`
30130 { echo "$as_me:$LINENO: result: $ac_res" >&5
30131 echo "${ECHO_T}$ac_res" >&6; }
30134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30135 cat >>confdefs.h <<_ACEOF
30136 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30145 for ac_header in utime.h windows.h
30147 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30154 ac_res=`eval echo '${'$as_ac_Header'}'`
30155 { echo "$as_me:$LINENO: result: $ac_res" >&5
30156 echo "${ECHO_T}$ac_res" >&6; }
30158 # Is the header compilable?
30159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30161 cat >conftest.$ac_ext <<_ACEOF
30164 cat confdefs.h >>conftest.$ac_ext
30165 cat >>conftest.$ac_ext <<_ACEOF
30166 /* end confdefs.h. */
30167 $ac_includes_default
30168 #include <$ac_header>
30170 rm -f conftest.$ac_objext
30171 if { (ac_try="$ac_compile"
30172 case "(($ac_try" in
30173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30174 *) ac_try_echo
=$ac_try;;
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_compile") 2>conftest.er1
30179 grep -v '^ *+' conftest.er1
>conftest.err
30181 cat conftest.err
>&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
30184 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185 { (case "(($ac_try" in
30186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest.$ac_objext'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30197 *) ac_try_echo
=$ac_try;;
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
30204 ac_header_compiler
=yes
30206 echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.
$ac_ext >&5
30209 ac_header_compiler
=no
30212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30214 echo "${ECHO_T}$ac_header_compiler" >&6; }
30216 # Is the header present?
30217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30219 cat >conftest.
$ac_ext <<_ACEOF
30222 cat confdefs.h
>>conftest.
$ac_ext
30223 cat >>conftest.
$ac_ext <<_ACEOF
30224 /* end confdefs.h. */
30225 #include <$ac_header>
30227 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30228 case "(($ac_try" in
30229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30235 grep -v '^ *+' conftest.er1 >conftest.err
30237 cat conftest.err >&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); } >/dev/null; then
30240 if test -s conftest.err; then
30241 ac_cpp_err=$ac_c_preproc_warn_flag
30242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30249 if test -z "$ac_cpp_err"; then
30250 ac_header_preproc=yes
30252 echo "$as_me: failed program was:" >&5
30253 sed 's/^/| /' conftest.$ac_ext >&5
30255 ac_header_preproc=no
30258 rm -f conftest.err conftest.$ac_ext
30259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30260 echo "${ECHO_T}$ac_header_preproc" >&6; }
30262 # So? What about this header?
30263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30269 ac_header_preproc=yes
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30285 ## ----------------------------------- ##
30286 ## Report this to llvmbugs@cs.uiuc.edu ##
30287 ## ----------------------------------- ##
30289 ) | sed "s/^/$as_me: WARNING: /" >&2
30292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
30297 eval "$as_ac_Header=\$ac_header_preproc"
30299 ac_res=`eval echo '${'$as_ac_Header'}'`
30300 { echo "$as_me:$LINENO: result: $ac_res" >&5
30301 echo "${ECHO_T}$ac_res" >&6; }
30304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30305 cat >>confdefs.h <<_ACEOF
30306 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30317 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30319 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30324 echo $ECHO_N "(cached) $ECHO_C" >&6
30326 ac_res=`eval echo '${'$as_ac_Header'}'`
30327 { echo "$as_me:$LINENO: result: $ac_res" >&5
30328 echo "${ECHO_T}$ac_res" >&6; }
30330 # Is the header compilable?
30331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30333 cat >conftest.$ac_ext <<_ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30339 $ac_includes_default
30340 #include <$ac_header>
30342 rm -f conftest.$ac_objext
30343 if { (ac_try="$ac_compile"
30344 case "(($ac_try" in
30345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30346 *) ac_try_echo
=$ac_try;;
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349 (eval "$ac_compile") 2>conftest.er1
30351 grep -v '^ *+' conftest.er1
>conftest.err
30353 cat conftest.err
>&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); } &&
30356 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30357 { (case "(($ac_try" in
30358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_try") 2>&5
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; } &&
30366 { ac_try='test -s conftest.$ac_objext'
30367 { (case "(($ac_try" in
30368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30369 *) ac_try_echo
=$ac_try;;
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_try") 2>&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; }; then
30376 ac_header_compiler
=yes
30378 echo "$as_me: failed program was:" >&5
30379 sed 's/^/| /' conftest.
$ac_ext >&5
30381 ac_header_compiler
=no
30384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30386 echo "${ECHO_T}$ac_header_compiler" >&6; }
30388 # Is the header present?
30389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30391 cat >conftest.
$ac_ext <<_ACEOF
30394 cat confdefs.h
>>conftest.
$ac_ext
30395 cat >>conftest.
$ac_ext <<_ACEOF
30396 /* end confdefs.h. */
30397 #include <$ac_header>
30399 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30400 case "(($ac_try" in
30401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30402 *) ac_try_echo=$ac_try;;
30404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30407 grep -v '^ *+' conftest.er1 >conftest.err
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } >/dev/null; then
30412 if test -s conftest.err; then
30413 ac_cpp_err=$ac_c_preproc_warn_flag
30414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30421 if test -z "$ac_cpp_err"; then
30422 ac_header_preproc=yes
30424 echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30427 ac_header_preproc=no
30430 rm -f conftest.err conftest.$ac_ext
30431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30432 echo "${ECHO_T}$ac_header_preproc" >&6; }
30434 # So? What about this header?
30435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30441 ac_header_preproc=yes
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30457 ## ----------------------------------- ##
30458 ## Report this to llvmbugs@cs.uiuc.edu ##
30459 ## ----------------------------------- ##
30461 ) | sed "s/^/$as_me: WARNING: /" >&2
30464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30467 echo $ECHO_N "(cached) $ECHO_C" >&6
30469 eval "$as_ac_Header=\$ac_header_preproc"
30471 ac_res=`eval echo '${'$as_ac_Header'}'`
30472 { echo "$as_me:$LINENO: result: $ac_res" >&5
30473 echo "${ECHO_T}$ac_res" >&6; }
30476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30477 cat >>confdefs.h <<_ACEOF
30478 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30489 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30491 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 ac_res=`eval echo '${'$as_ac_Header'}'`
30499 { echo "$as_me:$LINENO: result: $ac_res" >&5
30500 echo "${ECHO_T}$ac_res" >&6; }
30502 # Is the header compilable?
30503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30505 cat >conftest.$ac_ext <<_ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h. */
30511 $ac_includes_default
30512 #include <$ac_header>
30514 rm -f conftest.$ac_objext
30515 if { (ac_try="$ac_compile"
30516 case "(($ac_try" in
30517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30518 *) ac_try_echo
=$ac_try;;
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_compile") 2>conftest.er1
30523 grep -v '^ *+' conftest.er1
>conftest.err
30525 cat conftest.err
>&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } &&
30528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30529 { (case "(($ac_try" in
30530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30531 *) ac_try_echo=$ac_try;;
30533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30534 (eval "$ac_try") 2>&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; } &&
30538 { ac_try='test -s conftest.$ac_objext'
30539 { (case "(($ac_try" in
30540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30541 *) ac_try_echo
=$ac_try;;
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544 (eval "$ac_try") 2>&5
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548 ac_header_compiler
=yes
30550 echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.
$ac_ext >&5
30553 ac_header_compiler
=no
30556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30558 echo "${ECHO_T}$ac_header_compiler" >&6; }
30560 # Is the header present?
30561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30563 cat >conftest.
$ac_ext <<_ACEOF
30566 cat confdefs.h
>>conftest.
$ac_ext
30567 cat >>conftest.
$ac_ext <<_ACEOF
30568 /* end confdefs.h. */
30569 #include <$ac_header>
30571 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30572 case "(($ac_try" in
30573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30574 *) ac_try_echo=$ac_try;;
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30579 grep -v '^ *+' conftest.er1 >conftest.err
30581 cat conftest.err >&5
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } >/dev/null; then
30584 if test -s conftest.err; then
30585 ac_cpp_err=$ac_c_preproc_warn_flag
30586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30593 if test -z "$ac_cpp_err"; then
30594 ac_header_preproc=yes
30596 echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30599 ac_header_preproc=no
30602 rm -f conftest.err conftest.$ac_ext
30603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30604 echo "${ECHO_T}$ac_header_preproc" >&6; }
30606 # So? What about this header?
30607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30613 ac_header_preproc=yes
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30629 ## ----------------------------------- ##
30630 ## Report this to llvmbugs@cs.uiuc.edu ##
30631 ## ----------------------------------- ##
30633 ) | sed "s/^/$as_me: WARNING: /" >&2
30636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30641 eval "$as_ac_Header=\$ac_header_preproc"
30643 ac_res=`eval echo '${'$as_ac_Header'}'`
30644 { echo "$as_me:$LINENO: result: $ac_res" >&5
30645 echo "${ECHO_T}$ac_res" >&6; }
30648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30649 cat >>confdefs.h <<_ACEOF
30650 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30657 if test "$ENABLE_THREADS" -eq 1 ; then
30659 for ac_header in pthread.h
30661 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30668 ac_res=`eval echo '${'$as_ac_Header'}'`
30669 { echo "$as_me:$LINENO: result: $ac_res" >&5
30670 echo "${ECHO_T}$ac_res" >&6; }
30672 # Is the header compilable?
30673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30675 cat >conftest.$ac_ext <<_ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h. */
30681 $ac_includes_default
30682 #include <$ac_header>
30684 rm -f conftest.$ac_objext
30685 if { (ac_try="$ac_compile"
30686 case "(($ac_try" in
30687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30688 *) ac_try_echo
=$ac_try;;
30690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30691 (eval "$ac_compile") 2>conftest.er1
30693 grep -v '^ *+' conftest.er1
>conftest.err
30695 cat conftest.err
>&5
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); } &&
30698 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30699 { (case "(($ac_try" in
30700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_try") 2>&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; } &&
30708 { ac_try='test -s conftest.$ac_objext'
30709 { (case "(($ac_try" in
30710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30711 *) ac_try_echo
=$ac_try;;
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714 (eval "$ac_try") 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
30718 ac_header_compiler
=yes
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.
$ac_ext >&5
30723 ac_header_compiler
=no
30726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30728 echo "${ECHO_T}$ac_header_compiler" >&6; }
30730 # Is the header present?
30731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30733 cat >conftest.
$ac_ext <<_ACEOF
30736 cat confdefs.h
>>conftest.
$ac_ext
30737 cat >>conftest.
$ac_ext <<_ACEOF
30738 /* end confdefs.h. */
30739 #include <$ac_header>
30741 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30742 case "(($ac_try" in
30743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30749 grep -v '^ *+' conftest.er1 >conftest.err
30751 cat conftest.err >&5
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); } >/dev/null; then
30754 if test -s conftest.err; then
30755 ac_cpp_err=$ac_c_preproc_warn_flag
30756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30763 if test -z "$ac_cpp_err"; then
30764 ac_header_preproc=yes
30766 echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30769 ac_header_preproc=no
30772 rm -f conftest.err conftest.$ac_ext
30773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30774 echo "${ECHO_T}$ac_header_preproc" >&6; }
30776 # So? What about this header?
30777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30783 ac_header_preproc=yes
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30799 ## ----------------------------------- ##
30800 ## Report this to llvmbugs@cs.uiuc.edu ##
30801 ## ----------------------------------- ##
30803 ) | sed "s/^/$as_me: WARNING: /" >&2
30806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30809 echo $ECHO_N "(cached) $ECHO_C" >&6
30811 eval "$as_ac_Header=\$ac_header_preproc"
30813 ac_res=`eval echo '${'$as_ac_Header'}'`
30814 { echo "$as_me:$LINENO: result: $ac_res" >&5
30815 echo "${ECHO_T}$ac_res" >&6; }
30818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30836 if test "$llvm_cv_enable_libffi" = "yes" ; then
30839 for ac_header in ffi.h ffi/ffi.h
30841 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30848 ac_res=`eval echo '${'$as_ac_Header'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850 echo "${ECHO_T}$ac_res" >&6; }
30852 # Is the header compilable?
30853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30855 cat >conftest.$ac_ext <<_ACEOF
30858 cat confdefs.h >>conftest.$ac_ext
30859 cat >>conftest.$ac_ext <<_ACEOF
30860 /* end confdefs.h. */
30861 $ac_includes_default
30862 #include <$ac_header>
30864 rm -f conftest.$ac_objext
30865 if { (ac_try="$ac_compile"
30866 case "(($ac_try" in
30867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30868 *) ac_try_echo
=$ac_try;;
30870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871 (eval "$ac_compile") 2>conftest.er1
30873 grep -v '^ *+' conftest.er1
>conftest.err
30875 cat conftest.err
>&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } &&
30878 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30879 { (case "(($ac_try" in
30880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_try") 2>&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest.$ac_objext'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30891 *) ac_try_echo
=$ac_try;;
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 ac_header_compiler
=yes
30900 echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.
$ac_ext >&5
30903 ac_header_compiler
=no
30906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30908 echo "${ECHO_T}$ac_header_compiler" >&6; }
30910 # Is the header present?
30911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30913 cat >conftest.
$ac_ext <<_ACEOF
30916 cat confdefs.h
>>conftest.
$ac_ext
30917 cat >>conftest.
$ac_ext <<_ACEOF
30918 /* end confdefs.h. */
30919 #include <$ac_header>
30921 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30922 case "(($ac_try" in
30923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30924 *) ac_try_echo=$ac_try;;
30926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30929 grep -v '^ *+' conftest.er1 >conftest.err
30931 cat conftest.err >&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); } >/dev/null; then
30934 if test -s conftest.err; then
30935 ac_cpp_err=$ac_c_preproc_warn_flag
30936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30943 if test -z "$ac_cpp_err"; then
30944 ac_header_preproc=yes
30946 echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30949 ac_header_preproc=no
30952 rm -f conftest.err conftest.$ac_ext
30953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30954 echo "${ECHO_T}$ac_header_preproc" >&6; }
30956 # So? What about this header?
30957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30963 ac_header_preproc=yes
30966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30979 ## ----------------------------------- ##
30980 ## Report this to llvmbugs@cs.uiuc.edu ##
30981 ## ----------------------------------- ##
30983 ) | sed "s/^/$as_me: WARNING: /" >&2
30986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 eval "$as_ac_Header=\$ac_header_preproc"
30993 ac_res=`eval echo '${'$as_ac_Header'}'`
30994 { echo "$as_me:$LINENO: result: $ac_res" >&5
30995 echo "${ECHO_T}$ac_res" >&6; }
30998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30999 cat >>confdefs.h <<_ACEOF
31000 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
31011 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31012 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31013 if test "${ac_cv_huge_val_sanity+set}" = set; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31018 ac_cpp='$CXXCPP $CPPFLAGS'
31019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31024 if test "$cross_compiling" = yes; then
31025 ac_cv_huge_val_sanity=yes
31027 cat >conftest.$ac_ext <<_ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h. */
31037 double x = HUGE_VAL; return x != x;
31042 rm -f conftest$ac_exeext
31043 if { (ac_try="$ac_link"
31044 case "(($ac_try" in
31045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31046 *) ac_try_echo
=$ac_try;;
31048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_link") 2>&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31053 { (case "(($ac_try" in
31054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_try") 2>&5
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); }; }; then
31062 ac_cv_huge_val_sanity=yes
31064 echo "$as_me: program exited with status $ac_status" >&5
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31068 ( exit $ac_status )
31069 ac_cv_huge_val_sanity=no
31071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31076 ac_cpp='$CPP $CPPFLAGS'
31077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31083 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31084 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31085 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31088 { echo "$as_me:$LINENO: checking for pid_t" >&5
31089 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31090 if test "${ac_cv_type_pid_t+set}" = set; then
31091 echo $ECHO_N "(cached) $ECHO_C" >&6
31093 cat >conftest.$ac_ext <<_ACEOF
31096 cat confdefs.h >>conftest.$ac_ext
31097 cat >>conftest.$ac_ext <<_ACEOF
31098 /* end confdefs.h. */
31099 $ac_includes_default
31100 typedef pid_t ac__type_new_;
31104 if ((ac__type_new_ *) 0)
31106 if (sizeof (ac__type_new_))
31112 rm -f conftest.$ac_objext
31113 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_cv_type_pid_t
=yes
31148 echo "$as_me: failed program was:" >&5
31149 sed 's/^/| /' conftest.
$ac_ext >&5
31151 ac_cv_type_pid_t
=no
31154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31156 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31157 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31158 if test $ac_cv_type_pid_t = yes; then
31162 cat >>confdefs.h
<<_ACEOF
31168 { echo "$as_me:$LINENO: checking for size_t" >&5
31169 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31170 if test "${ac_cv_type_size_t+set}" = set; then
31171 echo $ECHO_N "(cached) $ECHO_C" >&6
31173 cat >conftest.
$ac_ext <<_ACEOF
31176 cat confdefs.h
>>conftest.
$ac_ext
31177 cat >>conftest.
$ac_ext <<_ACEOF
31178 /* end confdefs.h. */
31179 $ac_includes_default
31180 typedef size_t ac__type_new_;
31184 if ((ac__type_new_ *) 0)
31186 if (sizeof (ac__type_new_))
31192 rm -f conftest.
$ac_objext
31193 if { (ac_try
="$ac_compile"
31194 case "(($ac_try" in
31195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31196 *) ac_try_echo=$ac_try;;
31198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31199 (eval "$ac_compile") 2>conftest.er1
31201 grep -v '^ *+' conftest.er1 >conftest.err
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } &&
31206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31207 { (case "(($ac_try" in
31208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31209 *) ac_try_echo
=$ac_try;;
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_try") 2>&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); }; } &&
31216 { ac_try
='test -s conftest.$ac_objext'
31217 { (case "(($ac_try" in
31218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_try") 2>&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; }; then
31226 ac_cv_type_size_t=yes
31228 echo "$as_me: failed program was:" >&5
31229 sed 's/^/| /' conftest.$ac_ext >&5
31231 ac_cv_type_size_t=no
31234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31236 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31237 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31238 if test $ac_cv_type_size_t = yes; then
31242 cat >>confdefs.h <<_ACEOF
31243 #define size_t unsigned int
31248 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31250 if test "${ac_cv_type_signal+set}" = set; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31253 cat >conftest.$ac_ext <<_ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h. */
31259 #include <sys/types.h>
31260 #include <signal.h>
31265 return *(signal (0, 0)) (0) == 1;
31270 rm -f conftest.$ac_objext
31271 if { (ac_try="$ac_compile"
31272 case "(($ac_try" in
31273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31274 *) ac_try_echo
=$ac_try;;
31276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277 (eval "$ac_compile") 2>conftest.er1
31279 grep -v '^ *+' conftest.er1
>conftest.err
31281 cat conftest.err
>&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); } &&
31284 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31285 { (case "(($ac_try" in
31286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_try") 2>&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; } &&
31294 { ac_try='test -s conftest.$ac_objext'
31295 { (case "(($ac_try" in
31296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31297 *) ac_try_echo
=$ac_try;;
31299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_try") 2>&5
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
31304 ac_cv_type_signal
=int
31306 echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.
$ac_ext >&5
31309 ac_cv_type_signal
=void
31312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31314 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31315 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31317 cat >>confdefs.h
<<_ACEOF
31318 #define RETSIGTYPE $ac_cv_type_signal
31322 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31324 if test "${ac_cv_struct_tm+set}" = set; then
31325 echo $ECHO_N "(cached) $ECHO_C" >&6
31327 cat >conftest.
$ac_ext <<_ACEOF
31330 cat confdefs.h
>>conftest.
$ac_ext
31331 cat >>conftest.
$ac_ext <<_ACEOF
31332 /* end confdefs.h. */
31333 #include <sys/types.h>
31339 struct tm *tp; tp->tm_sec;
31344 rm -f conftest.
$ac_objext
31345 if { (ac_try
="$ac_compile"
31346 case "(($ac_try" in
31347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_compile") 2>conftest.er1
31353 grep -v '^ *+' conftest.er1 >conftest.err
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } &&
31358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31361 *) ac_try_echo
=$ac_try;;
31363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try
='test -s conftest.$ac_objext'
31369 { (case "(($ac_try" in
31370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_try") 2>&5
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; }; then
31378 ac_cv_struct_tm=time.h
31380 echo "$as_me: failed program was:" >&5
31381 sed 's/^/| /' conftest.$ac_ext >&5
31383 ac_cv_struct_tm=sys/time.h
31386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31388 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31389 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31390 if test $ac_cv_struct_tm = sys/time.h; then
31392 cat >>confdefs.h <<\_ACEOF
31393 #define TM_IN_SYS_TIME 1
31398 { echo "$as_me:$LINENO: checking for int64_t" >&5
31399 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31400 if test "${ac_cv_type_int64_t+set}" = set; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31403 cat >conftest.$ac_ext <<_ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h. */
31409 $ac_includes_default
31410 typedef int64_t ac__type_new_;
31414 if ((ac__type_new_ *) 0)
31416 if (sizeof (ac__type_new_))
31422 rm -f conftest.$ac_objext
31423 if { (ac_try="$ac_compile"
31424 case "(($ac_try" in
31425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31426 *) ac_try_echo
=$ac_try;;
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429 (eval "$ac_compile") 2>conftest.er1
31431 grep -v '^ *+' conftest.er1
>conftest.err
31433 cat conftest.err
>&5
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } &&
31436 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31437 { (case "(($ac_try" in
31438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_try") 2>&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; } &&
31446 { ac_try='test -s conftest.$ac_objext'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31449 *) ac_try_echo
=$ac_try;;
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
31456 ac_cv_type_int64_t
=yes
31458 echo "$as_me: failed program was:" >&5
31459 sed 's/^/| /' conftest.
$ac_ext >&5
31461 ac_cv_type_int64_t
=no
31464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31466 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31467 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31468 if test $ac_cv_type_int64_t = yes; then
31470 cat >>confdefs.h
<<_ACEOF
31471 #define HAVE_INT64_T 1
31476 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31477 echo "$as_me: error: Type int64_t required but not found" >&2;}
31478 { (exit 1); exit 1; }; }
31481 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31482 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31483 if test "${ac_cv_type_uint64_t+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31486 cat >conftest.
$ac_ext <<_ACEOF
31489 cat confdefs.h
>>conftest.
$ac_ext
31490 cat >>conftest.
$ac_ext <<_ACEOF
31491 /* end confdefs.h. */
31492 $ac_includes_default
31493 typedef uint64_t ac__type_new_;
31497 if ((ac__type_new_ *) 0)
31499 if (sizeof (ac__type_new_))
31505 rm -f conftest.
$ac_objext
31506 if { (ac_try
="$ac_compile"
31507 case "(($ac_try" in
31508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512 (eval "$ac_compile") 2>conftest.er1
31514 grep -v '^ *+' conftest.er1 >conftest.err
31516 cat conftest.err >&5
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); } &&
31519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31520 { (case "(($ac_try" in
31521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31522 *) ac_try_echo
=$ac_try;;
31524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525 (eval "$ac_try") 2>&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); }; } &&
31529 { ac_try
='test -s conftest.$ac_objext'
31530 { (case "(($ac_try" in
31531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535 (eval "$ac_try") 2>&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); }; }; then
31539 ac_cv_type_uint64_t=yes
31541 echo "$as_me: failed program was:" >&5
31542 sed 's/^/| /' conftest.$ac_ext >&5
31544 ac_cv_type_uint64_t=no
31547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31549 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31550 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31551 if test $ac_cv_type_uint64_t = yes; then
31553 cat >>confdefs.h <<_ACEOF
31554 #define HAVE_UINT64_T 1
31559 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31560 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31561 if test "${ac_cv_type_u_int64_t+set}" = set; then
31562 echo $ECHO_N "(cached) $ECHO_C" >&6
31564 cat >conftest.$ac_ext <<_ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31570 $ac_includes_default
31571 typedef u_int64_t ac__type_new_;
31575 if ((ac__type_new_ *) 0)
31577 if (sizeof (ac__type_new_))
31583 rm -f conftest.$ac_objext
31584 if { (ac_try="$ac_compile"
31585 case "(($ac_try" in
31586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31587 *) ac_try_echo
=$ac_try;;
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590 (eval "$ac_compile") 2>conftest.er1
31592 grep -v '^ *+' conftest.er1
>conftest.err
31594 cat conftest.err
>&5
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); } &&
31597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31598 { (case "(($ac_try" in
31599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_try") 2>&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; } &&
31607 { ac_try='test -s conftest.$ac_objext'
31608 { (case "(($ac_try" in
31609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31610 *) ac_try_echo
=$ac_try;;
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_try") 2>&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; }; then
31617 ac_cv_type_u_int64_t
=yes
31619 echo "$as_me: failed program was:" >&5
31620 sed 's/^/| /' conftest.
$ac_ext >&5
31622 ac_cv_type_u_int64_t
=no
31625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31627 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31628 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31629 if test $ac_cv_type_u_int64_t = yes; then
31631 cat >>confdefs.h
<<_ACEOF
31632 #define HAVE_U_INT64_T 1
31637 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31638 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31639 { (exit 1); exit 1; }; }
31653 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31655 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31658 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31661 cat >conftest.
$ac_ext <<_ACEOF
31664 cat confdefs.h
>>conftest.
$ac_ext
31665 cat >>conftest.
$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31669 #define $ac_func innocuous_$ac_func
31671 /* System header to define __stub macros and hopefully few prototypes,
31672 which can conflict with char $ac_func (); below.
31673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31674 <limits.h> exists even on freestanding compilers. */
31677 # include <limits.h>
31679 # include <assert.h>
31684 /* Override any GCC internal prototype to avoid an error.
31685 Use char because int might match the return type of a GCC
31686 builtin and then its argument prototype would still apply. */
31691 /* The GNU C library defines this for functions which it implements
31692 to always fail with ENOSYS. Some functions are actually named
31693 something starting with __ and the normal name is an alias. */
31694 #if defined __stub_$ac_func || defined __stub___$ac_func
31701 return $ac_func ();
31706 rm -f conftest.
$ac_objext conftest
$ac_exeext
31707 if { (ac_try
="$ac_link"
31708 case "(($ac_try" in
31709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31710 *) ac_try_echo=$ac_try;;
31712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713 (eval "$ac_link") 2>conftest.er1
31715 grep -v '^ *+' conftest.er1 >conftest.err
31717 cat conftest.err >&5
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); } &&
31720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31723 *) ac_try_echo
=$ac_try;;
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; } &&
31730 { ac_try
='test -s conftest$ac_exeext'
31731 { (case "(($ac_try" in
31732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_try") 2>&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; }; then
31740 eval "$as_ac_var=yes"
31742 echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31745 eval "$as_ac_var=no"
31748 rm -f core conftest.err conftest.$ac_objext \
31749 conftest$ac_exeext conftest.$ac_ext
31751 ac_res=`eval echo '${'$as_ac_var'}'`
31752 { echo "$as_me:$LINENO: result: $ac_res" >&5
31753 echo "${ECHO_T}$ac_res" >&6; }
31754 if test `eval echo '${'$as_ac_var'}'` = yes; then
31755 cat >>confdefs.h <<_ACEOF
31756 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31766 for ac_func in powf fmodf strtof round
31768 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31774 cat >conftest.$ac_ext <<_ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h. */
31780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31782 #define $ac_func innocuous_$ac_func
31784 /* System header to define __stub macros and hopefully few prototypes,
31785 which can conflict with char $ac_func (); below.
31786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31787 <limits.h> exists even on freestanding compilers. */
31790 # include <limits.h>
31792 # include <assert.h>
31797 /* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
31804 /* The GNU C library defines this for functions which it implements
31805 to always fail with ENOSYS. Some functions are actually named
31806 something starting with __ and the normal name is an alias. */
31807 #if defined __stub_$ac_func || defined __stub___$ac_func
31814 return $ac_func ();
31819 rm -f conftest.$ac_objext conftest$ac_exeext
31820 if { (ac_try="$ac_link"
31821 case "(($ac_try" in
31822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31823 *) ac_try_echo
=$ac_try;;
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_link") 2>conftest.er1
31828 grep -v '^ *+' conftest.er1
>conftest.err
31830 cat conftest.err
>&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
31833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31834 { (case "(($ac_try" in
31835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_try") 2>&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest$ac_exeext'
31844 { (case "(($ac_try" in
31845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31846 *) ac_try_echo
=$ac_try;;
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_try") 2>&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
31853 eval "$as_ac_var=yes"
31855 echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.
$ac_ext >&5
31858 eval "$as_ac_var=no"
31861 rm -f core conftest.err conftest.
$ac_objext \
31862 conftest
$ac_exeext conftest.
$ac_ext
31864 ac_res
=`eval echo '${'$as_ac_var'}'`
31865 { echo "$as_me:$LINENO: result: $ac_res" >&5
31866 echo "${ECHO_T}$ac_res" >&6; }
31867 if test `eval echo '${'$as_ac_var'}'` = yes; then
31868 cat >>confdefs.h
<<_ACEOF
31869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31880 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
31882 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31885 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31886 echo $ECHO_N "(cached) $ECHO_C" >&6
31888 cat >conftest.
$ac_ext <<_ACEOF
31891 cat confdefs.h
>>conftest.
$ac_ext
31892 cat >>conftest.
$ac_ext <<_ACEOF
31893 /* end confdefs.h. */
31894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31896 #define $ac_func innocuous_$ac_func
31898 /* System header to define __stub macros and hopefully few prototypes,
31899 which can conflict with char $ac_func (); below.
31900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31901 <limits.h> exists even on freestanding compilers. */
31904 # include <limits.h>
31906 # include <assert.h>
31911 /* Override any GCC internal prototype to avoid an error.
31912 Use char because int might match the return type of a GCC
31913 builtin and then its argument prototype would still apply. */
31918 /* The GNU C library defines this for functions which it implements
31919 to always fail with ENOSYS. Some functions are actually named
31920 something starting with __ and the normal name is an alias. */
31921 #if defined __stub_$ac_func || defined __stub___$ac_func
31928 return $ac_func ();
31933 rm -f conftest.
$ac_objext conftest
$ac_exeext
31934 if { (ac_try
="$ac_link"
31935 case "(($ac_try" in
31936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_link") 2>conftest.er1
31942 grep -v '^ *+' conftest.er1 >conftest.err
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } &&
31947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31948 { (case "(($ac_try" in
31949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31950 *) ac_try_echo
=$ac_try;;
31952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_try") 2>&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; } &&
31957 { ac_try
='test -s conftest$ac_exeext'
31958 { (case "(($ac_try" in
31959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31960 *) ac_try_echo=$ac_try;;
31962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31963 (eval "$ac_try") 2>&5
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; }; then
31967 eval "$as_ac_var=yes"
31969 echo "$as_me: failed program was:" >&5
31970 sed 's/^/| /' conftest.$ac_ext >&5
31972 eval "$as_ac_var=no"
31975 rm -f core conftest.err conftest.$ac_objext \
31976 conftest$ac_exeext conftest.$ac_ext
31978 ac_res=`eval echo '${'$as_ac_var'}'`
31979 { echo "$as_me:$LINENO: result: $ac_res" >&5
31980 echo "${ECHO_T}$ac_res" >&6; }
31981 if test `eval echo '${'$as_ac_var'}'` = yes; then
31982 cat >>confdefs.h <<_ACEOF
31983 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
31992 for ac_func in isatty mkdtemp mkstemp
31994 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
31995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
32000 cat >conftest.$ac_ext <<_ACEOF
32003 cat confdefs.h >>conftest.$ac_ext
32004 cat >>conftest.$ac_ext <<_ACEOF
32005 /* end confdefs.h. */
32006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32008 #define $ac_func innocuous_$ac_func
32010 /* System header to define __stub macros and hopefully few prototypes,
32011 which can conflict with char $ac_func (); below.
32012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013 <limits.h> exists even on freestanding compilers. */
32016 # include <limits.h>
32018 # include <assert.h>
32023 /* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply. */
32030 /* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
32033 #if defined __stub_$ac_func || defined __stub___$ac_func
32040 return $ac_func ();
32045 rm -f conftest.$ac_objext conftest$ac_exeext
32046 if { (ac_try="$ac_link"
32047 case "(($ac_try" in
32048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32049 *) ac_try_echo
=$ac_try;;
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_link") 2>conftest.er1
32054 grep -v '^ *+' conftest.er1
>conftest.err
32056 cat conftest.err
>&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
32059 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060 { (case "(($ac_try" in
32061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
32070 { (case "(($ac_try" in
32071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32072 *) ac_try_echo
=$ac_try;;
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_try") 2>&5
32077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); }; }; then
32079 eval "$as_ac_var=yes"
32081 echo "$as_me: failed program was:" >&5
32082 sed 's/^/| /' conftest.
$ac_ext >&5
32084 eval "$as_ac_var=no"
32087 rm -f core conftest.err conftest.
$ac_objext \
32088 conftest
$ac_exeext conftest.
$ac_ext
32090 ac_res
=`eval echo '${'$as_ac_var'}'`
32091 { echo "$as_me:$LINENO: result: $ac_res" >&5
32092 echo "${ECHO_T}$ac_res" >&6; }
32093 if test `eval echo '${'$as_ac_var'}'` = yes; then
32094 cat >>confdefs.h
<<_ACEOF
32095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32106 for ac_func
in mktemp realpath sbrk setrlimit strdup
32108 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32111 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32112 echo $ECHO_N "(cached) $ECHO_C" >&6
32114 cat >conftest.
$ac_ext <<_ACEOF
32117 cat confdefs.h
>>conftest.
$ac_ext
32118 cat >>conftest.
$ac_ext <<_ACEOF
32119 /* end confdefs.h. */
32120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32122 #define $ac_func innocuous_$ac_func
32124 /* System header to define __stub macros and hopefully few prototypes,
32125 which can conflict with char $ac_func (); below.
32126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32127 <limits.h> exists even on freestanding compilers. */
32130 # include <limits.h>
32132 # include <assert.h>
32137 /* Override any GCC internal prototype to avoid an error.
32138 Use char because int might match the return type of a GCC
32139 builtin and then its argument prototype would still apply. */
32144 /* The GNU C library defines this for functions which it implements
32145 to always fail with ENOSYS. Some functions are actually named
32146 something starting with __ and the normal name is an alias. */
32147 #if defined __stub_$ac_func || defined __stub___$ac_func
32154 return $ac_func ();
32159 rm -f conftest.
$ac_objext conftest
$ac_exeext
32160 if { (ac_try
="$ac_link"
32161 case "(($ac_try" in
32162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32163 *) ac_try_echo=$ac_try;;
32165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166 (eval "$ac_link") 2>conftest.er1
32168 grep -v '^ *+' conftest.er1 >conftest.err
32170 cat conftest.err >&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } &&
32173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32174 { (case "(($ac_try" in
32175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32176 *) ac_try_echo
=$ac_try;;
32178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179 (eval "$ac_try") 2>&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; } &&
32183 { ac_try
='test -s conftest$ac_exeext'
32184 { (case "(($ac_try" in
32185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_try") 2>&5
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; }; then
32193 eval "$as_ac_var=yes"
32195 echo "$as_me: failed program was:" >&5
32196 sed 's/^/| /' conftest.$ac_ext >&5
32198 eval "$as_ac_var=no"
32201 rm -f core conftest.err conftest.$ac_objext \
32202 conftest$ac_exeext conftest.$ac_ext
32204 ac_res=`eval echo '${'$as_ac_var'}'`
32205 { echo "$as_me:$LINENO: result: $ac_res" >&5
32206 echo "${ECHO_T}$ac_res" >&6; }
32207 if test `eval echo '${'$as_ac_var'}'` = yes; then
32208 cat >>confdefs.h <<_ACEOF
32209 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32218 for ac_func in strerror strerror_r strerror_s
32220 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32224 echo $ECHO_N "(cached) $ECHO_C" >&6
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32234 #define $ac_func innocuous_$ac_func
32236 /* System header to define __stub macros and hopefully few prototypes,
32237 which can conflict with char $ac_func (); below.
32238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32239 <limits.h> exists even on freestanding compilers. */
32242 # include <limits.h>
32244 # include <assert.h>
32249 /* Override any GCC internal prototype to avoid an error.
32250 Use char because int might match the return type of a GCC
32251 builtin and then its argument prototype would still apply. */
32256 /* The GNU C library defines this for functions which it implements
32257 to always fail with ENOSYS. Some functions are actually named
32258 something starting with __ and the normal name is an alias. */
32259 #if defined __stub_$ac_func || defined __stub___$ac_func
32266 return $ac_func ();
32271 rm -f conftest.$ac_objext conftest$ac_exeext
32272 if { (ac_try="$ac_link"
32273 case "(($ac_try" in
32274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32275 *) ac_try_echo
=$ac_try;;
32277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278 (eval "$ac_link") 2>conftest.er1
32280 grep -v '^ *+' conftest.er1
>conftest.err
32282 cat conftest.err
>&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } &&
32285 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32286 { (case "(($ac_try" in
32287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_try") 2>&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest$ac_exeext'
32296 { (case "(($ac_try" in
32297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32298 *) ac_try_echo
=$ac_try;;
32300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301 (eval "$ac_try") 2>&5
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
32305 eval "$as_ac_var=yes"
32307 echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.
$ac_ext >&5
32310 eval "$as_ac_var=no"
32313 rm -f core conftest.err conftest.
$ac_objext \
32314 conftest
$ac_exeext conftest.
$ac_ext
32316 ac_res
=`eval echo '${'$as_ac_var'}'`
32317 { echo "$as_me:$LINENO: result: $ac_res" >&5
32318 echo "${ECHO_T}$ac_res" >&6; }
32319 if test `eval echo '${'$as_ac_var'}'` = yes; then
32320 cat >>confdefs.h
<<_ACEOF
32321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32331 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
32333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32336 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32337 echo $ECHO_N "(cached) $ECHO_C" >&6
32339 cat >conftest.
$ac_ext <<_ACEOF
32342 cat confdefs.h
>>conftest.
$ac_ext
32343 cat >>conftest.
$ac_ext <<_ACEOF
32344 /* end confdefs.h. */
32345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32347 #define $ac_func innocuous_$ac_func
32349 /* System header to define __stub macros and hopefully few prototypes,
32350 which can conflict with char $ac_func (); below.
32351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32352 <limits.h> exists even on freestanding compilers. */
32355 # include <limits.h>
32357 # include <assert.h>
32362 /* Override any GCC internal prototype to avoid an error.
32363 Use char because int might match the return type of a GCC
32364 builtin and then its argument prototype would still apply. */
32369 /* The GNU C library defines this for functions which it implements
32370 to always fail with ENOSYS. Some functions are actually named
32371 something starting with __ and the normal name is an alias. */
32372 #if defined __stub_$ac_func || defined __stub___$ac_func
32379 return $ac_func ();
32384 rm -f conftest.
$ac_objext conftest
$ac_exeext
32385 if { (ac_try
="$ac_link"
32386 case "(($ac_try" in
32387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_link") 2>conftest.er1
32393 grep -v '^ *+' conftest.er1 >conftest.err
32395 cat conftest.err >&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); } &&
32398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32399 { (case "(($ac_try" in
32400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32401 *) ac_try_echo
=$ac_try;;
32403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_try") 2>&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; } &&
32408 { ac_try
='test -s conftest$ac_exeext'
32409 { (case "(($ac_try" in
32410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32411 *) ac_try_echo=$ac_try;;
32413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414 (eval "$ac_try") 2>&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); }; }; then
32418 eval "$as_ac_var=yes"
32420 echo "$as_me: failed program was:" >&5
32421 sed 's/^/| /' conftest.$ac_ext >&5
32423 eval "$as_ac_var=no"
32426 rm -f core conftest.err conftest.$ac_objext \
32427 conftest$ac_exeext conftest.$ac_ext
32429 ac_res=`eval echo '${'$as_ac_var'}'`
32430 { echo "$as_me:$LINENO: result: $ac_res" >&5
32431 echo "${ECHO_T}$ac_res" >&6; }
32432 if test `eval echo '${'$as_ac_var'}'` = yes; then
32433 cat >>confdefs.h <<_ACEOF
32434 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32444 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32446 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
32447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32450 echo $ECHO_N "(cached) $ECHO_C" >&6
32452 cat >conftest.$ac_ext <<_ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h. */
32458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32460 #define $ac_func innocuous_$ac_func
32462 /* System header to define __stub macros and hopefully few prototypes,
32463 which can conflict with char $ac_func (); below.
32464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32465 <limits.h> exists even on freestanding compilers. */
32468 # include <limits.h>
32470 # include <assert.h>
32475 /* Override any GCC internal prototype to avoid an error.
32476 Use char because int might match the return type of a GCC
32477 builtin and then its argument prototype would still apply. */
32482 /* The GNU C library defines this for functions which it implements
32483 to always fail with ENOSYS. Some functions are actually named
32484 something starting with __ and the normal name is an alias. */
32485 #if defined __stub_$ac_func || defined __stub___$ac_func
32492 return $ac_func ();
32497 rm -f conftest.$ac_objext conftest$ac_exeext
32498 if { (ac_try="$ac_link"
32499 case "(($ac_try" in
32500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32501 *) ac_try_echo
=$ac_try;;
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504 (eval "$ac_link") 2>conftest.er1
32506 grep -v '^ *+' conftest.er1
>conftest.err
32508 cat conftest.err
>&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); } &&
32511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32512 { (case "(($ac_try" in
32513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_try") 2>&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; } &&
32521 { ac_try='test -s conftest$ac_exeext'
32522 { (case "(($ac_try" in
32523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32524 *) ac_try_echo
=$ac_try;;
32526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32527 (eval "$ac_try") 2>&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; }; then
32531 eval "$as_ac_var=yes"
32533 echo "$as_me: failed program was:" >&5
32534 sed 's/^/| /' conftest.
$ac_ext >&5
32536 eval "$as_ac_var=no"
32539 rm -f core conftest.err conftest.
$ac_objext \
32540 conftest
$ac_exeext conftest.
$ac_ext
32542 ac_res
=`eval echo '${'$as_ac_var'}'`
32543 { echo "$as_me:$LINENO: result: $ac_res" >&5
32544 echo "${ECHO_T}$ac_res" >&6; }
32545 if test `eval echo '${'$as_ac_var'}'` = yes; then
32546 cat >>confdefs.h
<<_ACEOF
32547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32553 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32554 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32555 if test "${llvm_cv_c_printf_a+set}" = set; then
32556 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 ac_cpp
='$CPP $CPPFLAGS'
32560 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32564 if test "$cross_compiling" = yes; then
32565 llvmac_cv_c_printf_a
=no
32567 cat >conftest.
$ac_ext <<_ACEOF
32571 cat confdefs.h
>>conftest.
$ac_ext
32572 cat >>conftest.
$ac_ext <<_ACEOF
32573 /* end confdefs.h. */
32576 #include <stdlib.h>
32582 volatile double A, B;
32586 sprintf(Buffer, "%a", A);
32590 if (A != 0x1.999999999999ap-4)
32597 rm -f conftest
$ac_exeext
32598 if { (ac_try
="$ac_link"
32599 case "(($ac_try" in
32600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32601 *) ac_try_echo=$ac_try;;
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604 (eval "$ac_link") 2>&5
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32608 { (case "(($ac_try" in
32609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32610 *) ac_try_echo
=$ac_try;;
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613 (eval "$ac_try") 2>&5
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); }; }; then
32617 llvm_cv_c_printf_a
=yes
32619 echo "$as_me: program exited with status $ac_status" >&5
32620 echo "$as_me: failed program was:" >&5
32621 sed 's/^/| /' conftest.
$ac_ext >&5
32623 ( exit $ac_status )
32624 llvmac_cv_c_printf_a
=no
32626 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32631 ac_cpp
='$CPP $CPPFLAGS'
32632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
32637 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32638 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32639 if test "$llvm_cv_c_printf_a" = "yes"; then
32641 cat >>confdefs.h
<<\_ACEOF
32642 #define HAVE_PRINTF_A 1
32647 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32648 # for constant arguments. Useless!
32649 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32650 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32651 if test "${ac_cv_working_alloca_h+set}" = set; then
32652 echo $ECHO_N "(cached) $ECHO_C" >&6
32654 cat >conftest.
$ac_ext <<_ACEOF
32657 cat confdefs.h
>>conftest.
$ac_ext
32658 cat >>conftest.
$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660 #include <alloca.h>
32664 char *p = (char *) alloca (2 * sizeof (int));
32670 rm -f conftest.
$ac_objext conftest
$ac_exeext
32671 if { (ac_try
="$ac_link"
32672 case "(($ac_try" in
32673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_link") 2>conftest.er1
32679 grep -v '^ *+' conftest.er1 >conftest.err
32681 cat conftest.err >&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); } &&
32684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32685 { (case "(($ac_try" in
32686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32687 *) ac_try_echo
=$ac_try;;
32689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_try") 2>&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; } &&
32694 { ac_try
='test -s conftest$ac_exeext'
32695 { (case "(($ac_try" in
32696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32697 *) ac_try_echo=$ac_try;;
32699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700 (eval "$ac_try") 2>&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; }; then
32704 ac_cv_working_alloca_h=yes
32706 echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32709 ac_cv_working_alloca_h=no
32712 rm -f core conftest.err conftest.$ac_objext \
32713 conftest$ac_exeext conftest.$ac_ext
32715 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32716 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32717 if test $ac_cv_working_alloca_h = yes; then
32719 cat >>confdefs.h <<\_ACEOF
32720 #define HAVE_ALLOCA_H 1
32725 { echo "$as_me:$LINENO: checking for alloca" >&5
32726 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32727 if test "${ac_cv_func_alloca_works+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32730 cat >conftest.$ac_ext <<_ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h. */
32737 # define alloca __builtin_alloca
32740 # include <malloc.h>
32741 # define alloca _alloca
32744 # include <alloca.h>
32749 # ifndef alloca /* predefined by HP cc +Olibcalls */
32760 char *p = (char *) alloca (1);
32766 rm -f conftest.$ac_objext conftest$ac_exeext
32767 if { (ac_try="$ac_link"
32768 case "(($ac_try" in
32769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32770 *) ac_try_echo
=$ac_try;;
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_link") 2>conftest.er1
32775 grep -v '^ *+' conftest.er1
>conftest.err
32777 cat conftest.err
>&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); } &&
32780 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32781 { (case "(($ac_try" in
32782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_try") 2>&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); }; } &&
32790 { ac_try='test -s conftest$ac_exeext'
32791 { (case "(($ac_try" in
32792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32793 *) ac_try_echo
=$ac_try;;
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796 (eval "$ac_try") 2>&5
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; }; then
32800 ac_cv_func_alloca_works
=yes
32802 echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.
$ac_ext >&5
32805 ac_cv_func_alloca_works
=no
32808 rm -f core conftest.err conftest.
$ac_objext \
32809 conftest
$ac_exeext conftest.
$ac_ext
32811 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32812 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32814 if test $ac_cv_func_alloca_works = yes; then
32816 cat >>confdefs.h
<<\_ACEOF
32817 #define HAVE_ALLOCA 1
32821 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32822 # that cause trouble. Some versions do not even contain alloca or
32823 # contain a buggy version. If you still want to use their alloca,
32824 # use ar to extract alloca.o from them instead of compiling alloca.c.
32826 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
32828 cat >>confdefs.h
<<\_ACEOF
32833 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32834 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32835 if test "${ac_cv_os_cray+set}" = set; then
32836 echo $ECHO_N "(cached) $ECHO_C" >&6
32838 cat >conftest.
$ac_ext <<_ACEOF
32841 cat confdefs.h
>>conftest.
$ac_ext
32842 cat >>conftest.
$ac_ext <<_ACEOF
32843 /* end confdefs.h. */
32844 #if defined CRAY && ! defined CRAY2
32851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32852 $EGREP "webecray" >/dev
/null
2>&1; then
32860 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32861 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32862 if test $ac_cv_os_cray = yes; then
32863 for ac_func
in _getb67 GETB67 getb67
; do
32864 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32867 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32868 echo $ECHO_N "(cached) $ECHO_C" >&6
32870 cat >conftest.
$ac_ext <<_ACEOF
32873 cat confdefs.h
>>conftest.
$ac_ext
32874 cat >>conftest.
$ac_ext <<_ACEOF
32875 /* end confdefs.h. */
32876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32878 #define $ac_func innocuous_$ac_func
32880 /* System header to define __stub macros and hopefully few prototypes,
32881 which can conflict with char $ac_func (); below.
32882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32883 <limits.h> exists even on freestanding compilers. */
32886 # include <limits.h>
32888 # include <assert.h>
32893 /* Override any GCC internal prototype to avoid an error.
32894 Use char because int might match the return type of a GCC
32895 builtin and then its argument prototype would still apply. */
32900 /* The GNU C library defines this for functions which it implements
32901 to always fail with ENOSYS. Some functions are actually named
32902 something starting with __ and the normal name is an alias. */
32903 #if defined __stub_$ac_func || defined __stub___$ac_func
32910 return $ac_func ();
32915 rm -f conftest.
$ac_objext conftest
$ac_exeext
32916 if { (ac_try
="$ac_link"
32917 case "(($ac_try" in
32918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_link") 2>conftest.er1
32924 grep -v '^ *+' conftest.er1 >conftest.err
32926 cat conftest.err >&5
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); } &&
32929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32930 { (case "(($ac_try" in
32931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32932 *) ac_try_echo
=$ac_try;;
32934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_try") 2>&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; } &&
32939 { ac_try
='test -s conftest$ac_exeext'
32940 { (case "(($ac_try" in
32941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32942 *) ac_try_echo=$ac_try;;
32944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32945 (eval "$ac_try") 2>&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
32949 eval "$as_ac_var=yes"
32951 echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.$ac_ext >&5
32954 eval "$as_ac_var=no"
32957 rm -f core conftest.err conftest.$ac_objext \
32958 conftest$ac_exeext conftest.$ac_ext
32960 ac_res=`eval echo '${'$as_ac_var'}'`
32961 { echo "$as_me:$LINENO: result: $ac_res" >&5
32962 echo "${ECHO_T}$ac_res" >&6; }
32963 if test `eval echo '${'$as_ac_var'}'` = yes; then
32965 cat >>confdefs.h <<_ACEOF
32966 #define CRAY_STACKSEG_END $ac_func
32975 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32976 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32977 if test "${ac_cv_c_stack_direction+set}" = set; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32980 if test "$cross_compiling" = yes; then
32981 ac_cv_c_stack_direction=0
32983 cat >conftest.$ac_ext <<_ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989 $ac_includes_default
32991 find_stack_direction ()
32993 static char *addr = 0;
32998 return find_stack_direction ();
33001 return (&dummy > addr) ? 1 : -1;
33007 return find_stack_direction () < 0;
33010 rm -f conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33014 *) ac_try_echo
=$ac_try;;
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_link") 2>&5
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33021 { (case "(($ac_try" in
33022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33023 *) ac_try_echo=$ac_try;;
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026 (eval "$ac_try") 2>&5
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
33030 ac_cv_c_stack_direction=1
33032 echo "$as_me: program exited with status $ac_status" >&5
33033 echo "$as_me: failed program was:" >&5
33034 sed 's/^/| /' conftest.$ac_ext >&5
33036 ( exit $ac_status )
33037 ac_cv_c_stack_direction=-1
33039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33044 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33045 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33047 cat >>confdefs.h <<_ACEOF
33048 #define STACK_DIRECTION $ac_cv_c_stack_direction
33055 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33056 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33057 if test "${ac_cv_func_rand48+set}" = set; then
33058 echo $ECHO_N "(cached) $ECHO_C" >&6
33061 ac_cpp='$CXXCPP $CPPFLAGS'
33062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33066 cat >conftest.$ac_ext <<_ACEOF
33069 cat confdefs.h >>conftest.$ac_ext
33070 cat >>conftest.$ac_ext <<_ACEOF
33071 /* end confdefs.h. */
33072 #include <stdlib.h>
33076 srand48(0);lrand48();drand48();
33081 rm -f conftest.$ac_objext
33082 if { (ac_try="$ac_compile"
33083 case "(($ac_try" in
33084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33085 *) ac_try_echo
=$ac_try;;
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088 (eval "$ac_compile") 2>conftest.er1
33090 grep -v '^ *+' conftest.er1
>conftest.err
33092 cat conftest.err
>&5
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); } &&
33095 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33096 { (case "(($ac_try" in
33097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_try") 2>&5
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; } &&
33105 { ac_try='test -s conftest.$ac_objext'
33106 { (case "(($ac_try" in
33107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33108 *) ac_try_echo
=$ac_try;;
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111 (eval "$ac_try") 2>&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; }; then
33115 ac_cv_func_rand48
=yes
33117 echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.
$ac_ext >&5
33120 ac_cv_func_rand48
=no
33123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33125 ac_cpp
='$CPP $CPPFLAGS'
33126 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33127 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33128 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33131 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33132 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33134 if test "$ac_cv_func_rand48" = "yes" ; then
33136 cat >>confdefs.h
<<\_ACEOF
33137 #define HAVE_RAND48 1
33143 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33144 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33145 if test "${ac_cv_cxx_namespaces+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33149 ac_cpp
='$CXXCPP $CPPFLAGS'
33150 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33151 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33152 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33154 cat >conftest.
$ac_ext <<_ACEOF
33157 cat confdefs.h
>>conftest.
$ac_ext
33158 cat >>conftest.
$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160 namespace Outer { namespace Inner { int i = 0; }}
33164 using namespace Outer::Inner; return i;
33169 rm -f conftest.
$ac_objext
33170 if { (ac_try
="$ac_compile"
33171 case "(($ac_try" in
33172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_compile") 2>conftest.er1
33178 grep -v '^ *+' conftest.er1 >conftest.err
33180 cat conftest.err >&5
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); } &&
33183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33184 { (case "(($ac_try" in
33185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33186 *) ac_try_echo
=$ac_try;;
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_try") 2>&5
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; } &&
33193 { ac_try
='test -s conftest.$ac_objext'
33194 { (case "(($ac_try" in
33195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; }; then
33203 ac_cv_cxx_namespaces=yes
33205 echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33208 ac_cv_cxx_namespaces=no
33211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33213 ac_cpp='$CPP $CPPFLAGS'
33214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33220 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33221 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33222 if test "$ac_cv_cxx_namespaces" = yes; then
33224 cat >>confdefs.h <<\_ACEOF
33225 #define HAVE_NAMESPACES
33230 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33231 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33232 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33233 echo $ECHO_N "(cached) $ECHO_C" >&6
33237 ac_cpp='$CXXCPP $CPPFLAGS'
33238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33242 cat >conftest.$ac_ext <<_ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h. */
33248 #include <iterator>
33249 #ifdef HAVE_NAMESPACES
33250 using namespace std;
33255 iterator<int,int,int> t; return 0;
33260 rm -f conftest.$ac_objext
33261 if { (ac_try="$ac_compile"
33262 case "(($ac_try" in
33263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33264 *) ac_try_echo
=$ac_try;;
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_compile") 2>conftest.er1
33269 grep -v '^ *+' conftest.er1
>conftest.err
33271 cat conftest.err
>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } &&
33274 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33275 { (case "(($ac_try" in
33276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
33285 { (case "(($ac_try" in
33286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33287 *) ac_try_echo
=$ac_try;;
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_try") 2>&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; }; then
33294 ac_cv_cxx_have_std_iterator
=yes
33296 echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.
$ac_ext >&5
33299 ac_cv_cxx_have_std_iterator
=no
33302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33304 ac_cpp
='$CPP $CPPFLAGS'
33305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33311 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33312 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33313 if test "$ac_cv_cxx_have_std_iterator" = yes
33316 cat >>confdefs.h
<<\_ACEOF
33317 #define HAVE_STD_ITERATOR 1
33322 cat >>confdefs.h
<<\_ACEOF
33323 #define HAVE_STD_ITERATOR 0
33328 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33329 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33330 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33331 echo $ECHO_N "(cached) $ECHO_C" >&6
33335 ac_cpp
='$CXXCPP $CPPFLAGS'
33336 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33340 cat >conftest.
$ac_ext <<_ACEOF
33343 cat confdefs.h
>>conftest.
$ac_ext
33344 cat >>conftest.
$ac_ext <<_ACEOF
33345 /* end confdefs.h. */
33346 #include <iterator>
33347 #ifdef HAVE_NAMESPACES
33348 using namespace std;
33353 bidirectional_iterator<int,int> t; return 0;
33358 rm -f conftest.
$ac_objext
33359 if { (ac_try
="$ac_compile"
33360 case "(($ac_try" in
33361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_compile") 2>conftest.er1
33367 grep -v '^ *+' conftest.er1 >conftest.err
33369 cat conftest.err >&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
33372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33373 { (case "(($ac_try" in
33374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33375 *) ac_try_echo
=$ac_try;;
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_try") 2>&5
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; } &&
33382 { ac_try
='test -s conftest.$ac_objext'
33383 { (case "(($ac_try" in
33384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_try") 2>&5
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; }; then
33392 ac_cv_cxx_have_bi_iterator=yes
33394 echo "$as_me: failed program was:" >&5
33395 sed 's/^/| /' conftest.$ac_ext >&5
33397 ac_cv_cxx_have_bi_iterator=no
33400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33402 ac_cpp='$CPP $CPPFLAGS'
33403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33410 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33411 if test "$ac_cv_cxx_have_bi_iterator" = yes
33414 cat >>confdefs.h <<\_ACEOF
33415 #define HAVE_BI_ITERATOR 1
33420 cat >>confdefs.h <<\_ACEOF
33421 #define HAVE_BI_ITERATOR 0
33426 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33427 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33428 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33429 echo $ECHO_N "(cached) $ECHO_C" >&6
33433 ac_cpp='$CXXCPP $CPPFLAGS'
33434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33438 cat >conftest.$ac_ext <<_ACEOF
33441 cat confdefs.h >>conftest.$ac_ext
33442 cat >>conftest.$ac_ext <<_ACEOF
33443 /* end confdefs.h. */
33444 #include <iterator>
33445 #ifdef HAVE_NAMESPACES
33446 using namespace std;
33451 forward_iterator<int,int> t; return 0;
33456 rm -f conftest.$ac_objext
33457 if { (ac_try="$ac_compile"
33458 case "(($ac_try" in
33459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33460 *) ac_try_echo
=$ac_try;;
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463 (eval "$ac_compile") 2>conftest.er1
33465 grep -v '^ *+' conftest.er1
>conftest.err
33467 cat conftest.err
>&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); } &&
33470 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33471 { (case "(($ac_try" in
33472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_try") 2>&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; } &&
33480 { ac_try='test -s conftest.$ac_objext'
33481 { (case "(($ac_try" in
33482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33483 *) ac_try_echo
=$ac_try;;
33485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33486 (eval "$ac_try") 2>&5
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); }; }; then
33490 ac_cv_cxx_have_fwd_iterator
=yes
33492 echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.
$ac_ext >&5
33495 ac_cv_cxx_have_fwd_iterator
=no
33498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33500 ac_cpp
='$CPP $CPPFLAGS'
33501 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33508 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33509 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33512 cat >>confdefs.h
<<\_ACEOF
33513 #define HAVE_FWD_ITERATOR 1
33518 cat >>confdefs.h
<<\_ACEOF
33519 #define HAVE_FWD_ITERATOR 0
33525 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33526 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33527 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33531 ac_cpp
='$CXXCPP $CPPFLAGS'
33532 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33536 cat >conftest.
$ac_ext <<_ACEOF
33539 cat confdefs.h
>>conftest.
$ac_ext
33540 cat >>conftest.
$ac_ext <<_ACEOF
33541 /* end confdefs.h. */
33551 rm -f conftest.
$ac_objext
33552 if { (ac_try
="$ac_compile"
33553 case "(($ac_try" in
33554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
33560 grep -v '^ *+' conftest.er1 >conftest.err
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } &&
33565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33566 { (case "(($ac_try" in
33567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33568 *) ac_try_echo
=$ac_try;;
33570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_try") 2>&5
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); }; } &&
33575 { ac_try
='test -s conftest.$ac_objext'
33576 { (case "(($ac_try" in
33577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_try") 2>&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
33585 ac_cv_func_isnan_in_math_h=yes
33587 echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.$ac_ext >&5
33590 ac_cv_func_isnan_in_math_h=no
33593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33595 ac_cpp='$CPP $CPPFLAGS'
33596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33601 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33602 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33605 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33607 cat >>confdefs.h <<\_ACEOF
33608 #define HAVE_ISNAN_IN_MATH_H 1
33613 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33614 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33615 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33619 ac_cpp='$CXXCPP $CPPFLAGS'
33620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33624 cat >conftest.$ac_ext <<_ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h. */
33639 rm -f conftest.$ac_objext
33640 if { (ac_try="$ac_compile"
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_compile") 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); } &&
33653 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33654 { (case "(($ac_try" in
33655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33656 *) ac_try_echo=$ac_try;;
33658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_try") 2>&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest.$ac_objext'
33664 { (case "(($ac_try" in
33665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33666 *) ac_try_echo
=$ac_try;;
33668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_try") 2>&5
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; }; then
33673 ac_cv_func_isnan_in_cmath
=yes
33675 echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.
$ac_ext >&5
33678 ac_cv_func_isnan_in_cmath
=no
33681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33683 ac_cpp
='$CPP $CPPFLAGS'
33684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33689 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33690 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33692 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33694 cat >>confdefs.h
<<\_ACEOF
33695 #define HAVE_ISNAN_IN_CMATH 1
33700 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33701 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33702 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33703 echo $ECHO_N "(cached) $ECHO_C" >&6
33706 ac_cpp
='$CXXCPP $CPPFLAGS'
33707 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33708 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33709 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33711 cat >conftest.
$ac_ext <<_ACEOF
33714 cat confdefs.h
>>conftest.
$ac_ext
33715 cat >>conftest.
$ac_ext <<_ACEOF
33716 /* end confdefs.h. */
33721 float f; std::isnan(f);
33726 rm -f conftest.
$ac_objext
33727 if { (ac_try
="$ac_compile"
33728 case "(($ac_try" in
33729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33730 *) ac_try_echo=$ac_try;;
33732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33733 (eval "$ac_compile") 2>conftest.er1
33735 grep -v '^ *+' conftest.er1 >conftest.err
33737 cat conftest.err >&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); } &&
33740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33741 { (case "(($ac_try" in
33742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33743 *) ac_try_echo
=$ac_try;;
33745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746 (eval "$ac_try") 2>&5
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); }; } &&
33750 { ac_try
='test -s conftest.$ac_objext'
33751 { (case "(($ac_try" in
33752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33753 *) ac_try_echo=$ac_try;;
33755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756 (eval "$ac_try") 2>&5
33758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759 (exit $ac_status); }; }; then
33760 ac_cv_func_std_isnan_in_cmath=yes
33762 echo "$as_me: failed program was:" >&5
33763 sed 's/^/| /' conftest.$ac_ext >&5
33765 ac_cv_func_std_isnan_in_cmath=no
33768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770 ac_cpp='$CPP $CPPFLAGS'
33771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33776 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33777 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33779 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33781 cat >>confdefs.h <<\_ACEOF
33782 #define HAVE_STD_ISNAN_IN_CMATH 1
33788 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33789 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33790 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33794 ac_cpp='$CXXCPP $CPPFLAGS'
33795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33799 cat >conftest.$ac_ext <<_ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33814 rm -f conftest.$ac_objext
33815 if { (ac_try="$ac_compile"
33816 case "(($ac_try" in
33817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33818 *) ac_try_echo
=$ac_try;;
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33823 grep -v '^ *+' conftest.er1
>conftest.err
33825 cat conftest.err
>&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } &&
33828 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33829 { (case "(($ac_try" in
33830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_try") 2>&5
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); }; } &&
33838 { ac_try='test -s conftest.$ac_objext'
33839 { (case "(($ac_try" in
33840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33841 *) ac_try_echo
=$ac_try;;
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
33848 ac_cv_func_isinf_in_math_h
=yes
33850 echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.
$ac_ext >&5
33853 ac_cv_func_isinf_in_math_h
=no
33856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33858 ac_cpp
='$CPP $CPPFLAGS'
33859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
33864 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33865 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33867 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33869 cat >>confdefs.h
<<\_ACEOF
33870 #define HAVE_ISINF_IN_MATH_H 1
33875 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33876 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33877 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33878 echo $ECHO_N "(cached) $ECHO_C" >&6
33881 ac_cpp
='$CXXCPP $CPPFLAGS'
33882 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33883 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33884 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
33886 cat >conftest.
$ac_ext <<_ACEOF
33889 cat confdefs.h
>>conftest.
$ac_ext
33890 cat >>conftest.
$ac_ext <<_ACEOF
33891 /* end confdefs.h. */
33901 rm -f conftest.
$ac_objext
33902 if { (ac_try
="$ac_compile"
33903 case "(($ac_try" in
33904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33905 *) ac_try_echo=$ac_try;;
33907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33908 (eval "$ac_compile") 2>conftest.er1
33910 grep -v '^ *+' conftest.er1 >conftest.err
33912 cat conftest.err >&5
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914 (exit $ac_status); } &&
33915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33916 { (case "(($ac_try" in
33917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33918 *) ac_try_echo
=$ac_try;;
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_try") 2>&5
33923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924 (exit $ac_status); }; } &&
33925 { ac_try
='test -s conftest.$ac_objext'
33926 { (case "(($ac_try" in
33927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33928 *) ac_try_echo=$ac_try;;
33930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33931 (eval "$ac_try") 2>&5
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); }; }; then
33935 ac_cv_func_isinf_in_cmath=yes
33937 echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33940 ac_cv_func_isinf_in_cmath=no
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 ac_cpp='$CPP $CPPFLAGS'
33946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33951 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33952 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33954 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33956 cat >>confdefs.h <<\_ACEOF
33957 #define HAVE_ISINF_IN_CMATH 1
33962 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33963 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33964 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33965 echo $ECHO_N "(cached) $ECHO_C" >&6
33968 ac_cpp='$CXXCPP $CPPFLAGS'
33969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33973 cat >conftest.$ac_ext <<_ACEOF
33976 cat confdefs.h >>conftest.$ac_ext
33977 cat >>conftest.$ac_ext <<_ACEOF
33978 /* end confdefs.h. */
33983 float f; std::isinf(f)}
33988 rm -f conftest.$ac_objext
33989 if { (ac_try="$ac_compile"
33990 case "(($ac_try" in
33991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33992 *) ac_try_echo
=$ac_try;;
33994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33995 (eval "$ac_compile") 2>conftest.er1
33997 grep -v '^ *+' conftest.er1
>conftest.err
33999 cat conftest.err
>&5
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); } &&
34002 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34003 { (case "(($ac_try" in
34004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_try") 2>&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; } &&
34012 { ac_try='test -s conftest.$ac_objext'
34013 { (case "(($ac_try" in
34014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34015 *) ac_try_echo
=$ac_try;;
34017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018 (eval "$ac_try") 2>&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; }; then
34022 ac_cv_func_std_isinf_in_cmath
=yes
34024 echo "$as_me: failed program was:" >&5
34025 sed 's/^/| /' conftest.
$ac_ext >&5
34027 ac_cv_func_std_isinf_in_cmath
=no
34030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34032 ac_cpp
='$CPP $CPPFLAGS'
34033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34038 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34039 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34041 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34043 cat >>confdefs.h
<<\_ACEOF
34044 #define HAVE_STD_ISINF_IN_CMATH 1
34049 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34050 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34051 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34052 echo $ECHO_N "(cached) $ECHO_C" >&6
34055 ac_cpp
='$CXXCPP $CPPFLAGS'
34056 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34057 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34058 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
34060 cat >conftest.
$ac_ext <<_ACEOF
34063 cat confdefs.h
>>conftest.
$ac_ext
34064 cat >>conftest.
$ac_ext <<_ACEOF
34065 /* end confdefs.h. */
34066 #include <ieeefp.h>
34070 float f; finite(f);
34075 rm -f conftest.
$ac_objext
34076 if { (ac_try
="$ac_compile"
34077 case "(($ac_try" in
34078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34079 *) ac_try_echo=$ac_try;;
34081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082 (eval "$ac_compile") 2>conftest.er1
34084 grep -v '^ *+' conftest.er1 >conftest.err
34086 cat conftest.err >&5
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); } &&
34089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34090 { (case "(($ac_try" in
34091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34092 *) ac_try_echo
=$ac_try;;
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095 (eval "$ac_try") 2>&5
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); }; } &&
34099 { ac_try
='test -s conftest.$ac_objext'
34100 { (case "(($ac_try" in
34101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34102 *) ac_try_echo=$ac_try;;
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105 (eval "$ac_try") 2>&5
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; }; then
34109 ac_cv_func_finite_in_ieeefp_h=yes
34111 echo "$as_me: failed program was:" >&5
34112 sed 's/^/| /' conftest.$ac_ext >&5
34114 ac_cv_func_finite_in_ieeefp_h=no
34117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34119 ac_cpp='$CPP $CPPFLAGS'
34120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34125 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34126 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34128 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34130 cat >>confdefs.h <<\_ACEOF
34131 #define HAVE_FINITE_IN_IEEEFP_H 1
34138 if test "$llvm_cv_platform_type" = "Unix" ; then
34141 for ac_header in stdlib.h unistd.h
34143 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34148 echo $ECHO_N "(cached) $ECHO_C" >&6
34150 ac_res=`eval echo '${'$as_ac_Header'}'`
34151 { echo "$as_me:$LINENO: result: $ac_res" >&5
34152 echo "${ECHO_T}$ac_res" >&6; }
34154 # Is the header compilable?
34155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34157 cat >conftest.$ac_ext <<_ACEOF
34160 cat confdefs.h >>conftest.$ac_ext
34161 cat >>conftest.$ac_ext <<_ACEOF
34162 /* end confdefs.h. */
34163 $ac_includes_default
34164 #include <$ac_header>
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34170 *) ac_try_echo
=$ac_try;;
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173 (eval "$ac_compile") 2>conftest.er1
34175 grep -v '^ *+' conftest.er1
>conftest.err
34177 cat conftest.err
>&5
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); } &&
34180 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34181 { (case "(($ac_try" in
34182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186 (eval "$ac_try") 2>&5
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; } &&
34190 { ac_try='test -s conftest.$ac_objext'
34191 { (case "(($ac_try" in
34192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34193 *) ac_try_echo
=$ac_try;;
34195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34196 (eval "$ac_try") 2>&5
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); }; }; then
34200 ac_header_compiler
=yes
34202 echo "$as_me: failed program was:" >&5
34203 sed 's/^/| /' conftest.
$ac_ext >&5
34205 ac_header_compiler
=no
34208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34210 echo "${ECHO_T}$ac_header_compiler" >&6; }
34212 # Is the header present?
34213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34215 cat >conftest.
$ac_ext <<_ACEOF
34218 cat confdefs.h
>>conftest.
$ac_ext
34219 cat >>conftest.
$ac_ext <<_ACEOF
34220 /* end confdefs.h. */
34221 #include <$ac_header>
34223 if { (ac_try
="$ac_cpp conftest.$ac_ext"
34224 case "(($ac_try" in
34225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34226 *) ac_try_echo=$ac_try;;
34228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34231 grep -v '^ *+' conftest.er1 >conftest.err
34233 cat conftest.err >&5
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); } >/dev/null; then
34236 if test -s conftest.err; then
34237 ac_cpp_err=$ac_c_preproc_warn_flag
34238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34245 if test -z "$ac_cpp_err"; then
34246 ac_header_preproc=yes
34248 echo "$as_me: failed program was:" >&5
34249 sed 's/^/| /' conftest.$ac_ext >&5
34251 ac_header_preproc=no
34254 rm -f conftest.err conftest.$ac_ext
34255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34256 echo "${ECHO_T}$ac_header_preproc" >&6; }
34258 # So? What about this header?
34259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34265 ac_header_preproc=yes
34268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34281 ## ----------------------------------- ##
34282 ## Report this to llvmbugs@cs.uiuc.edu ##
34283 ## ----------------------------------- ##
34285 ) | sed "s/^/$as_me: WARNING: /" >&2
34288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34291 echo $ECHO_N "(cached) $ECHO_C" >&6
34293 eval "$as_ac_Header=\$ac_header_preproc"
34295 ac_res=`eval echo '${'$as_ac_Header'}'`
34296 { echo "$as_me:$LINENO: result: $ac_res" >&5
34297 echo "${ECHO_T}$ac_res" >&6; }
34300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34301 cat >>confdefs.h <<_ACEOF
34302 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
34310 for ac_func in getpagesize
34312 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34316 echo $ECHO_N "(cached) $ECHO_C" >&6
34318 cat >conftest.$ac_ext <<_ACEOF
34321 cat confdefs.h >>conftest.$ac_ext
34322 cat >>conftest.$ac_ext <<_ACEOF
34323 /* end confdefs.h. */
34324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34326 #define $ac_func innocuous_$ac_func
34328 /* System header to define __stub macros and hopefully few prototypes,
34329 which can conflict with char $ac_func (); below.
34330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34331 <limits.h> exists even on freestanding compilers. */
34334 # include <limits.h>
34336 # include <assert.h>
34341 /* Override any GCC internal prototype to avoid an error.
34342 Use char because int might match the return type of a GCC
34343 builtin and then its argument prototype would still apply. */
34348 /* The GNU C library defines this for functions which it implements
34349 to always fail with ENOSYS. Some functions are actually named
34350 something starting with __ and the normal name is an alias. */
34351 #if defined __stub_$ac_func || defined __stub___$ac_func
34358 return $ac_func ();
34363 rm -f conftest.$ac_objext conftest$ac_exeext
34364 if { (ac_try="$ac_link"
34365 case "(($ac_try" in
34366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34367 *) ac_try_echo
=$ac_try;;
34369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370 (eval "$ac_link") 2>conftest.er1
34372 grep -v '^ *+' conftest.er1
>conftest.err
34374 cat conftest.err
>&5
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); } &&
34377 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34378 { (case "(($ac_try" in
34379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_try") 2>&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); }; } &&
34387 { ac_try='test -s conftest$ac_exeext'
34388 { (case "(($ac_try" in
34389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34390 *) ac_try_echo
=$ac_try;;
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_try") 2>&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; }; then
34397 eval "$as_ac_var=yes"
34399 echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.
$ac_ext >&5
34402 eval "$as_ac_var=no"
34405 rm -f core conftest.err conftest.
$ac_objext \
34406 conftest
$ac_exeext conftest.
$ac_ext
34408 ac_res
=`eval echo '${'$as_ac_var'}'`
34409 { echo "$as_me:$LINENO: result: $ac_res" >&5
34410 echo "${ECHO_T}$ac_res" >&6; }
34411 if test `eval echo '${'$as_ac_var'}'` = yes; then
34412 cat >>confdefs.h
<<_ACEOF
34413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34419 { echo "$as_me:$LINENO: checking for working mmap" >&5
34420 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34421 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34422 echo $ECHO_N "(cached) $ECHO_C" >&6
34424 if test "$cross_compiling" = yes; then
34425 ac_cv_func_mmap_fixed_mapped
=no
34427 cat >conftest.
$ac_ext <<_ACEOF
34430 cat confdefs.h
>>conftest.
$ac_ext
34431 cat >>conftest.
$ac_ext <<_ACEOF
34432 /* end confdefs.h. */
34433 $ac_includes_default
34434 /* malloc might have been renamed as rpl_malloc. */
34437 /* Thanks to Mike Haertel and Jim Avera for this test.
34438 Here is a matrix of mmap possibilities:
34439 mmap private not fixed
34440 mmap private fixed at somewhere currently unmapped
34441 mmap private fixed at somewhere already mapped
34442 mmap shared not fixed
34443 mmap shared fixed at somewhere currently unmapped
34444 mmap shared fixed at somewhere already mapped
34445 For private mappings, we should verify that changes cannot be read()
34446 back from the file, nor mmap's back from the file at a different
34447 address. (There have been systems where private was not correctly
34448 implemented like the infamous i386 svr4.0, and systems where the
34449 VM page cache was not coherent with the file system buffer cache
34450 like early versions of FreeBSD and possibly contemporary NetBSD.)
34451 For shared mappings, we should conversely verify that changes get
34452 propagated back to all the places they're supposed to be.
34454 Grep wants private fixed already mapped.
34455 The main things grep needs to know about mmap are:
34456 * does it exist and is it safe to write into the mmap'd area
34457 * how to use it (BSD variants) */
34460 #include <sys/mman.h>
34462 #if !STDC_HEADERS && !HAVE_STDLIB_H
34466 /* This mess was copied from the GNU getpagesize.h. */
34467 #if !HAVE_GETPAGESIZE
34468 /* Assume that all systems that can run configure have sys/param.h. */
34469 # if !HAVE_SYS_PARAM_H
34470 # define HAVE_SYS_PARAM_H 1
34473 # ifdef _SC_PAGESIZE
34474 # define getpagesize() sysconf(_SC_PAGESIZE)
34475 # else /* no _SC_PAGESIZE */
34476 # if HAVE_SYS_PARAM_H
34477 # include <sys/param.h>
34478 # ifdef EXEC_PAGESIZE
34479 # define getpagesize() EXEC_PAGESIZE
34480 # else /* no EXEC_PAGESIZE */
34482 # define getpagesize() NBPG * CLSIZE
34485 # endif /* no CLSIZE */
34486 # else /* no NBPG */
34488 # define getpagesize() NBPC
34489 # else /* no NBPC */
34491 # define getpagesize() PAGESIZE
34492 # endif /* PAGESIZE */
34493 # endif /* no NBPC */
34494 # endif /* no NBPG */
34495 # endif /* no EXEC_PAGESIZE */
34496 # else /* no HAVE_SYS_PARAM_H */
34497 # define getpagesize() 8192 /* punt totally */
34498 # endif /* no HAVE_SYS_PARAM_H */
34499 # endif /* no _SC_PAGESIZE */
34501 #endif /* no HAVE_GETPAGESIZE */
34506 char *data, *data2, *data3;
34510 pagesize = getpagesize ();
34512 /* First, make a file with some known garbage in it. */
34513 data = (char *) malloc (pagesize);
34516 for (i = 0; i < pagesize; ++i)
34517 *(data + i) = rand ();
34519 fd = creat ("conftest.mmap", 0600);
34522 if (write (fd, data, pagesize) != pagesize)
34526 /* Next, try to mmap the file at a fixed address which already has
34527 something else allocated at it. If we can, also make sure that
34528 we see the same garbage. */
34529 fd = open ("conftest.mmap", O_RDWR);
34532 data2 = (char *) malloc (2 * pagesize);
34535 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34536 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34537 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34539 for (i = 0; i < pagesize; ++i)
34540 if (*(data + i) != *(data2 + i))
34543 /* Finally, make sure that changes to the mapped area do not
34544 percolate back to the file as seen by read(). (This is a bug on
34545 some variants of i386 svr4.0.) */
34546 for (i = 0; i < pagesize; ++i)
34547 *(data2 + i) = *(data2 + i) + 1;
34548 data3 = (char *) malloc (pagesize);
34551 if (read (fd, data3, pagesize) != pagesize)
34553 for (i = 0; i < pagesize; ++i)
34554 if (*(data + i) != *(data3 + i))
34560 rm -f conftest
$ac_exeext
34561 if { (ac_try
="$ac_link"
34562 case "(($ac_try" in
34563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34564 *) ac_try_echo=$ac_try;;
34566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34567 (eval "$ac_link") 2>&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34571 { (case "(($ac_try" in
34572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34573 *) ac_try_echo
=$ac_try;;
34575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576 (eval "$ac_try") 2>&5
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; }; then
34580 ac_cv_func_mmap_fixed_mapped
=yes
34582 echo "$as_me: program exited with status $ac_status" >&5
34583 echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.
$ac_ext >&5
34586 ( exit $ac_status )
34587 ac_cv_func_mmap_fixed_mapped
=no
34589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34594 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34595 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34596 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34598 cat >>confdefs.h
<<\_ACEOF
34599 #define HAVE_MMAP 1
34603 rm -f conftest.mmap
34605 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34606 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34607 if test "${ac_cv_func_mmap_file+set}" = set; then
34608 echo $ECHO_N "(cached) $ECHO_C" >&6
34611 ac_cpp
='$CPP $CPPFLAGS'
34612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34616 if test "$cross_compiling" = yes; then
34617 ac_cv_func_mmap_file
=no
34619 cat >conftest.
$ac_ext <<_ACEOF
34623 cat confdefs.h
>>conftest.
$ac_ext
34624 cat >>conftest.
$ac_ext <<_ACEOF
34625 /* end confdefs.h. */
34627 #include <sys/types.h>
34628 #include <sys/mman.h>
34636 fd = creat ("foo",0777);
34637 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34639 return (fd != (int) MAP_FAILED);
34644 rm -f conftest
$ac_exeext
34645 if { (ac_try
="$ac_link"
34646 case "(($ac_try" in
34647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34648 *) ac_try_echo=$ac_try;;
34650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34651 (eval "$ac_link") 2>&5
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34655 { (case "(($ac_try" in
34656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34657 *) ac_try_echo
=$ac_try;;
34659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34660 (eval "$ac_try") 2>&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; }; then
34664 ac_cv_func_mmap_file
=yes
34666 echo "$as_me: program exited with status $ac_status" >&5
34667 echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.
$ac_ext >&5
34670 ( exit $ac_status )
34671 ac_cv_func_mmap_file
=no
34673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34678 ac_cpp
='$CPP $CPPFLAGS'
34679 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34680 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34681 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
34685 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34686 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34687 if test "$ac_cv_func_mmap_file" = yes; then
34689 cat >>confdefs.h
<<\_ACEOF
34690 #define HAVE_MMAP_FILE
34697 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34698 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34699 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34700 echo $ECHO_N "(cached) $ECHO_C" >&6
34702 if test "$llvm_cv_os_type" = "Interix" ; then
34703 ac_cv_need_dev_zero_for_mmap
=yes
34705 ac_cv_need_dev_zero_for_mmap
=no
34709 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34710 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34711 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34713 cat >>confdefs.h
<<\_ACEOF
34714 #define NEED_DEV_ZERO_FOR_MMAP 1
34719 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34721 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34722 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34724 if test "$ac_cv_func_mmap_file" = "no"
34726 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34727 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34731 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34732 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34733 cat >conftest.
$ac_ext <<_ACEOF
34736 cat confdefs.h
>>conftest.
$ac_ext
34737 cat >>conftest.
$ac_ext <<_ACEOF
34738 /* end confdefs.h. */
34740 volatile unsigned long val = 1;
34741 __sync_synchronize();
34742 __sync_val_compare_and_swap(&val, 1, 0);
34743 __sync_add_and_fetch(&val, 1);
34744 __sync_sub_and_fetch(&val, 1);
34749 rm -f conftest.
$ac_objext conftest
$ac_exeext
34750 if { (ac_try
="$ac_link"
34751 case "(($ac_try" in
34752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34753 *) ac_try_echo=$ac_try;;
34755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756 (eval "$ac_link") 2>conftest.er1
34758 grep -v '^ *+' conftest.er1 >conftest.err
34760 cat conftest.err >&5
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); } &&
34763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34764 { (case "(($ac_try" in
34765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34766 *) ac_try_echo
=$ac_try;;
34768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769 (eval "$ac_try") 2>&5
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; } &&
34773 { ac_try
='test -s conftest$ac_exeext'
34774 { (case "(($ac_try" in
34775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34776 *) ac_try_echo=$ac_try;;
34778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34779 (eval "$ac_try") 2>&5
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; }; then
34783 { echo "$as_me:$LINENO: result: yes" >&5
34784 echo "${ECHO_T}yes" >&6; }
34786 cat >>confdefs.h <<\_ACEOF
34787 #define LLVM_MULTITHREADED 1
34791 echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34794 { echo "$as_me:$LINENO: result: no" >&5
34795 echo "${ECHO_T}no" >&6; }
34797 cat >>confdefs.h <<\_ACEOF
34798 #define LLVM_MULTITHREADED 0
34801 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34802 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34805 rm -f core conftest.err conftest.$ac_objext \
34806 conftest$ac_exeext conftest.$ac_ext
34811 for ac_func in __dso_handle
34813 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34817 echo $ECHO_N "(cached) $ECHO_C" >&6
34819 cat >conftest.$ac_ext <<_ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h. */
34825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34827 #define $ac_func innocuous_$ac_func
34829 /* System header to define __stub macros and hopefully few prototypes,
34830 which can conflict with char $ac_func (); below.
34831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34832 <limits.h> exists even on freestanding compilers. */
34835 # include <limits.h>
34837 # include <assert.h>
34842 /* Override any GCC internal prototype to avoid an error.
34843 Use char because int might match the return type of a GCC
34844 builtin and then its argument prototype would still apply. */
34849 /* The GNU C library defines this for functions which it implements
34850 to always fail with ENOSYS. Some functions are actually named
34851 something starting with __ and the normal name is an alias. */
34852 #if defined __stub_$ac_func || defined __stub___$ac_func
34859 return $ac_func ();
34864 rm -f conftest.$ac_objext conftest$ac_exeext
34865 if { (ac_try="$ac_link"
34866 case "(($ac_try" in
34867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34868 *) ac_try_echo
=$ac_try;;
34870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34871 (eval "$ac_link") 2>conftest.er1
34873 grep -v '^ *+' conftest.er1
>conftest.err
34875 cat conftest.err
>&5
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); } &&
34878 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34879 { (case "(($ac_try" in
34880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34881 *) ac_try_echo=$ac_try;;
34883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34884 (eval "$ac_try") 2>&5
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); }; } &&
34888 { ac_try='test -s conftest$ac_exeext'
34889 { (case "(($ac_try" in
34890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34891 *) ac_try_echo
=$ac_try;;
34893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34894 (eval "$ac_try") 2>&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; }; then
34898 eval "$as_ac_var=yes"
34900 echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.
$ac_ext >&5
34903 eval "$as_ac_var=no"
34906 rm -f core conftest.err conftest.
$ac_objext \
34907 conftest
$ac_exeext conftest.
$ac_ext
34909 ac_res
=`eval echo '${'$as_ac_var'}'`
34910 { echo "$as_me:$LINENO: result: $ac_res" >&5
34911 echo "${ECHO_T}$ac_res" >&6; }
34912 if test `eval echo '${'$as_ac_var'}'` = yes; then
34913 cat >>confdefs.h
<<_ACEOF
34914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34921 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34922 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34923 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34926 llvm_cv_llvmgcc_sanity
="no"
34927 if test -x "$LLVMGCC" ; then
34928 cp /dev
/null conftest.c
34929 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34930 grep 'target datalayout =' > /dev
/null
2>&1
34931 if test $?
-eq 0 ; then
34932 llvm_cv_llvmgcc_sanity
="yes"
34937 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34938 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34940 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34941 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34942 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34943 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
34944 LLVMCC1
=$llvmcc1path
34946 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
34947 LLVMCC1PLUS
=$llvmcc1pluspath
34949 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34950 LLVMGCCDIR
=$llvmgccdir
34952 llvmgcclibexec
=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34953 LLVMGCCLIBEXEC
=$llvmgcclibexec
34955 llvmgccversion
=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34956 llvmgccmajvers
=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34957 LLVMGCC_VERSION
=$llvmgccversion
34959 LLVMGCC_MAJVERS
=$llvmgccmajvers
34961 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34962 LLVMGCC_LANGS
=$llvmgcclangs
34964 { echo "$as_me:$LINENO: result: ok" >&5
34965 echo "${ECHO_T}ok" >&6; }
34968 SHLIBEXT
=$libltdl_cv_shlibext
34971 # Translate the various configuration directories and other basic
34972 # information into substitutions that will end up in Makefile.config.in
34973 # that these configured values can be used by the makefiles
34974 if test "${prefix}" = "NONE" ; then
34975 prefix
="/usr/local"
34977 eval LLVM_PREFIX
="${prefix}";
34978 eval LLVM_BINDIR
="${prefix}/bin";
34979 eval LLVM_LIBDIR
="${prefix}/lib";
34980 eval LLVM_DATADIR
="${prefix}/share/llvm";
34981 eval LLVM_DOCSDIR
="${prefix}/docs/llvm";
34982 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
34983 eval LLVM_INCLUDEDIR
="${prefix}/include";
34984 eval LLVM_INFODIR
="${prefix}/info";
34985 eval LLVM_MANDIR
="${prefix}/man";
34986 LLVM_CONFIGTIME
=`date`
34998 # Place the various directores into the config.h file as #defines so that we
34999 # can know about the installation paths within LLVM.
35001 cat >>confdefs.h
<<_ACEOF
35002 #define LLVM_PREFIX "$LLVM_PREFIX"
35006 cat >>confdefs.h
<<_ACEOF
35007 #define LLVM_BINDIR "$LLVM_BINDIR"
35011 cat >>confdefs.h
<<_ACEOF
35012 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35016 cat >>confdefs.h
<<_ACEOF
35017 #define LLVM_DATADIR "$LLVM_DATADIR"
35021 cat >>confdefs.h
<<_ACEOF
35022 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35026 cat >>confdefs.h
<<_ACEOF
35027 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35031 cat >>confdefs.h
<<_ACEOF
35032 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35036 cat >>confdefs.h
<<_ACEOF
35037 #define LLVM_INFODIR "$LLVM_INFODIR"
35041 cat >>confdefs.h
<<_ACEOF
35042 #define LLVM_MANDIR "$LLVM_MANDIR"
35046 cat >>confdefs.h
<<_ACEOF
35047 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35051 cat >>confdefs.h
<<_ACEOF
35052 #define LLVM_HOSTTRIPLE "$host"
35056 # Determine which bindings to build.
35057 if test "$BINDINGS_TO_BUILD" = auto
; then
35058 BINDINGS_TO_BUILD
=""
35059 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
35060 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
35063 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
35066 # This isn't really configurey, but it avoids having to repeat the list in
35071 # Do any work necessary to ensure that bindings have what they need.
35072 binding_prereqs_failed
=0
35073 for a_binding
in $BINDINGS_TO_BUILD ; do
35074 case "$a_binding" in
35076 if test "x$OCAMLC" = x
; then
35077 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35078 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35079 binding_prereqs_failed
=1
35081 if test "x$OCAMLDEP" = x
; then
35082 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35083 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35084 binding_prereqs_failed
=1
35086 if test "x$OCAMLOPT" = x
; then
35087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35090 if test "x$with_ocaml_libdir" != xauto
; then
35091 OCAML_LIBDIR
=$with_ocaml_libdir
35094 ocaml_stdlib
="`"$OCAMLC" -where`"
35095 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35097 # ocaml stdlib is beneath our prefix; use stdlib
35098 OCAML_LIBDIR
=$ocaml_stdlib
35101 # ocaml stdlib is outside our prefix; use libdir/ocaml
35102 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
35109 if test "$binding_prereqs_failed" = 1 ; then
35110 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35111 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35112 { (exit 1); exit 1; }; }
35115 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35116 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35117 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35118 echo $ECHO_N "(cached) $ECHO_C" >&6
35121 ac_cpp
='$CXXCPP $CPPFLAGS'
35122 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35123 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35124 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
35126 oldcxxflags
="$CXXFLAGS"
35127 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
35128 cat >conftest.
$ac_ext <<_ACEOF
35131 cat confdefs.h
>>conftest.
$ac_ext
35132 cat >>conftest.
$ac_ext <<_ACEOF
35133 /* end confdefs.h. */
35143 rm -f conftest.
$ac_objext
35144 if { (ac_try
="$ac_compile"
35145 case "(($ac_try" in
35146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35147 *) ac_try_echo=$ac_try;;
35149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35150 (eval "$ac_compile") 2>conftest.er1
35152 grep -v '^ *+' conftest.er1 >conftest.err
35154 cat conftest.err >&5
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); } &&
35157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35158 { (case "(($ac_try" in
35159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35160 *) ac_try_echo
=$ac_try;;
35162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163 (eval "$ac_try") 2>&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); }; } &&
35167 { ac_try
='test -s conftest.$ac_objext'
35168 { (case "(($ac_try" in
35169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35170 *) ac_try_echo=$ac_try;;
35172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35173 (eval "$ac_try") 2>&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); }; }; then
35177 llvm_cv_cxx_visibility_inlines_hidden=yes
35179 echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35182 llvm_cv_cxx_visibility_inlines_hidden=no
35185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35186 CXXFLAGS="$oldcxxflags"
35188 ac_cpp='$CPP $CPPFLAGS'
35189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35195 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35196 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35197 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35198 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35201 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35206 if test "$llvm_cv_link_use_r" = "yes" ; then
35213 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35214 RDYNAMIC="-Wl,-export-dynamic"
35221 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35223 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35225 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35227 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35229 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
35232 ac_config_files="$ac_config_files Makefile.config"
35235 ac_config_files="$ac_config_files llvm.spec"
35238 ac_config_files="$ac_config_files docs/doxygen.cfg"
35241 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35244 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35247 ac_config_commands="$ac_config_commands setup"
35249 ac_config_commands="$ac_config_commands Makefile"
35252 ac_config_commands="$ac_config_commands Makefile.common"
35255 ac_config_commands="$ac_config_commands examples/Makefile"
35258 ac_config_commands="$ac_config_commands lib/Makefile"
35261 ac_config_commands="$ac_config_commands runtime/Makefile"
35264 ac_config_commands="$ac_config_commands test/Makefile"
35267 ac_config_commands="$ac_config_commands test/Makefile.tests"
35270 ac_config_commands="$ac_config_commands unittests/Makefile"
35273 ac_config_commands="$ac_config_commands tools/Makefile"
35276 ac_config_commands="$ac_config_commands utils/Makefile"
35279 ac_config_commands="$ac_config_commands projects/Makefile"
35282 ac_config_commands="$ac_config_commands bindings/Makefile"
35285 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35289 cat >confcache <<\_ACEOF
35290 # This file is a shell script that caches the results of configure
35291 # tests run on this system so they can be shared between configure
35292 # scripts and configure runs, see configure's option --config-cache.
35293 # It is not useful on other systems. If it contains results you don't
35294 # want to keep, you may remove or edit it.
35296 # config.status only pays attention to the cache file if you give it
35297 # the --recheck option to rerun configure.
35299 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
35300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35301 # following values.
35305 # The following way of writing the cache mishandles newlines in values,
35306 # but we know of no workaround that is simple, portable, and efficient.
35307 # So, we kill variables containing newlines.
35308 # Ultrix sh set writes to stderr and can't be redirected directly,
35309 # and sets the high bit in the cache file unless we assign to the vars.
35311 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35312 eval ac_val
=\$
$ac_var
35316 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35317 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35320 _ | IFS | as_nl
) ;; #(
35321 *) $as_unset $ac_var ;;
35327 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35328 *${as_nl}ac_space
=\
*)
35329 # `set' does not quote correctly, so add quotes (double-quote
35330 # substitution turns \\\\ into \\, and sed turns \\ into \).
35333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35336 # `set' quotes correctly as required by POSIX, so do not add quotes.
35337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35348 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35350 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
35351 if test -w "$cache_file"; then
35352 test "x$cache_file" != "x/dev/null" &&
35353 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35354 echo "$as_me: updating cache $cache_file" >&6;}
35355 cat confcache
>$cache_file
35357 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35358 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35363 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
35364 # Let make expand exec_prefix.
35365 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
35367 DEFS
=-DHAVE_CONFIG_H
35371 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
35372 # 1. Remove the extension, and $U if already installed.
35373 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
35374 ac_i
=`echo "$ac_i" | sed "$ac_script"`
35375 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35376 # will be set to the directory where LIBOBJS objects are built.
35377 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35378 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35380 LIBOBJS
=$ac_libobjs
35382 LTLIBOBJS
=$ac_ltlibobjs
35385 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35386 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35387 Usually this means the macro was only invoked conditionally." >&5
35388 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35389 Usually this means the macro was only invoked conditionally." >&2;}
35390 { (exit 1); exit 1; }; }
35392 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35393 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35394 Usually this means the macro was only invoked conditionally." >&5
35395 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35396 Usually this means the macro was only invoked conditionally." >&2;}
35397 { (exit 1); exit 1; }; }
35400 : ${CONFIG_STATUS=./config.status}
35401 ac_clean_files_save
=$ac_clean_files
35402 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35403 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35404 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35405 cat >$CONFIG_STATUS <<_ACEOF
35407 # Generated by $as_me.
35408 # Run this file to recreate the current configuration.
35409 # Compiler output produced by configure, useful for debugging
35410 # configure, is in config.log if it exists.
35413 ac_cs_recheck=false
35415 SHELL=\${CONFIG_SHELL-$SHELL}
35418 cat >>$CONFIG_STATUS <<\_ACEOF
35419 ## --------------------- ##
35420 ## M4sh Initialization. ##
35421 ## --------------------- ##
35423 # Be Bourne compatible
35424 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
35427 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35428 # is contrary to our usage. Disable this feature.
35429 alias -g '${1+"$@"}'='"$@"'
35430 setopt NO_GLOB_SUBST
35432 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
35434 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
35435 DUALCASE
=1; export DUALCASE
# for MKS sh
35439 # Avoid depending upon Character Ranges.
35440 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35441 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35442 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35443 as_cr_digits
='0123456789'
35444 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35446 # The user is always right.
35447 if test "${PATH_SEPARATOR+set}" != set; then
35448 echo "#! /bin/sh" >conf$$.sh
35449 echo "exit 0" >>conf$$.sh
35451 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
35459 # Support unset when possible.
35460 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35468 # We need space, tab and new line, in precisely that order. Quoting is
35469 # there to prevent editors from complaining about space-tab.
35470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35471 # splitting by setting IFS to empty value.)
35476 # Find who we are. Look in the path if we contain no directory separator.
35478 *[\\/]* ) as_myself
=$0 ;;
35479 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
35480 for as_dir
in $PATH
35483 test -z "$as_dir" && as_dir
=.
35484 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
35490 # We did not find ourselves, most probably we were run as `sh COMMAND'
35491 # in which case we are not to be found in the path.
35492 if test "x$as_myself" = x
; then
35495 if test ! -f "$as_myself"; then
35496 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35497 { (exit 1); exit 1; }
35500 # Work around bugs in pre-3.0 UWIN ksh.
35501 for as_var
in ENV MAIL MAILPATH
35502 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35510 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35511 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35512 LC_TELEPHONE LC_TIME
35514 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35515 eval $as_var=C
; export $as_var
35517 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
35521 # Required to use basename.
35522 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35523 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35529 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35530 as_basename
=basename
35536 # Name of the executable.
35537 as_me
=`$as_basename -- "$0" ||
35538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35539 X"$0" : 'X\(//\)$' \| \
35540 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35542 sed '/^.*\/\([^/][^/]*\)\/*$/{
35561 as_lineno_1
=$LINENO
35562 as_lineno_2
=$LINENO
35563 test "x$as_lineno_1" != "x$as_lineno_2" &&
35564 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
35566 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35567 # uniformly replaced by the line number. The first 'sed' inserts a
35568 # line-number line after each line using $LINENO; the second 'sed'
35569 # does the real work. The second script uses 'N' to pair each
35570 # line-number line with the line containing $LINENO, and appends
35571 # trailing '-' during substitution so that $LINENO is not a special
35572 # case at line end.
35573 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35574 # scripts with optimization help from Paolo Bonzini. Blame Lee
35575 # E. McMahon (1931-1989) for sed's syntax. :-)
35587 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35590 ' >$as_me.lineno
&&
35591 chmod +x
"$as_me.lineno" ||
35592 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35593 { (exit 1); exit 1; }; }
35595 # Don't try to exec as it changes $[0], causing all sort of problems
35596 # (the dirname of $[0] is not the place where we might find the
35597 # original and so on. Autoconf is especially sensitive to this).
35598 .
"./$as_me.lineno"
35599 # Exit status is that of the last command.
35604 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35610 ECHO_C
= ECHO_N
= ECHO_T
=
35611 case `echo -n x` in
35613 case `echo 'x\c'` in
35614 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35621 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35622 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35628 rm -f conf$$ conf$$.exe conf$$.
file
35629 if test -d conf$$.dir
; then
35630 rm -f conf$$.dir
/conf$$.
file
35636 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35638 # ... but there are two gotchas:
35639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35641 # In both cases, we have to default to `cp -p'.
35642 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35644 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35649 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35650 rmdir conf$$.dir
2>/dev
/null
35652 if mkdir
-p .
2>/dev
/null
; then
35655 test -d .
/-p && rmdir .
/-p
35659 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35660 # systems may use methods other than mode bits to determine executability.
35661 cat >conf$$.
file <<_ASEOF
35665 chmod +x conf$$.
file
35666 if test -x conf$$.
file >/dev
/null
2>&1; then
35667 as_executable_p
="test -x"
35673 # Sed expression to map a string onto a valid CPP name.
35674 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35676 # Sed expression to map a string onto a valid variable name.
35677 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35682 # Save the log message, to keep $[0] and so on meaningful, and to
35683 # report actual input values of CONFIG_FILES etc. instead of their
35684 # values after options handling.
35686 This file was extended by llvm $as_me 2.6svn, which was
35687 generated by GNU Autoconf 2.60. Invocation command line was
35689 CONFIG_FILES = $CONFIG_FILES
35690 CONFIG_HEADERS = $CONFIG_HEADERS
35691 CONFIG_LINKS = $CONFIG_LINKS
35692 CONFIG_COMMANDS = $CONFIG_COMMANDS
35695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35700 cat >>$CONFIG_STATUS <<_ACEOF
35701 # Files that config.status was made for.
35702 config_files="$ac_config_files"
35703 config_headers="$ac_config_headers"
35704 config_commands="$ac_config_commands"
35708 cat >>$CONFIG_STATUS <<\_ACEOF
35710 \`$as_me' instantiates files from templates according to the
35711 current configuration.
35713 Usage: $0 [OPTIONS] [FILE]...
35715 -h, --help print this help, then exit
35716 -V, --version print version number, then exit
35717 -q, --quiet do not print progress messages
35718 -d, --debug don't remove temporary files
35719 --recheck update $as_me by reconfiguring in the same conditions
35720 --file=FILE[:TEMPLATE]
35721 instantiate the configuration file FILE
35722 --header=FILE[:TEMPLATE]
35723 instantiate the configuration header FILE
35725 Configuration files:
35728 Configuration headers:
35731 Configuration commands:
35734 Report bugs to <bug-autoconf@gnu.org>."
35737 cat >>$CONFIG_STATUS <<_ACEOF
35739 llvm config.status 2.6svn
35740 configured by $0, generated by GNU Autoconf 2.60,
35741 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35743 Copyright (C) 2006 Free Software Foundation, Inc.
35744 This config.status script is free software; the Free Software Foundation
35745 gives unlimited permission to copy, distribute and modify it."
35752 cat >>$CONFIG_STATUS <<\_ACEOF
35753 # If no file are specified by the user, then we need to provide default
35754 # value. By we need to know if files were specified by the user.
35760 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35761 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35772 # Handling of the options.
35773 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35775 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35776 echo "$ac_cs_version"; exit ;;
35777 --debug |
--debu |
--deb |
--de |
--d |
-d )
35779 --file |
--fil |
--fi |
--f )
35781 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
35782 ac_need_defaults
=false
;;
35783 --header |
--heade |
--head |
--hea )
35785 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
35786 ac_need_defaults
=false
;;
35788 # Conflict between --help and --header
35789 { echo "$as_me: error: ambiguous option: $1
35790 Try \`$0 --help' for more information." >&2
35791 { (exit 1); exit 1; }; };;
35792 --help |
--hel |
-h )
35793 echo "$ac_cs_usage"; exit ;;
35794 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35795 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35798 # This is an error.
35799 -*) { echo "$as_me: error: unrecognized option: $1
35800 Try \`$0 --help' for more information." >&2
35801 { (exit 1); exit 1; }; } ;;
35803 *) ac_config_targets
="$ac_config_targets $1"
35804 ac_need_defaults
=false
;;
35810 ac_configure_extra_args
=
35812 if $ac_cs_silent; then
35814 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35818 cat >>$CONFIG_STATUS <<_ACEOF
35819 if \$ac_cs_recheck; then
35820 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35821 CONFIG_SHELL=$SHELL
35822 export CONFIG_SHELL
35823 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35827 cat >>$CONFIG_STATUS <<\_ACEOF
35831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35832 ## Running $as_me. ##
35838 cat >>$CONFIG_STATUS <<_ACEOF
35842 llvm_src="${srcdir}"
35846 cat >>$CONFIG_STATUS <<\_ACEOF
35848 # Handling of arguments.
35849 for ac_config_target
in $ac_config_targets
35851 case $ac_config_target in
35852 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35853 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35854 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35855 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35856 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35857 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
35858 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
35859 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
35860 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35861 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35862 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
35863 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
35864 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
35865 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
35866 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
35867 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
35868 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
35869 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
35870 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
35871 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
35872 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
35873 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
35874 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
35875 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35877 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35878 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35879 { (exit 1); exit 1; }; };;
35884 # If the user did not use the arguments to specify the items to instantiate,
35885 # then the envvar interface is used. Set only those that are not.
35886 # We use the long form for the default assignment because of an extremely
35887 # bizarre bug on SunOS 4.1.3.
35888 if $ac_need_defaults; then
35889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35891 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35894 # Have a temporary directory for convenience. Make it in the build tree
35895 # simply because there is no reason against having it here, and in addition,
35896 # creating and moving files from /tmp can sometimes cause problems.
35897 # Hook for its removal unless debugging.
35898 # Note that there is a small window in which the directory will not be cleaned:
35899 # after its creation but before its name has been assigned to `$tmp'.
35903 trap 'exit_status=$?
35904 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35906 trap '{ (exit 1); exit 1; }' 1 2 13 15
35908 # Create a (secure) tmp directory for tmp files.
35911 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35912 test -n "$tmp" && test -d "$tmp"
35915 tmp
=.
/conf$$
-$RANDOM
35916 (umask 077 && mkdir
"$tmp")
35919 echo "$me: cannot create a temporary directory in ." >&2
35920 { (exit 1); exit 1; }
35924 # Set up the sed scripts for CONFIG_FILES section.
35927 # No need to generate the scripts if there are no CONFIG_FILES.
35928 # This happens for instance when ./config.status config.h
35929 if test -n "$CONFIG_FILES"; then
35936 for ac_last_try
in false false false false false
:; do
35937 cat >conf$
$subs.
sed <<_ACEOF
35938 SHELL!$SHELL$ac_delim
35939 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35940 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35941 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35942 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35943 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35944 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35945 exec_prefix!$exec_prefix$ac_delim
35946 prefix!$prefix$ac_delim
35947 program_transform_name!$program_transform_name$ac_delim
35948 bindir!$bindir$ac_delim
35949 sbindir!$sbindir$ac_delim
35950 libexecdir!$libexecdir$ac_delim
35951 datarootdir!$datarootdir$ac_delim
35952 datadir!$datadir$ac_delim
35953 sysconfdir!$sysconfdir$ac_delim
35954 sharedstatedir!$sharedstatedir$ac_delim
35955 localstatedir!$localstatedir$ac_delim
35956 includedir!$includedir$ac_delim
35957 oldincludedir!$oldincludedir$ac_delim
35958 docdir!$docdir$ac_delim
35959 infodir!$infodir$ac_delim
35960 htmldir!$htmldir$ac_delim
35961 dvidir!$dvidir$ac_delim
35962 pdfdir!$pdfdir$ac_delim
35963 psdir!$psdir$ac_delim
35964 libdir!$libdir$ac_delim
35965 localedir!$localedir$ac_delim
35966 mandir!$mandir$ac_delim
35967 DEFS!$DEFS$ac_delim
35968 ECHO_C!$ECHO_C$ac_delim
35969 ECHO_N!$ECHO_N$ac_delim
35970 ECHO_T!$ECHO_T$ac_delim
35971 LIBS!$LIBS$ac_delim
35972 build_alias!$build_alias$ac_delim
35973 host_alias!$host_alias$ac_delim
35974 target_alias!$target_alias$ac_delim
35975 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35976 subdirs!$subdirs$ac_delim
35977 build!$build$ac_delim
35978 build_cpu!$build_cpu$ac_delim
35979 build_vendor!$build_vendor$ac_delim
35980 build_os!$build_os$ac_delim
35981 host!$host$ac_delim
35982 host_cpu!$host_cpu$ac_delim
35983 host_vendor!$host_vendor$ac_delim
35984 host_os!$host_os$ac_delim
35985 target!$target$ac_delim
35986 target_cpu!$target_cpu$ac_delim
35987 target_vendor!$target_vendor$ac_delim
35988 target_os!$target_os$ac_delim
35990 LINKALL!$LINKALL$ac_delim
35991 NOLINKALL!$NOLINKALL$ac_delim
35992 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35993 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35994 ARCH!$ARCH$ac_delim
35995 ENDIAN!$ENDIAN$ac_delim
35997 CFLAGS!$CFLAGS$ac_delim
35998 LDFLAGS!$LDFLAGS$ac_delim
35999 CPPFLAGS!$CPPFLAGS$ac_delim
36000 ac_ct_CC!$ac_ct_CC$ac_delim
36001 EXEEXT!$EXEEXT$ac_delim
36002 OBJEXT!$OBJEXT$ac_delim
36004 GREP!$GREP$ac_delim
36005 EGREP!$EGREP$ac_delim
36006 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36007 BUILD_CC!$BUILD_CC$ac_delim
36008 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36009 BUILD_CXX!$BUILD_CXX$ac_delim
36010 CVSBUILD!$CVSBUILD$ac_delim
36011 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36012 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36013 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36014 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36015 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36016 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36018 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36019 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36020 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36021 ENABLE_PIC!$ENABLE_PIC$ac_delim
36022 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36023 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36024 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36025 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36026 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36027 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36028 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36029 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36031 CXXFLAGS!$CXXFLAGS$ac_delim
36032 ac_ct_CXX!$ac_ct_CXX$ac_delim
36034 ifGNUmake!$ifGNUmake$ac_delim
36037 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36039 elif $ac_last_try; then
36040 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36041 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36042 { (exit 1); exit 1; }; }
36044 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36048 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36049 if test -n "$ac_eof"; then
36050 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36051 ac_eof
=`expr $ac_eof + 1`
36054 cat >>$CONFIG_STATUS <<_ACEOF
36055 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36059 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36060 s/^/s,@/; s/!/@,|#_!!_#|/
36063 s/'"$ac_delim"'$/,g/; t
36065 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36066 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36067 rm -f conf$
$subs.
sed
36068 cat >>$CONFIG_STATUS <<_ACEOF
36074 for ac_last_try
in false false false false false
:; do
36075 cat >conf$
$subs.
sed <<_ACEOF
36076 LN_S!$LN_S$ac_delim
36079 DATE!$DATE$ac_delim
36080 FIND!$FIND$ac_delim
36081 MKDIR!$MKDIR$ac_delim
36083 RANLIB!$RANLIB$ac_delim
36087 BINPWD!$BINPWD$ac_delim
36088 GRAPHVIZ!$GRAPHVIZ$ac_delim
36091 NEATO!$NEATO$ac_delim
36092 TWOPI!$TWOPI$ac_delim
36093 CIRCO!$CIRCO$ac_delim
36095 DOTTY!$DOTTY$ac_delim
36096 PERL!$PERL$ac_delim
36097 HAVE_PERL!$HAVE_PERL$ac_delim
36098 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36099 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36100 INSTALL_DATA!$INSTALL_DATA$ac_delim
36101 BZIP2!$BZIP2$ac_delim
36102 DOXYGEN!$DOXYGEN$ac_delim
36103 GROFF!$GROFF$ac_delim
36104 GZIP!$GZIP$ac_delim
36105 POD2HTML!$POD2HTML$ac_delim
36106 POD2MAN!$POD2MAN$ac_delim
36107 RUNTEST!$RUNTEST$ac_delim
36108 TCLSH!$TCLSH$ac_delim
36110 OCAMLC!$OCAMLC$ac_delim
36111 OCAMLOPT!$OCAMLOPT$ac_delim
36112 OCAMLDEP!$OCAMLDEP$ac_delim
36113 OCAMLDOC!$OCAMLDOC$ac_delim
36115 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36116 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36117 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36118 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36119 LIBADD_DL!$LIBADD_DL$ac_delim
36120 ECHO!$ECHO$ac_delim
36122 STRIP!$STRIP$ac_delim
36123 CXXCPP!$CXXCPP$ac_delim
36125 FFLAGS!$FFLAGS$ac_delim
36126 ac_ct_F77!$ac_ct_F77$ac_delim
36127 LIBTOOL!$LIBTOOL$ac_delim
36128 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36129 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36130 LLVMGCC!$LLVMGCC$ac_delim
36131 LLVMGXX!$LLVMGXX$ac_delim
36132 USE_UDIS86!$USE_UDIS86$ac_delim
36133 USE_OPROFILE!$USE_OPROFILE$ac_delim
36134 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36135 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36136 ALLOCA!$ALLOCA$ac_delim
36137 MMAP_FILE!$MMAP_FILE$ac_delim
36138 LLVMCC1!$LLVMCC1$ac_delim
36139 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36140 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36141 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36142 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36143 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36144 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36145 SHLIBEXT!$SHLIBEXT$ac_delim
36146 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36147 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36148 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36149 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36150 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36151 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36152 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36153 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36154 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36155 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36156 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36157 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36158 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36159 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36160 RPATH!$RPATH$ac_delim
36161 RDYNAMIC!$RDYNAMIC$ac_delim
36162 LIBOBJS!$LIBOBJS$ac_delim
36163 LTLIBOBJS!$LTLIBOBJS$ac_delim
36166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
36168 elif $ac_last_try; then
36169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36171 { (exit 1); exit 1; }; }
36173 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
36177 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36178 if test -n "$ac_eof"; then
36179 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
36180 ac_eof
=`expr $ac_eof + 1`
36183 cat >>$CONFIG_STATUS <<_ACEOF
36184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36189 s/^/s,@/; s/!/@,|#_!!_#|/
36192 s/'"$ac_delim"'$/,g/; t
36194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36195 ' >>$CONFIG_STATUS <conf$
$subs.
sed
36196 rm -f conf$
$subs.
sed
36197 cat >>$CONFIG_STATUS <<_ACEOF
36204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36206 # trailing colons and then remove the whole line if VPATH becomes empty
36207 # (actually we leave an empty line to preserve line numbers).
36208 if test "x$srcdir" = x.
; then
36209 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
36210 s/:*\$(srcdir):*/:/
36211 s/:*\${srcdir}:*/:/
36213 s/^\([^=]*=[ ]*\):*/\1/
36219 cat >>$CONFIG_STATUS <<\_ACEOF
36220 fi # test -n "$CONFIG_FILES"
36223 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
36226 :[FHLC
]) ac_mode
=$ac_tag; continue;;
36228 case $ac_mode$ac_tag in
36230 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36232 { (exit 1); exit 1; }; };;
36233 :[FH
]-) ac_tag
=-:-;;
36234 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
36251 -) ac_f
="$tmp/stdin";;
36252 *) # Look for the file first in the build tree, then in the source tree
36253 # (if the path is not absolute). The absolute path cannot be DOS-style,
36254 # because $ac_f cannot contain `:'.
36258 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36262 { (exit 1); exit 1; }; };;
36264 ac_file_inputs
="$ac_file_inputs $ac_f"
36267 # Let's still pretend it is `configure' which instantiates (i.e., don't
36268 # use $as_me), people would be surprised to read:
36269 # /* config.h. Generated by config.status. */
36270 configure_input
="Generated from "`IFS=:
36271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36272 if test x
"$ac_file" != x-
; then
36273 configure_input
="$ac_file. $configure_input"
36274 { echo "$as_me:$LINENO: creating $ac_file" >&5
36275 echo "$as_me: creating $ac_file" >&6;}
36279 *:-:* |
*:-) cat >"$tmp/stdin";;
36284 ac_dir
=`$as_dirname -- "$ac_file" ||
36285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36286 X"$ac_file" : 'X\(//\)[^/]' \| \
36287 X"$ac_file" : 'X\(//\)$' \| \
36288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36294 /^X\(\/\/\)[^/].*/{
36309 -*) as_dir
=.
/$as_dir;;
36311 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36315 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36316 *) as_qdir
=$as_dir;;
36318 as_dirs
="'$as_qdir' $as_dirs"
36319 as_dir
=`$as_dirname -- "$as_dir" ||
36320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36321 X"$as_dir" : 'X\(//\)[^/]' \| \
36322 X"$as_dir" : 'X\(//\)$' \| \
36323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36329 /^X\(\/\/\)[^/].*/{
36342 test -d "$as_dir" && break
36344 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36345 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36347 { (exit 1); exit 1; }; }; }
36351 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36353 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36354 # A ".." for each directory in $ac_dir_suffix.
36355 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36356 case $ac_top_builddir_sub in
36357 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36358 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36361 ac_abs_top_builddir
=$ac_pwd
36362 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36363 # for backward compatibility:
36364 ac_top_builddir
=$ac_top_build_prefix
36367 .
) # We are building in place.
36369 ac_top_srcdir
=$ac_top_builddir_sub
36370 ac_abs_top_srcdir
=$ac_pwd ;;
36371 [\\/]* | ?
:[\\/]* ) # Absolute name.
36372 ac_srcdir
=$srcdir$ac_dir_suffix;
36373 ac_top_srcdir
=$srcdir
36374 ac_abs_top_srcdir
=$srcdir ;;
36375 *) # Relative name.
36376 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36377 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36378 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36380 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36390 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36391 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36395 cat >>$CONFIG_STATUS <<\_ACEOF
36396 # If the template does not know about datarootdir, expand it.
36397 # FIXME: This hack should be removed a few years after 2.60.
36398 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36400 case `sed -n '/datarootdir/ {
36409 ' $ac_file_inputs` in
36410 *datarootdir
*) ac_datarootdir_seen
=yes;;
36411 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36415 cat >>$CONFIG_STATUS <<_ACEOF
36416 ac_datarootdir_hack='
36417 s&@datadir@&$datadir&g
36418 s&@docdir@&$docdir&g
36419 s&@infodir@&$infodir&g
36420 s&@localedir@&$localedir&g
36421 s&@mandir@&$mandir&g
36422 s&\\\${datarootdir}&$datarootdir&g' ;;
36426 # Neutralize VPATH when `$srcdir' = `.'.
36427 # Shell code in configure.ac might set extrasub.
36428 # FIXME: do we really want to maintain this feature?
36429 cat >>$CONFIG_STATUS <<_ACEOF
36433 cat >>$CONFIG_STATUS <<\_ACEOF
36435 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36436 s
&@configure_input@
&$configure_input&;t t
36437 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36438 s
&@srcdir@
&$ac_srcdir&;t t
36439 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36440 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36441 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36442 s
&@builddir@
&$ac_builddir&;t t
36443 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36444 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36445 s
&@INSTALL@
&$ac_INSTALL&;t t
36446 $ac_datarootdir_hack
36447 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
36449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
36451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
36452 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36453 which seems to be undefined. Please make sure it is defined." >&5
36454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36455 which seems to be undefined. Please make sure it is defined." >&2;}
36459 -) cat "$tmp/out"; rm -f "$tmp/out";;
36460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36469 # Transform confdefs.h into a sed script `conftest.defines', that
36470 # substitutes the proper values into config.h.in to produce config.h.
36471 rm -f conftest.defines conftest.
tail
36472 # First, append a space to every undef/define line, to ease matching.
36473 echo 's/$/ /' >conftest.defines
36474 # Then, protect against being on the right side of a sed subst, or in
36475 # an unquoted here document, in config.status. If some macros were
36476 # called several times there might be several #defines for the same
36477 # symbol, which is useless. But do not sort them, since the last
36478 # AC_DEFINE must be honored.
36479 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
36480 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36481 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36482 # PARAMS is the parameter list in the macro definition--in most cases, it's
36483 # just an empty string.
36484 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36485 ac_dB
='\\)[ (].*,\\1define\\2'
36493 s/^[ ]*#[ ]*define[ ][ ]*//
36498 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36499 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36500 ' >>conftest.defines
36502 # Remove the space that was appended to ease matching.
36503 # Then replace #undef with comments. This is necessary, for
36504 # example, in the case of _POSIX_SOURCE, which is predefined and required
36505 # on some systems where configure will not decide to define it.
36506 # (The regexp can be short, since the line contains either #define or #undef.)
36508 s,^[ #]*u.*,/* & */,' >>conftest.defines
36510 # Break up conftest.defines:
36511 ac_max_sed_lines
=50
36513 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36514 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36515 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36517 ac_in
='$ac_file_inputs'
36518 ac_out
='"$tmp/out1"'
36519 ac_nxt
='"$tmp/out2"'
36523 # Write a here document:
36524 cat >>$CONFIG_STATUS <<_ACEOF
36525 # First, check the format of the line:
36526 cat >"\$tmp/defines.sed" <<\\CEOF
36527 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36528 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36532 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
36534 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36535 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
36536 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
36537 grep . conftest.
tail >/dev
/null ||
break
36538 rm -f conftest.defines
36539 mv conftest.
tail conftest.defines
36541 rm -f conftest.defines conftest.
tail
36543 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36544 cat >>$CONFIG_STATUS <<\_ACEOF
36545 if test x
"$ac_file" != x-
; then
36546 echo "/* $configure_input */" >"$tmp/config.h"
36547 cat "$ac_result" >>"$tmp/config.h"
36548 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
36549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36550 echo "$as_me: $ac_file is unchanged" >&6;}
36553 mv "$tmp/config.h" $ac_file
36556 echo "/* $configure_input */"
36562 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36563 echo "$as_me: executing $ac_file commands" >&6;}
36568 case $ac_file$ac_mode in
36569 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
36570 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
36571 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
36572 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
36573 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
36574 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
36575 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
36576 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
36577 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
36578 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
36579 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
36580 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
36581 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
36582 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
36583 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
36584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
36585 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
36586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
36587 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
36588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
36589 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
36590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
36591 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
36592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
36593 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
36594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
36600 { (exit 0); exit 0; }
36602 chmod +x
$CONFIG_STATUS
36603 ac_clean_files
=$ac_clean_files_save
36606 # configure is writing to config.log, and then calls config.status.
36607 # config.status does its own redirection, appending to config.log.
36608 # Unfortunately, on DOS this fails, as config.log is still kept open
36609 # by configure, so config.status won't be able to write to it; its
36610 # output is simply discarded. So we exec the FD to /dev/null,
36611 # effectively closing config.log, so it can be properly (re)opened and
36612 # appended to by config.status. When coming back to configure, we
36613 # need to make the FD available again.
36614 if test "$no_create" != yes; then
36616 ac_config_status_args
=
36617 test "$silent" = yes &&
36618 ac_config_status_args
="$ac_config_status_args --quiet"
36620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36623 # would make configure fail if this is the last instruction.
36624 $ac_cs_success ||
{ (exit 1); exit 1; }
36628 # CONFIG_SUBDIRS section.
36630 if test "$no_recursion" != yes; then
36632 # Remove --cache-file and --srcdir arguments so they do not pile up.
36633 ac_sub_configure_args
=
36635 eval "set x $ac_configure_args"
36639 if test -n "$ac_prev"; then
36644 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36645 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36646 ac_prev
=cache_file
;;
36647 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36648 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36651 --config-cache |
-C)
36653 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36655 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36657 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36659 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36663 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36665 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
36669 # Always prepend --prefix to ensure using the same prefix
36670 # in subdir configurations.
36671 ac_arg
="--prefix=$prefix"
36673 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36675 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
36678 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36680 # Do not complain, so a configure script can configure whichever
36681 # parts of a large source tree are present.
36682 test -d "$srcdir/$ac_dir" ||
continue
36684 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36685 echo "$as_me:$LINENO: $ac_msg" >&5
36689 -*) as_dir
=.
/$as_dir;;
36691 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
36695 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36696 *) as_qdir
=$as_dir;;
36698 as_dirs
="'$as_qdir' $as_dirs"
36699 as_dir
=`$as_dirname -- "$as_dir" ||
36700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36701 X"$as_dir" : 'X\(//\)[^/]' \| \
36702 X"$as_dir" : 'X\(//\)$' \| \
36703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36709 /^X\(\/\/\)[^/].*/{
36722 test -d "$as_dir" && break
36724 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36725 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36726 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36727 { (exit 1); exit 1; }; }; }
36731 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36733 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36734 # A ".." for each directory in $ac_dir_suffix.
36735 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36736 case $ac_top_builddir_sub in
36737 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36738 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36741 ac_abs_top_builddir
=$ac_pwd
36742 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36743 # for backward compatibility:
36744 ac_top_builddir
=$ac_top_build_prefix
36747 .
) # We are building in place.
36749 ac_top_srcdir
=$ac_top_builddir_sub
36750 ac_abs_top_srcdir
=$ac_pwd ;;
36751 [\\/]* | ?
:[\\/]* ) # Absolute name.
36752 ac_srcdir
=$srcdir$ac_dir_suffix;
36753 ac_top_srcdir
=$srcdir
36754 ac_abs_top_srcdir
=$srcdir ;;
36755 *) # Relative name.
36756 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36757 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36758 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36760 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36765 # Check for guested configure; otherwise get Cygnus style configure.
36766 if test -f "$ac_srcdir/configure.gnu"; then
36767 ac_sub_configure
=$ac_srcdir/configure.gnu
36768 elif test -f "$ac_srcdir/configure"; then
36769 ac_sub_configure
=$ac_srcdir/configure
36770 elif test -f "$ac_srcdir/configure.in"; then
36771 # This should be Cygnus configure.
36772 ac_sub_configure
=$ac_aux_dir/configure
36774 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36775 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36779 # The recursion is here.
36780 if test -n "$ac_sub_configure"; then
36781 # Make the cache file name correct relative to the subdirectory.
36782 case $cache_file in
36783 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36784 *) # Relative name.
36785 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36788 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36789 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36790 # The eval makes quoting arguments work.
36791 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36792 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36793 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36794 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36795 { (exit 1); exit 1; }; }